/* ═══════════════════════════════════════
   CART SIDEBAR
═══════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0; right: -400px;
  width: 100%; max-width: 400px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease-in-out;
}
.cart-sidebar.is-open { right: 0; }

.cart-sidebar__header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-sidebar__title { font-size: 18px; }

.cart-sidebar__close {
  font-size: 20px;
  color: var(--text-muted);
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  transition: color 0.2s, transform 0.2s, background 0.2s;
  padding: 0; line-height: 1;
}
.cart-sidebar__close:hover {
  color: var(--danger);
  background: #fee2e2;
  transform: rotate(90deg);
}

.cart-sidebar__body { flex: 1; overflow-y: auto; padding: 20px; }

.cart-sidebar__empty {
  text-align: center; padding: 50px 0; color: var(--text-muted);
}
.cart-sidebar__empty i { font-size: 48px; margin-bottom: 20px; color: var(--border-color); }
.cart-sidebar__empty p { margin-bottom: 20px; }

.cart-sidebar__footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
}
.cart-sidebar__subtotal {
  display: flex; justify-content: space-between;
  font-size: 18px; margin-bottom: 20px;
}
.cart-sidebar__actions { display: flex; flex-direction: column; gap: 10px; }

.cart-sidebar__item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-color);
}
.cart-sidebar__item:last-child { border-bottom: none; }
.cart-sidebar__item-img-wrap { flex-shrink: 0; }
.cart-sidebar__item-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.cart-sidebar__item-info { flex: 1; min-width: 0; }
.cart-sidebar__item-name {
  font-size: 13px; font-weight: 600; color: var(--text-dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; text-decoration: none;
}
.cart-sidebar__item-name:hover { color: var(--primary-color); }
.cart-sidebar__item-variant {
  display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px;
}
.cart-sidebar__item-meta {
  display: flex; justify-content: space-between; align-items: center; margin-top: 6px;
}
.cart-sidebar__item-qty { font-size: 12px; color: var(--text-muted); }
.cart-sidebar__item-price { font-size: 14px; font-weight: 700; color: var(--primary-color); }
.cart-sidebar__item-remove {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: 50%; font-size: 12px;
  transition: var(--transition);
  background: none; border: none; cursor: pointer;
}
.cart-sidebar__item-remove:hover { background-color: var(--danger); color: var(--white); }


/* ═══════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════ */
.newsletter {
  background-color: var(--secondary-light);
  padding: 60px 0;
  text-align: center;
}
.newsletter__title { font-size: 28px; margin-bottom: 10px; }
.newsletter__subtitle { color: var(--text-muted); margin-bottom: 30px; }
.newsletter__form {
  max-width: 500px; margin: 0 auto;
  display: flex; gap: 10px;
  background-color: var(--white);
  padding: 8px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.newsletter__input {
  flex: 1; border: none; background: transparent;
  padding: 10px 20px; outline: none;
}


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0 30px;
}

/* ── Grid ─────────────────────────────── */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: start;
}

/* ── Brand / Logo column ────────────────── */
.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 16px;
  text-decoration: none;
}

/* Logo image: no more brightness(0) that made it a white box.
   We show it naturally at a controlled size and add a subtle
   semi-transparent white background so it pops on the teal footer. */
.footer__logo-img {
  height: 44px;
  max-width: 160px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.12);
}

/* Fallback icon when no logo image is configured */
.footer__logo-icon {
  width: 40px; height: 40px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.footer__tagline {
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Social icons ─────────────────────── */
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  min-height: 36px; /* preserve space even when no socials */
}

.footer__social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
  text-decoration: none;
}
.footer__social:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ── App store buttons ────────────────── */
.footer__app-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
  min-width: 140px;
}
.footer__app-btn:hover {
  background-color: rgba(0,0,0,0.75);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}
.footer__app-btn i {
  font-size: 26px;
  flex-shrink: 0;
}
.footer__app-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.footer__app-btn span small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* ── Column headings ──────────────────── */
.footer__col-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 12px;
}
.footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* ── Nav link columns ─────────────────── */
.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, padding-left 0.2s;
  text-decoration: none;
}

/* Icon placed directly in the <a> tag via blade template */
.footer__links a i {
  font-size: 11px;
  color: var(--secondary-color);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.footer__links a:hover {
  color: var(--secondary-color);
  padding-left: 4px;
}
.footer__links a:hover i {
  transform: translateX(3px);
}

/* ── Contact column ───────────────────── */
.footer__contact li {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.footer__contact i {
  color: var(--secondary-color);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 15px;
}
.footer__contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__contact a:hover { color: var(--secondary-color); }

/* ── Payment badges ───────────────────── */
.footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}
.footer__payments img {
  height: 24px;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.2s;
}
.footer__payments img:hover { transform: scale(1.08); }

/* ── Bottom bar ───────────────────────── */
.footer__bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* Large tablet → 3-col grid */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;
  }
}

/* Tablet landscape → 2-col + brand spans full width */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer__brand {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .footer__logo, .footer__tagline { grid-column: span 2; margin-bottom: 0; }
  .footer__socials { margin-bottom: 0; }
  .footer__apps   { flex-wrap: wrap; }
}

/* Tablet portrait → compact */
@media (max-width: 768px) {
  .footer { padding: 60px 0 24px; }
  .footer__grid { gap: 28px; }
  .footer__col-title { font-size: 14px; }
  .footer__brand {
    grid-column: span 2;
    display: block; /* revert to block in portrait */
  }
  .footer__apps { gap: 8px; }
  .footer__app-btn { min-width: 130px; padding: 8px 12px; }
}

/* Mobile → single column */
@media (max-width: 576px) {
  .footer { padding: 48px 0 20px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__brand { grid-column: span 1; }
  .footer__apps {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .footer__app-btn { flex: 1 1 calc(50% - 5px); min-width: 130px; }
  .footer__payments { justify-content: center; }

  /* Section dividers on mobile */
  .footer__col {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .newsletter__form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .newsletter__form .btn { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   DYNAMIC FOOTER (FooterConfig) — trust strip, newsletter band, payment
   chips, mobile link accordion, small-print bar.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Trust strip ─────────────────────────────────────────────────────── */
.footer-strip {
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.footer-strip__list {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.footer-strip__item { display: flex; align-items: center; gap: 13px; min-width: 0; }
.footer-strip__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 17px;
  background: rgba(255, 255, 255, .08);
  color: var(--primary-light, #a78bfa);
}
.footer-strip__copy { display: flex; flex-direction: column; min-width: 0; }
.footer-strip__copy strong { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-strip__copy small { font-size: 12px; color: rgba(255, 255, 255, .6); line-height: 1.45; margin-top: 2px; }

/* ── Newsletter band ─────────────────────────────────────────────────── */
.footer-news { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.footer-news__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; padding: 28px 20px; flex-wrap: wrap;
}
.footer-news__copy h3 { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.footer-news__copy p { font-size: 13.5px; color: rgba(255, 255, 255, .62); margin: 0; max-width: 46ch; line-height: 1.6; }
.footer-news__form { display: flex; gap: 9px; flex: 1 1 340px; max-width: 460px; }
.footer-news__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.footer-news__form input[type="email"] {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  padding: 12px 15px;
  color: #fff; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.footer-news__form input[type="email"]::placeholder { color: rgba(255, 255, 255, .38); }
.footer-news__form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-light, #a78bfa);
  background: rgba(255, 255, 255, .1);
}
.footer-news__form button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary, #7c3aed);
  color: #fff; border: none; border-radius: 11px;
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.footer-news__form button:hover { background: var(--primary-dark, #6d28d9); transform: translateY(-1px); }

/* ── Payment / trust chips (icon-based, no external images) ──────────── */
.footer__pay-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255, 255, 255, .45);
  margin: 20px 0 9px;
}
.footer__pay {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 30px; border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .82); font-size: 17px;
  transition: background .15s, transform .15s, color .15s;
}
.footer__pay:hover { background: rgba(255, 255, 255, .15); color: #fff; transform: translateY(-2px); }

/* ── Collapsible link columns (mobile) ───────────────────────────────── */
.footer__col-caret { display: none; margin-left: auto; font-size: 12px; transition: transform .2s; }

/* ── Bottom bar with small-print links ───────────────────────────────── */
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__bottom-links { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer__bottom-links a {
  font-size: 12.5px; color: rgba(255, 255, 255, .55);
  text-decoration: none; transition: color .15s;
}
.footer__bottom-links a:hover { color: #fff; }

/* Screen-reader-only helper (used by the newsletter label + badge names) */
.footer .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
  .footer-strip__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .footer-news__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-news__copy p { max-width: none; }
  .footer-news__form { max-width: none; }

  /* Headings become accordion toggles; links hide until opened. */
  .footer__col-caret { display: block; }
  .footer__col-title {
    display: flex; align-items: center; width: 100%;
    cursor: pointer; user-select: none;
    padding-bottom: 12px; margin-bottom: 0;
  }
  .footer__col .footer__links,
  .footer__col .footer__contact,
  .footer__col .footer__payments,
  .footer__col .footer__pay-label {
    display: none;
  }
  .footer__col.is-open .footer__links,
  .footer__col.is-open .footer__contact,
  .footer__col.is-open .footer__payments { display: flex; }
  .footer__col.is-open .footer__links,
  .footer__col.is-open .footer__contact { flex-direction: column; }
  .footer__col.is-open .footer__pay-label { display: block; }
  .footer__col.is-open .footer__col-caret { transform: rotate(180deg); }

  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .footer-strip__list { grid-template-columns: 1fr; padding: 18px 0; gap: 14px; }
  .footer-news__form { flex-direction: column; }
  .footer-news__form button { justify-content: center; }
}
