:root {
  /* Strict Ayubia Brand Palette */
  --bg-main: #FFFFFF;
  --bg-section: #F7F6F5;
  --text-main: #1F1F1F;
  --text-muted: #595959;
  --border-subtle: #E5E5E5;
  /* #5A220D used strictly for Logo, Buttons, and Links */
  --brand-accent: #5A220D;
  --brand-accent-hover: #471A0A;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1320px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--text-main);
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

a:hover {
  opacity: 0.82;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Buttons — #5A220D primary */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--brand-accent);
  color: #FFFFFF;
  border: 1px solid var(--brand-accent);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--brand-accent);
  border: 1px solid var(--brand-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--brand-accent);
  color: #FFFFFF;
  opacity: 1;
}

/* Announcement & Header */
.announcement-bar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  gap: 1rem;
}

.header-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 500;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--brand-accent);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0.35rem;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
}

.icon-btn:hover {
  color: var(--brand-accent);
}

.mobile-menu-btn {
  display: inline-flex;
}

@media (min-width: 960px) {
  .header-nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
  padding: 1.25rem;
}

.mobile-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer a {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Hero Banner — Guaranteed No Cut-Off Text on Desktop & Mobile */
.hero-section {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-section);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  min-height: 320px;
}

.hero-content {
  padding: 2.5rem 1.25rem;
  background: var(--bg-main);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 0 1.75rem 0;
}

@media (min-width: 960px) {
  .hero-section {
    position: relative;
  }
  .hero-grid {
    position: relative;
    min-height: 580px;
  }
  .hero-media {
    position: absolute;
    inset: 0;
  }
  .hero-media img {
    min-height: 580px;
  }
  .hero-content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4.5rem 2.5rem;
  }
  .hero-content {
    background: transparent;
    padding: 0;
    max-width: 540px;
  }
}

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

.section-alt {
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.filter-tabs {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: none;
  border: none;
  padding: 0.35rem 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.filter-tab.is-active,
.filter-tab:hover {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

/* Product Grid & Cards — Listing cards show ONLY current selling price */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

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

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-section);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.product-card-status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card-info {
  padding-top: 0.85rem;
}

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

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.product-card-price {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Collection Tiles */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.collection-tile {
  display: block;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.collection-tile-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.collection-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-tile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
}

.collection-tile-bar span {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-main);
}

/* Product Detail Page */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .pdp-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
  }
}

.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-main-img {
  aspect-ratio: 4 / 5;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

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

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pdp-thumb {
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-section);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  overflow: hidden;
}

.pdp-thumb.is-active {
  border-color: var(--brand-accent);
  border-width: 2px;
}

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

/* Product Page Exclusive Price Comparison & Discount Badge */
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.pdp-selling-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.pdp-original-price {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-discount-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #2E6B40;
  color: #2E6B40;
  background: #F4F9F5;
}

/* Fragrance Notes Pyramid Layout */
.fragrance-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
}

.fragrance-inspiration {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.note-group h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.note-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}

/* Recommended Products (Strictly 2) */
.recommended-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 780px;
}

/* Footer */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* =========================================================
   STAGE 3: EDITORIAL OVERLAP, COMPARISON SLIDER, FILTERS, SEO
   ========================================================= */

/* Overlapping Editorial Section (Section 3) */
.editorial-overlap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .editorial-overlap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.overlap-media {
  position: relative;
  padding-bottom: 14%;
  padding-right: 12%;
}

.overlap-primary {
  width: 82%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-section);
}

.overlap-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlap-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 6px solid var(--bg-main);
  outline: 1px solid var(--border-subtle);
  background: var(--bg-section);
}

.overlap-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Interactive Two-Image Comparison Slider (Desktop & Mobile) */
.compare-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .compare-section-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
  }
}

.compare-slider {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-section);
  user-select: none;
  touch-action: pan-y;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}

.compare-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  pointer-events: none;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--bg-main);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.compare-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare-label-left { left: 1rem; }
.compare-label-right { right: 1rem; }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 5;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  padding: 1.25rem;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.filter-field select,
.filter-field input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

/* Related Product Prev / Next Navigation */
.pdp-related-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

/* Floating WhatsApp Contact Button */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: var(--brand-accent);
  color: #FFFFFF;
  border: 1px solid var(--brand-accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.whatsapp-fab:hover {
  background: var(--brand-accent-hover);
  color: #FFFFFF;
  opacity: 1;
}
