:root {
  --bg: #faf7f3;
  --surface: #ffffff;
  --surface-soft: #f2ebe4;
  --noir: #161311;
  --noir-soft: #26211e;
  --text: #1f1b18;
  --muted: #6e645c;
  --border: #e5dcd3;
  --gold: #b38b67;
  --gold-dark: #946d4b;
  --blush: #efe4dc;
  --wa: #1f8f4e;
  --wa-dark: #16733d;
  --danger: #b83b3b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(22, 19, 17, 0.05);
  --shadow-md: 0 12px 32px rgba(22, 19, 17, 0.09);
  --shadow-lg: 0 24px 60px rgba(22, 19, 17, 0.18);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: min(1320px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--noir);
  color: #f4eee8;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.38rem 1rem;
}

.announcement-inner {
  width: min(1320px, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.announcement-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  min-width: 0;
}

.aycloud-shield {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #d1fae5;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  animation: aycloud-glow 2s ease-in-out infinite;
}

.aycloud-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: aycloud-pulse 1.3s ease-in-out infinite;
  flex-shrink: 0;
}

.aycloud-shield svg {
  width: 11px;
  height: 11px;
  color: #34d399;
  flex-shrink: 0;
}

@keyframes aycloud-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(0.75); }
}

@keyframes aycloud-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35), 0 0 12px rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.7);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0), 0 0 18px rgba(56, 189, 248, 0.28);
    border-color: rgba(56, 189, 248, 0.85);
  }
}

.announcement-wa {
  color: #8ee5ae;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.announcement-wa:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--noir);
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.15rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--noir);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--noir);
  background: var(--noir);
  color: #fff;
}

.icon-btn.wa-pill {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.icon-btn.wa-pill:hover {
  background: var(--wa-dark);
  border-color: var(--wa-dark);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--noir);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #161311;
  background-image:
    linear-gradient(95deg, rgba(22, 19, 17, 0.84) 0%, rgba(22, 19, 17, 0.52) 45%, rgba(22, 19, 17, 0.08) 100%),
    url("/static/img/hero-mabiche.webp?v=3");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 4.5rem;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e6cbb0;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.6vw, 4.7rem);
  font-weight: 500;
  line-height: 1.04;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}

.hero p {
  font-size: 1.03rem;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 2rem;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.6rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-primary {
  background: var(--noir);
  color: #fff;
  border-color: var(--noir);
}

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

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

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

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--noir);
}

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

.btn-outline:hover {
  background: var(--noir);
  color: #fff;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #f3dec9;
  line-height: 1.1;
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Pillars Bar */
.pillars {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}

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

.pillar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pillar-item h4 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.pillar-item p {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Section Headers */
.section {
  padding: 4.5rem 0;
}

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

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.08;
  color: var(--noir);
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
}

/* Catalog Controls */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.cat-pill {
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  border-color: var(--noir);
}

.cat-pill.active {
  background: var(--noir);
  color: #fff;
  border-color: var(--noir);
}

.cat-pill .pill-count {
  opacity: 0.65;
  font-weight: 500;
  margin-left: 0.25rem;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1.6fr 0.75fr 0.75fr 0.9fr auto;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.input, .select, .textarea {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold-dark);
  background: #fff;
}

.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  padding: 0 0.5rem;
  white-space: nowrap;
  cursor: pointer;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface-soft);
  overflow: hidden;
  cursor: pointer;
}

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

.product-media img.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-media img.hover-img {
  opacity: 1;
  transform: scale(1.04);
}

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

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-discount {
  background: var(--noir);
  color: #f4dec7;
}

.badge-stock {
  background: rgba(255, 255, 255, 0.92);
  color: var(--noir);
  backdrop-filter: blur(4px);
}

.badge-out {
  background: var(--danger);
  color: #fff;
}

.card-quick-overlay {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 2;
}

.product-card:hover .card-quick-overlay {
  opacity: 1;
  transform: translateY(0);
}

.quick-btn {
  flex: 1;
  padding: 0.62rem 0.75rem;
  border-radius: 999px;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(22, 19, 17, 0.92);
  color: #fff;
  backdrop-filter: blur(6px);
}

.quick-btn:hover {
  background: var(--gold-dark);
}

.product-body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  font-weight: 700;
}

.product-title {
  margin: 0.3rem 0 0.55rem;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--noir);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.meta-chip {
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 600;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0e8e0;
}

.price-current {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--noir);
}

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

.wholesale-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wa);
  cursor: pointer;
}

.wholesale-tag:hover {
  text-decoration: underline;
}

/* Split B2B Wholesale Section */
.b2b-section {
  background: var(--noir);
  color: #f6efe9;
  position: relative;
  overflow: hidden;
}

.b2b-section .section-title {
  color: #fff;
}

.b2b-section .section-desc {
  color: rgba(246, 239, 233, 0.75);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 3rem;
  align-items: start;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 2rem;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(179, 139, 103, 0.22);
  color: #e6c6a5;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.form-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: var(--noir);
}

.form-card .form-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--noir-soft);
}

.checkbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.check-pill input {
  accent-color: var(--noir);
}

/* XML Section */
.xml-section {
  background: linear-gradient(180deg, var(--blush) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.xml-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.xml-step {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--noir);
  color: #f3dcc4;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.xml-step h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
}

.xml-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Modals & Drawers */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 11, 0.62);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(1020px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-sm {
  width: min(580px, 100%);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--noir);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--noir);
  color: #fff;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.pdp-gallery {
  background: var(--surface-soft);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdp-main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #fff;
}

.pdp-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.pdp-thumb {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.72;
  flex-shrink: 0;
}

.pdp-thumb.active, .pdp-thumb:hover {
  border-color: var(--noir);
  opacity: 1;
}

.pdp-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
  color: var(--noir);
}

.pdp-prices {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.pdp-prices .price-current {
  font-size: 1.55rem;
}

.variant-section label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.v-chip {
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.v-chip:hover {
  border-color: var(--noir);
}

.v-chip.active {
  background: var(--noir);
  color: #fff;
  border-color: var(--noir);
}

.v-chip.out {
  opacity: 0.45;
  text-decoration: line-through;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-sm);
  background: #edf7f0;
  color: #1d6d3d;
}

.stock-pill.low {
  background: #fff5e6;
  color: #9a5b13;
}

.stock-pill.out {
  background: #fdecec;
  color: var(--danger);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.qty-stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 700;
}

.qty-stepper span {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.pdp-actions {
  display: grid;
  gap: 0.65rem;
}

.pdp-desc {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  max-height: 240px;
  overflow-y: auto;
}

.pdp-desc ul {
  padding-left: 1.1rem;
}

/* Cart Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 11, 0.55);
  z-index: 110;
  display: none;
  justify-content: flex-end;
}

.drawer-overlay.open {
  display: flex;
}

.cart-drawer {
  width: min(440px, 100%);
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0;
}

.shipping-meter {
  padding: 0.85rem 1.4rem;
  background: var(--surface-soft);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.meter-bar {
  height: 6px;
  background: #dfd4c9;
  border-radius: 999px;
  margin-top: 0.45rem;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--gold-dark);
  transition: width 0.3s ease;
}

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

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

.cart-item img {
  width: 72px;
  height: 94px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.cart-item-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-footer {
  padding: 1.2rem 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  gap: 0.65rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.summary-row.total {
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

/* Floating WhatsApp Widget */
.wa-float {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.wa-popover {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 280px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.wa-popover.open {
  display: block;
}

.wa-popover h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  color: var(--noir);
}

.wa-popover p {
  margin: 0 0 0.8rem;
  font-size: 0.77rem;
  color: var(--muted);
}

.wa-links {
  display: grid;
  gap: 0.5rem;
}

.wa-links a {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-links a:hover {
  background: var(--wa);
  color: #fff;
}

.wa-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: var(--wa);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(31, 143, 78, 0.36);
  cursor: pointer;
}

.wa-fab:hover {
  background: var(--wa-dark);
}

/* Feedback Alerts & Toast */
.alert-box {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.86rem;
}

.alert-success {
  background: #eaf7ef;
  border: 1px solid #b8e3c7;
  color: #165c32;
}

.alert-error {
  background: #fdeeee;
  border: 1px solid #f5c2c2;
  color: #8f2626;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--noir);
  color: #fff;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
  background: var(--noir);
  color: #d9cfc6;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: #fff;
  line-height: 1;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: #e6c6a5;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(217, 207, 198, 0.7);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
}

/* Auth & Account Modals */
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  background: var(--surface-soft);
  padding: 0.35rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

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

.auth-tab-btn {
  border: none;
  background: transparent;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab-btn.active {
  background: var(--noir);
  color: #fff;
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
}

.account-order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  background: var(--bg);
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .split-grid, .pdp-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1320px, 100% - 1.4rem);
  }
  .header-actions .hide-sm {
    display: none;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
