/* ==========================================================================
   MODESTE CLOTHING - COMPREHENSIVE MULTI-SCREEN DESIGN SYSTEM (2026)
   DESKTOP (1024px+), TABLET (769px-1024px), MOBILE iOS & ANDROID (<=768px)
   ========================================================================== */
   DESKTOP (1024px+), TABLET (769px-1024px), MOBILE iOS & ANDROID (<=768px)
   ========================================================================== */

:root {
  /* Fonts */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Color Palette (Solid Earth Tones) */
  --brown: #75583a;
  --brown-dark: #3c2a1b;
  --brown-mid: #6b4f35;
  --brown-soft: #b49a76;
  --cream: #fbf7ef;
  --sand: #f4ede0;
  --white: #ffffff;
  --ink: #241a13;
  --muted: #705e50;
  --line: rgba(117, 88, 58, 0.15);

  /* Shadows */
  --shadow: 0 4px 20px rgba(60, 42, 27, 0.06);
  --shadow-hover: 0 12px 36px rgba(60, 42, 27, 0.12);

  /* Layout & Geometry */
  --container: 1100px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brown-dark);
  font-weight: 800;
}
h1 {
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.25;
}
h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
p { margin-bottom: 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  display: inline-block;
  margin-bottom: 8px;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(60px, 8vw, 104px) 0;
}
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--brown-dark); color: var(--white); }

.section-heading {
  margin-bottom: 40px;
}
.section-heading.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 44px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--muted); font-size: 15px; }

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(251, 247, 239, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 1000;
  transition: var(--transition);
}

.site-header .brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: none !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brown-dark);
  font-weight: 700;
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.shop-trigger { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.dropdown-menu a:hover {
  background: var(--sand);
  color: var(--brown);
}

/* Header Actions Cluster (Currency, Cart, Mobile Toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-selector select {
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%3C3c2a1b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 7px 28px 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brown-dark);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.currency-selector select:hover {
  border-color: var(--brown);
  background-color: var(--sand);
}

/* Cart Pill */
.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-dark);
  background: var(--white);
  transition: var(--transition);
}

.cart-pill:hover {
  border-color: var(--brown);
  background: var(--sand);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.cart-symbol { font-size: 16px; }

/* Menu Toggle Button (Upper Right Side on Mobile) */
.menu-toggle {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-dark);
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--sand);
  border-color: var(--brown);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius-xl);
  padding: 11px 24px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
  box-shadow: 0 4px 14px rgba(117, 88, 58, 0.22);
}

.btn.primary:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  box-shadow: 0 8px 24px rgba(60, 42, 27, 0.28);
}

.btn.ghost {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-dark);
}

.btn.ghost:hover {
  background: var(--brown-dark);
  color: var(--white);
}

.btn.sm {
  min-height: 36px;
  height: 36px;
  padding: 6px 14px;
  font-size: 12px;
}

.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* --- Hero Section (Desktop Split) --- */
.hero-body { padding-top: 72px; }
.hero {
  padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-content h1 { max-width: 520px; }
.hero-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--white);
  background: var(--sand);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { opacity: 1; z-index: 2; }

.hero-slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(36, 26, 19, 0.4);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--white);
  width: 20px;
  border-radius: 4px;
}

/* --- Category Grid --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: var(--cat-bg);
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(36, 26, 19, 0.88) 0%, rgba(36, 26, 19, 0.25) 55%, transparent 100%);
  transition: opacity 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.cat-card-body {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.cat-card-body h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 6px;
}

.cat-card-body p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cat-link {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-block;
}

/* --- Product Cards & Vertical Alignment Perfection --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brown-soft);
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-image img.active { opacity: 1; }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brown-dark);
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px;
}

.product-card-top {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.product-card .tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.product-short {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-bottom {
  margin-top: auto;
}

.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.card-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-actions .btn {
  flex: 1 1 50%;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* --- Story Band --- */
.story-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.story-band-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 480px;
}

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

.story-band-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Values / Feature Cards --- */
.values-grid-new,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card,
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}

.value-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* --- Form Controls --- */
.form-input {
  width: 100%;
  padding: 11px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(117, 88, 58, 0.12);
}

/* --- Authentic Modeste Dark Espresso Footer --- */
.site-footer {
  background: #3c2a1b;
  color: #e5dacf;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}

.site-footer .footer-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) !important;
}

.footer-col p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #c4b5a5;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b49a76;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #e5dacf;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5dacf;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.footer-social-icons a:hover {
  background: #b49a76;
  color: #ffffff;
  border-color: #b49a76;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #a89887;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #a89887;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: #ffffff; }

/* Floating Anchors */
.back-top,
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(36, 26, 19, 0.2);
  transition: var(--transition);
}

.back-top {
  right: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brown-dark);
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-whatsapp {
  right: 80px;
  background: #25d366;
}

.back-top:hover { transform: translateY(-4px); background: var(--sand); }
.floating-whatsapp:hover { transform: translateY(-4px); }

/* ==========================================================================
   MODESTE CLOTHING - COMPREHENSIVE MULTI-SCREEN DESIGN SYSTEM (2026)
   DESKTOP (1024px+), TABLET (769px-1024px), MOBILE iOS & ANDROID (<=768px)
   ========================================================================== */

/* --- TABLET BREAKPOINT (769px - 1024px) --- */
@media screen and (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image-wrap { height: 380px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .story-band { grid-template-columns: 1fr; }
  .values-grid-new, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* --- MOBILE iOS & ANDROID BREAKPOINT (<=768px) --- */
@media screen and (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand img {
    height: 36px;
    width: auto;
  }

  /* Show toggle button on upper right corner on mobile */
  .menu-toggle {
    display: flex;
  }

  /* Hide desktop horizontal nav, show slide-down drawer when open */
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 8px;
    box-shadow: 0 12px 32px rgba(60, 42, 27, 0.12);
    z-index: 999;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--brown-dark);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  /* Mobile 2-column product grid (4 items total on homepage: 2x2 grid) */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-body {
    padding: 12px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .card-price {
    font-size: 15px;
  }

  .card-actions .btn {
    height: 36px;
    min-height: 36px;
    padding: 0 6px;
    font-size: 11px;
  }

  /* Responsive card stacks for mobile screens */
  .hero-grid,
  .story-band,
  .fabric-inner,
  .values-grid-new,
  .values-grid,
  .feature-grid,
  .cat-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .value-card,
  .feature-card,
  .cat-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --- COMPACT MOBILE FOOTER BREAKPOINT (<=600px) --- */
@media screen and (max-width: 600px) {
  .site-footer {
    padding: 36px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    margin-bottom: 24px;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col.footer-brand-col,
  .footer-col:first-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 8px;
  }

  .site-footer .footer-brand img {
    margin: 0 auto 10px;
    height: 44px;
  }

  .footer-col p {
    max-width: 100%;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .footer-social-icons {
    justify-content: center;
    margin-top: 12px;
  }

  .footer-col h4 {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .footer-col a {
    font-size: 12.5px;
    margin-bottom: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding-top: 18px;
    font-size: 11.5px;
  }

  .footer-legal {
    justify-content: center;
    gap: 14px;
  }
}


/* ==========================================================================
   MODESTE CLOTHING - COMPREHENSIVE MULTI-SCREEN DESIGN SYSTEM (2026)
   DESKTOP (1024px+), TABLET (769px-1024px), MOBILE iOS & ANDROID (<=768px)
   ========================================================================== */

/* Filter Chips Bar (Shop Page) */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filters button {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filters button:hover,
.filters button.active {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

/* Product Detail Layout (product.html) */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-main-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.thumb-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.thumb-btn {
  width: 72px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--sand);
}

.thumb-btn.active {
  border-color: var(--brown);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-title {
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.2;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--brown-dark);
}

.detail-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-spec-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.detail-spec-box h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin-bottom: 12px;
}

.detail-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}

.detail-tailoring-note {
  background: var(--sand);
  border-left: 4px solid var(--brown);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

/* Cart & Checkout Layout (cart.html & checkout.html) */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.cart-item-image {
  width: 90px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sand);
  flex-shrink: 0;
}

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

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-details h3 {
  font-size: 16px;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--brown-dark);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--cream);
  overflow: hidden;
}

.quantity-control button {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--brown-dark);
  font-weight: 700;
}

.quantity-control span {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line strong {
  font-size: 18px;
  color: var(--brown-dark);
  font-weight: 800;
}

/* Bundle Builder Page (bundle.html) */
.bundle-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.bundle-step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.bundle-item-card {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.bundle-item-card.active,
.bundle-item-card:hover {
  background: var(--white);
  border-color: var(--brown);
  box-shadow: var(--shadow-hover);
}

.bundle-item-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Blog Pages (blog.html & blog-*.html) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* Contact, FAQ, Size Guide, Tracker Pages */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info-card,
.size-calc-card,
.tracker-card,
.faq-accordion {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-item summary {
  font-weight: 700;
  font-size: 16px;
  color: var(--brown-dark);
  cursor: pointer;
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Responsive Media Queries for All Pages */
@media (max-width: 860px) {
  .cart-layout,
  .contact-grid,
  .product-detail-layout,
  .bundle-steps,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}


/* --- Interactive Stacking Feature Cards Effect --- */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 40px;
}

.feature-card {
  position: sticky;
  background: var(--white) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 32px clamp(24px, 4vw, 40px) !important;
  box-shadow: 0 12px 36px rgba(60, 42, 27, 0.09) !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

/* Stacking Sticky Tops */
.features-list .feature-card:nth-child(1) {
  top: 100px;
  z-index: 1;
}

.features-list .feature-card:nth-child(2) {
  top: 130px;
  z-index: 2;
}

.features-list .feature-card:nth-child(3) {
  top: 160px;
  z-index: 3;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 20px 48px rgba(60, 42, 27, 0.16) !important;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sand);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brown);
  flex-shrink: 0;
}

.feature-body {
  flex: 1;
}

.feature-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--brown-dark);
}

.feature-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-list {
    max-width: 100%;
    gap: 16px;
  }

  .feature-card {
    position: relative !important;
    top: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 24px !important;
    gap: 16px !important;
  }
}


/* --- Editorial Luxury Hero Enhancements --- */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15% !important; /* Prevents mannequin head / garment top cropping */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-highlight {
  color: var(--brown);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.hero-trust-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brown-dark);
  flex-wrap: wrap;
}

.hero-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sand);
  border: 1.5px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--radius-xl);
}

.hero-floating-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(60, 42, 27, 0.12);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
}

.hero-tag-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--brown-dark);
}


/* --- Sisterhood Feedback & Testimonials System --- */
.testimonial-container {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.testimonial-slide {
  height: 100%;
}

.testimonial-card {
  background: var(--white) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 32px 28px !important;
  box-shadow: 0 8px 24px rgba(60, 42, 27, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  transition: var(--transition) !important;
}

.testimonial-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(60, 42, 27, 0.12) !important;
  border-color: var(--brown-soft) !important;
}

.testimonial-quote {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  font-style: italic !important;
  margin-bottom: 24px !important;
  position: relative !important;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 48px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brown-soft);
  display: block;
  margin-bottom: -16px;
  opacity: 0.6;
}

.testimonial-author {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--line) !important;
  margin-top: auto !important;
}

.testimonial-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--sand) !important;
  border: 1.5px solid var(--line) !important;
  color: var(--brown-dark) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.testimonial-name {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--brown-dark) !important;
}

.testimonial-role {
  font-size: 12px !important;
  color: var(--muted) !important;
}

.testimonial-dots {
  display: none !important;
}

@media (max-width: 860px) {
  .testimonial-track {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}


/* --- Clean 3-Card Sisterhood Feedback Grid --- */
.testimonial-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
}

.testimonial-card {
  background: var(--white) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 32px 28px !important;
  box-shadow: 0 8px 24px rgba(60, 42, 27, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  transition: var(--transition) !important;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(60, 42, 27, 0.12) !important;
  border-color: var(--brown-soft) !important;
}

.testimonial-quote {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: var(--ink) !important;
  font-style: italic !important;
  margin-bottom: 20px !important;
}

.testimonial-author {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--line) !important;
  margin-top: auto !important;
}

.testimonial-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--sand) !important;
  border: 1.5px solid var(--line) !important;
  color: var(--brown-dark) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.testimonial-name {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--brown-dark) !important;
}

.testimonial-role {
  font-size: 12px !important;
  color: var(--muted) !important;
}

@media (max-width: 860px) {
  .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}


/* ==========================================================================
   MODESTE CLOTHING - COMPREHENSIVE MULTI-SCREEN DESIGN SYSTEM (2026)
   DESKTOP (1024px+), TABLET (769px-1024px), MOBILE iOS & ANDROID (<=768px)
   ========================================================================== */
.admin-login-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--cream);
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--white) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 36px 32px !important;
  box-shadow: 0 12px 36px rgba(60, 42, 27, 0.1) !important;
}

.admin-login-card h2 {
  font-size: 24px !important;
  margin-bottom: 8px !important;
  color: var(--brown-dark) !important;
}

.admin-login-card p {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin-bottom: 24px !important;
  line-height: 1.5 !important;
}

.admin-dashboard-view {
  padding: 40px var(--gutter) !important;
  max-width: var(--container) !important;
  margin: 0 auto !important;
}

.admin-dashboard-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  margin-bottom: 32px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid var(--line) !important;
}

.admin-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 36px !important;
}

.admin-stat-card {
  background: var(--white) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  padding: 24px !important;
  box-shadow: var(--shadow) !important;
}

.admin-stat-card h3 {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--muted) !important;
  margin-bottom: 8px !important;
}

.admin-stat-card p {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--brown-dark) !important;
}

.admin-table-wrap {
  background: var(--white) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  overflow-x: auto !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 36px !important;
}

.admin-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13.5px !important;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--line) !important;
}

.admin-table th {
  font-weight: 800 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--brown) !important;
  background: var(--sand) !important;
}

.admin-table tr:hover {
  background: var(--cream) !important;
}