/*
 * black-friday.css — Προσωρινή αρχική Black Friday (19/11/2026, page-index-bf.php).
 * Φορτώνει μόνο σε αυτή τη σελίδα. Χρώματα από τις μεταβλητές του styles.css (--primary κόκκινο, --main μαύρο).
 */
.bf-page {
  --bf-bg: #0d0d0d;
  --bf-card: #010101;
  --bf-card-2: #222;
  --bf-line: #353535;
  --bf-text: #fff;
  --bf-muted: rgba(255, 255, 255, 0.65);
  --bf-red: var(--primary, #b7151b);
  --bf-red-light: #e3262d;
}

.bf-preview-bar {
  background: #ffd23f;
  color: #181818;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
}

.bf-wrap {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(183, 21, 27, 0.35), transparent 60%),
    radial-gradient(900px 400px at -10% 30%, rgba(183, 21, 27, 0.18), transparent 60%),
    var(--bf-bg);
  color: var(--bf-text);
  overflow: hidden;
}

/* ---------- Hero ---------- */
.bf-hero {
  position: relative;
  padding: 56px 0 40px;
}
/* Με εικαστικό: η φωτογραφία ακουμπά στο μενού (τα σχοινάκια ξεκινούν από πάνω) */
.bf-hero--visual { padding-top: 0; }
.bf-hero--visual .bf-hero-visual { align-self: start; }
.bf-hero--visual .bf-hero-visual img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 0, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 0, #000 88%, transparent 100%);
}
.bf-hero::before {
  /* λεπτές διαγώνιες γραμμές, μόνο με CSS */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.bf-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.bf-hero-text { max-width: 640px; }
.bf-kicker {
  display: inline-block;
  background: var(--bf-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.bf-title {
  color: #fff;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.bf-subtitle {
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 28px;
}

/* Εικαστικό (assets/images/black-friday/ ή από το admin): αριστερά σε desktop, πάνω σε κινητό */
.bf-hero-inner.has-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}
.bf-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  /* σβήσιμο σε όλες τις άκρες, ώστε να «δένει» με το φόντο της σελίδας */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.has-visual .bf-hero-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.has-visual .bf-kicker { margin-bottom: 0; }
.has-visual .bf-subtitle { margin: 0; font-size: 28px;  font-weight: 700;  line-height: 1.1; }
.has-visual .bf-countdown { width: 100%; max-width: 380px; }
.has-visual .bf-countdown-boxes { justify-content: center; }
.bf-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Countdown ---------- */
.bf-countdown {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bf-line);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
}
.bf-countdown-label,
.bf-countdown-until {
  display: block;
  color: var(--bf-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bf-countdown-until { margin-top: 10px; text-transform: none; letter-spacing: 0; }
.bf-countdown-boxes {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.bf-countdown-boxes div {
  background: var(--bf-red);
  border-radius: 10px;
  min-width: 72px;
  padding: 10px 6px 8px;
}
.bf-countdown-boxes b {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.bf-countdown-boxes small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}
.bf-countdown.is-ended .bf-countdown-boxes { opacity: 0.4; }

/* ---------- Κουμπιά ---------- */
.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bf-red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.bf-btn:hover { background: var(--bf-red-light); color: #fff; transform: translateY(-1px); }
.bf-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; background: transparent; border: 1px solid #fff;}
.bf-btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); }
.bf-btn-outline:hover { background: #fff; color: #181818; }

/* ---------- Φίλτρο κατηγοριών ---------- */
.bf-deals { padding: 8px 0 64px; scroll-margin-top: 90px; } /* #bf-deals: κάτω από το sticky header */
.bf-filter { margin-bottom: 45px; }
.bf-filter-title {
  display: block;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}
.bf-filter-scroller {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bf-filter-pills {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px;
}
.bf-filter-pills::-webkit-scrollbar { display: none; }
/* Όταν δεν χωράνε (το βάζει το black-friday.js): στοίχιση αριστερά, βελάκια και σβήσιμο στις άκρες */
.bf-filter-scroller.is-overflow .bf-filter-pills {
  justify-content: flex-start;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.bf-filter-nav {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--bf-red);
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.bf-filter-scroller.is-overflow .bf-filter-nav { display: flex; }
.bf-filter-nav:hover { background: var(--bf-red); color: #fff; }
.bf-filter-nav:disabled { opacity: 0.3; cursor: default; background: transparent; }
.bf-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
/* Το styles.css δίνει σε κάθε button:hover σκούρο κείμενο: εδώ μένει λευκό */
.bf-pill:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--bf-red-light); color: #fff; }
.bf-pill.active,
.bf-pill.active:hover { background: var(--bf-red); border-color: var(--bf-red); color: #fff; }

/* ---------- Πλέγμα: 1η σειρά ένα μεγάλο (2/3) + ένα μικρό (1/3), μετά 3 ανά σειρά ---------- */
.bf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.bf-card.is-hero { grid-column: span 2; }
.bf-grid.is-filtered .bf-card.is-hero { grid-column: auto; }
.bf-card.is-hidden { display: none; }

/* ---------- Κάρτα ---------- */
.bf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bf-card), var(--bf-card-2));
  border: 1px solid var(--bf-line);
  border-radius: 18px;
  overflow: visible; /* το badge βγαίνει μισό έξω από το πλαίσιο */
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.bf-card:hover {
  border-color: var(--bf-red);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.bf-card.is-hero { border: 2px solid var(--bf-red); }

.bf-card-media {
  position: relative;
  padding: 16px 16px 0;
}
.bf-card-img {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.bf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.bf-card:hover .bf-card-img img { transform: scale(1.04); }

.bf-badge {
  position: absolute;
  top: -15px;
  left: -15px;
  z-index: 3;
  /* στρογγυλό, κείμενο στο κέντρο, μισό έξω από το πλαίσιο */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 0;
  border-radius: 50%;
  background: var(--bf-red);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: rotate(-15deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.55);
}
.bf-card-actions {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bf-card-actions .btn-icon-action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #181818;
  color: #fff;
}
.bf-card-actions .btn-icon-action:hover,
.bf-card-actions .btn-icon-action.active { background: var(--bf-red); color: #fff; }

.bf-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 20px;
}
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bf-chips span {
  font-size: 12px;
  font-weight: 600;
  color: #181818;
  background: #fff;
  border-radius: 4px;
  padding: 3px 8px;
}
.bf-card-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 12px;
}
.bf-card-title a { color: #fff; }
.bf-card-title a:hover { color: var(--bf-red-light); }
.bf-card-desc {
  color: var(--bf-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bf-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bf-price { display: flex; flex-direction: column; line-height: 1; }
.bf-price del {
  color: var(--bf-muted);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  text-decoration-color: var(--bf-red-light);
  text-decoration-thickness: 2px;
}
.bf-price strong {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bf-price-ask { color: var(--bf-muted); font-size: 15px; }

/* Μεγάλη κάρτα: εικόνα αριστερά, στοιχεία δεξιά */
.bf-card.is-hero { flex-direction: row; }
.bf-card.is-hero .bf-card-media { flex: 0 0 52%; padding: 20px 0 20px 20px; }
.bf-card.is-hero .bf-card-img { height: 100%; aspect-ratio: auto; min-height: 360px; }
.bf-card.is-hero .bf-card-body { padding: 32px 28px; justify-content: center; }
.bf-card.is-hero .bf-card-title { font-size: 26px; }
.bf-card.is-hero .bf-price strong { font-size: 48px; }
.bf-card.is-hero .bf-price del { font-size: 27px; }
.bf-card.is-hero .bf-badge { width: 112px; height: 112px; font-size: 28px; top: -20px; left: -15px; }
.bf-card.is-hero .bf-card-actions { top: 32px; right: 12px; }
.bf-card.is-hero .bf-card-bottom { margin-top: 8px; flex-direction: column; align-items: flex-start; gap: 18px; }
.bf-grid.is-filtered .bf-card.is-hero { flex-direction: column; border-width: 1px; }
.bf-grid.is-filtered .bf-card.is-hero .bf-card-media { flex: none; padding: 16px 16px 0; }
.bf-grid.is-filtered .bf-card.is-hero .bf-card-img { aspect-ratio: 1 / 1; min-height: 0; }
.bf-grid.is-filtered .bf-card.is-hero .bf-card-body { padding: 16px 20px 20px; }
/* Όταν φιλτράρεται, η μεγάλη κάρτα γίνεται κανονική: ίδια θέση εικονιδίων, badge και τιμών με τις άλλες */
.bf-grid.is-filtered .bf-card.is-hero .bf-card-actions { top: 26px; right: 26px; }
.bf-grid.is-filtered .bf-card.is-hero .bf-badge { width: 84px; height: 84px; font-size: 21px; top: -26px; left: -14px; }
.bf-grid.is-filtered .bf-card.is-hero .bf-card-title { font-size: inherit; }
.bf-grid.is-filtered .bf-card.is-hero .bf-card-desc { display: none; }
.bf-grid.is-filtered .bf-card.is-hero .bf-price strong { font-size: 32px; }
.bf-grid.is-filtered .bf-card.is-hero .bf-price del { font-size: 21px; }
.bf-grid.is-filtered .bf-card.is-hero .bf-card-bottom { margin-top: 0; flex-direction: row; align-items: flex-end; gap: 12px; }

.bf-more { text-align: center; margin-top: 40px; }
.bf-terms { color: var(--bf-muted); font-size: 13px; margin: 16px 0 0; }
.bf-empty { text-align: center; color: var(--bf-muted); padding: 40px 0; }

/* Οι κριτικές (include-reviews.php, section.pt-0) ακολουθούν τη σκούρα ενότητα: χρειάζονται απόσταση από πάνω. */
.bf-wrap + section.flat-spacing { padding-top: 80px !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .bf-hero-inner.has-visual { grid-template-columns: 1fr; gap: 16px; }
  .bf-hero-visual { max-width: 900px; margin: 0 auto; }
  .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .bf-card.is-hero { grid-column: span 2; }
  .bf-card.is-hero .bf-card-img { min-height: 300px; }
  .bf-price strong { font-size: 28px; }
}

/* ---------- Κινητό: η μεγάλη σε όλο το πλάτος, οι υπόλοιπες 2 ανά σειρά ---------- */
@media (max-width: 767px) {
  .bf-wrap + section.flat-spacing { padding-top: 48px !important; }
  .bf-hero { padding: 32px 0 24px; }
  .bf-hero--visual { padding-top: 0; }
  .bf-hero-inner { gap: 20px; }
  .bf-subtitle { font-size: 16px; margin-bottom: 20px; }
  .bf-countdown { width: 100%; padding: 14px; }
  .bf-countdown-boxes { justify-content: center; gap: 6px; }
  .bf-countdown-boxes div { min-width: 0; flex: 1; }
  .bf-countdown-boxes b { font-size: 26px; }

  .bf-filter-title { font-size: 18px; }
  .bf-filter-nav { width: 36px; height: 36px; font-size: 15px; }
  .bf-filter-scroller { gap: 6px; }
  .bf-pill { min-height: 40px; padding: 6px 14px; font-size: 13px; }

  .bf-grid { gap: 12px; }
  .bf-card { border-radius: 14px; }
  .bf-card-media { padding: 10px 10px 0; }
  .bf-card-body { padding: 12px; }
  .bf-badge { width: 58px; height: 58px; font-size: 15px; top: -18px; left: -6px; }
  .bf-card-actions { top: 16px; right: 16px; gap: 6px; }
  .bf-card-actions .btn-icon-action { width: 34px; height: 34px; }
  .bf-chips span:nth-child(2) { display: none; }
  .bf-card-title { font-size: 14px; }
  .bf-price strong { font-size: 22px; }
  .bf-price del { font-size: 16px; margin-bottom: 6px; }
  .bf-card-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .bf-card-bottom .bf-btn { width: 100%; padding: 10px 8px; font-size: 13px; }

  .bf-card.is-hero { flex-direction: column; }
  .bf-card.is-hero .bf-card-media { flex: none; padding: 12px 12px 0; }
  .bf-card.is-hero .bf-card-img { aspect-ratio: 1 / 1; min-height: 0; height: auto; }
  .bf-card.is-hero .bf-card-body { padding: 16px; }
  .bf-card.is-hero .bf-card-title { font-size: 19px; }
  .bf-card.is-hero .bf-price strong { font-size: 36px; }
  .bf-card.is-hero .bf-badge { width: 76px; height: 76px; font-size: 20px; top: -22px; left: -6px; }
  .bf-card.is-hero .bf-price del { font-size: 20px; }
  .bf-card.is-hero .bf-card-actions { top: 22px; right: 22px; }
  .bf-card.is-hero .bf-card-bottom { align-items: stretch; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-card-media { padding: 10px 10px 0; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-card-body { padding: 12px; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-card-actions { top: 16px; right: 16px; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-badge { width: 58px; height: 58px; font-size: 15px; top: -18px; left: -6px; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-card-title { font-size: 14px; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-price strong { font-size: 22px; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-price del { font-size: 16px; }
  .bf-grid.is-filtered .bf-card.is-hero .bf-card-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-card, .bf-card-img img, .bf-btn { transition: none; }
  .bf-card:hover, .bf-btn:hover { transform: none; }
  .bf-card:hover .bf-card-img img { transform: none; }
}
