/* ═══════════════════════════════════════════
   MĀSON — Component Styles
   Requires: theme.css loaded first
   Supports RTL & LTR layouts
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  direction: var(--dir);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ── Typography ── */
.heading-xl { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.heading-lg { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.heading-md { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.text-body { font-size: 1rem; color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; color: var(--text-muted); }
.overline { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 0.875rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  transition: all 0.25s ease; letter-spacing: 0.03em; text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-light); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: var(--text-inverse); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* Pay-now / checkout CTA — the cart's primary conversion action. Full-width
   gold gradient with an accent glow and a hover sweep so it clearly outranks
   the surrounding buttons. Uses theme tokens, so it adapts to dark mode. */
.btn-pay-now {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, var(--accent-dark));
  background-size: 200% 100%;
  background-position: 0 0;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent-dark) 70%, transparent);
  transition: background-position 0.45s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-pay-now:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--accent-dark) 85%, transparent);
}
.btn-pay-now:active { transform: translateY(0); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent-dark) 80%, transparent); }
.btn-pay-now i { font-size: 0.95rem; }
.btn-pay-now:disabled,
.btn-pay-now[disabled] {
  opacity: 0.55; cursor: not-allowed; transform: none;
  box-shadow: none; filter: grayscale(0.25);
}
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #a93226; }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; padding: 8px 12px; }
.btn-ghost:hover { color: var(--error); background: transparent; box-shadow: none; transform: none; }

/* ── Sections ── */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-inverse); }

/* ── Card ── */
.card {
  background: var(--card-bg); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  transition: all 0.3s ease; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── Utilities ── */
.stars { color: var(--accent); font-size: 0.8rem; display: flex; gap: 2px; }
.badge {
  display: inline-block; padding: 4px 10px; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; border-radius: var(--radius-sm);
}
.badge-accent { background: var(--accent); color: var(--primary-dark); }
.badge-dark { background: var(--primary); color: #fff; }
.badge-success { background: var(--success); color: white; }
.badge-error { background: var(--error); color: white; }
.price { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.price .current { font-size: 1.1rem; font-weight: 700; }
.price .original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.nav-links { display: none; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px;
  inset-inline-start: 0;
  width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-icons { display: flex; gap: 20px; align-items: center; font-size: 1.1rem; }
.nav-icons a { transition: color 0.2s; }
.nav-icons a:hover { color: var(--accent); }
.nav-toggle { display: block; background: none; border: none; font-size: 1.3rem; color: var(--text); }
.cart-count { position: relative; }
.cart-count::after {
  content: attr(data-count); position: absolute; top: -8px;
  inset-inline-end: -10px;
  background: var(--accent); color: var(--primary-dark); font-size: 0.6rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.lang-switch {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; background: var(--bg-alt); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--radius-sm); transition: all 0.2s;
  cursor: pointer; color: var(--text);
}
.lang-switch:hover { border-color: var(--accent); background: white; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ── News Ticker ── */
.ticker {
  background: var(--accent); color: var(--primary-dark);
  padding: 10px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: ticker-scroll 30s linear infinite; }
[dir="rtl"] .ticker-track { animation-name: ticker-scroll-rtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0 24px;
}
.ticker-item::before { content: '◆'; font-size: 0.45rem; opacity: 0.6; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes ticker-scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ── Hero Slider ── */
.slider { position: relative; overflow: hidden; background: var(--bg-dark); }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
[dir="rtl"] .slider-track { flex-direction: row-reverse; }
.slide {
  min-width: 100%; position: relative;
  height: 75vh; min-height: 500px; max-height: 800px;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to inline-end, rgba(26,26,46,0.8) 0%, rgba(26,26,46,0.3) 60%, transparent);
}
[dir="ltr"] .slide::before { background: linear-gradient(90deg, rgba(26,26,46,0.8) 0%, rgba(26,26,46,0.3) 60%, transparent); }
[dir="rtl"] .slide::before { background: linear-gradient(270deg, rgba(26,26,46,0.8) 0%, rgba(26,26,46,0.3) 60%, transparent); }
.slide-content {
  position: relative; z-index: 2; max-width: 560px;
  padding: 0 16px; margin-inline-start: 5%; color: var(--text-inverse);
}
.slide-content .overline { color: var(--accent-light); margin-bottom: 12px; }
.slide-content h1 { margin-bottom: 16px; }
.slide-content p { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 440px; }
@media (min-width: 768px) { .slide-content { margin-inline-start: 8%; padding: 0; } }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  color: white; border: 1px solid rgba(255,255,255,0.2);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s; z-index: 10; cursor: pointer;
}
.slider-nav:hover { background: rgba(255,255,255,0.25); }
.slider-prev { inset-inline-start: 16px; }
.slider-next { inset-inline-end: 16px; }
[dir="rtl"] .slider-prev i { transform: scaleX(-1); }
[dir="rtl"] .slider-next i { transform: scaleX(-1); }
.slider-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.6);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.slider-dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

/* ── Chosen Products ── */
.chosen-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chosen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .chosen-grid { grid-template-columns: repeat(4, 1fr); } }
.chosen-card .card-img {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.chosen-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.chosen-card:hover .card-img img { transform: scale(1.06); }
.chosen-card .card-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
.chosen-card .card-body { padding: 20px; }
.chosen-card .card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.chosen-card .card-body .desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

/* ── Split (Image + Text) ── */
.split { display: grid; gap: 0; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.split-img { overflow: hidden; }
.split-img img {
  width: 100%; height: 100%; min-height: 360px; object-fit: cover;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
@media (min-width: 768px) {
  .split-img img {
    border-start-start-radius: 0; border-start-end-radius: var(--radius-lg);
    border-end-start-radius: 0; border-end-end-radius: var(--radius-lg);
    min-height: 520px;
  }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
  [dir="rtl"] .split.reverse { direction: ltr; }
  [dir="rtl"] .split.reverse > * { direction: rtl; }
  .split.reverse .split-img img {
    border-start-start-radius: var(--radius-lg); border-start-end-radius: 0;
    border-end-start-radius: var(--radius-lg); border-end-end-radius: 0;
  }
}
.split-text { padding: 40px 20px; }
@media (min-width: 768px) { .split-text { padding: 48px 56px; } }
.split-text .overline { margin-bottom: 12px; }
.split-text h2 { margin-bottom: 16px; }
.split-text p { margin-bottom: 28px; max-width: 460px; }

/* ── Category Grid ── */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  aspect-ratio: 1; cursor: pointer;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.65));
  transition: background 0.3s;
}
.cat-card:hover::after { background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.75)); }
.cat-card span {
  position: absolute; bottom: 20px; inset-inline-start: 20px; z-index: 2;
  color: white; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em;
}

/* ── Video ── */
.video-wrapper {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--primary-dark); aspect-ratio: 16/9; max-width: 960px; margin: 0 auto;
}
.video-wrapper video, .video-wrapper iframe { width: 100%; height: 100%; object-fit: cover; }
.video-caption { text-align: center; margin-top: 24px; }
.video-caption h3 { margin-bottom: 8px; }
.video-caption p { max-width: 560px; margin: 0 auto 20px; }

/* ── Mood Image ── */
.mood {
  position: relative; height: 50vh; min-height: 300px;
  background-size: cover; background-position: center; background-attachment: fixed;
  display: flex; align-items: center; justify-content: center;
}
.mood::before { content: ''; position: absolute; inset: 0; background: rgba(26,26,46,0.4); }
.mood-text {
  position: relative; z-index: 2; text-align: center; color: white;
  font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300;
  letter-spacing: 0.12em; text-transform: uppercase;
}
@supports (-webkit-touch-callout: none) { .mood { background-attachment: scroll; } }

/* ── Trust Badges ── */
.trust-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  text-align: center; padding: 28px 16px;
  border: 1px solid var(--border-light); border-radius: var(--radius-md); transition: all 0.3s;
}
.trust-item:hover { border-color: var(--accent); background: white; box-shadow: var(--shadow-sm); }
.trust-icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent-dark);
}
.trust-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.trust-item p { font-size: 0.8rem; color: var(--text-muted); }

/* ── Product Grid ── */
.prod-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
.prod-card .prod-media { position: relative; }
.prod-card .prod-img {
  display: block; position: relative; overflow: hidden; aspect-ratio: 3/4;
  border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--bg-alt);
}
.prod-card .prod-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.5s; }
.prod-card .prod-img .img-hover { position: absolute; inset: 0; opacity: 0; }
.prod-card:hover .prod-img .img-hover { opacity: 1; }
/* Only fade the main image when the card actually has a hover swap image,
   otherwise single-image products flash white on hover. The `has-hover`
   class is set by partials/prod-card.blade.php when a distinct hover URL
   was resolved. */
.prod-card.has-hover:hover .prod-img .img-main { opacity: 0; }
.prod-card .prod-actions {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(10px);
  display: flex; gap: 8px; opacity: 0; transition: all 0.3s;
}
.prod-card:hover .prod-actions { opacity: 1; transform: translateX(-50%) translateY(0); }
.prod-action-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-bg); border: none; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all 0.2s; font-size: 0.85rem;
}
.prod-action-btn:hover { background: var(--primary); color: white; }
.prod-card .prod-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
.prod-card .prod-body { padding: 16px; }
.prod-card .prod-body h3 { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.prod-card .prod-body .prod-subtitle {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-card .prod-body .stars { margin-bottom: 8px; }
.prod-card .prod-body .prod-tax-note { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.prod-card .prod-body .prod-offers {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: 0.72rem; font-weight: 600; color: var(--accent-dark);
}

/* ── Carousel ── */
.carousel-wrapper { position: relative; }
.carousel {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 8px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 calc(75% - 10px); scroll-snap-align: start; }
@media (min-width: 640px) { .carousel-item { flex: 0 0 calc(50% - 10px); } }
@media (min-width: 768px) { .carousel-item { flex: 0 0 calc(33.333% - 14px); } }
@media (min-width: 1024px) { .carousel-item { flex: 0 0 calc(25% - 15px); } }
.carousel-item .card { height: 100%; }
.carousel-item .car-img { aspect-ratio: 4/3; overflow: hidden; }
.carousel-item .car-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.carousel-item:hover .car-img img { transform: scale(1.05); }
.carousel-item .car-body { padding: 16px; }
.carousel-item .car-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.carousel-item .car-body p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.carousel-item .car-body a { font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); }
.carousel-item .car-body a:hover { text-decoration: underline; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: white; box-shadow: var(--shadow-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text); transition: all 0.2s; z-index: 5;
}
.carousel-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.carousel-prev { inset-inline-start: -12px; }
.carousel-next { inset-inline-end: -12px; }
[dir="rtl"] .carousel-btn i { transform: scaleX(-1); }
@media (max-width: 767px) { .carousel-btn { display: none; } }

/* ── Testimonials ── */
.test-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }
.test-card {
  padding: 32px; border-radius: var(--radius-md);
  background: var(--card-bg); border: 1px solid var(--border-light);
  transition: all 0.3s; position: relative;
}
.test-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.test-quote {
  font-size: 3rem; line-height: 1; color: var(--accent); font-weight: 800;
  position: absolute; top: 20px; inset-inline-end: 24px; opacity: 0.3;
}
.test-card .stars { margin-bottom: 16px; }
.test-card blockquote { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-light); }
.test-author-info h4 { font-size: 0.85rem; font-weight: 600; }
.test-author-info span { font-size: 0.75rem; color: var(--text-muted); }

/* ── Contact ── */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-info h3 { margin-bottom: 20px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail i {
  width: 40px; height: 40px; background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent-dark); flex-shrink: 0;
}
.contact-detail div h4 { font-size: 0.85rem; font-weight: 600; }
.contact-detail div p { font-size: 0.85rem; color: var(--text-muted); }
.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; background: white;
  transition: border-color 0.2s, box-shadow 0.2s; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }

/* ── Newsletter ── */
.newsletter {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
}
.newsletter h2 { margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.nl-form {
  display: flex; gap: 0; max-width: 480px; margin: 0 auto;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-lg);
}
.nl-form input { flex: 1; padding: 14px 20px; border: none; font-size: 0.9rem; color: var(--text); background: #fff; outline: none; }
.nl-form button {
  padding: 14px 28px; border: none; background: var(--accent);
  color: var(--primary-dark); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.2s; white-space: nowrap;
}
.nl-form button:hover { background: var(--accent-light); }
.nl-trust { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 14px; }

/* ── Footer ── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.6); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { color: white; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer p { font-size: 0.85rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 0.85rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 20px 0; font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { opacity: 0.4; font-size: 0.65rem; }
[dir="rtl"] .breadcrumb .sep { transform: scaleX(-1); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════ */
.page-header {
  background: var(--bg-alt); padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-light);
}
.page-header .overline { margin-bottom: 8px; }
.page-header h1 { margin-bottom: 8px; }
.page-header p { max-width: 520px; }

/* ═══════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════ */
.cart-layout {
  display: grid; gap: 40px; grid-template-columns: 1fr;
  padding: 40px 0 80px;
}
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; } }

.cart-items { display: flex; flex-direction: column; gap: 0; }

.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 20px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
@media (min-width: 640px) { .cart-item { grid-template-columns: 120px 1fr auto; gap: 28px; } }
.cart-item:first-child { border-top: 1px solid var(--border-light); }
.cart-item-img {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-alt);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .cart-item-variant { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-info .price { margin-bottom: 12px; }
.cart-item-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.qty-control {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.qty-control button {
  width: 36px; height: 36px; background: var(--bg-alt); border: none;
  font-size: 0.9rem; color: var(--text); transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--border); }
.qty-control span {
  width: 40px; text-align: center; font-size: 0.85rem; font-weight: 600;
  line-height: 36px;
}

.cart-item-total {
  text-align: end; min-width: 80px;
}
.cart-item-total .total-price { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

/* Cart Summary */
.cart-summary {
  background: var(--card-bg); color: var(--text); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 32px; align-self: start;
  position: sticky; top: 88px;
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 0.9rem;
}
.summary-row.muted { color: var(--text-muted); }
.summary-row.total {
  font-size: 1.15rem; font-weight: 700;
  margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--text);
}
.promo-form {
  display: flex; gap: 0; margin: 20px 0;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.promo-form input {
  flex: 1; padding: 10px 14px; border: none; font-size: 0.85rem;
  outline: none; background: var(--card-bg); color: var(--text);
}
.promo-form button {
  padding: 10px 18px; border: none; background: var(--primary);
  color: white; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.2s;
}
.promo-form button:hover { background: var(--primary-light); }
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 16px; }
.cart-trust { display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 16px; font-size: 0.75rem; color: var(--text-muted); }

/* Shipping Selector */
.shipping-selector { margin: 20px 0 4px; }
.shipping-selector-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.shipping-selector-label i { color: var(--accent-dark); }
.shipping-options { display: flex; flex-direction: column; gap: 8px; }
.shipping-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all 0.2s ease; background: var(--card-bg); position: relative;
}
.shipping-option:hover { border-color: var(--border); background: var(--bg-alt); }
.shipping-option.selected { border-color: var(--accent); background: rgba(201,169,110,0.06); }
.shipping-option.selected::after {
  content: ''; position: absolute; top: -1px; bottom: -1px;
  inset-inline-start: -1px; width: 3px; background: var(--accent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
[dir="rtl"] .shipping-option.selected::after {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.shipping-option input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--accent-dark);
  margin: 0; flex-shrink: 0; cursor: pointer;
}
.shipping-option-logo {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-alt); display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; color: var(--text-muted);
  flex-shrink: 0; overflow: hidden;
}
.shipping-option-logo img {
  width: 100%; height: 100%; object-fit: contain; padding: 4px;
}
.shipping-option-details { flex: 1; min-width: 0; }
.shipping-option-details .ship-name {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.shipping-option-details .ship-name .ship-tag {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 1px 5px; border-radius: 3px;
}
.ship-tag-fast { background: #e8f5e9; color: var(--success); }
.ship-tag-value { background: #fff8e1; color: var(--warning); }
.ship-tag-free { background: var(--accent); color: var(--primary-dark); }
.shipping-option-details .ship-eta {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 1px;
}
.shipping-option-price {
  font-size: 0.88rem; font-weight: 700; flex-shrink: 0;
  white-space: nowrap;
}
.shipping-option-price.free-price { color: var(--success); }

/* Theme Switcher */
.theme-switcher {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 400;
}
.theme-toggle-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--text-inverse);
  border: 2px solid var(--border-light); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: all 0.25s;
}
.theme-toggle-btn:hover { transform: scale(1.1); }
.theme-panel {
  position: absolute; bottom: 54px; inset-inline-start: 0;
  background: var(--card-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 16px; width: 200px;
  transform: translateY(8px) scale(0.95); opacity: 0;
  pointer-events: none; transition: all 0.25s ease;
}
.theme-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.theme-panel h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px;
}
.theme-swatch-list { display: flex; flex-direction: column; gap: 6px; }
.theme-swatch {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s; border: none;
  background: transparent; width: 100%; text-align: start;
  font-family: var(--font);
}
.theme-swatch:hover { background: var(--bg-alt); }
.theme-swatch.active { background: var(--bg-alt); font-weight: 600; }
.theme-swatch-colors {
  display: flex; gap: 3px; flex-shrink: 0;
}
.theme-swatch-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}
.theme-swatch span { font-size: 0.8rem; color: var(--text); }

.cart-empty {
  text-align: center; padding: 80px 20px;
}
.cart-empty i { font-size: 3rem; color: var(--border); margin-bottom: 20px; }
.cart-empty h2 { margin-bottom: 12px; }
.cart-empty p { margin-bottom: 28px; max-width: 400px; margin-inline: auto; }

/* ═══════════════════════════════════════════
   PRODUCT VIEW PAGE
   ═══════════════════════════════════════════ */
.product-view {
  display: grid; gap: 40px; grid-template-columns: 1fr;
  padding: 0 0 80px;
}
@media (min-width: 900px) { .product-view { grid-template-columns: 1fr 1fr; gap: 60px; } }

.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-alt); position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; cursor: zoom-in; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-main .prod-badge { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb {
  width: 72px; height: 96px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
  background: var(--bg-alt); flex-shrink: 0;
}
.gallery-thumb:hover { border-color: var(--border); }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-details { padding-top: 8px; }
.product-details .overline { margin-bottom: 8px; }
.product-details h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.product-details .stars-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.product-details .stars-row .review-count { font-size: 0.82rem; color: var(--text-muted); }
.product-details .price-row { margin-bottom: 24px; }
.product-details .price-row .current { font-size: 1.5rem; font-weight: 800; }
.product-details .price-row .original { font-size: 1rem; }
.product-details .price-row .discount-pct {
  display: inline-block; margin-inline-start: 8px;
  padding: 2px 8px; font-size: 0.7rem; font-weight: 700;
  background: var(--error); color: white; border-radius: var(--radius-sm);
}
.product-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }

.product-options { margin-bottom: 28px; }
.option-group { margin-bottom: 20px; }
.option-label { font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; display: block; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: white; font-size: 0.82rem; font-weight: 600;
  transition: all 0.2s; color: var(--text);
}
.size-btn:hover { border-color: var(--primary); }
.size-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.size-btn.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.color-options { display: flex; gap: 10px; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--primary); }
.color-swatch.active::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.product-actions-row { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.product-actions-row .qty-control { flex-shrink: 0; }
.product-actions-row .btn { flex: 1; justify-content: center; min-width: 180px; }
.wishlist-btn {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted); transition: all 0.2s;
}
.wishlist-btn:hover { border-color: var(--error); color: var(--error); }

.product-meta { border-top: 1px solid var(--border-light); padding-top: 24px; }
.meta-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; color: var(--text-secondary); }
.meta-item i { width: 20px; text-align: center; color: var(--accent-dark); }

/* Product Tabs */
.product-tabs { margin-top: 48px; }
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border-light); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 24px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; color: var(--text-muted); transition: all 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; }
.tab-panel ul { list-style: none; padding: 0; }
.tab-panel ul li { padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light); display: flex; gap: 10px; }
.tab-panel ul li i { color: var(--accent-dark); margin-top: 3px; }

/* ── Reviews Tab ── */
.reviews-summary {
  display: flex; gap: 32px; align-items: flex-start;
  padding-bottom: 28px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light); flex-wrap: wrap;
}
.reviews-big-score { text-align: center; min-width: 120px; }
.reviews-big-number { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--text); }
.reviews-big-stars { margin: 8px 0 4px; justify-content: center; }
.reviews-big-count { font-size: 0.78rem; color: var(--text-muted); }
.reviews-bars { flex: 1; min-width: 180px; }
.review-bar-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  font-size: 0.78rem; color: var(--text-secondary);
}
.review-bar-row .bar-label { width: 14px; text-align: end; font-weight: 600; flex-shrink: 0; }
.review-bar-row i { font-size: 0.6rem; color: var(--accent); flex-shrink: 0; }
.review-bar-track {
  flex: 1; height: 8px; background: var(--bg-alt);
  border-radius: var(--radius-full); overflow: hidden;
}
.review-bar-fill {
  height: 100%; background: var(--accent); border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.review-bar-row .bar-count { width: 24px; font-size: 0.72rem; color: var(--text-muted); }
.reviews-write-cta { min-width: 160px; text-align: center; }
.reviews-write-cta p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px; }

/* Review List */
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-item {
  padding: 24px 0; border-bottom: 1px solid var(--border-light);
}
.review-item:first-child { padding-top: 0; }
.review-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; background: var(--bg-alt);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-author-info { flex: 1; min-width: 0; }
.review-author-info h4 { font-size: 0.85rem; font-weight: 600; }
.review-author-info .review-date { font-size: 0.72rem; color: var(--text-muted); }
.review-verified {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--success);
  display: flex; align-items: center; gap: 4px;
}
.review-verified i { font-size: 0.6rem; }
.review-item .stars { margin-bottom: 8px; }
.review-item-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.review-item-body { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.review-helpful {
  display: flex; align-items: center; gap: 16px; margin-top: 12px;
  font-size: 0.75rem; color: var(--text-muted);
}
.review-helpful span { display: flex; align-items: center; gap: 4px; }
.helpful-btn {
  background: none; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 4px 10px;
  font-size: 0.72rem; color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.2s;
}
.helpful-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: rgba(201,169,110,0.06); }
.helpful-btn.voted { border-color: var(--accent); color: var(--accent-dark); background: rgba(201,169,110,0.1); pointer-events: none; }

/* Write Review Form */
.write-review-form {
  padding: 24px; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); margin-top: 24px;
  background: var(--bg-alt);
}
.write-review-form h4 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.write-review-form h4 i { color: var(--accent-dark); font-size: 0.85rem; }
.star-picker { display: flex; gap: 4px; margin-bottom: 14px; }
.star-picker button {
  background: none; border: none; font-size: 1.3rem;
  color: var(--border); cursor: pointer; transition: color 0.15s; padding: 2px;
}
.star-picker button.active,
.star-picker button:hover { color: var(--accent); }
.star-picker-label { font-size: 0.78rem; color: var(--text-muted); margin-inline-start: 8px; align-self: center; }
.review-form-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 480px) { .review-form-row { grid-template-columns: 1fr 1fr; } }
.review-success {
  padding: 20px; text-align: center; border-radius: var(--radius-md);
  background: rgba(45,138,78,0.08); border: 1px solid rgba(45,138,78,0.2);
}
.review-success i { font-size: 1.5rem; color: var(--success); margin-bottom: 8px; }
.review-success h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.review-success p { font-size: 0.8rem; color: var(--text-muted); }

/* Sort / Filter reviews */
.reviews-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.reviews-toolbar span { font-size: 0.85rem; font-weight: 600; }
.reviews-sort {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.8rem; background: white; color: var(--text); cursor: pointer;
}

/* ═══════════════════════════════════════════
   CATEGORY / LISTING PAGE
   ═══════════════════════════════════════════ */
.listing-layout {
  display: grid; gap: 32px; grid-template-columns: 1fr;
  padding: 32px 0 80px;
}
@media (min-width: 900px) { .listing-layout { grid-template-columns: 240px 1fr; } }

/* Sidebar Filters */
.filter-sidebar { display: none; }
@media (min-width: 900px) { .filter-sidebar { display: block; } }
.filter-sidebar.mobile-open {
  display: block; position: fixed; inset: 0; z-index: 200;
  background: white; overflow-y: auto; padding: 20px;
}
.filter-group { margin-bottom: 28px; }
.filter-group h4 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 14px; color: var(--text);
}
.filter-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.filter-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent-dark);
  border-radius: 3px; cursor: pointer;
}
.filter-check label { font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; }
.filter-check .count { font-size: 0.75rem; color: var(--text-muted); margin-inline-start: auto; }
.price-range { display: flex; gap: 10px; align-items: center; }
.price-range input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem; text-align: center;
}
.price-range span { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }

/* Listing Header / Toolbar */
.listing-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.listing-toolbar .result-count { font-size: 0.85rem; color: var(--text-muted); }
.listing-toolbar .result-count strong { color: var(--text); }
.listing-controls { display: flex; gap: 12px; align-items: center; }
.sort-select {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.82rem; background: white; color: var(--text); cursor: pointer;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.view-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: white;
  font-size: 0.82rem; font-weight: 600; color: var(--text); transition: all 0.2s;
}
.filter-toggle-btn:hover { border-color: var(--primary); }
@media (min-width: 900px) { .filter-toggle-btn { display: none; } }

/* Active Filters */
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--bg-alt); border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
}
.filter-tag button {
  background: none; border: none; font-size: 0.7rem; color: var(--text-muted);
  line-height: 1; padding: 0; transition: color 0.2s;
}
.filter-tag button:hover { color: var(--error); }
.clear-all { font-size: 0.75rem; font-weight: 600; color: var(--accent-dark);
  background: none; border: none; padding: 5px 8px; }
.clear-all:hover { text-decoration: underline; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  min-width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 500; color: var(--text); transition: all 0.2s;
  cursor: pointer;
}
.page-btn:hover { border-color: var(--primary); background: var(--primary); color: white; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.35; pointer-events: none; }
[dir="rtl"] .page-btn i { transform: scaleX(-1); }
.page-ellipsis { padding: 0 6px; color: var(--text-muted); font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   CART TOAST NOTIFICATION
   ═══════════════════════════════════════════ */
.cart-toast {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 9999;
  background: white; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 0; width: 360px; max-width: calc(100vw - 32px);
  transform: translateY(120%) scale(0.95); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}
.cart-toast.show {
  transform: translateY(0) scale(1); opacity: 1; pointer-events: auto;
}
.cart-toast-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
  background: var(--success); color: white; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.cart-toast-header span { font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cart-toast-header button {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1rem; padding: 0; line-height: 1; transition: color 0.2s;
}
.cart-toast-header button:hover { color: white; }
.cart-toast-body { display: flex; gap: 14px; padding: 16px 18px; }
.cart-toast-img {
  width: 64px; height: 80px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-alt); flex-shrink: 0;
}
.cart-toast-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-toast-info { flex: 1; min-width: 0; }
.cart-toast-info h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-toast-info .toast-variant { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.cart-toast-info .toast-price { font-size: 0.9rem; font-weight: 700; }
.cart-toast-footer {
  padding: 0 18px 16px; display: flex; gap: 8px;
}
.cart-toast-footer .btn { flex: 1; justify-content: center; font-size: 0.75rem; padding: 10px 16px; }

/* ═══════════════════════════════════════════
   CART DRAWER (slide-in panel)
   ═══════════════════════════════════════════ */
.cart-drawer-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0); visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s;
}
.cart-drawer-overlay.open { background: rgba(0,0,0,0.45); visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; inset-inline-end: 0; z-index: 501;
  width: 420px; max-width: 90vw; height: 100vh;
  background: var(--card-bg); color: var(--text); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-drawer-head h3 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cart-drawer-head .drawer-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--primary-dark);
  font-size: 0.7rem; font-weight: 700;
}
.cart-drawer-head button {
  background: none; border: none; font-size: 1.2rem; color: var(--text-muted);
  transition: color 0.2s; padding: 4px;
}
.cart-drawer-head button:hover { color: var(--text); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 0; }
.cart-drawer-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; padding: 40px 24px; text-align: center;
}
.cart-drawer-empty i { font-size: 2.5rem; color: var(--border); margin-bottom: 16px; }
.cart-drawer-empty p { color: var(--text-muted); margin-top: 8px; font-size: 0.9rem; }

.drawer-item {
  display: flex; gap: 14px; padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.drawer-item:hover { background: var(--bg-alt); }
.drawer-item-img {
  width: 72px; height: 90px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-alt); flex-shrink: 0;
}
.drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drawer-item-info h4 {
  font-size: 0.88rem; font-weight: 600; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-item-info .drawer-variant { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }
.drawer-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.drawer-item-bottom .qty-control { transform: scale(0.85); transform-origin: center left; }
[dir="rtl"] .drawer-item-bottom .qty-control { transform-origin: center right; }
.drawer-item-bottom .drawer-line-price { font-size: 0.9rem; font-weight: 700; }
.drawer-item-remove {
  background: none; border: none; font-size: 0.72rem; color: var(--text-muted);
  padding: 2px 0; margin-top: 4px; transition: color 0.2s;
  align-self: flex-start; text-decoration: underline; text-underline-offset: 2px;
}
.drawer-item-remove:hover { color: var(--error); }

.cart-drawer-foot {
  flex-shrink: 0; padding: 20px 24px;
  border-top: 1px solid var(--border-light); background: var(--bg-alt);
}
.drawer-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.drawer-subtotal span:first-child { font-size: 0.85rem; color: var(--text-secondary); }
.drawer-subtotal span:last-child { font-size: 1.15rem; font-weight: 800; }
.drawer-shipping { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
.drawer-shipping strong { color: var(--success); }
.cart-drawer-foot .btn { width: 100%; justify-content: center; }
.cart-drawer-foot .btn + .btn { margin-top: 8px; }

/* ── Add-to-cart button animation ── */
@keyframes cartBtnPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.cart-count-pop { animation: cartBtnPop 0.35s ease; }

/* ── Product card add-to-cart success state ── */
.prod-action-btn.added {
  background: var(--success) !important; color: white !important;
  pointer-events: none;
}
.prod-action-btn.added i { animation: cartBtnPop 0.3s ease; }

/* Favorited heart: red by default, but follow the button's white-on-primary
   hover so the icon doesn't stay stuck red over the hover background. */
.prod-action-btn.is-favorited i { color: var(--error); }
.prod-action-btn.is-favorited:hover i { color: white; }

/* ═══════════════════════════════════════════
   ADDRESS SELECTOR
   ═══════════════════════════════════════════ */
.address-section {
  margin-bottom: 36px;
}
.address-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.address-section-header h3 {
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.address-section-header h3 i { font-size: 0.85rem; color: var(--accent-dark); }

.address-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .address-cards { grid-template-columns: repeat(2, 1fr); } }

.address-card {
  position: relative; padding: 18px 20px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s ease; background: var(--card-bg);
}
.address-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.address-card.selected {
  border-color: var(--accent); background: rgba(201,169,110,0.04);
  box-shadow: 0 0 0 1px var(--accent);
}
.address-card.selected::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  inset-inline-start: 0; width: 3px; background: var(--accent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
[dir="rtl"] .address-card.selected::before {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.address-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.address-card-name {
  font-size: 0.88rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.address-default-tag {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 2px 7px;
  background: var(--accent); color: var(--primary-dark);
  border-radius: 3px;
}
.address-card-radio {
  width: 18px; height: 18px; accent-color: var(--accent-dark);
  cursor: pointer; flex-shrink: 0;
}
.address-card-body {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
}
.address-card-body .addr-line { display: block; }
.address-card-phone {
  font-size: 0.78rem; color: var(--text-muted); margin-top: 6px;
  display: flex; align-items: center; gap: 5px;
}
.address-card-phone i { font-size: 0.65rem; }
.address-card-actions {
  display: flex; gap: 12px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.addr-action-btn {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s; padding: 0;
}
.addr-action-btn:hover { color: var(--accent-dark); }
.addr-action-btn.delete:hover { color: var(--error); }

/* Add New Address card */
.address-card-new {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; min-height: 140px;
  border-style: dashed; border-color: var(--border);
  color: var(--text-muted); text-align: center;
}
.address-card-new:hover {
  border-color: var(--accent); color: var(--accent-dark);
  background: rgba(201,169,110,0.04);
}
.address-card-new i { font-size: 1.4rem; }
.address-card-new span { font-size: 0.82rem; font-weight: 600; }

/* ═══════════════════════════════════════════
   ADDRESS MODAL
   ═══════════════════════════════════════════ */
.addr-modal-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0); visibility: hidden;
  transition: background 0.3s, visibility 0.3s;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.addr-modal-overlay.open { background: rgba(0,0,0,0.5); visibility: visible; }

.addr-modal {
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.addr-modal-overlay.open .addr-modal {
  transform: translateY(0) scale(1); opacity: 1;
}
.addr-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0; margin-bottom: 20px;
}
.addr-modal-head h3 {
  font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.addr-modal-head h3 i { color: var(--accent-dark); font-size: 0.9rem; }
.addr-modal-head button {
  background: none; border: none; font-size: 1.15rem;
  color: var(--text-muted); padding: 4px; transition: color 0.2s;
}
.addr-modal-head button:hover { color: var(--text); }

.addr-modal-body { padding: 0 28px 28px; }
.addr-form { display: flex; flex-direction: column; gap: 14px; }
.addr-form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .addr-form-row { grid-template-columns: 1fr 1fr; } }
.addr-form .form-field input,
.addr-form .form-field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.88rem; background: white;
  transition: border-color 0.2s, box-shadow 0.2s; color: var(--text);
}
.addr-form .form-field input:focus,
.addr-form .form-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.addr-form .form-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  margin-bottom: 5px; color: var(--text-secondary);
}
.addr-form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-secondary); cursor: pointer;
}
.addr-form-check input { width: 16px; height: 16px; accent-color: var(--accent-dark); cursor: pointer; }
.addr-modal-footer {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px;
}
.addr-modal-footer .btn { min-width: 120px; justify-content: center; }

/* Form validation state */
.form-field.has-error input,
.form-field.has-error select { border-color: var(--error); }
.form-field .field-error {
  font-size: 0.72rem; color: var(--error); margin-top: 3px; display: none;
}
.form-field.has-error .field-error { display: block; }

/* ═══════════════════════════════════════════
   Storefront Filament modals — shared form/layout chrome
   ═══════════════════════════════════════════
   These rules style every Filament modal mounted on the storefront: the auth
   modal (<livewire:modal-auth>) and the cart's action modals (createAddress /
   gift / transfer, via <x-filament-actions::modals />). They run in addition
   to Filament's @filamentStyles output and mostly RE-ASSERT the padding/margins
   that pb-mason's unlayered `* { margin:0; padding:0 }` reset strips from
   Filament's @layer-wrapped utilities. (Card surface, grid columns, gaps and
   borders aren't margin/padding, so they survive the reset and come from
   Filament's own CSS.) Auth-only extras — the filament-selectify toggle and the
   full-width green→primary submit CTA — stay scoped to #modal-auth below. */

/* The auth window clips its rounded corners so the custom header divider can't
   poke past them. Scoped to #modal-auth: generic action modals keep Filament's
   own window overflow so searchable-select panels inside them aren't clipped. */
.fi-modal#modal-auth .fi-modal-window { border-radius: var(--radius-md); overflow: hidden; }
.fi-modal .fi-modal-header {
  align-items: center; padding: 18px 24px; margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.fi-modal .fi-modal-heading { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* The Livewire/Schema root sits inside `.fi-modal-content`. Give it padding +
   breathing room — the reset strips Filament's layered content padding. */
.fi-modal .fi-modal-content { padding: 24px; }
.fi-modal form { display: flex; flex-direction: column; gap: 16px; }
.fi-modal .fi-sc.fi-grid { display: grid; gap: 12px; }
.fi-modal .fi-fo-field { display: flex; flex-direction: column; gap: 6px; }
.fi-modal .fi-fo-field-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }
.fi-modal .fi-fo-field-label.fi-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; }

/* Filament text inputs */
.fi-modal .fi-input,
.fi-modal input[type="text"],
.fi-modal input[type="email"],
.fi-modal input[type="tel"],
.fi-modal input[type="password"] {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; background: #fff;
  color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.fi-modal .fi-input:focus,
.fi-modal input:focus {
  outline: none; border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}
.fi-modal select.fi-input,
.fi-modal select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; background: #fff;
}

/* Footer/action buttons — re-assert the padding the reset strips so action
   modals (cart's "Create address" / "Cancel") aren't collapsed pills. The
   full-width auth submit CTA below is more specific (#modal-auth) and wins. */
.fi-modal .fi-btn { padding: 0.625rem 1.1rem; }

/* filament-selectify button-group — the mobile/email toggle at the top of
   the form. The package emits a two-row sm:grid-flow-col layout; we render
   it as a single-row pill segment. */
.fi-modal#modal-auth .selectify-button-group-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  padding: 4px; background: var(--bg-alt); border-radius: var(--radius-sm);
  margin-bottom: 4px;
  /* Selectify defaults to gridDirection=column, emitting Tailwind's
     `sm:grid-flow-col sm:grid-rows-2`, which packs both options into a single
     column (mobile stacked above email). Reset the flow + rows so the two
     pills sit side by side in the 2-column track above. */
  grid-auto-flow: row; grid-template-rows: auto;
}
.fi-modal#modal-auth .selectify-button-group {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--text-muted); border: none;
  transition: background 0.2s, color 0.2s;
  margin: 0;
}
/* Selectify uses inline x-bind:class to swap colours; the "primary" branch
   evaluates to a `bg-custom-600` class that Tailwind would compile if it
   could see it. We override with var(--primary) + white text to skip the
   Tailwind dependency entirely. */
.fi-modal#modal-auth .selectify-button-group[class*="bg-custom-"],
.fi-modal#modal-auth .selectify-button-group[class*="bg-primary-"],
.fi-modal#modal-auth label.selectify-button-group:has(input:checked) {
  background: var(--primary) !important; color: #fff !important;
  box-shadow: var(--shadow-sm);
}

/* Filament checkbox + radio — the "Remember me" / "Accept terms" rows */
.fi-modal .fi-fo-checkbox label,
.fi-modal .fi-fo-radio label {
  font-size: 0.85rem; color: var(--text);
}
.fi-modal input[type="checkbox"],
.fi-modal input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--accent-dark);
}

/* Submit button — the modal-auth Blade hardcodes a green inline style
   (`background-color: #405544`). Override to pb_theme primary so it
   matches the rest of pb-mason chrome. */
.fi-modal#modal-auth button[type="submit"],
.fi-modal#modal-auth .fi-btn[type="submit"] {
  width: 100%; padding: 12px 20px; border: none; cursor: pointer;
  background: var(--primary) !important; color: var(--text-inverse) !important;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  margin-top: 4px;
}
.fi-modal#modal-auth button[type="submit"]:hover,
.fi-modal#modal-auth .fi-btn[type="submit"]:hover {
  background: var(--primary-light) !important; transform: translateY(-1px);
}

/* Helper text below inputs (validation, hints) */
.fi-modal .fi-fo-field-hint,
.fi-modal .fi-fo-field-error-message {
  font-size: 0.75rem; color: var(--text-muted);
}
.fi-modal .fi-fo-field-error-message { color: var(--error); }

/* Inline links inside the form ("don't have an account? register") */
.fi-modal#modal-auth a {
  color: var(--accent-dark); font-weight: 600; text-decoration: none;
}
.fi-modal#modal-auth a:hover { color: var(--accent); }

/* Dark mode. Filament's own dark theme keys on a `.dark` class that
   pb-mason's [data-pb-theme="dark"] toggle never sets, so without these the
   modal panel keeps Filament's light (white) surface while the pb-mason text
   tokens above flip to light — labels and input text turn invisible, and the
   hardcoded `#fff` input background clashes with the dark page. Re-skin the
   panel and fields with the dark surface tokens. */
[data-pb-theme="dark"] .fi-modal .fi-modal-window,
[data-pb-theme="dark"] .fi-modal .fi-modal-content {
  background: var(--card-bg); color: var(--text);
}
[data-pb-theme="dark"] .fi-modal .fi-modal-heading { color: var(--text); }
[data-pb-theme="dark"] .fi-modal .fi-modal-close-btn { color: var(--text-muted); }
[data-pb-theme="dark"] .fi-modal .fi-input,
[data-pb-theme="dark"] .fi-modal input[type="text"],
[data-pb-theme="dark"] .fi-modal input[type="email"],
[data-pb-theme="dark"] .fi-modal input[type="tel"],
[data-pb-theme="dark"] .fi-modal input[type="password"],
[data-pb-theme="dark"] .fi-modal select.fi-input,
[data-pb-theme="dark"] .fi-modal select {
  background: var(--bg-alt); color: var(--text); border-color: var(--border);
}
[data-pb-theme="dark"] .fi-modal#modal-auth .selectify-button-group-grid {
  background: var(--bg-dark);
}

/* Filament toast notifications (<livewire:notifications />).
   Same problem the modal-auth padding overrides above solve: the global
   `* { margin: 0; padding: 0 }` reset at the top of this file is UNLAYERED,
   and unlayered CSS beats Tailwind v4's @layer-wrapped Filament utilities
   regardless of specificity — so it strips the toast's padding and inner
   margins, leaving a cramped block. (gap/inset aren't margin/padding, so they
   survive.) Re-assert the box-model Filament expects, scoped to the toast
   subtree. Values mirror Filament's `--spacing` scale (1 unit = 0.25rem). */
.fi-no-notification { padding: 1rem; }
.fi-no-notification .fi-no-notification-main { margin-top: 0.125rem; }
.fi-no-notification .fi-no-notification-body > p:not(:first-of-type) { margin-top: 0.25rem; }
/* Close/icon buttons use a negative margin to sit flush in the padding. */
.fi-no .fi-icon-btn { margin: -0.5rem; }

/* ──────────────────────────────────────────────────────────────────────
   Page builder container-query grid + responsive helpers.

   Multiple central PB section blades emit `.cq-grid-N`, `.cq-mobile-N`,
   `.cq-w-half`, `.cq-flex-row` etc — these classes didn't ship with any
   stylesheet so the corresponding sections collapsed to single-column
   layouts (every card stretched full-width). Defining them here keeps
   the PB blades theme-portable: pb-mason styles them; other themes can
   override or ignore.
   ────────────────────────────────────────────────────────────────────── */
.cq-grid-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.cq-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cq-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cq-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cq-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cq-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 767px) {
  .cq-mobile-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .cq-mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cq-mobile-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .cq-flex-row { flex-direction: column; }
  .cq-flex-row-reverse { flex-direction: column; }
  .cq-w-half { width: 100%; }
}

@media (min-width: 768px) {
  .cq-flex-row { flex-direction: row; }
  .cq-flex-row-reverse { flex-direction: row-reverse; }
  .cq-w-half { width: 50%; }
}


/* ──────────────────────────────────────────────────────────────────────
   Header / footer layout variants — every variant restructures the
   three-child container (.nav-logo / .nav-links / .nav-icons) into a
   visually distinct shape. PB exposes 20 header variants + 19 footer
   variants; each gets its own skin below.

   Pb-mason base markup:
     <nav class="navbar navbar--header_N">
       <div class="container">  <!-- default: flex space-between -->
         <a class="nav-logo">…</a>
         <ul class="nav-links">…</ul>
         <div class="nav-icons">…</div>
       </div>
     </nav>
   ────────────────────────────────────────────────────────────────────── */

/* ──────────── HEADER VARIANTS ──────────── */

/* header_1 — classic [logo | nav center | icons]. Default; no override. */

/* header_2 — centered logo with nav stacked below */
.navbar--header_2 .container { flex-direction: column; gap: 12px; padding-block: 18px; height: auto; position: relative; }
.navbar--header_2 .nav-logo { order: 1; text-align: center; margin: 0 auto; }
.navbar--header_2 .nav-links { order: 2; justify-content: center; margin: 0 auto; }
.navbar--header_2 .nav-icons { position: absolute; inset-block-start: 14px; inset-inline-end: 24px; }

/* header_3 — logo + nav clustered start, icons end */
.navbar--header_3 .container { justify-content: flex-start; gap: 32px; }
.navbar--header_3 .nav-logo { order: 1; }
.navbar--header_3 .nav-links { order: 2; justify-content: flex-start; margin: 0; }
.navbar--header_3 .nav-icons { order: 3; margin-inline-start: auto; }

/* header_4 — mirrored: icons start, nav center, logo end */
.navbar--header_4 .nav-logo { order: 3; text-align: end; }
.navbar--header_4 .nav-links { order: 2; justify-content: center; }
.navbar--header_4 .nav-icons { order: 1; }

/* header_5 — XL centered logo + nav-stripe + icons absolute */
.navbar--header_5 .container { flex-direction: column; gap: 14px; padding-block: 20px; height: auto; position: relative; }
.navbar--header_5 .nav-logo { order: 1; text-align: center; font-size: 1.8rem; letter-spacing: 0.32em; margin: 0 auto; }
.navbar--header_5 .nav-links { order: 2; justify-content: center; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); padding-top: 10px; width: 100%; margin: 0; }
.navbar--header_5 .nav-icons { position: absolute; inset-block-start: 24px; inset-inline-end: 24px; }

/* header_6 — split icons / logo / nav (icons start, logo middle, nav end) */
.navbar--header_6 .nav-logo { order: 2; text-align: center; flex: 1; }
.navbar--header_6 .nav-links { order: 3; justify-content: flex-end; }
.navbar--header_6 .nav-icons { order: 1; }

/* header_7 — dark inverted (color theme + same shape) */
.navbar--header_7 { background: #111827 !important; color: #fff !important; border-bottom: 0 !important; }
.navbar--header_7 .nav-logo, .navbar--header_7 .nav-links li a, .navbar--header_7 .nav-icons a { color: #fff !important; }
.navbar--header_7 .lang-switch { background: rgba(255,255,255,0.1); color: #fff !important; }

/* header_8 — vertical stack: icons top-end, logo center, nav bottom-row */
.navbar--header_8 .container { display: grid; grid-template-areas: "icons" "logo" "links"; gap: 8px; padding-block: 14px; height: auto; justify-items: center; }
.navbar--header_8 .nav-logo { grid-area: logo; }
.navbar--header_8 .nav-links { grid-area: links; justify-content: center; margin: 0; }
.navbar--header_8 .nav-icons { grid-area: icons; justify-self: end; padding-inline-end: 8px; }

/* header_9 — bordered card frame */
.navbar--header_9 .container { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 14px; padding-inline: 22px; height: 56px; margin-block: 10px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }

/* header_10 — tall navbar, XL logo */
.navbar--header_10 .container { height: 100px; }
.navbar--header_10 .nav-logo { font-size: 1.9rem; letter-spacing: 0.22em; font-weight: 800; }
.navbar--header_10 { border-bottom: 4px double color-mix(in srgb, currentColor 22%, transparent); }

/* header_11 — fully reversed mirror */
.navbar--header_11 .container { flex-direction: row-reverse; }

/* header_12 — 3-row grid [nav top / logo center XL / icons bottom-end] */
.navbar--header_12 .container { display: grid; grid-template-areas: "links" "logo" "icons"; gap: 8px; padding-block: 14px; height: auto; justify-items: center; }
.navbar--header_12 .nav-logo { grid-area: logo; font-size: 1.7rem; letter-spacing: 0.3em; }
.navbar--header_12 .nav-links { grid-area: links; justify-content: center; margin: 0; }
.navbar--header_12 .nav-icons { grid-area: icons; justify-self: end; }

/* header_13 — gradient backdrop + everything flush start */
.navbar--header_13 { background: linear-gradient(120deg, color-mix(in srgb, var(--primary, #475e4b) 90%, white) 0%, color-mix(in srgb, var(--accent, #c9a96e) 85%, white) 100%) !important; color: #fff !important; }
.navbar--header_13 .nav-logo, .navbar--header_13 .nav-links li a, .navbar--header_13 .nav-icons a { color: #fff !important; }
.navbar--header_13 .container { justify-content: flex-start; gap: 28px; }
.navbar--header_13 .nav-icons { margin-inline-start: auto; }

/* header_14 — everything flush END */
.navbar--header_14 .container { justify-content: flex-end; gap: 24px; }
.navbar--header_14 .nav-logo { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.navbar--header_14 .nav-links { margin: 0; }

/* header_15 — micro compact: tiny everything */
.navbar--header_15 .container { height: 44px; padding-block: 0; }
.navbar--header_15 .nav-logo { font-size: 0.95rem; letter-spacing: 0.1em; }
.navbar--header_15 .nav-links { gap: 14px; }
.navbar--header_15 .nav-links li a { font-size: 0.72rem; }
.navbar--header_15 .nav-icons { gap: 12px; font-size: 0.85rem; }

/* header_16 — narrow centered (constrained width) */
.navbar--header_16 .container { max-width: 800px; margin: 0 auto; }
.navbar--header_16 { border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent); }
.navbar--header_16 .nav-links li a { position: relative; padding: 4px 0; }
.navbar--header_16 .nav-links li a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width 0.2s ease; }
.navbar--header_16 .nav-links li a:hover::after { width: 100%; }

/* header_17 — 3 rows: icons top-end, logo center-row, nav bottom-row */
.navbar--header_17 .container { display: grid; grid-template-areas: "icons" "logo" "links"; gap: 10px; padding-block: 14px; height: auto; }
.navbar--header_17 .nav-logo { grid-area: logo; justify-self: center; font-size: 1.5rem; letter-spacing: 0.25em; }
.navbar--header_17 .nav-links { grid-area: links; justify-content: center; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding-top: 10px; margin: 0; }
.navbar--header_17 .nav-icons { grid-area: icons; justify-self: end; }

/* header_18 — framed outer border (full-width panel) */
.navbar--header_18 { padding: 10px 14px; }
.navbar--header_18 .container { border: 2px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 6px; padding-inline: 22px; height: 56px; }

/* header_19 — accent bottom strip */
.navbar--header_19 { box-shadow: 0 4px 0 var(--accent, #c9a96e); margin-bottom: 8px; }
.navbar--header_19 .nav-logo { font-weight: 800; letter-spacing: 0.18em; }

/* header_20 — all centered stacked column */
.navbar--header_20 .container { flex-direction: column; gap: 8px; padding-block: 14px; height: auto; align-items: center; }
.navbar--header_20 .nav-logo, .navbar--header_20 .nav-links, .navbar--header_20 .nav-icons { width: auto; justify-content: center; text-align: center; }
.navbar--header_20 .nav-links { margin: 0; }


/* ──────────── FOOTER VARIANTS ──────────── */

/* Pb-mason base footer: <div class="footer-grid"> ... </div>
   followed by <div class="footer-bottom"> ... </div>.
   Each variant changes grid columns, alignment, or visibility. */

/* footer_1 — minimal: hide grid, single-row copyright */
.footer--footer_1 .footer-grid { display: none !important; }
.footer--footer_1 .footer-bottom { justify-content: center; text-align: center; padding-top: 8px; border-top: none; }

/* footer_2 — 3-col brand-emphasis */
.footer--footer_2 .footer-grid { grid-template-columns: 2fr 1fr 1fr !important; }
.footer--footer_2 .footer-grid > div:first-child h4 { font-size: 1.2rem; letter-spacing: 0.2em; }
@media (max-width: 767px) { .footer--footer_2 .footer-grid { grid-template-columns: 1fr !important; } }

/* footer_3 — classic 4-col (default, but with stronger divider) */
.footer--footer_3 .footer-grid { grid-template-columns: repeat(4, 1fr) !important; padding-bottom: 36px; border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.footer--footer_3 .footer-bottom { padding-top: 22px; }
@media (max-width: 767px) { .footer--footer_3 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* footer_4 — newsletter strip emphasis */
.footer--footer_4 .footer-grid { text-align: center; grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 767px) { .footer--footer_4 .footer-grid { grid-template-columns: 1fr !important; } }

/* footer_5 — 5-col mega */
.footer--footer_5 .footer-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 24px; }
.footer--footer_5 .footer-grid h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer--footer_5 .footer-grid li { font-size: 0.78rem; line-height: 1.6; }
@media (max-width: 991px) { .footer--footer_5 .footer-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 639px) { .footer--footer_5 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* footer_6 — dark inverted */
.footer--footer_6 { background: #0f172a !important; color: #cbd5e1 !important; }
.footer--footer_6 .footer-grid h4 { color: #fff; }
.footer--footer_6 .footer-grid a { color: #cbd5e1; }
.footer--footer_6 .footer-grid a:hover { color: #fff; }

/* footer_7 — 3-col card-style with backdrop per column */
.footer--footer_7 .footer-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px; }
.footer--footer_7 .footer-grid > div { background: color-mix(in srgb, currentColor 4%, transparent); padding: 20px; border-radius: 10px; }

/* footer_8 — bordered card per column */
.footer--footer_8 .footer-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 16px; }
.footer--footer_8 .footer-grid > div { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); padding: 18px; border-radius: 6px; }
@media (max-width: 767px) { .footer--footer_8 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* footer_9 — 2-col with prominent newsletter band on top */
.footer--footer_9 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
.footer--footer_9 > .container > div[style*="text-align:center"]:first-child { background: color-mix(in srgb, var(--accent, #c9a96e) 16%, transparent); padding: 40px 24px; border-radius: 14px; margin-bottom: 48px; }
@media (max-width: 767px) { .footer--footer_9 .footer-grid { grid-template-columns: 1fr !important; } }

/* footer_10 — 5-col mega with accent vertical bars */
.footer--footer_10 .footer-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 24px; }
.footer--footer_10 .footer-grid > div { padding-inline-start: 14px; border-inline-start: 2px solid var(--accent, #c9a96e); }
@media (max-width: 991px) { .footer--footer_10 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* footer_11 — single centered column only (everything stacked center) */
.footer--footer_11 .footer-grid { display: flex !important; flex-direction: column !important; align-items: center; gap: 18px; text-align: center; }
.footer--footer_11 .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

/* footer_12 — 3-col elegant serif */
.footer--footer_12 .footer-grid { grid-template-columns: repeat(3, 1fr) !important; }
.footer--footer_12 .footer-grid h4 { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.15rem; }
@media (max-width: 767px) { .footer--footer_12 .footer-grid { grid-template-columns: 1fr !important; } }

/* footer_13 — 4-col with badge-style headings */
.footer--footer_13 .footer-grid { grid-template-columns: repeat(4, 1fr) !important; }
.footer--footer_13 .footer-grid h4 { background: var(--accent, #c9a96e); color: #1a1a2e; padding: 6px 10px; display: inline-block; border-radius: 3px; font-size: 0.78rem; }
@media (max-width: 767px) { .footer--footer_13 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* footer_14 — full dark-primary backdrop */
.footer--footer_14 { background: color-mix(in srgb, var(--primary, #475e4b) 92%, white) !important; color: #fff; }
.footer--footer_14 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
.footer--footer_14 .footer-grid h4, .footer--footer_14 .footer-grid a { color: #fff; }
@media (max-width: 767px) { .footer--footer_14 .footer-grid { grid-template-columns: 1fr !important; } }

/* footer_15 — 5-col pill nav */
.footer--footer_15 .footer-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 16px; }
.footer--footer_15 .footer-grid li a { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 0.75rem; }
@media (max-width: 991px) { .footer--footer_15 .footer-grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* footer_16 — single-row uppercase mini-directory */
.footer--footer_16 .footer-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 24px; text-align: center; }
.footer--footer_16 .footer-grid > div h4 { display: none; }
.footer--footer_16 .footer-grid > div ul { display: flex; flex-direction: row; gap: 14px; }
.footer--footer_16 .footer-grid > div ul li a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }

/* footer_17 — 3-col with gradient top border */
.footer--footer_17 { border-top: 4px solid; border-image: linear-gradient(90deg, var(--primary, #475e4b), var(--accent, #c9a96e)) 1; }
.footer--footer_17 .footer-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 767px) { .footer--footer_17 .footer-grid { grid-template-columns: 1fr !important; } }

/* footer_18 — 4-col with strong top divider rule */
.footer--footer_18 .footer-grid { grid-template-columns: repeat(4, 1fr) !important; padding-top: 30px; border-top: 2px solid color-mix(in srgb, currentColor 22%, transparent); }
@media (max-width: 767px) { .footer--footer_18 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* footer_19 — centered 2-col with newsletter card */
.footer--footer_19 .footer-grid { grid-template-columns: repeat(2, 1fr) !important; text-align: center; max-width: 720px; margin-inline: auto; }
.footer--footer_19 > .container > div[style*="text-align:center"]:first-child { background: color-mix(in srgb, currentColor 4%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding: 36px 24px; border-radius: 12px; margin-bottom: 40px; }
@media (max-width: 767px) { .footer--footer_19 .footer-grid { grid-template-columns: 1fr !important; } }

/* ══════════════════════════════════════════════════════════════════════
   PHASE 1 — Shopify Dawn aesthetic upgrades.
   
   Cross-cutting refinements applied on top of the base navbar/footer/
   ticker rules. Each header/footer variant 1-4 ships a polished
   Dawn-style identity; variants 5-20 / 5-19 remain functional but
   should be considered "legacy" until Phase 2 polishes them too.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Announcement bar (refined). Uses the original theme.css accent palette
   so light themes get a warm subtle bar and dark themes get the same. The
   admin can hard-override via announcement_bg_color in PB. --}}
.ticker {
    padding: 9px 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.ticker-item {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 32px;
    opacity: 0.92;
}
.ticker-item::before {
    content: '·';
    font-size: 1.4rem;
    line-height: 0;
    opacity: 0.45;
}

/* ── Base navbar refinements ── */
.navbar {
    transition: padding 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, height 0.25s ease;
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.navbar .container {
    height: 76px;
    padding-inline: 24px;
    max-width: 1400px;
    margin-inline: auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
    display: flex !important;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    font-size: 0.81rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 2px;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width 0.25s ease;
}
.nav-links li a:hover::after { width: 100%; }

.nav-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.05rem;
}
.nav-icons a {
    color: var(--text);
    text-decoration: none;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-icons a:hover {
    background: color-mix(in srgb, currentColor 6%, transparent);
}
.nav-icons .lang-switch {
    width: auto;
    padding: 0 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

/* ── Sticky-shrink on scroll (Shopify Dawn signature) ── */
.navbar.is-scrolled {
    background: var(--bg, #faf9f6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 color-mix(in srgb, currentColor 8%, transparent), 0 8px 24px -16px rgba(0, 0, 0, 0.12);
}
.navbar.is-scrolled .container {
    height: 62px;
}

/* ── Mobile drawer ── */
@media (max-width: 767px) {
    .navbar .container { padding-inline: 18px; height: 60px; }
    .nav-logo { font-size: 1.1rem; letter-spacing: 0.18em; }
    .nav-links { display: none !important; }
    .nav-icons { gap: 8px; }
    .nav-icons a { width: 36px; height: 36px; font-size: 1rem; }

    body.mobile-menu-open .navbar { overflow: visible; }
    body.mobile-menu-open::after {
        content: '';
        position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
        z-index: 200; backdrop-filter: blur(2px);
    }
}

/* Hamburger (mobile only — desktop hides via CSS) */
.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer; padding: 8px;
    color: var(--text); font-size: 1.2rem;
}
@media (max-width: 767px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER refinements
   ══════════════════════════════════════════════════════════════════════ */

/* Default footer is a subtle light band with hairline divider at the top
   so it works with both light and dark themes. Specific variants
   (footer_6, footer_7, footer_14, footer_16) override with their own
   inverted/dark backdrop via the @switch inline styles. */
.footer {
    background: color-mix(in srgb, currentColor 4%, var(--bg, #faf9f6));
    color: var(--text, #1a1a2e);
    padding: 72px 0 0;
    margin-top: 80px;
    border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.footer .container {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 24px;
}
.footer h4 {
    color: var(--text, #1a1a2e) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 18px 0 !important;
    opacity: 1;
}
.footer p {
    font-size: 0.86rem;
    line-height: 1.7;
    color: color-mix(in srgb, var(--text, #1a1a2e) 75%, transparent);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a {
    color: color-mix(in srgb, var(--text, #1a1a2e) 80%, transparent);
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.footer a:hover { color: var(--text, #1a1a2e); }

.footer-grid {
    display: grid;
    gap: 48px;
    margin-bottom: 56px;
}
@media (max-width: 767px) {
    .footer-grid { gap: 32px; }
    .footer { padding-top: 56px; }
}

.footer-bottom {
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    padding: 24px 0;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--text, #1a1a2e) 60%, transparent);
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.footer-bottom a { font-size: 0.78rem; }

/* Newsletter form — adapts to whatever surface it sits on by using
   currentColor so both light and dark footers work without rule overrides. */
.footer .nl-form,
.footer .promo-form,
.pb-newsletter-form {
    display: flex;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
    border-radius: 999px;
    background: transparent;
    overflow: hidden;
    max-width: 420px;
    transition: border-color 0.2s ease;
}
.footer .nl-form:focus-within,
.pb-newsletter-form:focus-within {
    border-color: color-mix(in srgb, currentColor 55%, transparent);
}
.footer .nl-form input[type="email"],
.pb-newsletter-form input[type="email"] {
    flex: 1;
    background: transparent !important;
    border: 0 !important;
    padding: 12px 20px;
    color: inherit !important;
    font-size: 0.86rem;
    outline: none;
}
.footer .nl-form input[type="email"]::placeholder,
.pb-newsletter-form input[type="email"]::placeholder {
    color: color-mix(in srgb, currentColor 48%, transparent);
}
.footer .nl-form button,
.pb-newsletter-form button {
    background: currentColor;
    color: var(--bg, #faf9f6);
    border: 0;
    padding: 0 24px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
}
.footer .nl-form button > *,
.pb-newsletter-form button > * { color: var(--bg, #faf9f6); }
.footer .nl-form button:hover,
.pb-newsletter-form button:hover { opacity: 0.85; }

/* Social icons row — use currentColor so it works on light + dark footers */
.footer-socials {
    display: flex; gap: 12px; align-items: center;
    margin-top: 20px;
}
.footer-socials a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    color: inherit;
    opacity: 0.75;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.footer-socials a:hover {
    border-color: currentColor;
    opacity: 1;
}

/* Payment icons row */
.payment-icons-row {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.payment-icons-row img {
    height: 24px; width: auto;
    opacity: 0.7;
    border-radius: 3px;
    background: color-mix(in srgb, currentColor 5%, transparent);
    padding: 2px 6px;
    transition: opacity 0.2s ease;
}
.payment-icons-row img:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════
   PHASE 1 — Polished HEADER variants (header_1 through header_4)
   ══════════════════════════════════════════════════════════════════════ */

/* header_1 (Classic) — Shopify Dawn default. Already inherits all base.
   Nothing extra needed; the base rules above ARE this variant. */

/* header_2 (Centered) — boutique logo-on-top, nav row beneath, icons
   absolute in the inline-end corner. Inline styles on .container already
   set flex-direction:column; here we layer on Dawn-style polish. */
.navbar--header_2 { padding-block: 6px; }
.navbar--header_2 .nav-logo {
    font-size: 1.7rem;
    letter-spacing: 0.3em;
}
.navbar--header_2 .nav-links {
    gap: 28px;
    padding-bottom: 4px;
}
.navbar--header_2 .nav-links li a {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
}
.navbar--header_2.is-scrolled .container {
    padding-block: 12px !important;
}

/* header_3 (Minimal / Transparent on hero pages, solid on scroll) — the
   navbar starts see-through (only useful when the home has a hero slide
   right at the top) and gains a solid background after scrolling 40px. */
.navbar--header_3 {
    background: transparent !important;
    border-bottom: 0;
    backdrop-filter: none;
}
.navbar--header_3 .nav-logo,
.navbar--header_3 .nav-links li a,
.navbar--header_3 .nav-icons a {
    color: var(--bg, #faf9f6);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}
.navbar--header_3.is-scrolled {
    background: var(--bg, #faf9f6) !important;
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid color-mix(in srgb, var(--text, #1a1a2e) 8%, transparent);
}
.navbar--header_3.is-scrolled .nav-logo,
.navbar--header_3.is-scrolled .nav-links li a,
.navbar--header_3.is-scrolled .nav-icons a {
    color: var(--text, #1a1a2e);
    text-shadow: none;
}

/* header_4 (Mega — for stores with deep category trees). Same base
   layout as header_1 but with refined hover treatment + slightly bigger
   nav gap to breathe with mega-menu content. */
.navbar--header_4 {
    background: var(--bg, #faf9f6) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--text, #1a1a2e) 6%, transparent);
}
.navbar--header_4 .container { height: 80px; }
.navbar--header_4 .nav-links { gap: 42px; }
.navbar--header_4 .nav-links li a {
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    text-transform: none;
}
.navbar--header_4 .nav-links li a::after { height: 2px; background: var(--accent, #c9a96e); }
.navbar--header_4 .nav-icons a:hover {
    background: color-mix(in srgb, var(--accent, #c9a96e) 12%, transparent);
}

/* ══════════════════════════════════════════════════════════════════════
   PHASE 1 — Polished FOOTER variants (footer_1 through footer_4)
   ══════════════════════════════════════════════════════════════════════ */

/* footer_1 (Minimal — copyright row only). Already hidden via inline
   `display:none;`. Just polish the bottom row. */
.footer--footer_1 {
    padding-top: 28px;
    margin-top: 64px;
}
.footer--footer_1 .footer-bottom {
    border-top: 0;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
}

/* footer_2 (Brand-emphasis 3-col). Inline grid is 3-col; polish typography
   and the brand column. */
.footer--footer_2 .footer-grid > div:first-child {
    padding-inline-end: 32px;
}
.footer--footer_2 .footer-grid > div:first-child h4 {
    font-size: 1.3rem;
    letter-spacing: 0.22em;
    color: var(--text, #1a1a2e) !important;
    margin-bottom: 12px;
}
.footer--footer_2 .footer-grid > div:first-child p {
    max-width: 360px;
    margin-bottom: 20px;
}

/* footer_3 (Classic 4-col with dividers). Already 4-col. Add proper
   spacing + section heading treatment. */
.footer--footer_3 .footer-grid { padding-bottom: 0 !important; border-bottom: 0 !important; }
.footer--footer_3 .footer-bottom { margin-top: 16px; }

/* footer_4 (Newsletter-strip emphasis 2-col). Inline grid 2-col + center.
   Add a beautiful newsletter hero section above the columns. */
.footer--footer_4 {
    padding-top: 96px;
}
.footer--footer_4 .footer-grid {
    padding-top: 64px;
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

/* ══════════════════════════════════════════════════════════════════════
   PHASE 2 — Cart drawer progress + trust, free-shipping bar, account menu
   ══════════════════════════════════════════════════════════════════════ */

/* Cart drawer — free-shipping progress strip at top */
.cart-drawer-progress {
    padding: 14px 20px;
    background: color-mix(in srgb, var(--accent, #c9a96e) 14%, transparent);
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.cart-drawer-progress-text {
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text);
}
.cart-drawer-progress-text strong { color: var(--accent-dark, #8a6a3a); }
.cart-drawer-progress-text i { color: var(--accent-dark, #8a6a3a); }
.cart-drawer-progress-track {
    height: 4px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 999px;
    overflow: hidden;
}
.cart-drawer-progress-fill {
    height: 100%;
    background: var(--accent, #c9a96e);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* Cart drawer — trust badge below checkout button */
.cart-drawer-trust {
    margin-top: 14px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cart-drawer-trust i { font-size: 0.72rem; opacity: 0.7; }

/* Free-shipping bar — standalone, above the navbar */
.free-shipping-bar {
    background: color-mix(in srgb, var(--accent, #c9a96e) 14%, var(--bg, #faf9f6));
    color: var(--text);
    padding: 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.free-shipping-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
}
.free-shipping-bar-inner i { color: var(--accent-dark, #8a6a3a); }
.free-shipping-bar-inner strong { color: var(--accent-dark, #8a6a3a); font-weight: 700; }
.free-shipping-bar-track {
    height: 2px;
    background: color-mix(in srgb, currentColor 8%, transparent);
}
.free-shipping-bar-fill {
    height: 100%;
    background: var(--accent, #c9a96e);
    transition: width 0.6s ease;
}

/* Account dropdown menu (Dawn-style hover-open menu) */
.account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.account-menu-trigger {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.05rem;
    transition: background 0.2s ease;
}
.account-menu-trigger:hover {
    background: color-mix(in srgb, currentColor 6%, transparent);
}
.account-menu-panel {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 240px;
    background: var(--bg, #faf9f6);
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 10px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.06);
    padding: 8px;
    z-index: 60;
    color: var(--text);
}
.account-menu-head {
    padding: 8px 12px 12px;
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    margin-bottom: 4px;
}
.account-menu-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-menu-panel li a,
.account-menu-panel li button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: start;
    padding: 9px 12px;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 7px;
    font-size: 0.86rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.account-menu-panel li a:hover,
.account-menu-panel li button:hover {
    background: color-mix(in srgb, var(--accent, #c9a96e) 12%, transparent);
    color: var(--accent-dark, #8a6a3a);
}
.account-menu-panel li a i,
.account-menu-panel li button i {
    width: 16px;
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
}
.account-menu-divider {
    height: 1px;
    background: color-mix(in srgb, currentColor 8%, transparent);
    margin: 6px 0;
}
.account-menu-panel form { margin: 0; }

/* RTL: dropdown flips to the inline-end naturally via inset-inline-end */
[dir="rtl"] .account-menu-panel { inset-inline-end: 0; inset-inline-start: auto; }

/* ══════════════════════════════════════════════════════════════════════
   PHASE 2 — Mega menu / nav dropdowns (Dawn-style hover panels)
   ══════════════════════════════════════════════════════════════════════ */

.nav-mega-item {
    position: relative;
}
.nav-mega-item > a {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.nav-mega-panel {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    min-width: 260px;
    z-index: 50;
    padding-top: 12px;
}
.nav-mega-panel-inner {
    background: var(--bg, #faf9f6);
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 10px;
    box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.06);
    padding: 14px;
}
.nav-mega-all {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark, #8a6a3a) !important;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    width: 100%;
}
.nav-mega-all::after { display: none !important; }
.nav-mega-all i { margin-inline-start: 6px; }

.nav-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-mega-list li a {
    display: block;
    padding: 8px 10px;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-mega-list li a::after { display: none !important; }
.nav-mega-list li a:hover {
    background: color-mix(in srgb, var(--accent, #c9a96e) 12%, transparent);
    color: var(--accent-dark, #8a6a3a);
}

/* When the nav is centered (header_2 / header_5 / header_20), the dropdown
   needs to anchor to the trigger itself, not a flex centered column. The
   default `inset-inline-start: 0` still works because we set it on the .nav-mega-item li. */

@media (max-width: 767px) {
    .nav-mega-panel { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   PHASE 2 — Predictive search overlay (Dawn-style live search)
   Mounted inside #modal-search by the SearchBar Livewire component. The
   `.search-overlay` wrapper sits inside Filament's modal panel so the
   sizing is controlled there; everything below is purely the inner
   composition: input + sectioned results + view-all CTA.
   ══════════════════════════════════════════════════════════════════════ */

.search-overlay {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.search-overlay-form {
    width: 100%;
}

.search-overlay-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text, #1a1a1a);
    background: var(--surface, #fff);
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-overlay-input::placeholder {
    color: color-mix(in srgb, currentColor 50%, transparent);
    font-weight: 400;
}
.search-overlay-input:focus {
    border-color: var(--accent, #c9a96e);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #c9a96e) 24%, transparent);
}

.search-overlay-results {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-inline-end: 4px;
}

.search-overlay-loading,
.search-overlay-empty {
    padding: 24px 8px;
    text-align: center;
    font-size: 0.9rem;
    color: color-mix(in srgb, currentColor 60%, transparent);
}
.search-overlay-loading {
    font-style: italic;
}

.search-overlay-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-overlay-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    padding-inline-start: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark, #8a6a3a);
}
.search-overlay-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: color-mix(in srgb, currentColor 70%, transparent);
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-radius: 999px;
}

.search-overlay-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text, #1a1a1a);
    transition: background 0.15s ease;
}
.search-overlay-row:hover,
.search-overlay-row:focus-visible {
    background: color-mix(in srgb, var(--accent, #c9a96e) 10%, transparent);
}
.search-overlay-row img,
.search-overlay-thumb-placeholder,
.search-overlay-thumb-initial {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: color-mix(in srgb, currentColor 8%, transparent);
}
.search-overlay-thumb-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-dark, #8a6a3a);
    background: color-mix(in srgb, var(--accent, #c9a96e) 18%, transparent);
    text-transform: uppercase;
}
.search-overlay-row-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text, #1a1a1a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-overlay-row-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: color-mix(in srgb, currentColor 65%, transparent);
    white-space: nowrap;
}
.search-overlay-row--page {
    grid-template-columns: 1fr;
}

.search-overlay-view-all {
    display: block;
    margin-top: 4px;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark, #8a6a3a);
    background: color-mix(in srgb, var(--accent, #c9a96e) 12%, transparent);
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}
.search-overlay-view-all:hover {
    background: color-mix(in srgb, var(--accent, #c9a96e) 22%, transparent);
}

/* sr-only used by the input <label>. Defined inline-scoped so we don't
   collide with anything else; harmless if a global already exists. */
.search-overlay .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;
}

/* ============================================================
   PHASE 3 — Newsletter slide-up popup
   Dawn-style teaser card that slides up from the bottom-inline-end
   corner on first visit. RTL is handled with logical properties so
   the card flips automatically when the document is dir="rtl".
   ============================================================ */
.newsletter-popup {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: calc(100% - 48px);
    max-width: 380px;
    padding: 24px 24px 20px;
    border-radius: 14px;
    background: var(--surface, #ffffff);
    color: var(--text, #1a1a1a);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08);
    z-index: 90;
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.newsletter-popup[x-cloak] { display: none !important; }

/* Alpine transition classes — slide up + fade. Duration kept short so the
   card never feels obstructive even on slower machines. */
.newsletter-popup--enter,
.newsletter-popup--leave {
    transition: opacity 350ms ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.newsletter-popup--enter-start {
    opacity: 0;
    transform: translateY(24px);
}
.newsletter-popup--enter-end {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-popup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.newsletter-popup-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}
.newsletter-popup-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, currentColor 55%, transparent);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    margin-inline-start: -6px;
    margin-inline-end: -8px;
    margin-top: -6px;
}
.newsletter-popup-close:hover,
.newsletter-popup-close:focus-visible {
    background: color-mix(in srgb, currentColor 8%, transparent);
    color: inherit;
    outline: none;
}
.newsletter-popup-body {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: color-mix(in srgb, currentColor 75%, transparent);
}
.newsletter-popup-code-line {
    margin: 0 0 14px;
    font-size: 0.82rem;
    color: color-mix(in srgb, currentColor 70%, transparent);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.newsletter-popup-code {
    display: inline-block;
    padding: 4px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark, #8a6a3a);
    background: color-mix(in srgb, var(--accent, #c9a96e) 14%, transparent);
    border: 1px dashed color-mix(in srgb, var(--accent, #c9a96e) 50%, transparent);
    border-radius: 6px;
}
.newsletter-popup-form .nl-form {
    margin-top: 4px;
}

/* Mobile — let the card breathe but stay anchored to the bottom-inline-end
   corner. Cap the height so the embedded form is always reachable, and
   allow vertical scroll if a very long custom heading + body overflow. */
@media (max-width: 480px) {
    .newsletter-popup {
        bottom: 24px;
        inset-inline-end: 24px;
        inset-inline-start: 24px;
        max-width: none;
        width: auto;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }
}

/* ──────────────────────────────────────────────────────────────────────
   PHASE 3 — Mobile bottom-tab nav.
   App-like persistent bar pinned to the viewport bottom on phones
   (≤767px). Hidden on desktop. Markup lives in
   themes/aryaf/pb-mason/resources/views/partials/mobile-bottom-tabs.blade.php
   ────────────────────────────────────────────────────────────────────── */
.mobile-tabs {
    position: fixed;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 80;
    background: var(--bg, #fff);
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    /* Hidden by default — only the ≤767px media query below flips it on,
       so the partial can sit in the DOM (and pass SSR curl checks) without
       showing on tablet / desktop. */
    display: none;
    /* Honour the iOS home-indicator safe area so the tap targets aren't
       hidden behind the gesture bar. */
    padding-block-end: env(safe-area-inset-bottom, 0);
}
.mobile-tabs > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 0;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: color 0.15s ease;
}
.mobile-tabs > a:hover,
.mobile-tabs > a:focus-visible {
    color: var(--accent-dark, #8a6a3a);
}
.mobile-tabs > a.is-active {
    color: var(--accent-dark, #8a6a3a);
}
.mobile-tabs > a.is-active i {
    transform: scale(1.08);
}
.mobile-tabs > a i {
    font-size: 1.15rem;
    margin-bottom: 3px;
    transition: transform 0.15s ease;
}
.mobile-tabs .tab-badge {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--accent, #c9a96e);
    color: var(--primary-dark, #1a1a1a);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
@media (max-width: 767px) {
    .mobile-tabs {
        display: flex;
    }
    /* Push storefront content above the fixed bar so the last bit isn't
       hidden under it. 64px ≈ icon (1.15rem) + label (0.65rem) + 8px×2
       padding. The safe-area-inset is layered in via the bar's own
       padding-block-end. */
    body {
        padding-bottom: 64px;
    }
}

/* ──────────────────────────────────────────────────────────────────────
   PHASE 3 — Sticky add-to-cart bar.

   Dawn-style bar that slides up from the bottom edge once the primary
   product-page CTA scrolls off screen. Mobile-only by default — on
   ≥768px the right-rail product details already keep price + CTA in
   view, so the bar would be redundant chrome.

   Stacks above the mobile bottom-tab nav (z-index 96 vs the tabs' 95)
   and sits at `bottom: 64px` on mobile so the tab bar isn't covered.
   Honors the safe-area-inset so iOS doesn't tuck the action button
   under the home-indicator pill.
   ────────────────────────────────────────────────────────────────────── */
.sticky-atc {
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    inset-block-end: 64px;
    z-index: 96;
    background: var(--bg-color, #fff);
    border-block-start: 1px solid var(--border, color-mix(in srgb, currentColor 12%, transparent));
    box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, 0.18);
    padding-block: 10px;
    padding-block-end: calc(10px + env(safe-area-inset-bottom, 0px));
    padding-inline: 14px;
}
@media (min-width: 768px) {
    .sticky-atc {
        display: none !important;
    }
}
.sticky-atc-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin-inline: auto;
}
.sticky-atc-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}
.sticky-atc-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm, 6px);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-alt, color-mix(in srgb, currentColor 6%, transparent));
}
.sticky-atc-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.sticky-atc-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color, #111);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-atc-price {
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sticky-atc-current {
    font-weight: 700;
    color: var(--accent-dark, var(--primary-color, #111));
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.sticky-atc-original {
    text-decoration: line-through;
    opacity: 0.55;
    font-weight: 500;
    font-size: 0.78rem;
}
.sticky-atc-action {
    flex-shrink: 0;
}
.sticky-atc-btn {
    min-width: 140px;
    height: 40px;
    padding-inline: 18px;
    gap: 6px;
    font-size: 0.85rem;
    justify-content: center;
}
.sticky-atc-btn-label {
    white-space: nowrap;
}
/* Transition classes — slide up from below the viewport + fade. */
.sticky-atc--enter {
    transition: transform 240ms ease-out, opacity 240ms ease-out;
}
.sticky-atc--leave {
    transition: transform 180ms ease-in, opacity 180ms ease-in;
}
.sticky-atc--enter-start {
    transform: translateY(110%);
    opacity: 0;
}
.sticky-atc--enter-end {
    transform: translateY(0);
    opacity: 1;
}

/* ──────────────────────────────────────────────────────────────────────
   PHASE 3 — Recently viewed rail.

   Pure-frontend rail rendered below related products on the product
   detail page. Cards are smaller and less ornate than `.prod-card` —
   the rail is supportive UI, not a primary merchandising surface. We
   intentionally don't reuse `.prod-card` because the data comes from
   localStorage snapshots (no Livewire wiring, no quick-view buttons,
   no live cart/favorite actions). Hover lift only — no image swap.
   ────────────────────────────────────────────────────────────────────── */
.recently-viewed {
    padding-block: 48px;
    background: var(--bg);
}
.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .recently-viewed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .recently-viewed-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
.recently-viewed-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 200ms ease-out;
}
.recently-viewed-card:hover {
    transform: translateY(-3px);
}
.recently-viewed-image-wrap {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    background: var(--bg-alt, color-mix(in srgb, currentColor 6%, transparent));
    display: flex;
    align-items: center;
    justify-content: center;
}
.recently-viewed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease-out;
}
.recently-viewed-card:hover .recently-viewed-image {
    transform: scale(1.04);
}
.recently-viewed-image-fallback {
    font-size: 1.4rem;
    opacity: 0.35;
    color: var(--text);
}
.recently-viewed-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recently-viewed-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.2;
}
.recently-viewed-price .current {
    font-weight: 700;
    color: var(--accent-dark, var(--primary));
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.recently-viewed-price .original {
    text-decoration: line-through;
    opacity: 0.55;
    font-weight: 500;
    font-size: 0.74rem;
}

/* ──────────────────────────────────────────────────────────────────────
   PHASE 8 — Section scroll animations (item 14).

   Sections opt in via data-animate="<key>" on the wrapper. The
   storefront layout's pbAnimate observer adds .pb-is-visible once the
   section scrolls into view; the keyframe matching the key then plays
   one-shot. Initial state hides each variant until the observer fires
   so users don't see the un-animated final state flash on first load.
   ────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    [data-animate] {
        opacity: 0;
        will-change: opacity, transform;
        transition: none;
    }
    [data-animate="fade-in"]    { transform: none; }
    [data-animate="slide-up"]   { transform: translateY(28px); }
    [data-animate="slide-down"] { transform: translateY(-28px); }
    [data-animate="slide-start"] { transform: translateX(28px); }
    [data-animate="slide-end"]   { transform: translateX(-28px); }
    [dir="rtl"] [data-animate="slide-start"] { transform: translateX(-28px); }
    [dir="rtl"] [data-animate="slide-end"]   { transform: translateX(28px); }
    [data-animate="zoom-in"]    { transform: scale(0.94); }
    [data-animate="zoom-out"]   { transform: scale(1.06); }
    [data-animate="flip-up"]    { transform: perspective(800px) rotateX(12deg); transform-origin: top center; }

    [data-animate].pb-is-visible {
        opacity: 1;
        transform: none;
        transition: opacity 600ms cubic-bezier(.2, .8, .2, 1), transform 600ms cubic-bezier(.2, .8, .2, 1);
    }
}

/* Honor reduced-motion: skip the animation entirely. */
@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   PHASE 13 — Header redesign.

   Refines the navbar, mega menu, account dropdown, and adds a real
   off-canvas mobile drawer + a customer-facing dark/light toggle.

   These rules INTENTIONALLY come last so they override the older
   .navbar / .nav-* selectors at the top of this file. The 20 layout
   variants (.navbar--header_1..20) keep their cosmetic differences;
   only the shared base + interaction primitives change.

   Token bridge: the navbar pulls from `--nav-*` semantic vars which
   resolve to the theme tokens above. Adding a new theme means setting
   the --nav-* once at :root scope; the rest cascades.
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --nav-height-desktop: 72px;
    --nav-height-mobile: 56px;
    --nav-fg: var(--text);
    --nav-fg-muted: color-mix(in srgb, var(--text) 65%, transparent);
    --nav-divider: color-mix(in srgb, var(--text) 10%, transparent);
    --nav-hover-bg: color-mix(in srgb, var(--text) 5%, transparent);
    --nav-active: var(--accent);
    --nav-shadow-rest: 0 0 0 0 transparent;
    --nav-shadow-scrolled: 0 8px 24px -12px color-mix(in srgb, var(--text) 25%, transparent);
}

/* Base navbar — taller, refined typography, smoother sticky transition. */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--nav-divider);
    box-shadow: var(--nav-shadow-rest);
    transition: background 200ms ease-out, box-shadow 240ms ease-out, border-color 200ms ease-out, height 200ms ease-out;
    color: var(--nav-fg);
}
.navbar .container {
    height: var(--nav-height-desktop);
    transition: height 200ms ease-out;
}
.navbar.is-scrolled {
    box-shadow: var(--nav-shadow-scrolled);
    border-bottom-color: transparent;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.navbar.is-scrolled .container { height: calc(var(--nav-height-desktop) - 8px); }

/* Logo — sharper letter-spacing, smoother hover lift. */
.nav-logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nav-fg);
    transition: opacity 180ms ease-out, transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.nav-logo:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 2px;
}

/* Nav links — animated underline with proper origin (start, not center). */
.nav-links { gap: 28px; margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links a {
    color: var(--nav-fg-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 2px;
    position: relative;
    transition: color 180ms ease-out;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--nav-fg); }
.nav-links a::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 100%;
    max-width: 0;
    height: 1.5px;
    background: var(--nav-active);
    transform-origin: left center;
    transition: max-width 260ms cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] .nav-links a::after { transform-origin: right center; }
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links li.is-active a::after { max-width: 100%; }
.nav-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Nav icons — consistent size, tap-friendly target, subtle hover. */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
}
.nav-icons > a,
.nav-icons > button {
    color: var(--nav-fg-muted);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    position: relative;
    transition: color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}
.nav-icons > a:hover,
.nav-icons > button:hover {
    color: var(--nav-fg);
    background: var(--nav-hover-bg);
}
.nav-icons > a:active { transform: scale(0.94); }
.nav-icons > a:focus-visible,
.nav-icons > button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Lang switcher — pill button refined. */
.lang-switch {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--nav-divider);
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--nav-fg-muted);
    transition: all 200ms ease-out;
    min-width: 44px;
    text-align: center;
}
.lang-switch:hover {
    color: var(--nav-fg);
    border-color: color-mix(in srgb, var(--text) 35%, transparent);
    background: var(--nav-hover-bg);
}

/* Cart count badge — refined sizing, better contrast in dark mode. */
.cart-count::after {
    background: var(--nav-active);
    color: var(--bg);
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 0.62rem;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--navbar-bg);
    transition: box-shadow 200ms ease-out;
}
.navbar.is-scrolled .cart-count::after { box-shadow: 0 0 0 2px var(--bg); }

/* Mega menu — softer shadow, refined inner padding, scale-down transition. */
.nav-mega-item { position: relative; }
.nav-mega-panel {
    position: absolute;
    top: calc(100% + 14px);
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 240px;
    max-width: 420px;
    background: var(--bg);
    border: 1px solid var(--nav-divider);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 18px 48px -16px color-mix(in srgb, var(--text) 35%, transparent),
                0 2px 6px color-mix(in srgb, var(--text) 8%, transparent);
    opacity: 0;
    transition: opacity 200ms ease-out, transform 220ms cubic-bezier(.2, .8, .2, 1);
    z-index: 200;
}
[dir="rtl"] .nav-mega-panel { transform: translateX(50%) translateY(-4px); }
.nav-mega-item:hover .nav-mega-panel,
.nav-mega-panel[x-show="true"],
.nav-mega-panel.is-open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
[dir="rtl"] .nav-mega-item:hover .nav-mega-panel,
[dir="rtl"] .nav-mega-panel.is-open {
    transform: translateX(50%) translateY(0);
}
.nav-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-active);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nav-divider);
    margin-bottom: 10px;
    transition: gap 180ms ease-out;
}
.nav-mega-all:hover { gap: 10px; }
.nav-mega-list { list-style: none; padding: 0; margin: 0; }
.nav-mega-list li a {
    display: block;
    padding: 8px 10px;
    margin: 0 -10px;
    font-size: 0.85rem;
    color: var(--nav-fg-muted);
    border-radius: 6px;
    transition: color 180ms, background 180ms;
}
.nav-mega-list li a:hover,
.nav-mega-list li a:focus-visible {
    color: var(--nav-fg);
    background: var(--nav-hover-bg);
}

/* Account dropdown — same polish language as the mega menu. */
.account-menu { position: relative; }
.account-menu-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--nav-fg-muted);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: color 180ms, background 180ms;
    font-size: 1rem;
}
.account-menu-trigger:hover { color: var(--nav-fg); background: var(--nav-hover-bg); }
.account-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    min-width: 240px;
    background: var(--bg);
    border: 1px solid var(--nav-divider);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 18px 48px -16px color-mix(in srgb, var(--text) 35%, transparent),
                0 2px 6px color-mix(in srgb, var(--text) 8%, transparent);
    z-index: 200;
}
.account-menu-head {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px 10px;
    border-bottom: 1px solid var(--nav-divider);
    margin-bottom: 4px;
}
.account-menu-panel ul { list-style: none; padding: 0; margin: 0; }
.account-menu-panel li { margin: 0; }
.account-menu-panel li.account-menu-divider {
    height: 1px;
    background: var(--nav-divider);
    margin: 6px 0;
}
.account-menu-panel a,
.account-menu-panel button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--nav-fg);
    background: transparent;
    border: none;
    border-radius: 8px;
    text-align: start;
    cursor: pointer;
    transition: background 180ms;
}
.account-menu-panel a:hover,
.account-menu-panel button:hover { background: var(--nav-hover-bg); }
.account-menu-panel a i,
.account-menu-panel button i { color: var(--text-muted); width: 16px; text-align: center; }

/* Free-shipping bar + ticker — pull into the new token system. */
.free-shipping-bar,
.ticker {
    background: color-mix(in srgb, var(--accent) 18%, var(--bg));
    color: var(--text);
    border-bottom: 1px solid var(--nav-divider);
}
.ticker-item::before { color: var(--accent-dark); }

/* Transparent variant (header_3) — proper text-color flip + smooth blur. */
.navbar--header_3:not(.is-scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    --nav-fg: var(--text-inverse, #ffffff);
    --nav-fg-muted: color-mix(in srgb, var(--text-inverse, #fff) 75%, transparent);
    --nav-divider: color-mix(in srgb, var(--text-inverse, #fff) 25%, transparent);
    --nav-hover-bg: color-mix(in srgb, var(--text-inverse, #fff) 15%, transparent);
}
.navbar--header_3 { transition: background 260ms ease-out, color 260ms ease-out, border-color 260ms ease-out, backdrop-filter 260ms ease-out; }

/* Theme toggle button (PHASE 13 dark/light). */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--nav-fg-muted);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: color 180ms, background 180ms, transform 240ms cubic-bezier(.2, .8, .2, 1);
    font-size: 1rem;
}
.theme-toggle:hover { color: var(--nav-fg); background: var(--nav-hover-bg); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-pb-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
[data-pb-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu toggle (hamburger) — visible only below 768px. */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--nav-fg);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    transition: background 180ms;
}
.nav-toggle:hover { background: var(--nav-hover-bg); }
.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
@media (min-width: 768px) {
    .nav-toggle { display: none; }
}

/* Off-canvas mobile drawer — slides in from the start side. */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-out;
}
.mobile-drawer-backdrop[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
}
.mobile-drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(86vw, 360px);
    background: var(--bg);
    color: var(--text);
    box-shadow: 12px 0 36px -8px rgba(0, 0, 0, 0.35);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
[dir="rtl"] .mobile-drawer {
    box-shadow: -12px 0 36px -8px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
}
.mobile-drawer[data-open="true"] { transform: translateX(0); }
.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--nav-divider);
    flex-shrink: 0;
}
.mobile-drawer-head .mobile-drawer-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.mobile-drawer-close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    transition: background 180ms;
}
.mobile-drawer-close:hover { background: var(--nav-hover-bg); }
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.mobile-drawer-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--nav-divider);
}
.mobile-drawer-section:last-child { border-bottom: none; }
.mobile-drawer-section .mobile-drawer-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 18px 6px;
}
.mobile-drawer-section a,
.mobile-drawer-section button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: var(--text);
    background: transparent;
    border: none;
    text-align: start;
    cursor: pointer;
    transition: background 180ms;
}
.mobile-drawer-section a:hover,
.mobile-drawer-section button:hover { background: var(--nav-hover-bg); }
.mobile-drawer-section a i,
.mobile-drawer-section button i { color: var(--text-muted); width: 18px; text-align: center; }
.mobile-drawer-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--nav-divider);
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* When mobile drawer is open, lock body scroll. */
body.mobile-drawer-open { overflow: hidden; }

/* Disable nav-links display under 768 — they live in the drawer now. */
@media (max-width: 767px) {
    .nav-links { display: none !important; }
    .navbar .container { padding-inline: 14px; height: var(--nav-height-mobile); }
    .nav-icons { gap: 2px; }
}

/* Reduced-motion fallback for all the new transitions. */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar .container,
    .nav-logo,
    .nav-links a,
    .nav-links a::after,
    .nav-icons > a,
    .nav-icons > button,
    .nav-mega-panel,
    .account-menu-panel,
    .navbar--header_3,
    .mobile-drawer-backdrop,
    .mobile-drawer,
    .theme-toggle {
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   PHASE 14 — Footer redesign.

   Same playbook as the Phase 13 header redesign — a token layer + base
   polish that cascades through the 19 layout variants
   (.footer--footer_1..19). The variant CSS keeps its cosmetic differences
   (grid shape, gradients, special bg per variant); only the shared
   primitives + interactions change.

   Tokens map onto the global --bg / --text / --accent so the same
   [data-pb-theme="dark"] toggle that drives the header also adapts the
   footer surface. Tenant-set hex backgrounds (theme.footer.settings
   .background_color) still win because they're inlined via @style on
   the <footer> tag.
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --ftr-bg: color-mix(in srgb, var(--primary-dark) 96%, black);
    --ftr-fg: color-mix(in srgb, var(--text-inverse, #fff) 75%, transparent);
    --ftr-fg-strong: var(--text-inverse, #fff);
    --ftr-fg-muted: color-mix(in srgb, var(--text-inverse, #fff) 50%, transparent);
    --ftr-divider: color-mix(in srgb, var(--text-inverse, #fff) 12%, transparent);
    --ftr-hover-bg: color-mix(in srgb, var(--text-inverse, #fff) 8%, transparent);
    --ftr-accent: var(--accent);
    --ftr-input-bg: color-mix(in srgb, var(--text-inverse, #fff) 6%, transparent);
    --ftr-input-border: color-mix(in srgb, var(--text-inverse, #fff) 22%, transparent);
}

/* In dark mode the footer keeps its dark surface — but we deepen the
   contrast vs the dark page background so the footer still reads as a
   distinct landing zone (not seamless with the body). */
[data-pb-theme="dark"] {
    --ftr-bg: color-mix(in srgb, var(--bg-dark) 80%, black);
    --ftr-fg: color-mix(in srgb, var(--text) 82%, transparent);
    --ftr-fg-strong: var(--text);
    --ftr-fg-muted: color-mix(in srgb, var(--text) 55%, transparent);
    --ftr-divider: color-mix(in srgb, var(--text) 14%, transparent);
    --ftr-hover-bg: color-mix(in srgb, var(--text) 8%, transparent);
    --ftr-input-bg: color-mix(in srgb, var(--text) 6%, transparent);
    --ftr-input-border: color-mix(in srgb, var(--text) 22%, transparent);
}

/* Base footer — refined surface, generous spacing, color tokens flow
   through. The variant selectors at the top of this file used `!important`
   for grid-template-columns; we leave those untouched so layout-pickers
   keep working. */
.footer {
    background: var(--ftr-bg);
    color: var(--ftr-fg);
    padding-block: 64px 32px;
    position: relative;
    isolation: isolate;
}
.footer::before {
    /* Subtle top edge — a 1px hairline + soft gradient lift so the footer
       reads as a discrete surface even when its bg matches a section above. */
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ftr-divider), transparent);
    pointer-events: none;
}

/* Column headings — sharper hierarchy, sleek caps. */
.footer h4 {
    color: var(--ftr-fg-strong);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    line-height: 1.4;
}
.footer p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--ftr-fg);
}

/* Column links — animated translate on hover + slim accent underline. */
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: var(--ftr-fg);
    font-size: 0.85rem;
    display: inline-block;
    padding: 1px 0;
    position: relative;
    transition: color 200ms ease-out, transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.footer ul a::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 100%;
    max-width: 0;
    height: 1px;
    background: var(--ftr-accent);
    transition: max-width 260ms cubic-bezier(.2, .8, .2, 1);
}
.footer ul a:hover,
.footer ul a:focus-visible {
    color: var(--ftr-fg-strong);
    transform: translateX(2px);
}
[dir="rtl"] .footer ul a:hover,
[dir="rtl"] .footer ul a:focus-visible { transform: translateX(-2px); }
.footer ul a:hover::after,
.footer ul a:focus-visible::after { max-width: 32px; }
.footer ul a:focus-visible {
    outline: 2px solid var(--ftr-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Bottom row — polished divider and inline layout. */
.footer-bottom {
    border-top: 1px solid var(--ftr-divider);
    padding-top: 28px;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--ftr-fg-muted);
}
.footer-bottom span,
.footer-bottom a { color: inherit; }

/* Footer socials — refined circle pills with smooth hover. */
.footer-socials {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--ftr-divider);
    color: var(--ftr-fg);
    background: transparent;
    font-size: 0.95rem;
    transition: color 200ms, border-color 200ms, background 200ms, transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.footer-socials a:hover {
    color: var(--ftr-fg-strong);
    border-color: var(--ftr-accent);
    background: var(--ftr-hover-bg);
    transform: translateY(-2px);
}
.footer-socials a:active { transform: translateY(0); }
.footer-socials a:focus-visible {
    outline: 2px solid var(--ftr-accent);
    outline-offset: 3px;
}

/* Payment icons — subtle pill backgrounds, hover lift. */
.payment-icons-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.payment-icons-row img {
    height: 22px;
    width: auto;
    opacity: 0.75;
    border-radius: 4px;
    background: var(--ftr-input-bg);
    padding: 4px 8px;
    transition: opacity 200ms ease-out, transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.payment-icons-row img:hover { opacity: 1; transform: translateY(-1px); }

/* Newsletter form — refined pill, focus glow, accent send button. */
.footer .nl-form,
.pb-newsletter-form,
.footer .pb-newsletter-form {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ftr-input-border);
    border-radius: 999px;
    background: var(--ftr-input-bg);
    overflow: hidden;
    max-width: 460px;
    transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.footer .nl-form:focus-within,
.pb-newsletter-form:focus-within,
.footer .pb-newsletter-form:focus-within {
    border-color: var(--ftr-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ftr-accent) 22%, transparent);
}
.footer .nl-form input[type="email"],
.pb-newsletter-form input[type="email"],
.footer .pb-newsletter-form input[type="email"] {
    flex: 1;
    background: transparent !important;
    border: 0 !important;
    padding: 14px 22px;
    color: var(--ftr-fg-strong) !important;
    font-size: 0.88rem;
    outline: none;
}
.footer .nl-form input[type="email"]::placeholder,
.pb-newsletter-form input[type="email"]::placeholder,
.footer .pb-newsletter-form input[type="email"]::placeholder {
    color: var(--ftr-fg-muted);
}
.footer .nl-form button,
.pb-newsletter-form button,
.footer .pb-newsletter-form button {
    background: var(--ftr-accent);
    color: var(--bg, #faf9f6);
    border: 0;
    padding: 0 26px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 200ms ease-out, transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.footer .nl-form button:hover,
.pb-newsletter-form button:hover,
.footer .pb-newsletter-form button:hover { filter: brightness(0.92); }
.footer .nl-form button:active,
.pb-newsletter-form button:active,
.footer .pb-newsletter-form button:active { transform: scale(0.97); }
.footer .nl-form button:focus-visible,
.pb-newsletter-form button:focus-visible {
    outline: 2px solid var(--ftr-fg-strong);
    outline-offset: 2px;
}

/* Mobile stacking — proper single-column layout, larger spacing. */
@media (max-width: 767px) {
    .footer { padding-block: 48px 24px; }
    .footer .container { padding-inline: 20px; }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        margin-bottom: 32px;
    }
    .footer h4 { margin-bottom: 14px; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        text-align: start;
    }
    .footer-bottom > * { width: 100%; }
    .footer-socials { justify-content: flex-start; }
}

/* ──────────────────────────────────────────────────────────────────────
   PHASE 14 — Back-to-top button.

   Floating circle button that appears after scrolling 400px and smooth-
   scrolls to top on click. Sits above the mobile bottom-tab nav
   (z-index 90 < tabs' 95) so it doesn't cover them. Respects
   prefers-reduced-motion.
   ────────────────────────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    inset-block-end: 76px;
    inset-inline-end: 16px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border, color-mix(in srgb, currentColor 18%, transparent));
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.9);
    transition: opacity 220ms ease-out, transform 280ms cubic-bezier(.2, .8, .2, 1),
                background 200ms ease-out, color 200ms ease-out;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px) scale(1);
}
.back-to-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
@media (min-width: 768px) {
    .back-to-top {
        inset-block-end: 24px;
        inset-inline-end: 24px;
        width: 48px;
        height: 48px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .footer ul a,
    .footer ul a::after,
    .footer-socials a,
    .payment-icons-row img,
    .footer .nl-form,
    .footer .pb-newsletter-form,
    .pb-newsletter-form,
    .back-to-top {
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   PHASE 15 — Cart dark mode hardening.

   The three hardcoded `background: white` declarations in the original
   cart-drawer / cart-summary / promo-form input rules above are now
   replaced with --card-bg, so the cart surface adapts to dark mode.
   This appendix tightens the rest of the cart chrome so dark-mode
   readability hits parity with light:

   - drawer-count badge contrast (was primary-dark on accent — fine in
     light, but in some dark themes the badge text muddies). Switch to
     --bg for the badge text in dark mode so contrast stays high
   - cart-drawer-foot bg-alt → slightly elevated card surface in dark
     mode so the foot reads as a distinct sticky region (otherwise it
     blends with the rest of the drawer)
   - drawer-item hover bg → use --nav-hover-bg (already defined) so
     hover is visible in both light + dark without being garish
   - cart-drawer-progress strip → ensure --accent-dark text stays
     legible on the accent-tinted background in dark mode
   - cart-page items: surface tokens were already correct, but border
     defaults need tweaking in dark mode (var(--border-light) was a
     near-black band in some dark themes)
   ══════════════════════════════════════════════════════════════════════ */

/* Drawer head/foot borders use the same divider semantics as the rest
   of the chrome — pulls from the header's --nav-divider so they
   visually rhyme. */
.cart-drawer-head { border-bottom-color: var(--nav-divider); }
.cart-drawer-foot {
    border-top: 1px solid var(--nav-divider);
    background: color-mix(in srgb, var(--card-bg) 92%, var(--text) 6%);
    color: var(--text);
}

/* Drawer item rows — token-driven hover so dark mode lifts cleanly. */
.drawer-item { border-bottom-color: var(--nav-divider); color: var(--text); }
.drawer-item:hover { background: var(--nav-hover-bg); }
.drawer-item-img { background: color-mix(in srgb, var(--text) 6%, transparent); }

/* Drawer count badge — keep accent bg but use --bg for the digit so
   contrast holds in both modes (was hardcoded primary-dark). */
.cart-drawer-head .drawer-count { color: var(--bg); }

/* Header buttons inside the drawer use the same circular icon
   treatment as the navbar so they don't feel like alien chrome. */
.cart-drawer-head button {
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 180ms, background 180ms;
}
.cart-drawer-head button:hover {
    color: var(--text);
    background: var(--nav-hover-bg);
}

/* Drawer subtotal lines + shipping note — pull from tokens explicitly
   so they don't inherit a stale color from anywhere. */
.drawer-subtotal span:first-child { color: var(--text-secondary); }
.drawer-shipping { color: var(--text-muted); }
.drawer-shipping strong { color: var(--success); }

/* Free-shipping progress strip — tighten contrast in dark mode so the
   "Spend $X more" line is legible. The strip uses --accent-tinted bg;
   in dark mode that needs a lighter --accent-light for the strong
   token instead of --accent-dark. */
[data-pb-theme="dark"] .cart-drawer-progress {
    background: color-mix(in srgb, var(--accent) 18%, var(--card-bg));
}
[data-pb-theme="dark"] .cart-drawer-progress-text strong,
[data-pb-theme="dark"] .cart-drawer-progress-text i,
[data-pb-theme="dark"] .free-shipping-bar-inner strong,
[data-pb-theme="dark"] .free-shipping-bar-inner i { color: var(--accent-light); }

/* Trust badge below checkout — explicit color so it doesn't fall back
   to a stale hardcoded gray when no parent sets --text-muted. */
.cart-drawer-trust { color: var(--text-muted); }

/* Cart PAGE (not drawer) items + qty controls — token sweep so the
   page-level cart also adapts. The existing rules use --border /
   --bg-alt which already adapt; we re-declare a few here for the
   smaller bits the original rules missed. */
.cart-item { border-bottom-color: var(--nav-divider); color: var(--text); }
.cart-item:first-child { border-top-color: var(--nav-divider); }
.cart-item-img { background: color-mix(in srgb, var(--text) 6%, transparent); }
.cart-item-info .cart-item-variant { color: var(--text-muted); }

.qty-control {
    border-color: var(--nav-divider);
    background: var(--card-bg);
}
.qty-control button {
    background: transparent;
    color: var(--text);
}
.qty-control button:hover {
    background: var(--nav-hover-bg);
}

/* Cart summary — already switched bg to --card-bg above. Re-token the
   inner accents so they look intentional in dark mode. */
.cart-summary { border-color: var(--nav-divider); }
.cart-summary h3 { border-bottom-color: var(--nav-divider); color: var(--text); }
.summary-row.muted { color: var(--text-muted); }
.summary-row.total { border-top-color: var(--text); color: var(--text); }

.promo-form { border-color: var(--nav-divider); }
.promo-form input {
    color: var(--text);
    background: var(--card-bg);
}
.promo-form input::placeholder { color: var(--text-muted); }

/* Cart empty state — icon was --border which is a soft mid-tone in
   dark mode; bump to a more visible muted color. */
.cart-empty i,
.cart-drawer-empty i {
    color: color-mix(in srgb, var(--text) 22%, transparent);
}

/* Reduced-motion fallback for the new transitions added here. */
@media (prefers-reduced-motion: reduce) {
    .cart-drawer-head button,
    .drawer-item,
    .qty-control button {
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   PHASE 16 — Category / listing dark mode hardening.

   The listing-page chrome above predates dark mode and pins several
   surfaces to a hardcoded `background: white`, so in dark mode the
   sort dropdown, the mobile filter toggle, the mobile filter drawer
   and the price-range inputs all flash as white slabs against the
   dark page. Native form controls (number inputs / select) also fall
   back to the browser Canvas color (white) when no background token is
   set. Re-token them to --card-bg / --border so the whole listing
   surface adapts the same way the cart did in Phase 15.
   ══════════════════════════════════════════════════════════════════════ */

/* Sort dropdown + mobile filter toggle — were hardcoded white. */
.sort-select,
.filter-toggle-btn {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--text);
}

/* Native <select> option list inherits from the control in most
   engines once the control itself carries a bg/color. */
.sort-select option {
    background: var(--card-bg);
    color: var(--text);
}

/* Price-range number inputs had no background, so they rendered on the
   browser Canvas (white). Pin them to the card surface + token text. */
.price-range input {
    background: var(--card-bg);
    color: var(--text);
}
.price-range input::placeholder { color: var(--text-muted); }

/* Mobile filter drawer (fixed full-screen panel) — hardcoded white. */
.filter-sidebar.mobile-open {
    background: var(--bg);
    color: var(--text);
}

/* Active-filter chips already pull from tokens, but re-declare here so
   the appendix is self-contained and the chips read in dark mode. */
.filter-tag { background: var(--bg-alt); color: var(--text-secondary); }

/* Filter-sidebar headings (the "Filters" title + each group title:
   COLOR / الوزن / نطاق السعر). The base `.filter-group h4` / `.heading-md`
   rules already resolve to var(--text) — which is light in dark mode — so
   by the static cascade these are visible. They were reported invisible in
   dark mode anyway, which can only happen if a higher-specificity heading
   color leaks in from the bundled Filament/Tailwind layer (or a stale
   cached stylesheet). Re-assert the token here with sidebar scope + a
   dark-scoped variant so the group titles can't lose the cascade. */
.filter-sidebar h4,
.filter-sidebar .heading-md,
[data-pb-theme="dark"] .filter-sidebar h4,
[data-pb-theme="dark"] .filter-sidebar .heading-md {
    color: var(--text);
}

/* Empty-state icon used --border (a soft mid-tone that nearly vanishes
   in dark mode). Match the cart-empty treatment for a visible muted
   glyph. The inline style on the icon sets color: var(--border); this
   rule wins via the .prod-grid scope + specificity over the element. */
.prod-grid .fa-filter-circle-xmark {
    color: color-mix(in srgb, var(--text) 22%, transparent) !important;
}
