/* ==========================================================================
   Senise Hair Pro — Luxury Editorial Design System
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
  --bg-ivory: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-cream: #F5F5F5;
  --text-charcoal: #0A0A0A;
  --text-muted: #555555;
  --border-muted: #E5E5E5;
  --accent-gold: #C5A059;
  --accent-gold-dark: #A68238;
  --accent-sage: #C5A059;
  --badge-bestseller: #0A0A0A;
  --badge-new: #C5A059;
  --badge-sale: #0A0A0A;
  --badge-pro: #C5A059;

  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(24, 24, 24, 0.04);
  --shadow-md: 0 10px 30px rgba(24, 24, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(24, 24, 24, 0.14);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1320px;
}

*, *::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(--bg-ivory);
  color: var(--text-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 0.5rem;
  display: block;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background-color: var(--text-charcoal);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--accent-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-white);
}

.btn-gold:hover {
  background-color: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-charcoal);
  color: var(--text-charcoal);
}

.btn-outline:hover {
  background-color: var(--text-charcoal);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.8rem;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--text-charcoal);
  color: var(--bg-ivory);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  flex-wrap: wrap;
}

.announcement-bar a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 600;
}

/* Sticky Header */
#site-header-root {
  position: sticky;
  top: 0;
  z-index: 900;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
  padding-bottom: 5px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-charcoal);
  padding: 0.5rem 0;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-charcoal);
  padding: 0.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color var(--transition);
}

.icon-btn:hover {
  background-color: var(--bg-cream);
}

.cart-pill {
  position: absolute;
  top: -2px;
  right: -4px;
  background-color: var(--accent-sage);
  color: var(--bg-white);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

/* 5-Column Mega Menu */
.mega-menu-wrapper {
  position: relative;
}

.mega-menu {
  position: fixed;
  top: 108px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1240px, 95vw);
  background: var(--bg-white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 950;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

.mega-tab {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.mega-tab.active {
  background-color: var(--text-charcoal);
  color: var(--bg-white);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.25fr;
  gap: 1.75rem;
}

.mega-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 0.85rem;
}

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mega-col a {
  font-size: 0.875rem;
  color: var(--text-charcoal);
  transition: color var(--transition);
}

.mega-col a:hover {
  color: var(--accent-sage);
  text-decoration: underline;
}

.mega-bestseller-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mega-bestseller-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.mega-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-white);
}

.badge-bestseller { background-color: var(--badge-bestseller); }
.badge-new { background-color: var(--badge-new); }
.badge-sale { background-color: var(--badge-sale); }
.badge-pro { background-color: var(--badge-pro); }

/* Product Cards — 3-Column Editorial Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #F9F6EF;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-card-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-charcoal);
}

.product-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
}

.price-current {
  font-weight: 700;
  font-size: 1.05rem;
}

.price-compare {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #181818 0%, #26221E 100%);
  color: var(--bg-ivory);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #D5CEC2;
  max-width: 520px;
  margin: 1.25rem 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(184, 154, 90, 0.35);
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Category Tiles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-tile {
  background: var(--bg-white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* Trust Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

/* PDP Gallery & 2x Hover Zoom */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 100px;
}

.pdp-main-image-box {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-muted);
  overflow: hidden;
  cursor: zoom-in;
}

.pdp-main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}

.pdp-zoom-hint {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: rgba(24, 24, 24, 0.75);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.pdp-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pdp-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #fff;
  transition: all var(--transition);
}

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

.pdp-thumb.active {
  border: 1.5px solid #111;
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-white);
  color: var(--text-charcoal);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Cart Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.52);
  backdrop-filter: blur(3px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  background: var(--bg-white);
  z-index: 1250;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipping-meter {
  padding: 1rem 1.5rem;
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--border-muted);
  font-size: 0.85rem;
}

.meter-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border-muted);
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  background: var(--accent-sage);
  transition: width 0.35s ease;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-muted);
}

.drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-muted);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-stepper button {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: 600;
}

.qty-stepper span {
  padding: 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-ivory);
}

/* Forms & Cards */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Footer */
.site-footer {
  background: var(--text-charcoal);
  color: var(--bg-ivory);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #D5CEC2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #A69F95;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .pdp-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mega-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-muted);
    box-shadow: var(--shadow-md);
  }
  .main-nav.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

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