/**
 * RESPIRO Design System - Layout Styles
 * Navbar, Footer, Sections
 */

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar-inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    height: 100%;
    padding: var(--space-3) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-base);
}

.navbar-brand:hover {
    opacity: 0.85;
}

/* Logo Image */
.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition-base);
}

@media (min-width: 768px) {
    .brand-logo {
        height: 52px;
    }
}

.navbar-brand:hover .brand-name {
    color: var(--color-primary-light);
}

.brand-name {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tighter);
    color: var(--stone-200);
    line-height: 1;
    transition: color var(--transition-base);
}

.brand-tagline {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--stone-500);
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
}

.nav-link {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--stone-300);
    text-decoration: none;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active,
.nav-link.is-active {
    color: var(--color-primary-light);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.is-active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.navbar-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--stone-300);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.navbar-icon:hover {
    color: var(--stone-100);
    background: var(--stone-800);
}

.navbar-icon svg {
    width: 22px;
    height: 22px;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-user {
    display: none;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    padding-left: var(--space-2);
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .navbar-user {
        display: flex;
    }
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-muted);
    color: var(--color-primary-light);
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-radius: var(--radius-full);
}

.navbar-avatar svg {
    width: 16px;
    height: 16px;
}

.navbar-user-name {
    font-size: var(--text-xs);
    color: var(--stone-500);
}

.navbar-logout {
    color: var(--stone-500);
    transition: color var(--transition-base);
}

.navbar-logout:hover {
    color: var(--color-error);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--stone-300);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--stone-950);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-8);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: calc(var(--z-fixed) - 1);
}

.mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    color: var(--stone-200);
    text-decoration: none;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--stone-950);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-12);
}

/* =========================
   MAIN FOOTER GRID
   ========================= */

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

/* Tablet */
@media (min-width: 640px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8) var(--space-6);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: var(--space-12);
    }
}

/* =========================
   FOOTER COLUMNS
   ========================= */

.footer-col {
    display: flex;
    flex-direction: column;
}

/* =========================
   BRAND COLUMN
   ========================= */

.footer-col-brand {
    text-align: center;
}

@media (min-width: 640px) {
    .footer-col-brand {
        text-align: left;
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .footer-col-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    margin-bottom: var(--space-4);
    transition: opacity var(--transition-base);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .footer-logo-img {
        height: 56px;
    }
}

.footer-logo-icon {
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--stone-100);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--stone-500);
    line-height: var(--leading-relaxed);
    max-width: 280px;
    margin: 0 auto var(--space-5);
}

@media (min-width: 640px) {
    .footer-tagline {
        margin-left: 0;
        margin-right: auto;
    }
}

/* =========================
   SOCIAL LINKS
   ========================= */

.footer-social {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

@media (min-width: 640px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--stone-500);
    background: var(--stone-900);
    border: 1px solid var(--stone-800);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    color: var(--color-primary-light);
    border-color: var(--color-primary);
    background: var(--color-primary-muted);
}

/* =========================
   FOOTER HEADINGS & NAV
   ========================= */

.footer-heading {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--stone-300);
    margin-bottom: var(--space-4);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--stone-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-primary-light);
}

/* =========================
   NEWSLETTER COLUMN
   ========================= */

.footer-col-newsletter {
    text-align: center;
}

@media (min-width: 640px) {
    .footer-col-newsletter {
        text-align: left;
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .footer-col-newsletter {
        grid-column: span 1;
    }
}

.footer-newsletter-text {
    font-size: var(--text-sm);
    color: var(--stone-500);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.footer-newsletter-form {
    margin-bottom: var(--space-4);
}

.footer-newsletter-input-wrap {
    display: flex;
    max-width: 280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .footer-newsletter-input-wrap {
        margin: 0;
    }
}

.footer-newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--stone-100);
    background: var(--stone-900);
    border: 1px solid var(--stone-700);
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.footer-newsletter-input::placeholder {
    color: var(--stone-600);
}

.footer-newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-4);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    color: #fff;
    cursor: pointer;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--stone-500);
    text-decoration: none;
}

/* =========================
   FOOTER BOTTOM
   ========================= */

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--stone-900);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: var(--text-xs);
    color: var(--stone-600);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .footer-legal {
        gap: var(--space-6);
    }
}

.footer-legal-link {
    font-size: var(--text-xs);
    color: var(--stone-600);
    text-decoration: none;
}

/* Payments */
.footer-payments {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.payment-icon {
    display: flex;
    opacity: 0.7;
}

/* =========================
   MOBILE FORCE CENTER
   ========================= */

@media (max-width: 639px) {

    .footer,
    .footer * {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-newsletter-input-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact-link {
        justify-content: center;
    }

    .footer-payments {
        justify-content: center;
    }
}


/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: var(--space-20) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-ultra);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-6xl);
    }
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--stone-400);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    overflow: hidden;
}

/* Hero Background Splash Layer */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Background image with flutter/pulse animation */
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.30;

    /* IMPORTANT: no zoom in/out */
    transform: none;

    /* Candle-light style flutter: saturation/brightness pulse */
    filter: saturate(1.05) brightness(0.98) contrast(1.02);

    animation: hero-flutter 8s ease-in-out infinite;
    will-change: filter, opacity;
}

/* Flutter/Flicker Animation - subtle candle-light effect */
@keyframes hero-flutter {
    0%, 100% {
        opacity: 0.26;
        filter: saturate(1.00) brightness(0.94) contrast(1.00);
    }
    30% {
        opacity: 0.34;
        filter: saturate(1.18) brightness(1.02) contrast(1.06);
    }
    55% {
        opacity: 0.29;
        filter: saturate(1.08) brightness(0.98) contrast(1.03);
    }
    75% {
        opacity: 0.38;
        filter: saturate(1.28) brightness(1.06) contrast(1.10);
    }
}

/* Dark gradient overlay for text readability */
/* UPDATED: biased a bit to the left for better blending when content is shifted left */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to right,
            rgba(12, 10, 9, 0.92) 0%,
            rgba(12, 10, 9, 0.70) 28%,
            rgba(12, 10, 9, 0.40) 55%,
            rgba(12, 10, 9, 0.18) 78%,
            rgba(12, 10, 9, 1) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(12, 10, 9, 0.80) 0%,
            rgba(12, 10, 9, 0.40) 30%,
            rgba(12, 10, 9, 0.20) 50%,
            rgba(12, 10, 9, 0.40) 70%,
            rgba(12, 10, 9, 1) 100%
        );
}

/* Fallback for legacy .hero-bg img usage */
.hero-bg img:not(.hero-bg-image) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12, 10, 9, 0.8), transparent, var(--stone-950));
    pointer-events: none;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

/* NEW: shift content slightly left on desktop for a more editorial look */
@media (min-width: 768px) {
    .hero-content {
        transform: translateX(-40px);
    }
}

.hero-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-ultra);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: var(--leading-none);
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-8);

    /* NEW: cinematic blending */
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.60);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-8xl);
    }
}

.hero-title span {
    font-style: italic;
    font-weight: 300;
    color: var(--stone-500);
}

.hero-subtitle {
    font-size: 0.90rem;
    color: var(--stone-400);
    margin-bottom: var(--space-12);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-style: italic;

    /* NEW: subtle shadow to merge into background */
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.30),
        0 1px 2px rgba(0, 0, 0, 0.55);
}

.hero-desc {
    font-size: var(--text-lg);
    color: var(--stone-400);
    margin-bottom: var(--space-12);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.btn-primary {
    background: linear-gradient(
        135deg,
        #92400e,
        #9a3412
    );
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        #9a3412,
        #b45309
    );
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(154, 52, 18, 0.45),
        0 0 0 1px rgba(180, 83, 9, 0.35);
}


.btn-primary::after {
    content: '';
    position: absolute;
    inset: -45%;
    background: radial-gradient(
        circle,
        rgba(180, 83, 9, 0.28),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}


.btn-outline {
    background: rgba(12, 10, 9, 0.4);
    color: var(--stone-300);
    border: 1px solid rgba(180, 83, 9, 0.30);
    backdrop-filter: blur(4px);
    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.btn-outline:hover {
    background: rgba(12, 10, 9, 0.65);
    color: #fff;
    border-color: rgba(180, 83, 9, 0.45);
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(180, 83, 9, 0.25);
}


.hero-actions .btn {
    letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
    }
}

/* =========================
   MICRO NOTICE (Promo toast)
   ========================= */

/* Container bar */
.micro-notice{
  position: relative;
  z-index: 20;
  background: rgba(12, 12, 12, 0.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtle gold hairline at top */
.micro-notice::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 191, 36, 0.55),
    transparent
  );
  opacity: 0.9;
}

/* Inner layout */
.micro-notice-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 14px;
  min-height: 34px;

  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ping dot */
.micro-notice-ping{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.95);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.10);
  flex: 0 0 auto;
  position: relative;
}

/* Ping ring */
.micro-notice-ping::after{
  content:"";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.30);
  animation: microPing 2.2s ease-out infinite;
  opacity: 0.65;
}

@keyframes microPing{
  0%   { transform: scale(0.55); opacity: 0.70; }
  70%  { transform: scale(1.2);  opacity: 0; }
  100% { transform: scale(1.2);  opacity: 0; }
}

/* Text */
.micro-notice-text{
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.2;

  flex: 1 1 auto;
  min-width: 0;             /* important for flex overflow handling */
  text-align: left;

  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.micro-notice-text strong{
  color: rgba(251, 191, 36, 0.92);
  font-weight: 600;
}

.micro-notice-muted{
  color: rgba(255, 255, 255, 0.55);
}

/* Right side group: CTA + Close */
.micro-notice-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-left: auto;        /* pushes actions to the right */
  flex: 0 0 auto;
  white-space: nowrap;
}

/* CTA pill (subtle) */
.micro-notice-cta{
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 5px 10px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.micro-notice-cta:hover{
  color: rgba(251, 191, 36, 0.92);
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

/* Close button */
.micro-notice-close{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;

  font-size: 15px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 10px;
}

.micro-notice-close:hover{
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

/* =========================
   Responsive
   ========================= */

/* MOBILE FIX: keep notice in one line, no ugly wrapping */
@media (max-width: 600px){
  .micro-notice-inner{
    padding: 6px 10px;
    min-height: 32px;
    gap: 8px;
    flex-wrap: nowrap;          /* IMPORTANT: no wrap */
  }

  .micro-notice-text{
    flex: 1 1 auto;
    min-width: 0;              /* allows ellipsis */
    white-space: nowrap;       /* single line */
    overflow: hidden;
    text-overflow: ellipsis;   /* "..." */
    font-size: 0.84rem;
  }

  .micro-notice-muted{
    display: none;             /* optional: hide extra text on mobile */
  }

  .micro-notice-actions{
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
  }

  .micro-notice-cta{
    display: none;             /* keep it super clean on mobile */
  }

  .micro-notice-close{
    padding: 4px 6px;
    font-size: 16px;
  }
}





/* Page Header */
.page-header {
    position: relative;
    padding: var(--space-32) 0;
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12, 10, 9, 0.8), var(--stone-950));
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .page-title {
        font-size: var(--text-7xl);
    }
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--stone-400);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
    position: sticky;
    top: var(--navbar-height);
    z-index: var(--z-sticky);
    background: rgba(12, 10, 9, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stone-900);
    padding: var(--space-6) 0;
}

.filter-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.filter-btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--stone-400);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.filter-btn:hover {
    background: var(--stone-800);
    color: var(--stone-100);
}

.filter-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-amber);
}

/* ========================================
   FEATURES BAR
   ======================================== */

.features-bar {
    background: var(--stone-900);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-8) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.feature-text {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--stone-400);
}

/* ========================================
   CATEGORIES SLIDER – CLEAN & MINIMAL
   ======================================== */

.categories-slider-wrapper {
  position: relative;
}

/* Edge fade – same color as background */
.categories-slider-wrapper::before,
.categories-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}

.categories-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #1C1917 60%, transparent);
  opacity: 0;
}

.categories-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #1C1917 60%, transparent);
  opacity: 1;
}

.categories-slider-wrapper.scrolled-start::before {
  opacity: 1;
}

.categories-slider-wrapper.scrolled-end::after {
  opacity: 0;
}

/* Slider */
.categories-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.75rem 1rem 1.25rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* Cards */
.categories-slider .category-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

/* Desktop widths */
@media (min-width: 768px) {
  .categories-slider .category-card {
    flex-basis: 200px;
  }
}

/* ========================================
   SCROLLBAR – SIMPLE & ON BRAND
   ======================================== */

/* Firefox */
.categories-slider {
  scrollbar-width: thin;
  scrollbar-color: #0C0A09 transparent;
}

/* Chrome / Edge / Safari */
.categories-slider::-webkit-scrollbar {
  height: 6px;
}

.categories-slider::-webkit-scrollbar-track {
  background: transparent;
}

.categories-slider::-webkit-scrollbar-thumb {
  background-color: #0C0A09;
  border-radius: 999px;
}


/* Legacy grid support (fallback) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-4xl);
    overflow: hidden;
    background: var(--stone-900);
    transition: transform var(--transition-base);
}

.category-card:hover {
    transform: scale(1.02);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--stone-800), var(--stone-900));
    color: var(--stone-600);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 9, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
}

.category-name {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--stone-100);
    margin-bottom: var(--space-1);
}

.category-count {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--stone-500);
}

/* ========================================
   STORY SECTION
   ======================================== */

.story-section {
    background: var(--stone-950);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
}

.story-image {
    aspect-ratio: 4/5;
    border-radius: var(--radius-5xl);
    overflow: hidden;
    background: var(--stone-900);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    text-align: center;
}

@media (min-width: 768px) {
    .story-content {
        text-align: left;
    }
}

.story-text {
    color: var(--stone-400);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.story-signature {
    margin-bottom: var(--space-8);
}

.signature-name {
    display: block;
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--stone-200);
}

.signature-title {
    font-size: var(--text-sm);
    color: var(--stone-500);
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
}

.review-rating {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.review-rating .star {
    color: var(--stone-600);
}

.review-rating .star.filled {
    color: var(--color-warning);
}

.review-text {
    color: var(--stone-300);
    font-style: italic;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.review-author {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--space-4);
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--stone-200);
    margin-bottom: var(--space-1);
}

.author-product {
    font-size: var(--text-sm);
    color: var(--stone-500);
}

/* ========================================
   PROMO BANNER
   ======================================== */

.promo-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding: var(--space-12);
    background: linear-gradient(135deg, var(--color-primary-muted), var(--stone-900));
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-radius: var(--radius-4xl);
    text-align: center;
}

@media (min-width: 768px) {
    .promo-banner {
        flex-direction: row;
        text-align: left;
    }
}

.promo-content {}

.promo-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    color: var(--stone-100);
    margin-bottom: var(--space-2);
}

.promo-text {
    color: var(--color-primary-light);
    font-size: var(--text-lg);
}

/* ========================================
   INSTAGRAM SECTION
   ======================================== */

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--stone-900);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 10, 9, 0.6);
    color: white;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* ========================================
   SECTION DARK
   ======================================== */

.section-dark {
    background: var(--stone-900);
}

.section-subtitle {
    color: var(--stone-500);
    font-size: var(--text-lg);
    margin-top: var(--space-2);
}

.section-footer {
    text-align: center;
    margin-top: var(--space-12);
}

/* ========================================
   TEXT ACCENT
   ======================================== */

.text-accent {
    color: var(--color-primary-light);
    font-style: italic;
}

/* ========================================
   HERO VISUAL (Home page)
   ======================================== */

.hero-visual {
    display: none;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
        position: absolute;
        right: 10%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-5xl);
    box-shadow: var(--shadow-2xl);
}

.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(180, 83, 9, 0.2), transparent 70%);
    z-index: -1;
}

/* ========================================
   NAVBAR ACTION BUTTONS
   ======================================== */

.navbar-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--stone-400);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.navbar-action:hover {
    color: var(--stone-100);
    background: var(--stone-800);
}

.navbar-action svg {
    flex-shrink: 0;
}

.wishlist-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   NAVBAR TOGGLE (Mobile)
   ======================================== */

.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--stone-400);
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: all var(--transition-base);
}

/* ========================================
   MOBILE NAVBAR UTILITIES
   ======================================== */

/* Hide elements on mobile */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: flex;
    }
}

/* Mobile navbar: reduce action spacing */
@media (max-width: 767px) {
    .navbar-actions {
        gap: var(--space-1);
    }

    .navbar-action {
        width: 40px;
        height: 40px;
    }

    .navbar-toggle {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   NAVBAR DROPDOWN
   ======================================== */

.navbar-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--stone-900);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.navbar-dropdown:hover .dropdown-menu,
.navbar-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
    margin-bottom: var(--space-2);
}

.dropdown-user-name {
    display: block;
    font-weight: 600;
    color: var(--stone-200);
}

.dropdown-user-email {
    font-size: var(--text-xs);
    color: var(--stone-500);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border-subtle);
    margin: var(--space-2) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--stone-400);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.dropdown-item:hover {
    color: var(--stone-100);
    background: var(--stone-800);
}

.dropdown-item.text-error:hover {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-item svg {
    flex-shrink: 0;
}

/* ========================================
   SEARCH BAR
   ======================================== */

.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stone-900);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.search-bar.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    max-width: var(--container-lg);
    margin: 0 auto;
    gap: var(--space-3);
}

.search-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-lg);
    color: var(--stone-100);
    background: var(--stone-800);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-submit,
.search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--stone-400);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.search-submit:hover,
.search-close:hover {
    color: var(--stone-100);
    background: var(--stone-800);
}

.search-results {
    max-width: var(--container-lg);
    margin: var(--space-4) auto 0;
}

.search-results:empty {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    color: var(--stone-300);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--stone-800);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--stone-800);
}

.search-result-placeholder {
    width: 48px;
    height: 48px;
    background: var(--stone-800);
    border-radius: var(--radius-md);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--stone-100);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: var(--text-xs);
    color: var(--color-primary-light);
    margin-top: 2px;
}

.search-no-results {
    padding: var(--space-4);
    text-align: center;
    color: var(--stone-500);
    font-size: var(--text-sm);
}

/* ========================================
   MOBILE MENU INNER
   ======================================== */

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: 0 var(--space-4);
}

.mobile-menu-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border-subtle);
    margin: var(--space-2) 0;
}

/* Mobile Quick Actions (Search, Favorites, Cart) */
.mobile-quick-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-2) 0;
}

.mobile-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--stone-400);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-quick-action:hover,
.mobile-quick-action:focus {
    color: var(--color-primary-light);
}

.mobile-quick-action svg {
    width: 24px;
    height: 24px;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--stone-200);
    text-decoration: none;
    padding: var(--space-2) 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary-light);
}

.mobile-nav-link-small {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--stone-400);
    justify-content: flex-start;
    padding: var(--space-2) var(--space-4);
}

.mobile-nav-link-small svg {
    flex-shrink: 0;
}

.mobile-nav-link-small:hover {
    color: var(--stone-200);
}

.mobile-nav-link-small.text-error:hover {
    color: var(--color-error);
}

/* ========================================
   BRAND ICON
   ======================================== */

.brand-icon {
    display: none;
}

@media (min-width: 768px) {
    .brand-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary-light);
        margin-right: var(--space-3);
    }

    .navbar-brand {
        flex-direction: row;
        align-items: center;
    }
}
