/**
 * Components CSS
 * Enhanced luxury perfume e-commerce theme
 * Inspired by Brunello Cucinelli aesthetic
 */

/* ── Bianca Sans — Fonte de Marca ── */
@font-face {
  font-family: 'Bianca Sans';
  src: url('../fonts/BiancaSans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================================================
   MODERN RESET & BASE STYLES
   ======================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-black-deep);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-wide);
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-wide);
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wide);
}

h4 {
  font-size: var(--text-xl);
}

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

h6 {
  font-size: var(--text-base);
  text-transform: uppercase;
}

p {
  margin-bottom: var(--space-4);
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-transition) var(--ease-default);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-secondary);
  border-left: 4px solid var(--color-gold);
  padding: var(--space-6) var(--space-6);
  margin: var(--space-6) 0;
  background-color: var(--color-bg-light);
}

/* Override for dark-background quote boxes (e.g. Sobre Nós page) */
.sobre-quote-box blockquote {
  background-color: transparent;
  border-left: none;
  color: #fff;
  padding: 0;
  margin: 0;
}

/* ========================================================================
   LAYOUT & CONTAINER
   ======================================================================== */

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

.container--narrow {
  max-width: 900px;
}

.container--fluid {
  max-width: 100%;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

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

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--light {
  background-color: var(--color-bg-light);
}

.section__title {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  text-align: center;
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-muted);
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Hide header on scroll down (non-PDP pages) */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--duration-transition) var(--ease-default);
}

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

.logo-accent {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0;
  display: inline;
}

.site-logo__img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-logo__img {
    height: 26px;
  }
}

.header-nav {
  display: none;
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
    gap: var(--space-8);
  }
}

.header-nav a {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text);
  text-transform: uppercase;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  opacity: 0;
  transition: opacity var(--duration-transition) var(--ease-default);
}

.header-nav a:hover::after {
  opacity: 1;
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-full);
  transition:
    color var(--duration-hover) var(--ease-default),
    background-color var(--duration-hover) var(--ease-default);
}

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

.header-icon-btn:hover {
  color: var(--color-gold);
}

.header-icon-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.header-icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--color-black-deep);
  color: var(--color-white);
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

/* ========================================================================
   NAVIGATION DRAWER — Luxury Sidebar Menu
   ======================================================================== */

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-drawer) var(--ease-default),
              visibility var(--duration-drawer) var(--ease-default);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(400px, 85vw);
  height: 100vh;
  background-color: var(--color-white);
  z-index: calc(var(--z-overlay) + 1);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--duration-drawer) var(--ease-out);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.nav-drawer.active {
  transform: translateX(0);
}

/* Nav Drawer Header (BEM: nav-drawer__header, nav-drawer__title) */
.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-8) var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.nav-drawer__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-black-deep);
  text-transform: uppercase;
}

/* Nav Drawer Close button */
.nav-drawer .header-icon-btn {
  padding: var(--space-2);
}

/* WordPress wp_nav_menu output: .nav-drawer__menu > li.menu-item > a */
.nav-drawer__menu {
  list-style: none;
  margin: 0;
  padding: var(--space-6) 0;
}

.nav-drawer__menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer__menu > li {
  border-bottom: 1px solid var(--color-border);
}

.nav-drawer__menu > li:first-child {
  border-top: none;
}

.nav-drawer__menu > li > a {
  display: block;
  padding: var(--space-5) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: all var(--duration-transition) var(--ease-default);
  position: relative;
}

.nav-drawer__menu > li > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-gold);
  transform: scaleY(0);
  transition: transform var(--duration-transition) var(--ease-default);
}

.nav-drawer__menu > li > a:hover {
  color: var(--color-gold);
  padding-left: calc(var(--space-8) + 6px);
}

.nav-drawer__menu > li > a:hover::before {
  transform: scaleY(1);
}

.nav-drawer__menu > li.current-menu-item > a,
.nav-drawer__menu > li.current_page_item > a {
  color: var(--color-gold);
}

.nav-drawer__menu > li.current-menu-item > a::before,
.nav-drawer__menu > li.current_page_item > a::before {
  transform: scaleY(1);
}

/* Submenu items */
.nav-drawer__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-4) 0;
}

.nav-drawer__menu .sub-menu li a {
  display: block;
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-12);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  transition: color var(--duration-transition) var(--ease-default);
}

.nav-drawer__menu .sub-menu li a:hover {
  color: var(--color-gold);
}

/* Nav Drawer Footer — "Minha Conta" link */
.nav-drawer__footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.nav-drawer__account-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--duration-transition) var(--ease-default);
}

.nav-drawer__account-link:hover {
  color: var(--color-gold);
}

.nav-drawer__account-link svg {
  flex-shrink: 0;
}

/* Legacy nav classes (backwards compat) */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-8) var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.nav-drawer-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-black-deep);
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: var(--space-6) 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--space-5) var(--space-8);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--duration-transition) var(--ease-default);
}

.nav-link:hover {
  color: var(--color-gold);
  padding-left: calc(var(--space-8) + 6px);
}

.nav-section {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.nav-section-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  padding: 0 var(--space-8);
  font-weight: 600;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background-color: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    background-color var(--duration-hover) var(--ease-default),
    color var(--duration-hover) var(--ease-default),
    border-color var(--duration-hover) var(--ease-default),
    transform var(--duration-hover) var(--ease-default),
    box-shadow var(--duration-hover) var(--ease-default);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

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

.btn--sm {
  padding: 10px 20px;
  height: 40px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 18px 48px;
  height: 56px;
  font-size: var(--text-base);
}

.btn--primary,
.btn-primary {
  height: 52px;
  padding: 13px 40px;
  background-color: var(--color-primary);
  color: var(--color-cream);
  border: 1px solid var(--color-primary);
  letter-spacing: 0.16em;
  font-weight: 600;
}

.btn--primary:hover,
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-ivory);
  border-color: var(--color-primary-hover);
}

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

.btn--outline:hover {
  border-color: var(--color-text);
  background-color: var(--color-black-deep);
  color: var(--color-white);
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-black-deep);
  border-color: var(--color-gold);
  font-weight: 600;
}

.btn--gold:hover {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
}

.btn--gold-metallic {
  background: linear-gradient(135deg, #C9A96E 0%, #E8D5A3 40%, #C9A96E 60%, #A8893F 100%);
  color: var(--color-primary);
  border: 2px solid #C9A96E;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  animation: gold-shimmer 3s ease-in-out infinite;
}

.btn--gold-metallic:hover {
  background: linear-gradient(135deg, #A8893F 0%, #C9A96E 40%, #E8D5A3 60%, #C9A96E 100%);
  border-color: #A8893F;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.35);
  transform: translateY(-1px);
}

@keyframes gold-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.btn--block {
  display: block;
  width: 100%;
}

.btn svg {
  width: 20px;
  height: 20px;
  margin-right: var(--space-2);
}

.btn svg:last-child {
  margin-right: 0;
  margin-left: var(--space-2);
}

.btn-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn-group--centered {
  justify-content: center;
}

.btn-group--right {
  justify-content: flex-end;
}

/* Additional button classes from product-card.php */
.btn-sm {
  padding: 10px 20px;
  height: 40px;
  font-size: var(--text-xs);
}

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

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

/* ========================================================================
   FORMS
   ======================================================================== */

.form-group {
  margin-bottom: var(--space-6);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--duration-transition) var(--ease-default);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-input:disabled,
.form-textarea:disabled {
  background-color: var(--color-bg-light);
  color: var(--color-muted);
  cursor: not-allowed;
}

.form-input[type="search"]::placeholder {
  font-style: italic;
  font-weight: 300;
}

.form-select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230F0F0F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.form-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
  font-weight: 500;
}

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-2);
}

.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: var(--color-error);
}

/* ========================================================================
   PRODUCT CARDS
   ======================================================================== */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-white);
  transition: all var(--duration-transition) var(--ease-default);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: var(--shadow-card);
}

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

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.product-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 133%;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-transition) var(--ease-default);
}

.product-card__image-wrapper .product-card__image {
  position: absolute;
  top: 0;
  left: 0;
}

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

.product-card__badge,
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.product-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background-color: var(--color-gold);
  color: var(--color-black-deep);
  z-index: 10;
}

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

.product-card__wishlist {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
  z-index: 10;
}

.product-card__wishlist:hover {
  background-color: var(--color-white);
  transform: scale(1.1);
}

.product-card__wishlist svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
  transition: all var(--duration-transition) var(--ease-default);
}

.product-card__wishlist.active svg {
  color: var(--color-error);
  fill: var(--color-error);
}

.product-card__body {
  padding: var(--space-5) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__family,
.product-card__category {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-black-deep);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-card__description {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.product-card__price {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-black-deep);
  margin-bottom: var(--space-3);
  margin-top: auto;
}

.product-card__price--original,
.price--original {
  text-decoration: line-through;
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-right: var(--space-2);
}

.product-card__price--sale,
.price--current {
  color: var(--color-black-deep);
  font-weight: 500;
}

.product-card__installments {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.product-card__add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background-color: var(--color-black-deep);
  color: var(--color-white);
  border: 1px solid var(--color-black-deep);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-transition) var(--ease-default);
}

.product-card__add-to-cart:hover {
  background-color: #333;
  border-color: #333;
}

.product-card__actions {
  display: flex;
  gap: var(--space-3);
}

.product-card__actions .btn {
  flex: 1;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

/* ========================================================================
   GRID UTILITIES
   ======================================================================== */

.grid {
  display: grid;
  gap: var(--grid-gutter);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

.grid--6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
  .grid--6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ========================================================================
   COLLECTION & FAMILY CARDS
   ======================================================================== */

.collection-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--color-primary, #403D2E);
  text-decoration: none;
  display: block;
}

.collection-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-transition) var(--ease-default);
}

.collection-card:hover .collection-card__image {
  transform: scale(1.05);
}

.collection-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 11, 0.35);
  transition: background var(--duration-transition) var(--ease-default);
  padding: var(--space-6);
  text-align: center;
}

.collection-card:hover .collection-card__content {
  background: rgba(11, 11, 11, 0.55);
}

/* Cards without thumbnail image — darker fallback bg */
.collection-card--no-image .collection-card__content {
  background: rgba(64, 61, 46, 0.85);
}

.collection-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white, #fff);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.collection-card__description {
  color: var(--color-white, #fff);
  font-size: var(--text-sm);
  max-width: 250px;
}

/* Scent Family Cards — visual cards com foto (mesmo estilo colecoes) */
.scent-family-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--color-primary, #403D2E);
  text-decoration: none;
  display: block;
}

.scent-family-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-transition) var(--ease-default);
}

.scent-family-card:hover .scent-family-card__image {
  transform: scale(1.05);
}

.scent-family-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 11, 0.35);
  transition: background var(--duration-transition) var(--ease-default);
  padding: var(--space-6);
  text-align: center;
}

.scent-family-card:hover .scent-family-card__overlay {
  background: rgba(11, 11, 11, 0.55);
}

/* Cards without thumbnail — darker fallback */
.scent-family-card:not(:has(.scent-family-card__image)) .scent-family-card__overlay {
  background: rgba(64, 61, 46, 0.85);
}

.scent-family-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white, #fff);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.scent-family-card__desc {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  max-width: 250px;
  line-height: 1.5;
}

/* Legacy class support (backward compat) */
.scent-family-card__icon { display: none; }
.scent-family-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white, #fff);
  letter-spacing: var(--tracking-wide);
}
.scent-family-card__description {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  max-width: 250px;
}

/* ========================================================================
   MD'MOR ICON — Loading Screen
   ======================================================================== */
.mdmor-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-bg, #FAFAF5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.mdmor-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mdmor-loading__icon {
  width: 56px;
  height: 56px;
  animation: mdmor-spin-pause 2s ease-in-out infinite;
}

@keyframes mdmor-spin-pause {
  0% { opacity: 0.5; transform: rotate(0deg); }
  25% { opacity: 1; transform: rotate(360deg); }
  50% { opacity: 1; transform: rotate(360deg); }
  75% { opacity: 1; transform: rotate(720deg); }
  100% { opacity: 0.5; transform: rotate(720deg); }
}

/* ========================================================================
   MD'MOR ICON — Button Click Animation
   ======================================================================== */
.btn--animated {
  position: relative;
  overflow: hidden;
}

.btn--animated::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/martindmor-theme/assets/img/icone-mdmor.svg') center/40px no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.btn--animated:active::after {
  opacity: 0.2;
  transform: scale(1.5);
}

/* ========================================================================
   FOOTER — Icon centralizado antes do newsletter
   ======================================================================== */
.footer-icon-divider {
  text-align: center;
  padding: var(--space-8) 0 var(--space-4);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-icon-divider__img {
  width: 50px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: block;
  margin: 0 auto;
}

.footer-icon-divider__img:hover {
  opacity: 1;
}

/* Footer — link afiliados */
.footer-affiliate-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  opacity: 0.7;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.footer-affiliate-link:hover {
  opacity: 1;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: clamp(3rem, 8vw, 6rem) 0 var(--space-8);
  border-top: 1px solid var(--color-footer-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gutter);
  margin-bottom: var(--space-12);
}

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

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

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-6);
  color: var(--color-footer-text);
}

.footer-link {
  display: block;
  color: var(--color-footer-link);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  transition: color var(--duration-transition) var(--ease-default);
}

.footer-link:hover {
  color: var(--color-ivory);
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--color-footer-link);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo__img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ivory);
}

.footer-tagline {
  font-size: var(--text-xs);
  color: var(--color-footer-link);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-2);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-footer-link);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--color-footer-link);
  transition: color var(--duration-transition) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-footer-border);
}

.footer-social a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

/* ========================================================================
   PAGINATION
   ======================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  padding: var(--space-12) 0 var(--space-8);
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn, 4px);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  background: var(--color-white);
  transition: all var(--duration-transition) var(--ease-default);
  text-decoration: none;
  cursor: pointer;
}

.pagination .page-numbers li a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(180, 158, 107, 0.06);
}

/* Current page */
.pagination .page-numbers li span.current {
  background: var(--color-gold, #8B7355);
  border-color: var(--color-gold, #8B7355);
  color: var(--color-white);
  cursor: default;
}

/* Prev / Next arrows */
.pagination .page-numbers li .prev,
.pagination .page-numbers li .next {
  font-size: var(--text-lg);
  font-weight: 300;
}

/* Dots / ellipsis */
.pagination .page-numbers li .dots {
  border: none;
  background: transparent;
  cursor: default;
  min-width: 32px;
  color: var(--color-muted, #999);
}

/* ========================================================================
   NEWSLETTER FORM (legacy — see footer section for active styles)
   ======================================================================== */

/* ========================================================================
   SEARCH OVERLAY
   ======================================================================== */

.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--duration-popup) var(--ease-default);
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-overlay__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  width: 100%;
}

.search-overlay__form {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 600px;
}

.search-container {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: var(--z-modal);
}

.search-input {
  width: 100%;
  padding: 20px 24px;
  font-size: var(--text-lg);
  border: none;
  border-bottom: 2px solid var(--color-white);
  border-radius: 0;
  background-color: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  font-weight: 300;
}

.search-input:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}

.search-close {
  color: var(--color-white);
}

.search-close:hover {
  color: var(--color-gold);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-radius: 0;
  margin-top: var(--space-3);
  max-height: 500px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.search-result-item {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background-color var(--duration-transition) var(--ease-default);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--color-bg-light);
}

.search-result-title {
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.search-result-category {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--color-muted);
}

.breadcrumb-item.active {
  color: var(--color-text);
}

.breadcrumb-item a {
  color: var(--color-muted);
}

.breadcrumb-item a:hover {
  color: var(--color-gold);
}

.breadcrumb-separator {
  color: var(--color-border);
  margin: 0 var(--space-1);
}

/* ========================================================================
   BADGES
   ======================================================================== */

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

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

.badge--success {
  background-color: var(--color-success);
  color: var(--color-white);
}

.badge--error {
  background-color: var(--color-error);
  color: var(--color-white);
}

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

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

.badge--outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.badge--sale {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background-color: var(--color-error);
  color: var(--color-white);
  z-index: 10;
}

.badge--limited {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* ========================================================================
   LOADING SPINNER
   ======================================================================== */

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.spinner--sm {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

.spinner--lg {
  width: 60px;
  height: 60px;
  border-width: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================================================
   EMPTY STATE
   ======================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.empty-state__icon {
  font-size: 60px;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.empty-state__description {
  color: var(--color-muted);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   TOAST NOTIFICATIONS
   ======================================================================== */

.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  max-width: 400px;
}

@media (max-width: 640px) {
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    max-width: 100%;
  }
}

.toast {
  background-color: var(--color-white);
  color: var(--color-text);
  padding: var(--space-4) var(--space-6);
  border-radius: 0;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  animation: slideInRight var(--duration-popup) var(--ease-default);
}

.toast.is-closing {
  animation: slideOutRight var(--duration-popup) var(--ease-default);
}

.toast--success {
  border-left: 4px solid var(--color-success);
}

.toast--error {
  border-left: 4px solid var(--color-error);
}

.toast--warning {
  border-left: 4px solid var(--color-warning);
}

.toast__icon {
  flex-shrink: 0;
  font-size: 20px;
}

.toast__message {
  flex: 1;
  font-size: var(--text-base);
}

.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  transition: color var(--duration-transition) var(--ease-default);
}

.toast__close:hover {
  color: var(--color-text);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ========================================================================
   SCROLL ANIMATIONS
   ======================================================================== */

[data-section] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

[data-section].animate,
[data-section].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fadeInUp {
  animation: fadeInUp 800ms var(--ease-out);
}

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

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

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

/* Skip link: hidden off-screen, visible only on focus for keyboard users */
.skip-link {
  position: fixed !important;
  top: -100px;
  left: var(--space-4);
  background: var(--color-gold);
  color: var(--color-black-deep);
  padding: var(--space-3) var(--space-6);
  z-index: 9999;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  opacity: 0;
  transition: top 200ms ease, opacity 200ms ease;
}

.skip-link:focus {
  top: var(--space-4);
  opacity: 1;
  /* Override sr-only when focused */
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
  margin: 0 !important;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--color-muted); }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.text-italic { font-style: italic; }
.font-bold { font-weight: 600; }
.font-light { font-weight: 300; }

/* Margin utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display utilities */
.hidden { display: none !important; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }

/* Visibility utilities */
.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* Responsive utilities */
@media (max-width: 640px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .hidden-desktop {
    display: none !important;
  }
  .show-desktop {
    display: block !important;
  }
}

/* ========================================================================
   RESPONSIVE ADJUSTMENTS
   ======================================================================== */

@media (max-width: 1200px) {
  .site-header {
    height: var(--header-h-mobile);
  }
  .nav-drawer {
    width: min(340px, 85vw);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }
  .section {
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
  .section__title {
    font-size: var(--text-2xl);
  }
  .btn--lg {
    padding: 14px 32px;
    height: 48px;
  }
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  .site-header {
    height: var(--header-h-mobile);
  }
  .site-logo {
    font-size: var(--text-lg);
  }
  .section__title {
    font-size: var(--text-xl);
  }
  .section__subtitle {
    font-size: var(--text-sm);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .btn {
    font-size: var(--text-xs);
    padding: 12px 24px;
    height: 44px;
  }
  .btn--primary,
  .btn-primary {
    height: 48px;
  }
  .btn-group {
    flex-direction: column;
    gap: var(--space-3);
  }
  .btn-group .btn {
    width: 100%;
  }
  .toast-container {
    max-width: 100%;
    left: var(--space-4);
    right: var(--space-4);
  }
  .search-container {
    width: 95%;
    top: 40px;
  }
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */

/* ================================================================
   PAGE TEMPLATES
   ================================================================ */

.page-default,
.page-about,
.page-contact,
.page-account {
  padding: var(--space-12) 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  text-align: center;
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: var(--space-8);
}

.page-content {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin: var(--space-8) 0 var(--space-4);
}

.page-content p {
  margin-bottom: var(--space-4);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-channels {
  margin-top: var(--space-6);
}

.contact-channel {
  margin-bottom: var(--space-4);
}

.contact-channel strong {
  display: block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

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

.contact-channel a:hover {
  color: var(--color-primary);
}

/* Account grid */
.account-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8);
}

.account-nav__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--duration-hover) var(--ease-default);
}

.account-nav__link:hover,
.account-nav__link.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background-color: var(--color-cream);
}

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

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

  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   NEWSLETTER, SOCIAL & PAYMENTS
   ================================================================ */

/* ── Newsletter Section ── */
.footer-newsletter {
  background-color: transparent;
  padding: var(--space-8) 0 var(--space-6);
}

.footer-newsletter .container {
  max-width: 720px;
}

.footer-newsletter-frame {
  background-color: rgba(250, 249, 246, 0.06);
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  padding: var(--space-6) var(--space-8);
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-footer-text);
  margin-bottom: var(--space-1);
  letter-spacing: 0.02em;
}

.newsletter-desc {
  color: var(--color-footer-link);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.newsletter-input {
  padding: 10px 14px;
  border: 1px solid var(--color-footer-border);
  background: rgba(255,255,255,0.07);
  color: var(--color-footer-text);
  font-size: var(--text-sm);
  min-width: 200px;
  transition: border-color var(--duration-hover) var(--ease-default);
}

.newsletter-input::placeholder {
  color: var(--color-footer-link);
  font-weight: 300;
  font-size: var(--text-xs);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.1);
}

.newsletter-btn {
  padding: 10px 20px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Social Icons ── */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-footer-link);
  transition: color var(--duration-hover) var(--ease-default);
}

.social-icon:hover {
  color: var(--color-ivory);
}

/* ── Payments ── */
.footer-payments {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-footer-border);
}

.footer-payments__label {
  font-size: var(--text-xs);
  color: var(--color-footer-link);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.footer-payments__icons {
  display: flex;
  gap: var(--space-3);
}

.payment-icon {
  font-size: var(--text-xs);
  color: var(--color-footer-link);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-footer-border);
}

/* ================================================================
   DESKTOP NAVIGATION BAR
   ================================================================ */

.desktop-nav {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: none;
}

@media (min-width: 769px) {
  .desktop-nav {
    display: block;
  }

  #menu-toggle {
    display: none;
  }
}

.desktop-nav__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  padding: var(--space-3) 0;
  margin: 0;
}

.desktop-nav__menu li a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-hover) var(--ease-default);
}

.desktop-nav__menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}

.desktop-nav__menu li a:hover::after,
.desktop-nav__menu li.current-menu-item a::after {
  width: 100%;
}

.desktop-nav__menu li a:hover {
  color: var(--color-primary-hover);
}

/* ================================================================
   RESPONSIVE — MOBILE FIRST OVERRIDES
   ================================================================ */

/* ── Tablet (max 768px) ── */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
  }

  .header-inner {
    height: var(--header-h-mobile);
    padding: 0 var(--space-3);
  }

  .header-left,
  .header-right {
    gap: var(--space-1);
  }

  .header-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .desktop-nav {
    display: none !important;
  }

  #menu-toggle {
    display: flex;
  }

  /* Hide account icon and search on mobile to save header space */
  .header-right .header-account-link {
    display: none;
  }

  #search-toggle {
    display: none;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .site-logo {
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-wide);
  }

  .section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

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

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

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

  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-newsletter-frame {
    padding: var(--space-5) var(--space-4);
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-input {
    min-width: unset;
    width: 100%;
  }

  .footer-payments {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Phone (max 480px) ── */
@media (max-width: 480px) {
  :root {
    --header-h: 52px;
  }

  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .site-logo {
    font-size: var(--text-md);
    letter-spacing: var(--tracking-normal);
  }

  .header-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

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

  .section__subtitle {
    font-size: var(--text-sm);
  }

  .hero {
    min-height: 60vh;
  }

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

  .hero__subtitle {
    font-size: var(--text-sm);
  }

  .hero__cta {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

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

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

  .btn {
    min-height: 48px;
    font-size: var(--text-sm);
  }

  .nav-drawer {
    width: 100vw;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ================================================================
   V5 — PRICE UNDERLINE FIX (components)
   ================================================================ */

.product-card__price,
.product-card__price a,
.product-card__price span,
.product-card__price ins,
.product-card__installments {
  text-decoration: none !important;
}

.product-card__price--original,
.price--original {
  text-decoration: line-through !important;
  text-decoration-color: var(--color-muted) !important;
}

/* ================================================================
   V5 — PRODUCT CARDS REDESIGN (Z05)
   ================================================================ */

/* Card button — smaller height, refined letters */
.product-card__add-to-cart {
  height: var(--card-btn-height, 44px);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: var(--weight-medium);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.product-card__add-to-cart:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* Card title — display font, proper sizing */
.product-card__title {
  font-size: var(--card-name-size, 16px);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

/* Card image — smooth zoom on hover */
.product-card__image {
  transition: transform 0.5s ease;
}

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

/* Card price — proper sizing */
.product-card__price {
  font-size: var(--card-price-size, 15px);
  font-weight: var(--weight-medium);
}

/* Card family label — subtle and refined */
.product-card__family,
.product-card__category {
  font-size: 11px;
  letter-spacing: 1.5px;
}

/* ================================================================
   HERO SLIDER / CAROUSEL
   ================================================================ */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-black-deep);
  --hero-transition-speed: 600ms;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Individual Slide ── */

.hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--hero-transition-speed) ease,
    visibility var(--hero-transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* ── Media (image / video) ── */

.hero-slider__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider__image,
.hero-slider__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Overlay ── */

.hero-slider__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 ── */

.hero-slider__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 650px;
  padding: var(--space-8);
}

.hero-slider__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-slider__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero-slider__cta {
  display: inline-flex;
}

/* ── Arrow Buttons ── */

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-slider__arrow--prev {
  left: var(--space-6);
}

.hero-slider__arrow--next {
  right: var(--space-6);
}

/* ── Dot Indicators ── */

.hero-slider__dots {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--space-2);
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.hero-slider__dot:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.3);
}

.hero-slider__dot.is-active {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.2);
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: none;
  }
}

/* ── Hero Slider Responsive (Tablet) ── */

@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
  }

  .hero-slider__title {
    font-size: var(--text-3xl);
  }

  .hero-slider__subtitle {
    font-size: var(--text-base);
  }

  .hero-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .hero-slider__arrow--prev {
    left: var(--space-3);
  }

  .hero-slider__arrow--next {
    right: var(--space-3);
  }
}

/* ── Hero Slider Responsive (Phone) ── */

@media (max-width: 480px) {
  .hero-slider {
    height: 60vh;
  }

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

  .hero-slider__subtitle {
    font-size: var(--text-sm);
  }

  .hero-slider__cta {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .hero-slider__arrow {
    width: 36px;
    height: 36px;
  }

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

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

  .hero-slider__dots {
    bottom: var(--space-4);
  }
}

/* ================================================================
   PRINT
   ================================================================ */

@media print {
  .site-header,
  .nav-overlay,
  .nav-drawer,
  .site-footer,
  .toast-container,
  .search-overlay {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  a {
    text-decoration: underline;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   BLOCO 12 — Nav Subcategory Dropdowns (Z-083)
   ================================================================ */

/* Desktop dropdown */
@media (min-width: 769px) {
  .desktop-nav__menu > .menu-item-has-children {
    position: relative;
  }

  .desktop-nav__menu > .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .desktop-nav__menu > .menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
    order: 1;
    transition: transform 0.2s ease;
  }

  .desktop-nav__menu > .menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
  }

  .desktop-nav__menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
    max-width: 220px;
    background: #fff;
    border: 1px solid var(--color-border, #e8e4de);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 100;
  }

  .desktop-nav__menu > .menu-item-has-children:hover > .sub-menu {
    display: block;
    animation: dropIn 0.2s ease;
  }

  @keyframes dropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }

  .desktop-nav__menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary, #403D2E);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .desktop-nav__menu .sub-menu li a::after {
    display: none;
  }

  .desktop-nav__menu .sub-menu li a:hover {
    background: var(--color-bg-warm, #FAF9F6);
    color: var(--color-accent, #c4a265);
  }
}

/* Mobile submenu accordion */
.nav-drawer__menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
}

.nav-drawer__menu .sub-menu li a {
  padding-left: 32px;
  font-size: 13px;
  opacity: 0.85;
}

.submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary, #403D2E);
  transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

/* ================================================================
   BLOCO 12 — Product Card Hover Image (Z-082)
   ================================================================ */

.product-card__image-wrap {
  overflow: hidden;
}

.product-card__image {
  transition: opacity 0.3s ease;
}

.product-card__image.is-hover-transitioning {
  opacity: 0;
}

/* Product card video — same sizing as image, no pointer events */
video.product-card__video {
  object-fit: cover;
  pointer-events: none;
  background-color: #f5f0eb;
}

/* ================================================================
   BLOCO 12 — Cart Drawer Enhancements (Z-084)
   ================================================================ */

.cart-drawer__checkout-btn {
  padding: 16px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.cart-drawer__continue {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-primary, #403D2E);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 10px 0 0;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.cart-drawer__continue:hover {
  opacity: 1;
}

/* ================================================================
   BLOCO 12 — Footer Butterfly (Z-085)
   ================================================================ */

.newsletter-butterfly {
  text-align: center;
  padding: 16px 0 0;
}
