/* ==========================================================================
   MINT STORE - HIGH SPEED E-COMMERCE DESIGN SYSTEM
   ========================================================================== */
:root {
  --topbar-bg: #0f172a;
  --topbar-text: #f8fafc;

  --nav-bg: #ffffff;
  --nav-text: #0f172a;
  --nav-border: #f1f5f9;

  --accent-color: #0f172a;
  --accent-hover: #1e293b;
  --accent-text: #ffffff;

  --surface-bg: #ffffff;
  --surface-text: #0f172a;
  --surface-muted: #64748b;
  --surface-border: #e2e8f0;

  --bg-body: #f8fafc;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-drawer: -10px 0 30px rgba(0, 0, 0, 0.12);
  --shadow-modal: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--surface-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Top Announcement */
.topbar {
  background-color: var(--topbar-bg);
  color: var(--topbar-text);
  padding: 9px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  color: var(--nav-text);
  text-decoration: none;
}

.cart-trigger-btn {
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--nav-text);
  cursor: pointer;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease;
}

.cart-trigger-btn:active {
  transform: scale(0.95);
}

.cart-counter {
  background-color: var(--accent-color);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 2px 7px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: #0f172a;
  overflow: hidden;
}

.hero-media-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 580px;
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-cta-btn {
  display: inline-block;
  background: #ffffff;
  color: #0f172a;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
}

/* Trust Bar */
.trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--surface-border);
  padding: 30px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--surface-muted);
}

/* Catalog */
.catalog-section {
  padding-top: 50px;
  padding-bottom: 70px;
  scroll-margin-top: 80px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading p {
  color: var(--surface-muted);
  font-size: 0.95rem;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-wrap svg {
  position: absolute;
  left: 16px;
  color: var(--surface-muted);
}

.search-wrap input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--surface-text);
  outline: none;
}

.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill {
  background: #ffffff;
  color: var(--surface-muted);
  border: 1px solid var(--surface-border);
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pill.active {
  background: var(--accent-color);
  color: var(--accent-text);
  border-color: var(--accent-color);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-color);
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--surface-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border);
  padding-top: 14px;
  margin-top: auto;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 800;
}

.add-cart-btn {
  background: var(--accent-color);
  color: var(--accent-text);
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Skeleton Loading */
.skeleton-card { pointer-events: none; }
.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.sk-line { height: 16px; border-radius: 4px; margin-bottom: 10px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Newsletter Section */
.newsletter-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid var(--surface-border);
}

.newsletter-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-copy h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.newsletter-copy p { color: #94a3b8; font-size: 0.95rem; }

.newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-btn {
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

/* Site Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--surface-border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.brand-col .footer-brand { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.brand-col p { color: var(--surface-muted); font-size: 0.88rem; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--surface-muted); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--surface-text); }
.footer-bottom { border-top: 1px solid var(--surface-border); padding-top: 24px; text-align: center; color: var(--surface-muted); font-size: 0.8rem; }

/* Modals General */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 110;
  padding: 16px;
}

.modal-overlay.open { display: grid; }

.modal-card {
  background: #ffffff;
  color: var(--surface-text);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-modal);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Scrollbar refinada */
.modal-card::-webkit-scrollbar { width: 6px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: var(--surface-border); border-radius: 9999px; }
.modal-card::-webkit-scrollbar-thumb:hover { background: var(--surface-muted); }

/* Quick View */
.quick-view-card { max-width: 760px; padding: 32px; }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.qv-media { background: #f1f5f9; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1 / 1; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-price { font-size: 1.4rem; font-weight: 800; margin: 10px 0 14px; }
.qv-desc { font-size: 0.88rem; color: var(--surface-muted); line-height: 1.5; margin-bottom: 20px; }

.variant-group { margin-bottom: 16px; }
.variant-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn { background: #ffffff; border: 1px solid var(--surface-border); padding: 7px 14px; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.variant-btn.selected { background: var(--accent-color); color: var(--accent-text); border-color: var(--accent-color); }
.qv-qty { width: max-content; }
.qv-add-btn { width: 100%; padding: 14px; font-size: 0.95rem; margin-top: 10px; }

/* Welcome Coupon Modal */
.welcome-modal-card { max-width: 440px; text-align: center; }
.welcome-badge { display: inline-block; background: #e0e7ff; color: #4338ca; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 9999px; margin-bottom: 12px; }
.welcome-modal-content h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.welcome-modal-content p { color: var(--surface-muted); font-size: 0.9rem; margin-bottom: 20px; }
.coupon-display-card { background: #f8fafc; border: 2px dashed #0f172a; border-radius: var(--radius-md); padding: 18px; margin-bottom: 20px; }
.code-title { display: block; font-size: 0.75rem; font-weight: 700; color: var(--surface-muted); margin-bottom: 8px; }
.code-box { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: 1px; color: #0f172a; margin-bottom: 6px; }
.copy-btn { background: #0f172a; color: #ffffff; border: none; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.code-hint { font-size: 0.78rem; color: #10b981; font-weight: 600; }
.apply-and-shop-btn { width: 100%; background: #0f172a; color: #ffffff; }

/* Legal Modal */
.legal-modal-card { max-width: 680px; }
.legal-content-body { font-size: 0.9rem; color: var(--surface-text); line-height: 1.65; }
.legal-content-body h4 { margin: 18px 0 6px; font-size: 1.05rem; }
.legal-content-body p { color: var(--surface-muted); margin-bottom: 12px; }

/* Cart Drawer & Coupons */
.cart-drawer { position: fixed; inset: 0; visibility: hidden; z-index: 100; }
.cart-drawer.open { visibility: visible; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: #ffffff; display: flex; flex-direction: column; box-shadow: var(--shadow-drawer); transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; }
.close-btn { background: none; border: none; font-size: 1.6rem; color: var(--surface-muted); cursor: pointer; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--surface-border); }
.item-meta h4 { font-size: 0.95rem; font-weight: 600; }
.item-meta span { font-size: 0.8rem; color: var(--surface-muted); }
.qty-pill { display: flex; align-items: center; gap: 10px; margin-top: 6px; background: var(--bg-body); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); padding: 2px 8px; width: max-content; }
.qty-btn { background: transparent; border: none; font-size: 1rem; font-weight: 700; cursor: pointer; }

/* Coupon Input in Cart */
.coupon-box { margin-bottom: 16px; border-bottom: 1px solid var(--surface-border); padding-bottom: 14px; }
.coupon-input-wrap { display: flex; gap: 8px; }
.coupon-input-wrap input { flex: 1; padding: 9px 12px; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); font-size: 0.85rem; text-transform: uppercase; font-family: inherit; }
.coupon-input-wrap button { background: #0f172a; color: #ffffff; border: none; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.coupon-msg { font-size: 0.78rem; margin-top: 6px; min-height: 16px; }
.coupon-msg.success { color: #10b981; font-weight: 600; }
.coupon-msg.error { color: #ef4444; }

/* Totales */
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--surface-border); background: #ffffff; }
.cart-summary-stack { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--surface-muted); }
.discount-row { color: #10b981; font-weight: 700; }
.total-row { font-size: 1.15rem; font-weight: 800; color: var(--surface-text); border-top: 1px dashed var(--surface-border); padding-top: 8px; margin-top: 4px; }

.checkout-buttons-stack { display: flex; flex-direction: column; gap: 10px; }
.stripe-pay-btn { width: 100%; padding: 13px; background: #635bff; color: #ffffff; border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.stripe-pay-btn:hover { opacity: 0.92; }
.wa-order-trigger-btn { width: 100%; padding: 11px; background: transparent; color: var(--surface-text); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.submit-order-btn { width: 100%; padding: 14px; background: var(--accent-color); color: var(--accent-text); border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; outline: none; }
.hp-input-container { position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0; top: -9999px; left: -9999px; }
.success-banner { background: #10b981; color: #ffffff; padding: 14px 0; text-align: center; font-size: 0.95rem; }

/* ==========================================================================
   FLOATING SOCIAL ACTION BUTTON (FAB)
   ========================================================================== */
.social-fab { position: fixed; bottom: 24px; right: 24px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.social-fab__tooltip { position: absolute; right: calc(100% + 12px); background: #0f172a; color: #ffffff; padding: 5px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(6px); transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.social-fab__toggle { width: 52px; height: 52px; border-radius: 50%; background: #0f172a; color: #ffffff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); position: relative; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.social-fab__toggle:hover { transform: scale(1.08); }
.social-fab__toggle:hover .social-fab__tooltip { opacity: 1; transform: translateX(0); }
.social-fab__plane { width: 24px; height: 24px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.social-fab.is-open .social-fab__plane { transform: rotate(45deg) scale(0.9); }
.social-fab.is-open .social-fab__toggle { background: #1e293b; }
.social-fab__icons { display: flex; flex-direction: column-reverse; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s; }
.social-fab.is-open .social-fab__icons { opacity: 1; visibility: visible; transform: translateY(0); }
.social-fab__icon { width: 42px; height: 42px; border-radius: 50%; background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); position: relative; text-decoration: none; transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.social-fab__icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-fab__icon:hover { transform: scale(1.1); background: #0f172a; color: #ffffff; }
.social-fab__icon:hover .social-fab__tooltip { opacity: 1; transform: translateX(0); }

@media (max-width: 768px) {
  .qv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .newsletter-form { flex-direction: column; }
}