/* ==========================================================================
   MSM TRADERS LLC - High-Contrast Editorial E-Commerce Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Young+Serif&display=swap');

:root {
  /* Locked High-Contrast Color Variables */
  --ink: #221924;
  --body: #3D3340;
  --accent: #9E2A5B;
  --accent-hover: #7D1F47;
  --support: #FBF2F6;
  --bg-white: #FFFFFF;
  --bg-alabaster: #FAF7F5;
  --border: #E2D7DC;
  --dark-bg: #221924;
  --dark-text: #F2EBF0;

  /* Additional layout tokens */
  --font-heading: 'Young Serif', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 12px;
  --radius-btn: 6px;
  --radius-pill: 999px;
  --header-height: 80px;
  --container-max: 1160px;
  --shadow-sm: 0 2px 8px rgba(34, 25, 36, 0.04);
  --shadow-md: 0 6px 20px rgba(34, 25, 36, 0.08);
  --shadow-lg: 0 12px 32px rgba(34, 25, 36, 0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Base Reset & Crisp Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background-color: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Utility Eyebrow Pill Tag */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--support);
  color: var(--accent);
  border: 1px solid #E8CBD8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.eyebrow-pill.dark-mode {
  background-color: rgba(251, 242, 246, 0.12);
  color: #F8D5E3;
  border-color: rgba(232, 203, 216, 0.3);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Clear Section Separation */
.section-white {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.section-alabaster {
  background-color: var(--bg-alabaster);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

/* Prevent double borders when consecutive */
.section-alabaster + .section-white,
.section-white + .section-alabaster,
.section-alabaster + .section-alabaster,
.section-white + .section-white {
  border-top: none;
}

@media (max-width: 768px) {
  .section-white,
  .section-alabaster {
    padding: 48px 0;
  }
}

/* Sticky Header and Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-logo .logo-main {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-logo .logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  color: var(--ink);
  position: relative;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.action-btn:hover {
  background-color: var(--support);
  color: var(--accent);
}

.cart-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  }

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

  .nav-link {
    font-size: 17px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #F0E8EC;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

/* Interior Page Header - Crucial Rule: padding-top: 96px to prevent clipping */
.page-header {
  padding-top: 100px;
  padding-bottom: 50px;
  background-color: var(--bg-alabaster);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header .container {
  max-width: 820px;
}

.page-header h1 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.page-header p.subtitle {
  font-size: 18px;
  color: var(--body);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-white-outline {
  background-color: transparent;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
}

.btn-white-outline:hover {
  background-color: #FFFFFF;
  color: var(--ink);
}

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

.btn-block {
  width: 100%;
}

/* Hero Section (index.html) */
.hero-editorial {
  position: relative;
  min-height: 580px;
  padding-top: 100px; /* Generous padding-top to prevent sticky header clipping */
  padding-bottom: 88px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-vanity.jpg');
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Dark Plum Scrim Overlay */
.hero-editorial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(34, 25, 36, 0.92) 0%, rgba(34, 25, 36, 0.65) 55%, rgba(34, 25, 36, 0.25) 100%);
  z-index: 1;
}

.hero-editorial .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-content h1 {
  color: #FFFFFF;
  margin-top: 12px;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero-content p.hero-lead {
  color: var(--dark-text);
  font-size: 18.5px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-editorial {
    padding-top: 96px;
    padding-bottom: 60px;
    min-height: auto;
    background-position: 70% center;
  }

  .hero-editorial::before {
    background: linear-gradient(180deg, rgba(34, 25, 36, 0.94) 0%, rgba(34, 25, 36, 0.85) 100%);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* Stat Ribbon (#FFFFFF band) */
.stat-ribbon {
  padding: 44px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 2px solid var(--support);
}

.stat-item .stat-metric {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-item .stat-caption {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

@media (max-width: 991px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }
}

@media (max-width: 540px) {
  .stat-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}

/* Balanced 5-Product Grid (6-column desktop layout) */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-header h2 {
  margin-top: 8px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--body);
}

.product-grid-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Desktop: First 2 items span 3 columns each (2-up), next 3 span 2 columns each (3-up) */
@media (min-width: 992px) {
  .product-grid-5 .product-card:nth-child(1),
  .product-grid-5 .product-card:nth-child(2) {
    grid-column: span 3;
  }

  .product-grid-5 .product-card:nth-child(3),
  .product-grid-5 .product-card:nth-child(4),
  .product-grid-5 .product-card:nth-child(5) {
    grid-column: span 2;
  }
}

/* Tablet (768px - 991px): 2 columns, with 5th item spanning full 2 cols as horizontal card */
@media (min-width: 768px) and (max-width: 991px) {
  .product-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid-5 .product-card:nth-child(5) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: stretch;
  }

  .product-grid-5 .product-card:nth-child(5) .product-image-container {
    height: 100%;
    min-height: 260px;
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .product-grid-5 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Product Card Styling */
.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

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

.product-image-container {
  background-color: #F6F3F5;
  padding: 18px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-container img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image-container img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

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

.product-category-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-summary {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

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

/* Bento Grid: Why Shop With Us (#FFFFFF band) */
.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.bento-spotlight {
  background-color: var(--support);
  border: 1px solid #E8CBD8;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-spotlight .bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.bento-spotlight h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.bento-spotlight p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 24px;
}

.bento-right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-tile {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.bento-tile:hover {
  border-color: #D3C2CB;
  transform: translateY(-2px);
}

.bento-tile-icon {
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--support);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bento-tile-text h4 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--ink);
  margin-bottom: 6px;
}

.bento-tile-text p {
  font-size: 14.5px;
  color: var(--body);
  margin-bottom: 0;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* 3-Step Routine: Interactive Tabbed Panel (#FAF7F5 band) */
.routine-tabs-container {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.routine-tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-alabaster);
  overflow-x: auto;
}

.routine-tab-btn {
  flex: 1;
  min-width: 200px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.routine-tab-btn:last-child {
  border-right: none;
}

.routine-tab-btn .step-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.routine-tab-btn .step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--ink);
}

.routine-tab-btn.active {
  background-color: var(--bg-white);
  border-bottom: 3px solid var(--accent);
}

.routine-content-pane {
  padding: 40px;
  display: none;
}

.routine-content-pane.active {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.routine-pane-text h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.routine-pane-text p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 20px;
}

.routine-featured-product {
  background-color: var(--bg-alabaster);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.routine-prod-img {
  width: 90px;
  height: 90px;
  background-color: #F6F3F5;
  border-radius: 8px;
  padding: 8px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .routine-content-pane.active {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

/* FAQ Accordion (#FFFFFF band) */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-card.open {
  border-color: #CBB6C2;
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
}

.faq-trigger h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0;
}

.faq-trigger-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--support);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-card.open .faq-trigger-icon {
  transform: rotate(45deg);
  background-color: var(--accent);
  color: #FFFFFF;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 24px;
}

.faq-card.open .faq-body {
  max-height: 400px;
  padding: 0 24px 22px 24px;
}

.faq-body p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
}

/* Split Dark CTA Card (#221924 inside #FAF7F5 band) */
.cta-split-card {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  border-radius: var(--radius-card);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.cta-split-card h2 {
  color: #FFFFFF;
  margin-top: 8px;
  margin-bottom: 14px;
}

.cta-split-card p {
  color: var(--dark-text);
  font-size: 16.5px;
  line-height: 1.6;
}

.cta-actions-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 28px;
}

.cta-email-support {
  font-size: 14px;
  color: #D8CBD4;
}

.cta-email-support a {
  color: #FFFFFF;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .cta-split-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 28px;
  }
}

/* Shop Controls & Filters (shop.html) */
.shop-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.category-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.shop-search-sort {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-grow: 1;
  max-width: 480px;
  justify-content: flex-end;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper input {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px 8px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background-color: var(--bg-white);
  color: var(--ink);
  outline: none;
  font-size: 14px;
}

.search-input-wrapper input:focus {
  border-color: var(--accent);
}

.search-icon-inside {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8C7C88;
  pointer-events: none;
}

.sort-select {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background-color: var(--bg-white);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .shop-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .shop-search-sort {
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Contact Us Layout (contact.html) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contact-form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  color: var(--ink);
  background-color: #FFFFFF;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(158, 42, 91, 0.12);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.business-card {
  background-color: var(--support);
  border: 1px solid #E8CBD8;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.biz-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.biz-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.biz-text h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.biz-text p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal & Policy Single Column (max-width: 780px) */
.legal-content-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: 44px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.legal-content-wrapper h2 {
  font-size: 1.6rem;
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-content-wrapper h2:first-child {
  margin-top: 0;
}

.legal-content-wrapper p,
.legal-content-wrapper li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}

.legal-content-wrapper ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content-wrapper li {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .legal-content-wrapper {
    padding: 28px 18px;
  }
}

/* Global Footer (#221924) */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 72px 0 32px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-brand .logo-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #FFFFFF;
}

.footer-brand .logo-sub {
  font-size: 11px;
  font-weight: 600;
  color: #F8D5E3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--dark-text);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--dark-text);
  font-size: 14.5px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.business-address-block {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--dark-text);
}

.business-address-block strong {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 13.5px;
  color: #A898A4;
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge-pill {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.03em;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modals & Slide-out Drawers */

/* Quick View Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 25, 36, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--support);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--accent);
  color: #FFFFFF;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 32px;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-main-image {
  background-color: #F6F3F5;
  border-radius: 8px;
  padding: 20px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-image img {
  max-height: 100%;
  object-fit: contain;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  background-color: #F6F3F5;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-thumb.active {
  border-color: var(--accent);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-details h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-details .modal-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--border);
}

.modal-specs-table th {
  text-align: left;
  padding: 6px 0;
  color: #6C5E68;
  width: 38%;
  font-weight: 500;
}

.modal-specs-table td {
  padding: 6px 0;
  color: var(--ink);
  font-weight: 600;
}

.modal-bullets-list {
  padding-left: 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--body);
}

.modal-bullets-list li {
  margin-bottom: 8px;
}

.modal-qty-add {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background-color: #FFFFFF;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 38px;
  height: 44px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

@media (max-width: 768px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }

  .modal-main-image {
    height: 240px;
  }
}

/* Slide-out Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 25, 36, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-drawer-backdrop.is-open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.cart-shipping-notice {
  background-color: var(--support);
  padding: 10px 20px;
  border-bottom: 1px solid #E8CBD8;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  background-color: #F6F3F5;
  border-radius: 6px;
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: #8C7C88;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
}

.cart-remove-btn:hover {
  color: var(--accent);
}

.cart-empty-message {
  text-align: center;
  padding: 48px 20px;
  color: #6C5E68;
}

.cart-empty-message svg {
  margin: 0 auto 16px auto;
  color: #CBB6C2;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-alabaster);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--dark-bg);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification .toast-badge {
  background-color: var(--accent);
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
