/* ========================================
   Product Stylesheet - Luxury Perfume Theme
   Brunello Cucinelli Inspired
   ======================================== */

/* ========================================
   1. IMPORTS & VARIABLES REFERENCE
   ======================================== */

:root {
  /* Reference: Custom properties are defined in variables.css */
  /* Fonts: --font-display, --font-body */
  /* Colors: --color-black-deep, --color-white, --color-gold, etc. */
  /* Spacing: --space-1 through --space-30 */
  /* Sizing: --text-xs through --text-4xl, radii, shadows, z-index, etc. */
}

/* ========================================
   2. CATALOG / PLP STYLES (Existing)
   ======================================== */

.catalog {
  display: grid;
  gap: var(--space-12);
  padding: var(--space-16);
}

.catalog-header {
  margin-bottom: var(--space-20);
}

.catalog-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
}

.catalog-subtitle {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .catalog-products {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ========================================
   3. PRODUCT CARD (PLP)
   ======================================== */

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--duration-transition) var(--ease-default);
  border: none;
  box-shadow: none;
  background: transparent;
}

.product-card:hover {
  box-shadow: none;
}

.product-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: var(--space-8);
  background-color: var(--color-bg-light);
  border-radius: var(--radius-card);
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-transition) var(--ease-default);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.product-card:hover .product-card-image {
  transform: scale(1.03);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.15);
  display: flex;
  align-items: flex-end;
  padding: var(--space-12);
  opacity: 0;
  transition: opacity var(--duration-transition) var(--ease-default);
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-family {
  font-size: var(--text-xs);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-medium);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.product-card-price-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-black-deep);
}

.product-card-installments {
  font-size: var(--text-xs);
  color: var(--color-secondary);
}

.product-card-add-to-cart {
  margin-top: auto;
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* BEM Product Card selectors — V5.1 Luxury Redesign */
.product-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: var(--space-1);
  background-color: var(--color-bg-light);
  border-radius: var(--radius-card);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.product-card:hover .product-card__image {
  transform: scale(1.03);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__body {
  padding: var(--space-1) 0 var(--space-2);
}

.product-card__family {
  font-size: 0.6875rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: 2px;
  display: block;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black-deep);
  margin-bottom: 4px;
  line-height: var(--leading-snug);
}

.product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.product-card__price {
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  color: var(--color-black-deep);
}

.product-card__installments {
  font-size: var(--text-xs);
  color: var(--color-secondary);
  margin-top: 2px;
}

/* "ADICIONAR" button — Full-width block, olive green brand color */
.product-card__add-btn {
  display: block;
  width: 100%;
  background: var(--color-primary, #403D2E);
  border: none;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: auto;
}

.product-card__add-btn:hover {
  background-color: var(--color-primary-hover, #33311F);
}

.product-card__add-btn svg {
  display: none;
}

/* Hide old icon-only and full-width buttons (backward compat) */
.product-card__add-icon,
.product-card__add-to-cart {
  display: none;
}

/* ── Product Card Responsive ── */
@media (max-width: 768px) {
  .product-card__title {
    font-size: 0.9375rem;
  }
  .product-card__price {
    font-size: 0.8125rem;
  }
  .product-card__add-btn {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
  .product-card__image-wrap {
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .product-card__family {
    font-size: 0.625rem;
  }
  .product-card__title {
    font-size: 0.875rem;
  }
  .product-card__price {
    font-size: 0.75rem;
  }
  .product-card__add-btn {
    padding: 10px 8px;
    font-size: 0.6875rem;
  }
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
}

/* Product badge */
.product-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  padding: var(--space-1) var(--space-2);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  border-radius: 2px;
  color: var(--color-white);
  background: var(--color-black-deep);
}

.product-badge--new {
  background: var(--color-black-deep);
}

.product-badge--bestseller {
  background: var(--color-gold);
}

.product-badge--sale {
  background: #c62828;
}

/* ========================================
   4. FILTERS / SIDEBAR
   ======================================== */

.filters {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-16);
}

.filter-group {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-black-deep);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-black-deep);
}

.filter-option label {
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
}

/* ========================================
   5. PDP LAYOUT (Product Detail Page)
   ======================================== */

.pdp {
  background: var(--color-white);
  min-height: 100vh;
}

.pdp__layout {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: var(--space-10);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

@media (max-width: 1024px) {
  .pdp__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-6);
    max-width: 100vw;
    overflow-x: hidden;
  }
  .pdp__gallery {
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .pdp__layout {
    gap: var(--space-6);
    padding: var(--space-4);
  }
}

/* ========================================
   6. PDP GALLERY
   ======================================== */

/* ── Desktop: Main Image + Thumbnails Gallery ── */

.pdp__gallery {
  position: relative;
}

.pdp-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
}

/* ── Thumbnails column ── */

.pdp-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 640px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.pdp-gallery__thumbs::-webkit-scrollbar {
  width: 3px;
}

.pdp-gallery__thumbs::-webkit-scrollbar-thumb {
  background: var(--color-border);
}

.pdp-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 90px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-light);
  padding: 0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.pdp-gallery__thumb:hover {
  opacity: 1;
}

.pdp-gallery__thumb.is-active {
  border-color: var(--color-primary);
  opacity: 1;
}

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Main image area ── */

.pdp-gallery__main {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--color-bg-light);
}

.pdp-gallery__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2/3;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.pdp-gallery__main:hover .pdp-gallery__img {
  transform: scale(1.03);
}

/* ── Video in main gallery ── */

.pdp-gallery__video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2/3;
  background: var(--color-black-deep);
}

.pdp-gallery__main:hover .pdp-gallery__video {
  /* No zoom effect for video — let it play naturally */
  transform: none;
}

/* Video thumbnail play icon overlay */
.pdp-gallery__thumb.is-video {
  position: relative;
}

.pdp-gallery__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  pointer-events: none;
  transition: background var(--duration-hover) var(--ease-default);
}

.pdp-gallery__thumb.is-video:hover .pdp-gallery__thumb-play {
  background: rgba(0, 0, 0, 0.2);
}

.pdp-gallery__thumb-video-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
  color: var(--color-secondary);
}

.pdp-gallery__counter {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: rgba(64, 61, 46, 0.75);
  color: var(--color-cream);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: var(--tracking-wide);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

/* Single image — no thumbs, full width */
.pdp-gallery:not(:has(.pdp-gallery__thumbs)) {
  grid-template-columns: 1fr;
}

/* Hide desktop gallery on mobile */
@media (max-width: 768px) {
  .pdp-gallery {
    display: none;
  }
}

/* ── Mobile: Swipe Carousel ── */

.pdp-gallery-mobile {
  display: none;
  position: relative;
}

@media (max-width: 768px) {
  .pdp-gallery-mobile {
    display: block;
  }
}

.pdp-gallery-mobile__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdp-gallery-mobile__track::-webkit-scrollbar {
  display: none;
}

.pdp-gallery-mobile__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  cursor: zoom-in;
}

.pdp-gallery-mobile__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2/3;
}

.pdp-gallery-mobile__video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2/3;
  background: var(--color-black-deep);
}

.pdp-gallery-mobile__img {
  max-width: 100%;
}

.pdp-gallery-mobile__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

.pdp-gallery-mobile__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition:
    background var(--duration-hover) var(--ease-default),
    transform var(--duration-hover) var(--ease-default);
}

.pdp-gallery-mobile__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ========================================
   7. LIGHTBOX
   ======================================== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  backdrop-filter: blur(4px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-card);
}

.lightbox-video {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-card);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
  color: var(--color-black-deep);
  font-size: 24px;
  font-weight: var(--weight-bold);
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
  color: var(--color-black-deep);
  font-size: 20px;
  font-weight: var(--weight-bold);
}

.lightbox-prev {
  left: var(--space-16);
}

.lightbox-next {
  right: var(--space-16);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ── Lightbox Mobile Adjustments ── */
@media (max-width: 768px) {
  .gallery-lightbox {
    z-index: 99999;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0;
  }

  .lightbox-video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0;
  }

  .lightbox-close {
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    z-index: 100000;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
  }

  .lightbox-prev {
    left: var(--space-2);
  }

  .lightbox-next {
    right: var(--space-2);
  }
}

/* ========================================
   8. PDP INFO PANEL (Sticky on Desktop)
   ======================================== */

.pdp__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 1025px) {
  .pdp__info {
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
    max-height: calc(100vh - var(--header-h) - var(--space-8));
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: var(--space-2);
  }
}

/* ========================================
   9. SKU & TITLE SECTION
   ======================================== */

.pdp__sku {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
}

.pdp__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
  .pdp__title {
    font-size: var(--text-3xl);
  }
}

.pdp__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-radius: 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  font-weight: var(--weight-semibold);
}

.badge--new {
  background-color: var(--color-primary);
  color: var(--color-cream);
}

.badge--bestseller {
  background-color: var(--color-accent);
}

/* ========================================
   10. PRICE SECTION
   ======================================== */

.pdp__price {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.price-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.price-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
}

.price-original {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: line-through;
  margin-left: var(--space-8);
}

/* ========================================
   11. INSTALLMENTS
   ======================================== */

.pdp__installments {
  padding: var(--space-3);
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  text-align: center;
  margin-top: var(--space-1);
}

.installments-label {
  display: block;
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
}

.installments-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
}

.free-shipping-note {
  padding: var(--space-8) var(--space-12);
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-btn);
  font-size: var(--text-xs);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ========================================
   12. META TAGS (Concentration, Gender)
   ======================================== */

.pdp__meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.meta-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-cream);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-btn);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  transition: all var(--duration-transition) var(--ease-default);
}

.meta-tag:hover {
  background-color: var(--color-accent);
}

/* ========================================
   13. STOCK STATUS
   ======================================== */

.pdp__stock {
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-btn);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  display: inline-block;
}

.pdp__stock.in-stock {
  background: rgba(76, 175, 80, 0.1);
  color: #2E7D32;
  border: 1px solid #4CAF50;
}

.pdp__stock.low-stock {
  background: rgba(255, 152, 0, 0.1);
  color: #E65100;
  border: 1px solid #FF9800;
}

.pdp__stock.out-of-stock {
  background: rgba(244, 67, 54, 0.1);
  color: #C62828;
  border: 1px solid #F44336;
}

/* ========================================
   14. VARIATIONS / SCENT SELECTION
   ======================================== */

.pdp__variations {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-3);
}

.pdp__variations-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-black-deep);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.pdp__variations-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.variation-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-secondary);
  font-weight: var(--weight-medium);
}

.variation-btn:hover {
  border-color: var(--color-black-deep);
}

.variation-btn.active {
  border-color: var(--color-black-deep);
  border-width: 2px;
  background: var(--color-bg-light);
  font-weight: var(--weight-bold);
}

/* Color variant button */
.variation-btn--color {
  border-radius: 50%;
}

/* ========================================
   15. QUANTITY SELECTOR
   ======================================== */

.pdp__quantity {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.pdp__quantity-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-black-deep);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: 28px;
  width: fit-content;
  overflow: hidden;
  background: var(--color-white);
}

.qty-selector__btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-secondary);
  border-radius: 50%;
  margin: 2px;
}

.qty-selector__btn:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.qty-selector__input {
  width: 44px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--text-base);
  padding: 8px 0;
  font-weight: var(--weight-medium);
  -moz-appearance: textfield;
}

.qty-selector__input::-webkit-outer-spin-button,
.qty-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ========================================
   16. ADD TO CART BUTTON
   ======================================== */

.pdp__add-to-cart {
  width: 100%;
  height: 56px;
  padding: 0;
  margin-top: var(--space-4);
  background: var(--color-black-deep);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.pdp__add-to-cart:hover {
  background: var(--color-secondary);
  transform: translateY(-1px);
}

.pdp__add-to-cart:active {
  transform: translateY(0);
}

.pdp__add-to-cart:disabled {
  background: var(--color-muted);
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   17. WISHLIST & SHARE
   ======================================== */

.pdp__actions {
  display: flex;
  gap: var(--space-12);
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
}

.action-btn {
  flex: 1;
  height: 48px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: all var(--duration-transition) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.action-btn:hover {
  border-color: var(--color-black-deep);
  color: var(--color-black-deep);
}

.action-btn.active {
  background: var(--color-black-deep);
  color: var(--color-white);
  border-color: var(--color-black-deep);
}

/* ========================================
   18. SCENT NOTES
   ======================================== */

/* Wrapper from template: .scent-notes */
.scent-notes,
.pdp__scent-notes {
  padding: var(--space-6);
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  margin-top: var(--space-4);
}

.scent-notes__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
  margin-bottom: var(--space-4);
}

.scent-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .scent-notes__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

.scent-notes__group {
  text-align: center;
  padding: var(--space-3);
  border-right: 1px solid var(--color-border);
}

.scent-notes__group:last-child {
  border-right: none;
}

@media (max-width: 640px) {
  .scent-notes__group {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-3);
  }
  .scent-notes__group:last-child {
    border-bottom: none;
  }
}

.scent-notes__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-black-deep);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.scent-notes__sublabel {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.scent-notes__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scent-notes__list li {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
  line-height: var(--leading-relaxed);
}

/* ========================================
   19. INTENSITY METER
   ======================================== */

.pdp__intensity {
  padding: var(--space-4);
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  margin-top: var(--space-3);
}

/* Intensity meter — template uses BEM: .intensity-meter__* */
.intensity-meter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.intensity-meter__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-black-deep);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  width: 100%;
  margin-bottom: var(--space-1);
}

.intensity-meter__bars {
  display: flex;
  gap: 3px;
  align-items: center;
  flex: 1;
}

.intensity-meter__bar {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  transition: all var(--duration-transition) var(--ease-default);
}

.intensity-meter__bar.active {
  background: var(--color-black-deep);
}

.intensity-meter__value {
  font-size: var(--text-xs);
  color: var(--color-secondary);
  min-width: 80px;
  text-align: right;
  font-weight: var(--weight-medium);
}

/* ========================================
   20. ACCORDION / DETAILS SECTION
   ======================================== */

.pdp__accordion {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}

/* Accordion uses native <details>/<summary> elements */
.accordion {
  border-bottom: 1px solid var(--color-border);
}

.accordion__header {
  padding: var(--space-4) 0;
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-transition) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none; /* remove default marker */
}

.accordion__header::-webkit-details-marker {
  display: none;
}

.accordion__header::marker {
  display: none;
  content: '';
}

.accordion__header:hover {
  color: var(--color-secondary);
}

.accordion__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-black-deep);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin: 0;
  flex: 1;
}

.accordion__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-transition) var(--ease-default);
  font-size: 16px;
  color: var(--color-secondary);
}

/* Rotate icon when details is open */
details.accordion[open] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__body {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--color-secondary);
  line-height: var(--leading-relaxed);
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.accordion__body p {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

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

/* Styled description intro paragraphs */
.accordion__body .mdmor-desc-intro {
  font-size: 1.05em;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 1em;
}

.accordion__body strong {
  color: var(--color-black-deep);
  font-weight: var(--weight-semibold);
}

.accordion__body em {
  font-style: italic;
}

/* ── Shipping Note ─────────────────────────────────────── */
.pdp__shipping-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.pdp__shipping-note svg {
  flex-shrink: 0;
  color: var(--color-muted);
}

/* ── Purchase Benefits ─────────────────────────────────── */
.pdp__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pdp__benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-secondary);
}

.pdp__benefit svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ── Need Help Section ─────────────────────────────────── */
.pdp__help {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.pdp__help-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.pdp__help-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-black-deep);
  text-decoration: none;
  transition: color var(--duration-hover) var(--ease-default);
}

.pdp__help-link:hover {
  color: var(--color-accent);
}

.pdp__help-link svg {
  flex-shrink: 0;
}

/* ── Gallery Placeholder ───────────────────────────────── */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--color-bg-light);
  color: var(--color-muted);
  border-radius: var(--radius-card);
}

.gallery-placeholder p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ========================================
   21. RELATED PRODUCTS SECTION
   ======================================== */

.pdp__related {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.related-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--color-black-deep);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-16);
  text-transform: uppercase;
}

.related-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .related-products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }
}

/* ========================================
   22. HERO SECTION (Keep Existing)
   ======================================== */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black-deep);
}

/* Background image — absolute, covers entire hero */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Semi-transparent overlay for text readability */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}

/* Content container — centered above image */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 650px;
  padding: var(--space-8);
}

/* BEM title/subtitle (used by front-page.php template) */
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  color: var(--color-white);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: inline-flex;
}

/* Legacy classes (backwards compat) */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 600px;
  padding: var(--space-20);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-16);
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-20);
}

/* ========================================
   23. COLLECTION / SCENT FAMILIES
   ======================================== */

.collection {
  padding: var(--space-20);
  margin: var(--space-20) 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

@media (max-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.collection-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  cursor: pointer;
}

.collection-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.collection-card:hover .collection-card-image {
  transform: scale(1.08);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(64, 61, 46, 0.4);
  transition: background-color 0.3s var(--ease-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-transition) var(--ease-default);
}

.collection-card:hover .collection-card-overlay {
  opacity: 1;
  background-color: rgba(64, 61, 46, 0.7);
}

.collection-card-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ========================================
   24. HOMEPAGE SECTIONS (Keep Existing)
   ======================================== */

.section {
  padding: var(--space-20);
  background: var(--color-white);
}

.section.dark {
  background: var(--color-black-deep);
  color: var(--color-white);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  text-align: center;
  margin-bottom: var(--space-20);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.section-subtitle {
  text-align: center;
  color: var(--color-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-20);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ========================================
   25. UTILITY & RESPONSIVE CLASSES
   ======================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-16);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-12);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ========================================
   26. BUTTONS (Global)
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-16);
  border: none;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
  text-decoration: none;
  gap: var(--space-8);
}

.btn--primary {
  background: var(--color-black-deep);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-black-deep);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-black-deep);
  background: var(--color-bg-light);
}

.btn--full {
  width: 100%;
}

.btn--large {
  padding: var(--space-14) var(--space-20);
  font-size: var(--text-base);
}

.btn--small {
  padding: var(--space-6) var(--space-12);
  font-size: var(--text-xs);
}

/* ========================================
   27. SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* ========================================
   28. ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--duration-transition) var(--ease-default);
}

.slide-in-up {
  animation: slideInUp var(--duration-transition) var(--ease-default);
}

.slide-in-down {
  animation: slideInDown var(--duration-transition) var(--ease-default);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.breadcrumbs__link {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--duration-hover) var(--ease-default);
}

.breadcrumbs__link:hover {
  color: var(--color-primary);
}

.breadcrumbs__sep {
  margin: 0 var(--space-2);
  color: var(--color-accent);
}

.breadcrumbs__item--current {
  color: var(--color-primary);
  font-weight: var(--weight-medium);
}

/* ========================================
   PLP — Product Listing Page
   ======================================== */

.plp {
  padding-top: var(--space-4);
  padding-bottom: var(--space-16);
}

.plp__header {
  margin-bottom: var(--space-8);
}

.plp__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--weight-regular);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

.plp__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.plp__count {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.plp__sort-select {
  font-size: 0.875rem;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
}

/* PLP Layout: full-width grid, sidebar is now a collapsible drawer */
.plp__layout {
  display: block;
}

.plp__sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-white, #fff);
  z-index: var(--z-drawer, 300);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--duration-drawer, 260ms) var(--ease-out, ease-out), visibility 0s linear var(--duration-drawer, 260ms);
  overflow-y: auto;
  padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.15));
}

.plp__sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--duration-drawer, 260ms) var(--ease-out, ease-out), visibility 0s linear;
}

.plp__filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-drawer) var(--ease-default), visibility 0s linear var(--duration-drawer);
}

.plp__filter-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration-drawer) var(--ease-default), visibility 0s linear;
}

.plp__grid-wrapper {
  min-width: 0;
  width: 100%;
}

/* Filter toggle button */
.plp__filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary);
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
}

.plp__filter-toggle:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-cream);
}

.plp__filter-toggle svg {
  width: 16px;
  height: 16px;
}

/* Close button inside filter drawer */
.plp__filter-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: opacity var(--duration-hover) var(--ease-default);
}

.plp__filter-close:hover {
  opacity: 0.6;
}

/* ========================================
   Product Filters Sidebar
   ======================================== */

.product-filters__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-regular);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.filter-group {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-group__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--color-black-deep);
}

.filter-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.filter-link:hover {
  color: var(--color-black-deep);
}

.filter-link.active {
  color: var(--color-black-deep);
  font-weight: var(--weight-medium);
}

.filter-count {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-left: var(--space-1);
}

/* Price filter */
.price-filter__inputs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.price-filter__input {
  flex: 1;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
  -moz-appearance: textfield;
}

.price-filter__input::-webkit-outer-spin-button,
.price-filter__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-filter__sep {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* PLP Empty State */
.plp__empty {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.plp__empty p {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

/* ================================================================
   V5 — PRICE UNDERLINE FIX (global reset)
   ================================================================ */

.price,
.price a,
.price span,
.price ins,
.price__current,
.product-card__price,
.product-card__price span,
.product-card__installments,
.pdp__price,
.pdp__price span,
.pdp__installments,
.installments,
.cart-item-price,
[class*="price"]:not(a):not(button) {
  text-decoration: none !important;
}

/* Only allowed: line-through on original/compare prices */
.price__compare,
.price del,
del.price,
.product-card__price--original,
.price--original,
.price-original {
  text-decoration: line-through !important;
  text-decoration-color: var(--color-muted) !important;
}

/* ================================================================
   V5 — PDP REDESIGN (Z02: price/title, Z03: panel, Z04: CTA, Z06: benefits)
   ================================================================ */

/* Z02: Title — larger, more elegant */
.pdp__title {
  font-size: var(--product-title-size, 36px);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-4);
}

/* Z02: SKU — refined */
.pdp__sku {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
}

/* Z02: Price — larger and cleaner */
.pdp__price .price__current {
  font-size: var(--product-price-size, 22px);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.pdp__price .price__compare {
  font-size: 18px;
  color: var(--color-muted);
  font-weight: var(--weight-regular);
}

/* Z03: Info panel — more breathing room, subtle scrollbar */
@media (min-width: 1025px) {
  .pdp__info {
    padding: var(--space-10) var(--product-panel-padding, 60px);
  }

  .pdp__info::-webkit-scrollbar {
    width: 4px;
  }

  .pdp__info::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
  }
}

/* Z04: CTA button — Brunello Cucinelli style */
.pdp__add-to-cart {
  height: var(--product-btn-height, 52px);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--product-btn-letter-spacing, 3px);
  background: var(--color-primary);
  transition: opacity 0.3s ease, background 0.3s ease;
}

.pdp__add-to-cart:hover {
  opacity: 0.85;
  background: var(--color-primary-hover);
  transform: none;
}

/* Z06: Benefits/trust badges — subtle inline row */
.pdp__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-5);
}

.pdp__benefit {
  font-size: 12px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pdp__benefit svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ================================================================
   V5 — SCENT NOTES PYRAMID (enhanced styling)
   ================================================================ */

.pdp__scent-notes .scent-notes {
  background: transparent;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}

.pdp__scent-notes .scent-notes__title {
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-6);
}

.pdp__scent-notes .scent-notes__group {
  padding: var(--space-4) var(--space-6);
  border-radius: 4px;
  border-right: none;
}

.pdp__scent-notes .scent-notes__group:nth-child(1) {
  background: rgba(64, 61, 46, 0.06);
}

.pdp__scent-notes .scent-notes__group:nth-child(2) {
  background: rgba(64, 61, 46, 0.12);
}

.pdp__scent-notes .scent-notes__group:nth-child(3) {
  background: rgba(64, 61, 46, 0.18);
}

/* ================================================================
   V5 — INTENSITY METER (enhanced styling)
   ================================================================ */

.pdp__intensity {
  background: transparent;
  padding: var(--space-4) 0;
}

.intensity-meter__bar.active {
  background: var(--color-primary);
}

.intensity-meter__bar {
  height: 8px;
  border-radius: 4px;
}

.intensity-meter__value {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

/* ================================================================
   RESPONSIVE — PRODUCT PAGES
   ================================================================ */

/* ── Tablet ── */
@media (max-width: 768px) {
  .pdp__layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .pdp__gallery {
    position: static;
  }

  .pdp__info {
    position: static;
    padding: 0 var(--space-4);
  }

  .pdp__title {
    font-size: var(--text-2xl);
  }

  .catalog-products {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ── Phone ── */
@media (max-width: 480px) {
  .pdp__title {
    font-size: var(--text-xl);
  }

  .pdp__price {
    font-size: var(--text-lg);
  }

  .pdp__meta-tags {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .meta-tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }

  .qty-selector__btn,
  .qty-selector__input {
    min-width: 44px;
    min-height: 44px;
  }

  .pdp__add-to-cart {
    min-height: 52px;
    font-size: var(--text-md);
  }

  .catalog-products {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .product-card__title {
    font-size: var(--text-sm);
    font-weight: 700;
  }

  .product-card__add-btn {
    min-height: 40px;
    font-size: 0.6875rem;
    padding: 10px 8px;
  }
}

/* ========================================
   BYNV-STYLE PDP — Transparent Header & Full-Width Gallery
   ======================================== */

/*
 * On single product pages, the header overlaps the gallery image
 * with a transparent background (BYNV.com.br reference).
 * WordPress adds body.single-mdmor_product automatically.
 */

/* ── Header: transparent on PDP ── */
body.single-mdmor_product .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Scrolled state: solid header (added via JS) */
body.single-mdmor_product .site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

/* Invert header elements to white when transparent (over product image) */
body.single-mdmor_product .site-header:not(.scrolled) .header-icon-btn,
body.single-mdmor_product .site-header:not(.scrolled) .site-logo {
  color: #fff;
}

/* Make logo image white when header is transparent (over product image) */
body.single-mdmor_product .site-header:not(.scrolled) .site-logo__img {
  filter: brightness(0) invert(1);
}

body.single-mdmor_product .site-header:not(.scrolled) .cart-count {
  background-color: #fff;
  color: var(--color-black-deep);
}

/* Hide desktop nav bar on PDP — BYNV doesn't show it */
body.single-mdmor_product .desktop-nav {
  display: none;
}

/* ── PDP container: pull under header ── */
body.single-mdmor_product .pdp {
  padding-top: 0;
}

body.single-mdmor_product .pdp > .breadcrumbs {
  padding-top: calc(var(--header-h) + var(--space-2));
}

/* ── Gallery: gradient overlay for header readability ── */
body.single-mdmor_product .pdp-gallery__main::before,
body.single-mdmor_product .pdp-gallery-mobile__slide:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

body.single-mdmor_product .pdp-gallery-mobile__slide:first-child {
  position: relative;
}

/* ── Mobile PDP: full-width, edge-to-edge gallery ── */
@media (max-width: 768px) {
  body.single-mdmor_product .site-header {
    height: var(--header-h-mobile);
  }

  /* Remove all container/layout padding for the gallery */
  body.single-mdmor_product .pdp.container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  body.single-mdmor_product .pdp__layout {
    padding: 0;
    gap: 0;
  }

  /* Gallery is full-width, no border-radius */
  body.single-mdmor_product .pdp-gallery-mobile {
    border-radius: 0;
  }

  body.single-mdmor_product .pdp-gallery-mobile__slide {
    border-radius: 0;
  }

  /* Hide breadcrumbs on mobile PDP — BYNV doesn't show them */
  body.single-mdmor_product .breadcrumbs {
    display: none;
  }

  /* Info section retains padding */
  body.single-mdmor_product .pdp__info {
    padding: var(--space-5) var(--space-4) var(--space-8);
  }

  /* Dots sit closer to image */
  body.single-mdmor_product .pdp-gallery-mobile__dots {
    padding: var(--space-2) 0;
  }
}

/* ── Desktop PDP: header overlaps gallery ── */
@media (min-width: 769px) {
  body.single-mdmor_product .pdp__layout {
    padding-top: 0;
  }

  body.single-mdmor_product .pdp__gallery {
    margin-top: calc(-1 * var(--header-h));
  }

  body.single-mdmor_product .pdp__info {
    padding-top: calc(var(--header-h) + var(--space-4));
  }
}

/* ========================================
   END OF STYLESHEET
   ======================================== */
