/* ============================================================
   OM WEAR — GLOBAL STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

:root {
  --cream: #F5F0E8;
  --beige: #E8DFD0;
  --sand: #D4C4A8;
  --warm: #C9B99A;
  --taupe: #9E8E7E;
  --brown: #5C4033;
  --black: #0E0E0E;
  --offwhite: #FAF8F5;
  --text: #2A2520;
  --text-light: #8A7E74;
  --border: #E0D8CE;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --nav-h: 64px;
  --max-w: 1400px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--taupe); }

/* ── CURSOR — solo desktop con mouse real ── */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
  .cursor {
    position: fixed; top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--black); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  }
  .cursor.grow { width: 40px; height: 40px; background: transparent; border: 1px solid var(--black); }
  .cursor-follower {
    position: fixed; top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid rgba(14,14,14,0.3); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease, opacity 0.3s ease;
  }
}
@media (hover: none) { .cursor, .cursor-follower { display: none !important; } }

/* ── ANNOUNCEMENT BAR ── */
.announcement {
  background: var(--black);
  color: var(--cream);
  text-align: center;
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ── NAVIGATION ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%; margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-links {
  display: flex; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-logo {
  text-align: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-decoration: none;
  color: var(--black);
  text-transform: uppercase;
}
.nav-actions {
  display: flex; justify-content: flex-end;
  align-items: center; gap: 24px;
}
.nav-icon {
  background: none; border: none;
  font-size: 14px; color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 300;
  position: relative;
  transition: opacity var(--transition);
}
.nav-icon:hover { opacity: 0.6; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--black); color: var(--cream);
  font-size: 9px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 400;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: var(--cream);
  padding: 60px 40px 30px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 300;
  letter-spacing: 0.3em;
  opacity: 0.9; margin-bottom: 20px;
}
.footer-tagline {
  font-size: 12px; letter-spacing: 0.08em;
  line-height: 1.8; opacity: 0.5;
}
.footer-col h4 {
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5; margin-bottom: 20px; font-weight: 400;
}
.footer-col a {
  display: block; color: var(--cream);
  text-decoration: none; font-size: 13px;
  letter-spacing: 0.05em; margin-bottom: 10px;
  opacity: 0.7; transition: opacity 0.3s;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: var(--max-w); margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; opacity: 0.4; letter-spacing: 0.1em;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 400;
  border: 1px solid var(--black);
  background: var(--black); color: var(--cream);
  text-decoration: none; transition: all var(--transition);
  gap: 10px;
}
.btn:hover { background: transparent; color: var(--black); }
.btn-outline {
  background: transparent; color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--cream); }
.btn-cream {
  background: var(--cream); color: var(--black); border-color: var(--cream);
}
.btn-cream:hover { background: transparent; color: var(--cream); border-color: var(--cream); }

/* ── PRODUCT CARD ── */
.product-card {
  position: relative; overflow: hidden;
}
.product-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--beige);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--black); color: var(--cream);
  font-size: 9px; letter-spacing: 0.2em;
  padding: 5px 10px; text-transform: uppercase; font-weight: 400;
}
.product-card-quick {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(8px);
  padding: 14px;
  transform: translateY(100%);
  transition: transform var(--transition);
  font-size: 11px; letter-spacing: 0.15em; text-align: center; text-transform: uppercase;
}
.product-card:hover .product-card-quick { transform: translateY(0); }
.product-card-info { padding: 16px 0 0; }
.product-card-info h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400; letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.product-price {
  font-size: 13px; letter-spacing: 0.05em; color: var(--text);
}
.product-price .original {
  text-decoration: line-through; color: var(--text-light);
  margin-right: 8px;
}
.product-price .sale { color: var(--brown); }
.product-colors {
  display: flex; gap: 6px; margin-top: 8px;
}
.color-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
}

/* ── UTILITY ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 12px; font-weight: 400;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.6s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(14,14,14,0.5);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--offwhite);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 300; letter-spacing: 0.05em;
}
.cart-close {
  background: none; border: none;
  font-size: 18px; color: var(--text); line-height: 1;
}
.cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item-img {
  width: 80px; height: 100px;
  object-fit: cover; background: var(--beige);
}
.cart-item-name { font-size: 13px; font-weight: 400; margin-bottom: 4px; }
.cart-item-variant { font-size: 11px; color: var(--text-light); letter-spacing: 0.05em; }
.cart-item-qty {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
}
.qty-btn {
  background: none; border: 1px solid var(--border);
  width: 24px; height: 24px; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-price { font-size: 13px; letter-spacing: 0.05em; white-space: nowrap; }
.cart-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 20px;
}
.cart-total span:first-child { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; }
.cart-total span:last-child { font-family: var(--font-display); font-size: 22px; }
.cart-empty {
  text-align: center; padding: 60px 20px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 300; color: var(--text-light);
}

/* Shared JS cart & cursor */

/* ── WHATSAPP FLOAT BUTTON ── */
.wa-float {
  position: fixed; bottom: 28px; right: 24px;
  z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wa-bubble {
  position: relative;
  background: #25D366; color: white;
  border-radius: 50px;
  padding: 14px 22px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  animation: waEntrance 0.6s 2s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes waEntrance { from { opacity:0; transform:translateY(20px) scale(0.8); } to { opacity:1; transform:translateY(0) scale(1); } }
.wa-bubble:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.wa-bubble svg { flex-shrink: 0; }
.wa-dot {
  position: absolute; top: -3px; right: -3px;
  width: 13px; height: 13px;
  background: #ff4444; border-radius: 50%;
  border: 2px solid white;
  animation: waPulse 2s 3s infinite;
}
@keyframes waPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:0.7} }
.wa-tooltip {
  background: var(--black); color: var(--cream);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 6px;
  opacity: 0; transform: translateY(6px);
  transition: all 0.3s ease;
  pointer-events: none; white-space: nowrap;
  animation: waEntrance 0.6s 2.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(0); }

/* ── PAYMENT STRIP ── */
.payment-strip {
  background: var(--cream);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.payment-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-light); margin-right: 12px; flex-shrink: 0;
}
.pay-badge {
  background: white; border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 14px;
  font-size: 11px; letter-spacing: 0.06em; color: var(--text);
  font-weight: 500; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: border-color 0.2s;
}
.pay-badge:hover { border-color: var(--taupe); }
.pay-icon { font-size: 15px; line-height: 1; }

/* ── MOBILE OVERRIDES ── */
@media (max-width: 768px) {
  .cart-sidebar { width: 100vw; }
  .payment-strip { padding: 14px 20px; }
  .payment-label { width: 100%; text-align: center; margin: 0 0 8px; }
  /* WA float: solo icono en mobile */
  .wa-bubble { padding: 16px; border-radius: 50%; }
  .wa-bubble .wa-label { display: none; }
  .wa-tooltip { display: none; }
}
