/* ELDRA store — cart, checkout & add-ons. Uses the palette from eldra.css (:root). */

/* ---- nav cart button ---- */
.nav-cart {
  position: relative; background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.2s ease;
}
.nav-cart:hover { background: var(--crimson); border-color: var(--crimson); transform: translateY(-1px); }
.nav-cart svg { width: 19px; height: 19px; }
.nav-cart-count {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--crimson); color: #fff; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px #0a0a0a;
}

/* ---- add-to-cart lightbox button ---- */
.lb-cta-cart { background: var(--crimson); color: #fff; border: none; cursor: pointer; }
.lb-cta-cart:hover { background: var(--crimson-light); }

/* ---- cart drawer ---- */
.cart-backdrop {
  position: fixed; inset: 0; background: rgba(10,10,10,0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 200;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.cart-backdrop.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: 420px; max-width: 90vw;
  background: var(--bg); z-index: 210; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
  box-shadow: -20px 0 60px -30px rgba(0,0,0,0.5);
}
[dir=rtl] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cart-close { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-close:hover { color: var(--fg); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci-thumb { width: 64px; height: 76px; border-radius: 8px; overflow: hidden; background: #f1f1f1; display: flex; align-items: center; justify-content: center; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-name { font-weight: 700; font-size: 0.92rem; }
.ci-meta { font-size: 0.8rem; color: var(--muted); margin: 3px 0 8px; }
.ci-controls { display: flex; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-btn { width: 28px; height: 28px; border: none; background: #fff; cursor: pointer; font-size: 1rem; color: var(--fg); }
.qty-btn:disabled { color: #ccc; cursor: not-allowed; }
.qty-btn:hover:not(:disabled) { background: var(--crimson); color: #fff; }
.qty-val { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.ci-remove { background: none; border: none; color: var(--muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline; }
.ci-remove:hover { color: var(--crimson); }
.ci-line-total { font-weight: 800; font-size: 0.9rem; white-space: nowrap; }

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); padding: 24px; }
.cart-empty .placeholder-mark { font-size: 2.4rem; opacity: 0.5; }

.cart-foot { border-top: 1px solid var(--line); padding: 20px 24px; background: var(--card); }
.cart-line { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 8px; color: var(--muted); }
.cart-line.cart-total { color: var(--fg); font-weight: 800; font-size: 1.1rem; margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-checkout-btn { width: 100%; }
.cart-note { text-align: center; font-size: 0.74rem; color: var(--muted); margin-top: 12px; }

/* ---- checkout modal ---- */
.checkout-backdrop {
  position: fixed; inset: 0; background: rgba(10,10,10,0.6); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.checkout-backdrop.show { opacity: 1; visibility: visible; }
.checkout-modal {
  background: var(--bg); width: 540px; max-width: 100%; max-height: 92vh; overflow-y: auto;
  border-radius: 16px; padding: 32px; position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.checkout-close { position: absolute; top: 16px; inset-inline-end: 18px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.checkout-close:hover { color: var(--fg); }
.checkout-title { font-size: 1.7rem; margin: 4px 0 6px; }
.checkout-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-row { display: flex; flex-direction: column; gap: 6px; }
.cf-row label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cf-row input, .cf-row textarea {
  font-family: inherit; font-size: 0.95rem; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg);
  transition: border-color 0.2s ease;
}
.cf-row input:focus, .cf-row textarea:focus { outline: none; border-color: var(--crimson); }
.cf-row textarea { resize: vertical; min-height: 52px; }

.checkout-summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 6px; }
.cs-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 5px 0; }
.cs-row em { color: var(--muted); font-style: normal; }
.cs-row.cs-sub { color: var(--muted); }
.cs-row.cs-total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.checkout-pay { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--fg); }
.cp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(37,211,102,0.18); }
.checkout-submit { width: 100%; margin-top: 4px; }
.checkout-err { background: #fdecea; color: #c62828; border: 1px solid #f5c6c0; border-radius: 10px; padding: 11px 14px; font-size: 0.86rem; }

.checkout-success { text-align: center; padding: 20px 8px; }
.cs-mark {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 2.2rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(37,211,102,0.15);
}
.checkout-success h3 { font-size: 1.6rem; margin-bottom: 8px; }
.checkout-success p { color: var(--muted); margin-bottom: 10px; }
.checkout-success .cs-ref { font-weight: 800; color: var(--fg); letter-spacing: 0.04em; }
.checkout-success .lb-cta-wa { display: inline-flex; margin: 10px 8px; }
.checkout-success .btn-outline { margin-top: 6px; }

/* ---- products empty state ---- */
.empty-state { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 48px 0; font-size: 0.95rem; }

/* ---- mobile nav fallback ---- */
@media (max-width: 860px) {
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 72px; inset-inline-start: 0; right: 0;
    background: rgba(10,10,10,0.97); padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}
@media (max-width: 480px) {
  .checkout-modal { padding: 24px 18px; }
  .cf-grid { grid-template-columns: 1fr; }
}

/* ===== Logo color handling (black artwork on dark vs light sections) ===== */
.nav-mascot { filter: invert(1); }           /* nav + footer are dark → show white */
.hero-logo  { filter: invert(1); }           /* dark hero → white */
.about-logo { filter: none; }                /* about section is white → keep black */

/* ===== Sale price (compare-at) ===== */
.price-was { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-inline-end: 8px; font-size: 0.9em; }
.price-now { color: var(--crimson); font-weight: 800; }
.lb-price .price-was { font-size: 1rem; }

/* ===== Feedback carousel (auto-rotating) ===== */
.fb-carousel { position: relative; max-width: 560px; margin: 0 auto; }
.fb-stage {
  position: relative; height: 470px; border-radius: 16px; overflow: hidden;
  background: #f1f1f1; border: 1px solid var(--line);
}
.fb-slide {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease; background: #fff;
}
.fb-slide.active { opacity: 1; visibility: visible; }
.fb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.fb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(10,10,10,0.55); color: #fff; font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.fb-arrow:hover { background: var(--crimson); }
.fb-prev { inset-inline-start: 10px; }
.fb-next { inset-inline-end: 10px; }
.fb-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.fb-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: all 0.2s ease; }
.fb-dot:hover { background: var(--muted); }
.fb-dot.active { background: var(--crimson); transform: scale(1.3); }
@media (max-width: 560px) { .fb-stage { height: 380px; } }

/* ===== Delivery zone select + inspection note ===== */
.cf-row select { font-family: inherit; font-size: 0.95rem; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg); width: 100%; }
.cf-row select:focus { outline: none; border-color: var(--crimson); }
.checkout-inspect { background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.28); color: #12633f; border-radius: 10px; padding: 11px 14px; font-size: 0.86rem; line-height: 1.55; }
[dir=rtl] .checkout-inspect { text-align: right; }

/* ===== Product discount badge ===== */
.product-sale { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; background: var(--crimson); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px -2px rgba(168,37,46,0.6); }

/* ============================================================= */
/* ===== Restyle v2: announcement bar, trust strip, sale band === */
/* ============================================================= */

/* Announcement / trust bar (fixed, above the nav) */
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 36px; background: var(--crimson); color: #fff;
  display: flex; align-items: center; overflow: hidden;
}
.announce-in {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em;
}
.announce-sep { opacity: 0.55; }
[dir=rtl] .announce-in { font-family: 'Cairo', sans-serif; }

/* Nav drops below the announcement bar; hero clears both */
.nav { top: 36px; }
.hero { padding-top: 108px; }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.trust-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(168,37,46,0.08); color: var(--crimson);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.trust-tx { display: flex; flex-direction: column; line-height: 1.3; }
.trust-tx b { font-size: 0.86rem; color: var(--fg); }
.trust-tx small { font-size: 0.75rem; color: var(--muted); }
[dir=rtl] .trust-tx b, [dir=rtl] .trust-tx small { font-family: 'Cairo', sans-serif; }

/* Off-season sale band */
.sale-section { padding: 56px 0 10px; background: var(--bg); }
.sale-band {
  background: linear-gradient(120deg, #2a0d10, #140507); color: #fff;
  border-radius: 22px; padding: 34px;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: center;
  box-shadow: 0 30px 60px -34px rgba(168,37,46,0.7);
}
.sale-off {
  display: inline-block; background: var(--crimson); color: #fff;
  font-weight: 800; font-size: 0.76rem; letter-spacing: 0.04em;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.sale-title {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 2.6rem;
  line-height: 1.02; letter-spacing: 0.02em; margin-bottom: 12px;
}
[dir=rtl] .sale-title { font-family: 'Cairo', sans-serif; font-weight: 800; line-height: 1.2; }
.sale-band p { color: rgba(255,255,255,0.72); font-size: 0.96rem; margin-bottom: 20px; max-width: 32rem; }
.sale-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sale-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; overflow: hidden; }
.sale-card-ph { aspect-ratio: 1/1; background: #0e0405; overflow: hidden; }
.sale-card-ph img { width: 100%; height: 100%; object-fit: cover; }
.sale-card-ph.placeholder { display: flex; align-items: center; justify-content: center; }
.sale-card-info { padding: 11px 13px; font-size: 0.85rem; }
.sale-card-info b { display: block; margin-bottom: 3px; }
.sale-card-info s { color: rgba(255,255,255,0.45); margin-inline-end: 6px; }
.sale-card-info span { color: #fff; font-weight: 700; }
[dir=rtl] .sale-card-info b, [dir=rtl] .sale-card-info span { font-family: 'Cairo', sans-serif; }

/* Products lead straight off the sale band — trim the huge default top gap */
.products { padding-top: 56px; }

@media (max-width: 900px) {
  .trust-in { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .sale-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .announce-in { gap: 8px; font-size: 0.72rem; }
  .announce-in > :nth-child(3), .announce-in > :nth-child(4) { display: none; }
  .sale-title { font-size: 2.1rem; }
}


/* ============================================================= */
/* ===== Offer label fix + launch band ========================= */
/* ============================================================= */

/* Percentage badge (top-start) and product tag (top-end) never overlap now.
   Move the image-count chip out of the way to the bottom-end corner. */
.product-image-count { top: auto; bottom: 14px; left: auto; right: 14px; }
[dir=rtl] .product-image-count { left: 14px; right: auto; }

/* Sale band: split the label (one side) and the percentage (other side) */
.sale-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sale-off { margin-bottom: 0; }
.sale-pct { flex: none; background: #fff; color: var(--crimson); font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; padding: 5px 13px; border-radius: 999px; }
[dir=rtl] .sale-pct { font-family: 'Cairo', sans-serif; }

/* Launch (summer) band — warm crimson treatment to distinguish from the dark winter band */
.sale-band.launch { background: linear-gradient(120deg, #7c1620, #a8252e 58%, #c73a45); box-shadow: 0 30px 60px -34px rgba(168,37,46,0.85); }
.sale-band.launch .sale-off { background: rgba(0,0,0,0.28); }
.sale-band.launch p { color: rgba(255,255,255,0.85); }
.sale-band.launch .sale-card { background: rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.18); }
.sale-band.launch .sale-card-ph { background: #6a121b; }

/* cart free-shipping hint */
.cart-freeship { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--crimson); margin: 0 0 10px; }
.cart-freeship.ok { color: #1c7a43; }

/* ============================================================= */
/* ===== Header spacing fix (mobile wordmark collision) ======== */
/* ============================================================= */
.nav-inner { gap: 16px; }
.brand-link { flex-shrink: 0; }
.nav-right { flex-shrink: 0; }
.nav-links { gap: 24px; }

/* Declutter the top bar on phones so ELDRA never touches the icons.
   Socials remain in the footer, the contact band, and the floating WhatsApp button. */
@media (max-width: 900px) {
  .nav-right .nav-social { display: none; }
}
@media (max-width: 560px) {
  .brand-link .wordmark { font-size: 1.35rem; }
  .brand-link .nav-mascot { width: 30px; height: 30px; }
  .nav-right { gap: 6px; }
  .nav-cart { width: 36px; height: 36px; }
  .lang-toggle { padding: 6px 9px; min-width: 0; }
}
