/* ============================================================
   site5 — Custom Design System
   Premium Home Essentials & Smart Appliances
   ============================================================ */

/* ---- Variables ---- */
:root {
  --cream:          #FAF8F4;
  --white:          #FFFFFF;
  --charcoal:       #18181B;
  --midnight:       #0E1B2B;
  --midnight-2:     #162438;
  --midnight-3:     #0A1320;
  --accent:         #D4603A;
  --accent-hover:   #B84E2A;
  --accent-light:   #F5E4DC;
  --text-body:      #3D3830;
  --text-muted:     #8B8279;
  --border:         #EAE4DC;
  --card-bg:        #FFFFFF;
  --section-alt:    #F3EFE9;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.18);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --transition:      0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1280px;
  --section-py: 5.5rem;
  --container-px: clamp(1.25rem, 5vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---- Typography helpers ---- */
.section-overline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-top: 0.75rem;
}

/* ---- Common Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.925rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 96, 58, 0.4);
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.925rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all var(--transition);
}
.btn-ghost-light:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
}
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--charcoal);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-ghost-dark:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

/* =====================================================
   NAVIGATION
===================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0 var(--container-px);
}
.site-nav.scrolled {
  background: var(--midnight);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn-signin {
  padding: 0.48rem 1.35rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-signin:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 910;
  backdrop-filter: blur(3px);
}
.mobile-overlay.open { display: block; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--midnight);
  z-index: 920;
  padding: 5rem 2rem 2rem;
  transition: right 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.mobile-close:hover { color: var(--white); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.mobile-link {
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
  font-weight: 500;
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--white); }
.mobile-signin {
  color: var(--accent) !important;
  font-size: 1rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1617355186172-c32925aea7b9?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(14, 27, 43, 0.82) 0%,
    rgba(14, 27, 43, 0.52) 55%,
    rgba(14, 27, 43, 0.18) 100%
  );
}
.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 96, 58, 0.18);
  border: 1px solid rgba(212, 96, 58, 0.45);
  border-radius: var(--radius-full);
  color: #FFB99A;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.6rem;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7.5vw, 5.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.hero-title em {
  font-style: italic;
  color: #FFBB9F;
}
.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}
.trust-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(212, 96, 58, 0.25);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.6rem;
  flex-shrink: 0;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: float-down 2.5s ease infinite;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================
   SECTION WRAPPER
===================================================== */
.section-wrap {
  padding: var(--section-py) var(--container-px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  margin-bottom: 3rem;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* =====================================================
   CATEGORIES
===================================================== */
#categories {
  background: var(--cream);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.07); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 27, 43, 0.88) 0%,
    rgba(14, 27, 43, 0.3) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition);
}
.cat-overline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 185, 154, 0.85);
  margin-bottom: 0.5rem;
}
.cat-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition), gap var(--transition);
}
.category-card:hover .cat-cta {
  color: var(--white);
  gap: 0.65rem;
}

/* =====================================================
   PRODUCTS
===================================================== */
.products-section {
  background: var(--section-alt);
  padding: var(--section-py) var(--container-px);
}
.products-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F0EBE3;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-new      { background: var(--charcoal); color: var(--white); }
.badge-featured { background: var(--accent);   color: var(--white); }
.product-info {
  padding: 1.15rem 1.25rem 1.5rem;
}
.product-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--charcoal);
}
.btn-view {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition), color var(--transition);
}
.btn-view:hover { color: var(--accent-hover); gap: 0.45rem; }

/* ------- Overlay card variant ------- */
.product-card--overlay {
  position: relative;
}
.product-card--overlay .product-img-wrap {
  aspect-ratio: 3/4;
}
.product-card--overlay .product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 27, 43, 0.96) 0%,
    rgba(14, 27, 43, 0.22) 52%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}
.product-card--overlay .product-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.4rem 1.65rem;
  background: none;
  z-index: 2;
}
.product-card--overlay .product-cat  { color: rgba(255, 185, 154, 0.85); font-size: 0.72rem; }
.product-card--overlay .product-name { color: #fff; }
.product-card--overlay .product-price { color: #fff; }
.product-card--overlay .btn-view { color: rgba(255,255,255,0.55); }
.product-card--overlay:hover .btn-view { color: var(--white); }

/* ------- Dark card variant ------- */
.product-card--dark {
  background: var(--midnight);
}
.product-card--dark .product-img-wrap {
  aspect-ratio: 4/3;
  background: var(--midnight-2);
}
.product-card--dark .product-img-wrap img {
  opacity: 0.78;
  filter: saturate(0.3) brightness(0.88);
}
.product-card--dark .product-cat  { color: var(--accent); }
.product-card--dark .product-name { color: rgba(255,255,255,0.92); }
.product-card--dark .product-price { color: var(--white); }
.product-card--dark .badge-new {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
}
.product-card--dark .badge-featured { background: var(--accent); }

/* =====================================================
   STACK SECTION (Product Showcase)
===================================================== */
.stack-section {
  background: var(--section-alt);
  padding: var(--section-py) var(--container-px);
}
.stack-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.stack-arena {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
/* Stage */
.stack-stage {
  position: relative;
  height: 540px;
}
/* Card base */
.stack-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  will-change: transform, opacity;
  transition: transform 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.08),
              opacity 0.45s ease,
              box-shadow 0.55s ease,
              filter 0.55s ease;
}
.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Position states */
.stack-card.is-active {
  transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  z-index: 10;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28), 0 8px 24px rgba(0,0,0,0.14);
  filter: brightness(1);
  cursor: default;
}
.stack-card.is-behind-1 {
  transform: translateX(24px) translateY(-30px) rotate(4deg) scale(0.955);
  z-index: 9;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  filter: brightness(0.78);
  cursor: pointer;
}
.stack-card.is-behind-2 {
  transform: translateX(46px) translateY(-58px) rotate(8deg) scale(0.91);
  z-index: 8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  filter: brightness(0.58);
  cursor: pointer;
}
.stack-card.is-exiting {
  transform: translateX(-130%) translateY(25px) rotate(-20deg) scale(0.88) !important;
  opacity: 0 !important;
  z-index: 11 !important;
  box-shadow: none !important;
  transition: transform 0.4s cubic-bezier(0.6, 0, 1, 0.6),
              opacity 0.28s ease !important;
  pointer-events: none;
}
.stack-card.is-entering-prev {
  transform: translateX(90px) translateY(-15px) rotate(-5deg) scale(0.94) !important;
  opacity: 0 !important;
  z-index: 11 !important;
  transition: none !important;
  pointer-events: none;
}
.stack-card.is-hidden {
  transform: translateX(65px) translateY(-80px) rotate(11deg) scale(0.87);
  opacity: 0;
  z-index: 7;
  pointer-events: none;
}
/* Sidebar */
.stack-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.stack-info {
  display: flex;
  flex-direction: column;
}
.si-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  border-radius: var(--radius-full);
  padding: 0.32rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  width: fit-content;
  min-height: 26px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.si-badge-wrap.is-hidden-badge { visibility: hidden; }
.si-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.si-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.si-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.9rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.si-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.si-price-row { margin-bottom: 1.75rem; }
.si-price {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--charcoal);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.si-cta { align-self: flex-start; }
/* Nav bar */
.stack-nav-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stack-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stack-counter-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.stack-progress-track {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.stack-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.stack-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.stack-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.stack-btn:hover:not(:disabled) {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}
.stack-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.stack-btn--next {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}
.stack-btn--next:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
}
.stack-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0.55;
  margin-top: 0.25rem;
}
/* Sidebar fade when content changes */
.stack-info.is-changing .si-badge-wrap,
.stack-info.is-changing .si-cat,
.stack-info.is-changing .si-name,
.stack-info.is-changing .si-desc,
.stack-info.is-changing .si-price {
  opacity: 0;
  transform: translateY(10px);
}
/* Stack responsive */
@media (max-width: 980px) {
  .stack-arena {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stack-stage { height: 420px; }
}
@media (max-width: 600px) {
  .stack-stage { height: 310px; }
  .stack-card.is-behind-1 {
    transform: translateX(14px) translateY(-18px) rotate(3deg) scale(0.96);
  }
  .stack-card.is-behind-2 {
    transform: translateX(26px) translateY(-33px) rotate(6deg) scale(0.92);
  }
}

/* =====================================================
   ABOUT
===================================================== */
.about-wrap {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: center;
}
.about-img-col {
  position: relative;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}
.about-stat-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  min-width: 160px;
  box-shadow: var(--shadow-xl);
}
.stat-big {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.stat-label-sm {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0.3rem;
}
.about-text-col { }
.about-body {
  color: var(--text-body);
  line-height: 1.8;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-text h4 {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.a-stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}
.a-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =====================================================
   NEWSLETTER (DARK)
===================================================== */
.newsletter-section {
  background: var(--midnight);
  padding: 5rem var(--container-px);
  text-align: center;
}
.newsletter-inner {
  max-width: 580px;
  margin: 0 auto;
}
.newsletter-inner .section-title { color: var(--white); margin-bottom: 0.75rem; }
.newsletter-inner .section-subtitle { color: rgba(255,255,255,0.55); margin: 0 auto 2.25rem; }
.nl-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.nl-form input {
  flex: 1;
  background: none;
  border: none;
  padding: 0.9rem 1.4rem;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  font-family: var(--font-sans);
}
.nl-form input::placeholder { color: rgba(255,255,255,0.35); }
.nl-form button {
  background: var(--accent);
  color: var(--white);
  padding: 0.9rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.nl-form button:hover { background: var(--accent-hover); }
.nl-note {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
}

/* =====================================================
   CONTACT
===================================================== */
.contact-section {
  background: var(--midnight-2);
  padding: var(--section-py) var(--container-px);
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.contact-inner .section-overline { color: rgba(255,185,154,0.8); }
.contact-inner .section-title { color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3.5rem;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(212, 96, 58, 0.12);
  border: 1px solid rgba(212, 96, 58, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.4rem;
}
.contact-item-value {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
}
.contact-item-value a {
  color: var(--white);
  transition: color var(--transition);
}
.contact-item-value a:hover { color: var(--accent); }
.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  margin-top: 0.4rem;
  transition: opacity var(--transition);
}
.directions-btn:hover { opacity: 0.75; }
.contact-divider {
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.08);
}

/* Contact info card on right */
.contact-right-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.contact-right-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.contact-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: var(--midnight-3);
  padding: 4.5rem var(--container-px) 0;
  color: rgba(255,255,255,0.5);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 1.75rem;
}
.footer-social {
  display: flex;
  gap: 0.65rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-col h5 {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* =====================================================
   LOGIN PAGE
===================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.login-left {
  flex: 1;
  position: relative;
  display: none;
  overflow: hidden;
}
.login-left-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1556909055-c38e38bde25a?w=900&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.login-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(14,27,43,0.75), rgba(212,96,58,0.35));
}
.login-left-content {
  position: relative;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.login-left-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.login-left-quote {
  margin-top: auto;
}
.login-left-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
.login-left-quote cite {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-style: normal;
}
.login-right {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 3rem var(--container-px);
}
.login-card {
  width: 100%;
  max-width: 420px;
}
.login-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.login-welcome {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.login-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.login-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.25rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 96, 58, 0.12);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.login-forgot {
  display: block;
  text-align: right;
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  transition: opacity var(--transition);
}
.login-forgot:hover { opacity: 0.7; }
.btn-login {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 1.25rem;
}
.btn-login:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-login-google {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  color: var(--charcoal);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all var(--transition);
  margin-bottom: 2rem;
}
.btn-login-google:hover {
  border-color: #aaa;
  box-shadow: var(--shadow-sm);
}
.login-register {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.login-register a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--transition);
}
.login-register a:hover { opacity: 0.75; }
.login-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (min-width: 900px) {
  .login-left { display: flex; flex-direction: column; }
  .login-right { flex: 0 0 48%; min-width: 440px; }
  .hamburger { display: none !important; }
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-stat-card { bottom: 1rem; right: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex !important; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-trust { display: none; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-badges { gap: 1rem; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}