/* ============ VARIABLES ============ */
:root {
  --color-dark: #0F1B2E;
  --color-navy-hover: #1B2F4D;
  --color-navy-deep: #081019;
  --color-gold: #D4AF77;
  --color-gold-light: #EFC788;
  --color-bg: #FAFAF8;
  --color-white: #FFFFFF;
  --color-text: #0F1B2E;
  --color-text-muted: #8A8A80;
  --color-border: rgba(138, 138, 128, 0.25);
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --font-btn: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(49, 55, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(49, 55, 56, 0.12);
  --shadow-lg: 0 16px 40px rgba(49, 55, 56, 0.18);
  --header-h: 68px;
  --topbar-h: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary, .btn-add-cart, .btn-add-cart-dark, .btn-newsletter {
  font-family: var(--font-btn);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--color-dark);
  color: var(--color-bg);
}
.btn-primary:hover { background: var(--color-navy-hover); }

.btn-outline {
  background: transparent;
  color: #14203a;
  border: 2px solid #14203a;
  border-radius: 4px;
}
.btn-outline:hover { background: #14203a; color: var(--color-white); }

.btn-add-cart {
  background: var(--color-dark);
  color: var(--color-bg);
  width: 100%;
}
.btn-add-cart:hover { background: var(--color-navy-hover); }
.btn-add-cart.added { background: var(--color-navy-deep); color: var(--color-bg); }

.btn-full { width: 100%; }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
}
.btn-whatsapp:hover:not(:disabled) { background: var(--color-whatsapp-dark); }
.btn-whatsapp:disabled {
  background: #cfd3d3;
  color: #8a8f8f;
  cursor: not-allowed;
}

.btn-add-cart-dark {
  background: var(--color-dark);
  color: var(--color-bg);
  margin-top: 6px;
}
.btn-add-cart-dark:hover { background: var(--color-navy-hover); }

/* ============ TOP BAR ============ */
.top-bar {
  background: #0A1420;
  color: #c4a876;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}
.top-bar-icon { flex-shrink: 0; display: flex; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-dark);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}
.site-header.scrolled { background: var(--color-bg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.logo-text small { font-weight: 400; color: var(--color-text-muted); font-size: 0.65em; display: block; }

.logo-img { height: 40px; width: auto; display: block; }
.logo-img-footer { height: 52px; }
@media (max-width: 400px) {
  .logo-img { height: 34px; }
}

.main-nav {
  display: none;
  align-items: center;
  gap: 26px;
}
.main-nav .nav-link {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--color-bg);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #c9a24b;
  transition: width 0.25s ease;
}
.main-nav .nav-link:hover { color: #c9a24b; }
.main-nav .nav-link:hover::after { width: 100%; }

.site-header.scrolled .main-nav .nav-link { color: #2B2E2F; }

.main-nav.open .nav-link { color: var(--color-dark); }
.main-nav.open .nav-link:hover { color: #c9a24b; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn, .menu-toggle {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.3s ease;
}
.site-header.scrolled .cart-btn, .site-header.scrolled .menu-toggle { color: #2B2E2F; }
.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.cart-btn:hover, .menu-toggle:hover, .icon-btn:hover { background: rgba(212, 175, 119, 0.18); }

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.menu-toggle { display: flex; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* mobile nav dropdown */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(var(--header-h) + var(--topbar-h));
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 20px 20px;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

/* ============ HERO ============ */
.hero {
  min-height: calc(100vh - var(--header-h) - var(--topbar-h));
  display: flex;
  align-items: center;
  padding: 56px 0 70px;
  background: linear-gradient(180deg, #FAFAF8 0%, #F3EEE4 100%);
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-content { max-width: 620px; }

.badge {
  display: inline-block;
  background: rgba(201, 162, 75, 0.12);
  color: #8a6a2a;
  border: 1.5px solid #c9a24b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.1rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 18px;
}
.rotating-word {
  color: var(--color-gold);
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rotating-word.swap { opacity: 0; transform: translateY(6px); }

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-collage {
  position: relative;
  height: 260px;
  width: 100%;
}
.collage-img {
  position: absolute;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(20, 32, 58, 0.18);
  background: #ECE7DC;
  animation: float 5s ease-in-out infinite;
}
.collage-1 { width: 140px; height: 140px; top: 0; left: 10%; animation-delay: 0s; }
.collage-2 { width: 110px; height: 110px; top: 30px; right: 12%; animation-delay: 0.6s; }
.collage-3 { width: 130px; height: 130px; bottom: 0; left: 30%; animation-delay: 1.2s; }
.collage-4 { width: 100px; height: 100px; bottom: 20px; right: 18%; animation-delay: 1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (min-width: 900px) {
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-title { font-size: 2.8rem; }
  .hero-collage { flex: 1; height: 380px; max-width: 480px; }
  .collage-1 { width: 190px; height: 190px; }
  .collage-2 { width: 150px; height: 150px; }
  .collage-3 { width: 170px; height: 170px; }
  .collage-4 { width: 130px; height: 130px; }
}

/* ============ SECTIONS ============ */
.section { padding: 64px 0; }
.section-alt { background: #F3EFE7; }

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-heading h2 { font-size: 1.7rem; color: var(--color-dark); margin-bottom: 10px; }
.section-heading p { color: var(--color-text-muted); }

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

#products .product-grid,
#catalog .product-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#products .product-grid > .product-card,
#catalog .product-grid > .product-card {
  flex: 0 0 100%;
}
@media (min-width: 640px) {
  #products .product-grid > .product-card,
  #catalog .product-grid > .product-card {
    flex: 0 0 calc(50% - 11px);
  }
}
@media (min-width: 960px) {
  #products .product-grid > .product-card,
  #catalog .product-grid > .product-card {
    flex: 0 0 calc(25% - 16.5px);
  }
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ECE7DC;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }

.best-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-dark);
  color: var(--color-gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.discount-badge-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #B5504A;
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
}

.img-placeholder-text {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-dark);
  background: #ECE7DC;
}
.product-image img.img-error { display: none; }
.product-image img.img-error + .img-placeholder-text { display: flex; }

.price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 6px;
}

/* ============ FILTER PILLS ============ */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-pill {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-pill:hover { border-color: var(--color-gold); }
.filter-pill.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.product-name { font-size: 1rem; font-weight: 600; color: var(--color-dark); min-height: 2.6em; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--color-dark); margin-bottom: 6px; }

.view-all-wrap { text-align: center; margin-top: 40px; }

/* ============ CATEGORIES ============ */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--color-dark);
  color: var(--color-white);
}
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(212, 175, 119, 0.18);
  color: var(--color-gold);
  margin-bottom: 16px;
}
.category-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.category-card p { color: var(--color-text-muted); font-size: 0.9rem; }
.category-card:hover p { color: #d8d5cf; }

/* ============ BENEFITS ============ */
.benefit-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
}
.benefit-row:last-child { margin-bottom: 0; }
.benefit-image, .benefit-text { width: 100%; }
.benefit-image img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  min-height: 420px;
  background: #ECE7DC;
  box-shadow: var(--shadow-md);
}
.benefit-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.benefit-text h2 { font-weight: 800; font-size: 30px; line-height: 1.25; color: #14203a; margin: 10px 0 14px; }
.benefit-text p { font-weight: 400; font-size: 15px; line-height: 1.7; color: #6b6660; }

.benefit-stats { display: flex; gap: 36px; margin-top: 22px; }
.benefit-stat { display: flex; flex-direction: column; }
.benefit-stat-num { font-size: 26px; font-weight: 800; color: #14203a; }
.benefit-stat-label { font-size: 12.5px; font-weight: 400; color: #8a8478; margin-top: 4px; }

.benefit-link {
  display: inline-block;
  color: #14203a;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid #d6a969;
  margin-top: 22px;
  width: fit-content;
  padding-bottom: 2px;
}

@media (min-width: 860px) {
  .benefit-row { flex-direction: row; }
  .benefit-row-reverse { flex-direction: row-reverse; }
  .benefit-image, .benefit-text { width: 50%; }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--color-dark); color: #E9E6DE; padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand .logo-text { color: var(--color-white); }
.footer-brand .logo-mark { background: var(--color-gold); color: var(--color-dark); }
.footer-tagline { color: #C9C5BB; margin: 12px 0 16px; font-size: 0.9rem; }

.footer-social { display: flex; justify-content: center; gap: 12px; }
.footer-brand .footer-social a {
  width: 38px; height: 38px;
  margin-bottom: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--color-gold-light);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-brand .footer-social a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-dark); }
.footer-social a svg { display: block; margin: 0; padding: 0; }

.footer-col h4, .footer-contact-eyebrow { color: var(--color-gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col a { display: block; color: #C9C5BB; font-size: 0.9rem; margin-bottom: 16px; transition: color 0.2s ease; }
.footer-col a:last-child { margin-bottom: 0; }
.footer-col a:hover { color: var(--color-gold-light); }

.footer-contact-eyebrow {
  display: block;
}
.footer-contact-name {
  color: var(--color-bg);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-row:last-child { margin-bottom: 0; }
.footer-contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-gold);
}
.footer-contact-text {
  color: #C9C5BB;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-contact-text a { display: inline; margin-bottom: 0; color: #C9C5BB; }
.footer-contact-text a:hover { color: var(--color-gold-light); }

.footer-newsletter-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  margin-bottom: 72px;
}
@media (min-width: 720px) {
  .footer-newsletter-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 44px;
  }
}

.footer-newsletter-text h3 { color: var(--color-white); font-size: 1.35rem; margin-bottom: 8px; }
.footer-newsletter-text p { color: #C9C5BB; font-size: 0.92rem; max-width: 380px; }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) {
  .newsletter-form { flex-direction: row; }
}
@media (min-width: 720px) {
  .newsletter-form { width: auto; min-width: 360px; }
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: #A9A59D; }
.newsletter-form .btn { padding: 12px 20px; white-space: nowrap; }

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

.newsletter-message {
  display: none;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.newsletter-message.visible { display: block; }
.newsletter-message.success { background: #2F6844; color: var(--color-bg); }
.newsletter-message.error { background: #B5504A; color: var(--color-bg); }

.footer-bottom {
  margin-top: 44px;
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: #A9A59D; font-size: 0.82rem; }

/* ============ OVERLAY ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(49, 55, 56, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 300;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

/* ============ CART PANEL ============ */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 400px;
  background: var(--color-white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: var(--shadow-lg);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}
.cart-panel-header h3 { font-size: 1.1rem; color: var(--color-dark); }

.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #ECE7DC;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; }
.cart-item-price { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 8px; }

.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-control button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-dark);
  transition: background 0.2s ease;
}
.qty-control button:hover { background: var(--color-gold-light); }
.qty-control span { font-size: 0.9rem; font-weight: 600; min-width: 18px; text-align: center; }

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.cart-item-subtotal { font-weight: 700; color: var(--color-dark); font-size: 0.92rem; }
.remove-btn {
  background: none;
  border: none;
  color: #B5504A;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.cart-empty { text-align: center; padding: 60px 20px; color: var(--color-text-muted); display: none; }
.cart-empty.visible { display: block; }

.cart-footer { padding: 18px 20px 22px; border-top: 1px solid var(--color-border); }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

/* ============ ORDER MODAL ============ */
.order-modal {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 460px;
  background: var(--color-white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.order-modal.open { transform: translateX(0); }

.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
}
.order-modal-header h3 { font-size: 1.05rem; color: var(--color-dark); }

.order-modal-body { padding: 22px 20px 40px; }

.order-summary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 26px;
}
.order-summary h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); margin-bottom: 8px; }
.order-summary p { font-size: 1rem; color: var(--color-dark); }
.order-summary strong { color: var(--color-gold); }

#order-form { display: flex; flex-direction: column; }

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 16px 0 6px;
}
.form-label:first-child { margin-top: 0; }
.required { color: #C23B33; }

.form-input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-dark);
  background: var(--color-white);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
}

#send-order-btn { margin-top: 26px; }

/* ============ PRODUCT DETAIL VIEW (in-page, toggled by JS) ============ */
#main-view.hidden-view { display: none; }

.detail-view {
  display: none;
  padding: 40px 0 64px;
}
.detail-view.active { display: block; }

.detail-back-btn {
  margin-bottom: 32px;
}

.detail-page {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
@media (min-width: 860px) {
  .detail-page { flex-direction: row; align-items: flex-start; }
  .detail-page-image, .detail-page-info { width: 50%; }
}

.detail-page-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-page-image {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-page-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}
.detail-page-image:hover img { transform: scale(1.06); }
.detail-page-image img.img-error { display: none; }
.detail-image-text {
  display: none;
  width: 100%;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  background: #ECE7DC;
  border-radius: var(--radius-lg);
}
.detail-page-image img.img-error + .detail-image-text { display: flex; }

.detail-featured-badge {
  position: static;
  align-self: flex-start;
  display: none;
}
.detail-featured-badge.visible { display: inline-block; }

.detail-name { font-size: 1.7rem; color: var(--color-dark); line-height: 1.3; }

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.detail-price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.detail-price { font-size: 1.45rem; font-weight: 800; color: var(--color-dark); }
.detail-discount-badge {
  background: #B5504A;
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: none;
}
.detail-discount-badge.visible { display: inline-block; }

.detail-desc-heading {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 10px;
}
.detail-desc { color: var(--color-text); font-size: 0.95rem; line-height: 1.6; }

/* ============ POLICY PAGES (in-page, toggled by JS) ============ */
.policy-view { display: none; padding: 48px 0 80px; }
.policy-view.active { display: block; }

.policy-container { max-width: 800px; margin: 0 auto; }

.policy-back-btn { margin-bottom: 32px; }

.policy-title { font-size: 2rem; color: var(--color-dark); margin-bottom: 8px; }
.policy-updated { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 36px; }

.policy-content p {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.policy-content h2 {
  font-size: 1.1rem;
  color: var(--color-dark);
  margin: 30px 0 10px;
}
.policy-content h2:first-child { margin-top: 0; }

/* ============ RELATED PRODUCTS ============ */
.related-products-section { margin-top: 56px; }
.related-products-section .section-heading { margin-bottom: 32px; }

/* ============ FLOATING WHATSAPP BUTTON ============ */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 210;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
  background: var(--color-whatsapp-dark);
}

@media (max-width: 400px) {
  .whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* ============ FADE IN ANIMATION ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SMALL SCREEN GUARD (down to 380px) ============ */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 1.7rem; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .logo-text { font-size: 0.92rem; }
  .cart-panel, .order-modal { max-width: 100%; }
}
