/* ─────────────────────────────────────────────────────────────
   KEYSBOUTIQ UPGRADE — Catalog CSS
───────────────────────────────────────────────────────────── */

:root {
  --c-bg:         #ffe4e8;
  --c-bg-dot:     rgba(255, 182, 193, 0.55);
  --c-surface:    rgba(255, 255, 255, 0.85); 
  --c-border:     rgba(255, 182, 193, 0.45);
  --c-text:       #5d4a4e;
  --c-text-muted: #9a7880;
  --c-accent:     #ffb6c1;
  --c-accent-dk:  #d15c74;
  --c-accent-hover: #b8485e;
  --c-sale:       #ff5a5f;
  --c-exclusive:  #d15c74;
  --c-new:        #d15c74;
  --c-star:       #ffb6c1;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  24px;

  --shadow-card:  0 4px 18px rgba(209, 92, 116, 0.09);
  --shadow-hover: 0 18px 44px rgba(209, 92, 116, 0.2);

  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--c-bg);
  background-image: radial-gradient(circle, var(--c-bg-dot) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 240, 243, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border); box-shadow: 0 8px 32px rgba(209, 92, 116, 0.05);
}
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header-nav { display: flex; gap: 28px; }
.header-nav a { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-text-muted); transition: color var(--transition); }
.header-nav a:hover { color: var(--c-accent-dk); }
.logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.15em; color: var(--c-accent-dk); text-align: center; }
.header-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.icon-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--c-text); transition: all var(--transition); position: relative; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--c-accent); color: white; }
.cart-count {
  position: absolute; top: 0px; right: 0px; width: 18px; height: 18px; background: var(--c-sale); color: #fff;
  font-size: 0.65rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.5); transition: opacity var(--transition), transform var(--transition); border: 2px solid white;
}
.cart-count.visible { opacity: 1; transform: scale(1); }

/* ── SEARCH INLINE BAR (NO INVASIVO) ── */
.search-inline-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 248, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 15px rgba(209, 92, 116, 0.05);
  padding: 12px 32px;
  display: flex;
  justify-content: center;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: -1;
}
.search-inline-wrapper.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.search-container-box {
  width: 100%;
  max-width: 600px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-container-box input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--c-accent-dk);
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--c-text);
  padding: 8px 40px 8px 0;
  outline: none;
  font-weight: 500;
}
.search-container-box input::placeholder {
  color: var(--c-text-muted);
  opacity: 0.6;
}
.search-container-box .close-search {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-accent-dk);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform var(--transition);
}
.search-container-box .close-search svg { width: 22px; height: 22px; }
.search-container-box .close-search:hover { transform: translateY(-50%) scale(1.1); }


/* ── Logo Slot ── */
.logo-slot { display: flex; align-items: center; height: 44px; }
.logo-img { max-height: 44px; max-width: 150px; object-fit: contain; display: none; }
.logo-img[src]:not([src=""]) { display: block; }
.logo-img[src]:not([src=""]) ~ .logo-placeholder { display: none; }
.logo-placeholder { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); border: 1.5px dashed var(--c-border); padding: 6px 14px; border-radius: var(--radius-sm); }

/* ── HERO SLIDER ── */
.hero { position: relative !important; padding: 0 !important; max-width: 100% !important; height: 520px; overflow: hidden !important; display: flex !important; align-items: center !important; }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slides { display: flex; width: 100%; height: 100%; transition: transform 0.6s ease-in-out; }
.hero-slide { min-width: 100%; height: 100%; flex-shrink: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-slide-overlay { position: absolute; inset: 0; background: rgba(255, 192, 203, 0.55); pointer-events: none; }
.hero-text { position: relative !important; z-index: 2 !important; max-width: 520px; padding: 0 48px; }
.hero-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-accent-dk); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--c-accent); }
.hero h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); color: var(--c-accent-dk); margin-bottom: 20px; font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.hero h1 em { font-style: italic; color: var(--c-accent); }
.hero p { font-size: 1.1rem; color: var(--c-text); margin-bottom: 32px; font-weight: 500;}
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 36px; border: none; cursor: pointer; background: linear-gradient(135deg, var(--c-accent-dk) 0%, #e07a8a 100%); color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--radius-sm); transition: transform var(--transition), box-shadow var(--transition); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(209, 92, 116, 0.38); }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: background 0.3s, transform 0.3s; padding: 0; }
.hero-dot.active { background: #fff; transform: scale(1.35); }

/* ── CATALOG CONTROLS ── */
h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--c-accent-dk); }
.catalog-section { max-width: 1400px; margin: 0 auto; padding: 0 32px 80px; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--c-border); margin-bottom: 40px; }
.catalog-title-group { display: flex; align-items: baseline; gap: 16px; }
.catalog-title-group h2 { font-size: 2.2rem; }
.catalog-count { font-size: 0.9rem; color: var(--c-text-muted); font-weight: 500;}
.catalog-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--c-border); font-size: 0.8rem; font-weight: 700; color: var(--c-text); background: rgba(255, 255, 255, 0.75); transition: all var(--transition); }
.pill:hover { border-color: var(--c-accent); background: var(--c-accent); color: white;}
.pill.active { background: var(--c-accent-dk); border-color: var(--c-accent-dk); color: #fff; box-shadow: 0 4px 14px rgba(209, 92, 116, 0.35); }
.sort-select { padding: 9px 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.75); font-size: 0.85rem; font-weight: 600; color: var(--c-text); cursor: pointer; outline: none; }
.sort-select:focus { border-color: var(--c-accent-dk); }

/* ── PRODUCT CARDS ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; transition: opacity 0.3s ease; }
.product-card.hidden { display: none; }
.product-card { background: var(--c-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--c-border); position: relative; animation: fadeUp 0.5s both; transition: transform var(--transition), box-shadow var(--transition); will-change: transform, box-shadow; backface-visibility: hidden; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.card-image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff0f3; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; will-change: transform; }
.product-card:hover .card-image-wrap img { transform: scale(1.05); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { padding: 5px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge--new { background: var(--c-accent-dk); color: #fff; }
.badge--sale { background: var(--c-sale); color: #fff; }
.card-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; opacity: 0; transform: translateX(10px); transition: all var(--transition); pointer-events: none;}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); pointer-events: auto;}
.action-btn { width: 38px; height: 38px; background: rgba(255,255,255,0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: var(--c-text); transition: all var(--transition); }
.action-btn:hover { background: var(--c-accent-dk); color: #fff; transform: scale(1.1); }
.add-to-cart-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; border: none; cursor: pointer; background: rgba(209, 92, 116, 0.95); color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; text-align: center; transform: translateY(100%); transition: transform var(--transition), background var(--transition); z-index: 2; }
.product-card:hover .add-to-cart-overlay { transform: translateY(0); }
.add-to-cart-overlay:hover { background: var(--c-accent-hover); }
.card-info { padding: 18px; display: flex; flex-direction: column; gap: 8px;}
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.card-brand { font-size: 0.75rem; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; }
.card-rating { font-size: 0.8rem; color: var(--c-star); }
.card-name { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--c-text); line-height: 1.3; }
.card-price { display: flex; align-items: center; gap: 8px; margin-top: 4px;}
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--c-accent-dk); }
.price-current.price-sale { color: var(--c-sale); }
.price-original { font-size: 0.9rem; font-weight: 600; color: var(--c-text-muted); text-decoration: line-through; }

/* ── HOW IT WORKS ── */
.how-it-works { max-width: 1400px; margin: 60px auto 80px; padding: 0 32px; }
.hiw-header { text-align: center; margin-bottom: 48px; }
.hiw-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-accent-dk); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--c-accent); }
.hiw-header h2 { font-size: 2.6rem; margin-bottom: 16px; }
.hiw-header p { color: var(--c-text-muted); font-size: 1.1rem; font-weight: 500; }
.hiw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hiw-step { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 40px 24px; text-align: center; box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition); }
.hiw-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.hiw-icon { width: 72px; height: 72px; margin: 0 auto 24px; background: #fff0f3; color: var(--c-accent-dk); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hiw-icon svg { width: 34px; height: 34px; }
.hiw-step h3 { font-size: 1.3rem; margin-bottom: 14px; }
.hiw-step p { font-size: 0.95rem; color: var(--c-text-muted); line-height: 1.6; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(80, 50, 55, 0.4); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--c-surface); border-radius: var(--radius-lg); border: 1px solid var(--c-border); max-width: 860px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; transform: translateY(20px) scale(0.97); transition: transform 0.35s ease; }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 10; width: 36px; height: 36px; background: var(--c-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--c-accent-dk); color: white;}
.modal-image { background: #fff0f3; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.modal-name { font-size: 2rem; color: var(--c-text); font-weight: 800; font-family: var(--font-body); line-height: 1.1;}
.modal-price { font-size: 1.8rem; font-weight: 800; color: var(--c-accent-dk); }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); width: fit-content; }
.qty-btn { width: 40px; height: 40px; font-size: 1.2rem; font-weight: 700; color: var(--c-text); }
.qty-btn:hover { background: var(--c-bg); }
.qty-value { min-width: 40px; text-align: center; font-weight: 800; }
.btn-add-cart { padding: 16px; border: none; cursor: pointer; background: linear-gradient(135deg, var(--c-accent-dk) 0%, #e07a8a 100%); color: #fff; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; border-radius: var(--radius-sm); margin-top: auto; transition: transform var(--transition); }
.btn-add-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(209, 92, 116, 0.38); }

/* ── CART TOAST ── */
.cart-toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; align-items: center; gap: 10px; background: var(--c-accent-dk); color: #fff; padding: 12px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 6px 20px rgba(209, 92, 116, 0.4); transform: translateY(30px); opacity: 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; }
.cart-toast.show { opacity: 1; transform: translateY(0); }
.cart-toast svg { width: 20px !important; height: 20px !important; flex-shrink: 0; stroke: white; }

/* ── CART SIDEBAR ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(80, 50, 55, 0.4); backdrop-filter: blur(4px); z-index: 300; opacity: 0; visibility: hidden; transition: all var(--transition); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: #fff8f9; z-index: 400; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s ease; box-shadow: -8px 0 40px rgba(209, 92, 116, 0.15); }
.cart-sidebar.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; background: white; border-bottom: 1px solid var(--c-border); }
.cart-header h2 { font-size: 1.4rem; color: var(--c-text); margin: 0; font-family: var(--font-body); font-weight: 800;}
.cart-close { width: 36px; height: 36px; border-radius: 50%; background: var(--c-bg); display: flex; align-items: center; justify-content: center; }
.cart-close:hover { background: var(--c-accent-dk); color: white; }
.cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; color: var(--c-text-muted); font-weight: 700; margin-top: 40px;}
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; margin-bottom: 12px; background: white; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.cart-item-meta { display: flex; gap: 12px; align-items: center; }
.cart-item-qty { font-size: 0.85rem; color: var(--c-text-muted); font-weight: 600;}
.cart-item-price { font-weight: 800; color: var(--c-accent-dk); }
.delete-btn { width: 32px; height: 32px; border-radius: 50%; background: #fff0f3; color: var(--c-sale); display: flex; align-items: center; justify-content: center; transition: all 0.2s; border: 1px solid transparent; }
.delete-btn:hover { background: var(--c-sale); color: #fff; transform: scale(1.1); }
.delete-btn svg { width: 16px; height: 16px; }

/* ── CART FOOTER & SELECTORS ── */
.cart-footer { padding: 24px; border-top: 1px solid var(--c-border); background: white; overflow-y: auto; max-height: 50vh; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-row span { font-size: 1rem; color: var(--c-text-muted); font-weight: 700;}
.cart-total-row strong { font-size: 1.8rem; font-weight: 800; color: var(--c-accent-dk); }
.cart-option-group { display: flex; flex-direction: column; gap: 6px; }
.cart-option-group label { font-size: 0.78rem; font-weight: 700; color: var(--c-text); }
.cart-option-group select, .cart-option-group textarea { width: 100%; padding: 12px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: #fff8f9; font-family: inherit; font-size: 0.85rem; color: var(--c-text); outline: none; transition: border-color var(--transition); }
.cart-option-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d15c74' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 30px; }
.cart-option-group textarea { resize: vertical; min-height: 70px; }
.cart-option-group select:focus, .cart-option-group textarea:focus { border-color: var(--c-accent-dk); }
.whatsapp-btn { width: 100%; background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); border: none; cursor: pointer; }
.whatsapp-btn:hover { background: linear-gradient(135deg, #20bc5a 0%, #0e7a6e 100%); }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--c-border); padding-top: 40px;}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 20px 32px; display: flex; justify-content: space-between; flex-wrap: wrap;}
.footer-brand .logo { color: var(--c-accent-dk); margin-bottom: 10px;}
.footer-links h4 { color: var(--c-text); margin-bottom: 12px;}
.footer-links a { color: var(--c-text-muted); display: block; margin-bottom: 8px;}
.footer-bottom { text-align: center; padding: 20px; font-weight: 600; color: var(--c-text-muted); margin-top: 20px; border-top: 1px solid var(--c-border);}

/* ── FLOATING CART FAB (solo móvil) ── */
.cart-fab { display: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── MEDIA QUERIES ── */
@media (max-width: 1024px) {
  .hiw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .modal-image { display: none; }
}
@media (max-width: 768px) {
  .hero { height: 400px; }
  .hero-text { padding: 0 24px; }
  .hero-text h1 { font-size: 2.2rem !important; }
}
@media (max-width: 600px) {
  .header-nav { display: none; }
  .hiw-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 0 16px; margin-top: 40px; }
  .search-inline-wrapper { padding: 12px 16px; }

  /* Header */
  .header-inner { padding: 0 14px; gap: 10px; }
  /* Ocultar carrito del header en móvil (se usa el FAB) */
  .cart-btn { display: none; }

  /* Catálogo */
  .catalog-section { padding: 0 12px 100px; }
  .catalog-header { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 20px; margin-bottom: 24px; }
  .catalog-title-group h2 { font-size: 1.8rem; }
  .catalog-controls { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-pills { width: 100%; }
  .sort-select { width: 100%; }

  /* Grid de productos */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Tarjetas: imagen más compacta */
  .card-image-wrap { aspect-ratio: 3 / 4; }
  .card-info { padding: 10px 10px 12px; gap: 5px; }
  .card-name { font-size: 0.88rem; }
  .price-current { font-size: 1rem; }

  /* Botón "Añadir al carrito": siempre visible en móvil */
  .add-to-cart-overlay {
    transform: translateY(0) !important;
    font-size: 0.7rem;
    padding: 9px 6px;
    letter-spacing: 0.03em;
  }
  /* Botones de acción (vista rápida): siempre visibles en móvil */
  .card-actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }
  .action-btn { width: 32px; height: 32px; }

  /* Toast más arriba para no tapar el FAB */
  .cart-toast { bottom: 90px; }

  /* Sidebar carrito a pantalla completa */
  .cart-sidebar { max-width: 100%; }

  /* FAB carrito flotante */
  .cart-fab {
    display: flex;
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 500;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent-dk) 0%, #e07a8a 100%);
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(209, 92, 116, 0.5);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .cart-fab:active { transform: scale(0.9); box-shadow: 0 3px 10px rgba(209, 92, 116, 0.4); }
  .cart-fab svg { width: 26px; height: 26px; }
  .cart-fab-count {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: var(--c-sale);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity var(--transition), transform var(--transition);
  }
  .cart-fab-count.visible { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
  .hero { height: 340px; }
  .hero-text h1 { font-size: 1.9rem !important; }
  .product-grid { gap: 8px; }
}