:root {
  --sky-50: #f6f4f9; --sky-100: #ece8f4; --sky-200: #d5ceea; --sky-300: #b5acd0;
  --sky-400: #9288b8; --sky-500: #7d70a5; --sky-600: #665891; --sky-700: #4a3d6b;
  --cream: #faf9fc; --blush: #c9aab8; --lavender: #b8b2c8;
  --text-dark: #2c3340; --text-mid: #7d70a5; --text-light: #b8b2c8;
  --border: #ddd8ee; --white: #ffffff; --green-wa: #25D366; --pink-ig: #E1306C;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-dark); background: var(--cream); overflow-x: hidden; }

.top-stripe { background: linear-gradient(135deg, var(--sky-400), var(--sky-300)); height: 6px; }
.top-banner { background: var(--sky-100); padding: 8px 0; overflow: hidden; position: relative; min-height: 32px; }
.top-banner .marquee { display: flex; animation: scroll-left 25s linear infinite; white-space: nowrap; }
.top-banner .marquee span { font-size: 12px; letter-spacing: 0.5px; color: var(--sky-600); padding: 0 40px; font-weight: 400; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.promo-bar { background: linear-gradient(90deg, var(--sky-700) 0%, var(--sky-500) 50%, var(--sky-700) 100%); overflow: hidden; min-height: 38px; display: flex; align-items: center; }
.promo-bar .marquee { display: flex; animation: scroll-left 45s linear infinite; white-space: nowrap; }
.promo-bar .marquee .promo-item { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 2px; color: rgba(255,255,255,0.85); text-transform: uppercase; padding: 10px 48px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.promo-icon { width: 12px; height: 12px; opacity: 0.7; vertical-align: middle; }
@keyframes promo-shine { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 14px; font-weight: 400; letter-spacing: 0.3px; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--sky-400); transition: width 0.3s; }
.nav-links a:hover { color: var(--sky-500); }
.nav-links a:hover::after { width: 100%; }

/* ── Nav dropdown ── */
.has-dropdown { position: relative; }
.has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 12px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 6px 0; min-width: 160px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); z-index: 150; list-style: none; }
.has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a { display: block; padding: 9px 16px; font-size: 13px; color: var(--text-mid); text-decoration: none; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-dropdown li a::after { display: none; }
.nav-dropdown li a:hover { background: var(--sky-50); color: var(--sky-600); }
.logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 500; color: var(--sky-700); letter-spacing: 2px; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.search-box { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 24px; padding: 6px 14px; gap: 8px; transition: border-color 0.3s; }
.search-box:focus-within { border-color: var(--sky-400); }
.search-box input { border: none; outline: none; font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--text-dark); background: transparent; width: 140px; }
.search-box input::placeholder { color: var(--text-light); }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-mid); font-size: 20px; transition: color 0.3s; display: flex; align-items: center; position: relative; }
.icon-btn:hover { color: var(--sky-500); }
.svg-icon { display: inline-block; background-color: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.svg-cart { -webkit-mask-image: url('../img/cart-icon.svg'); mask-image: url('../img/cart-icon.svg'); transform: scaleX(-1); }
.svg-search { -webkit-mask-image: url('../img/search-icon.svg'); mask-image: url('../img/search-icon.svg'); }
.svg-phone { -webkit-mask-image: url('../img/phone-icon.svg'); mask-image: url('../img/phone-icon.svg'); }
.svg-ig { -webkit-mask-image: url('../img/ig-icon.svg'); mask-image: url('../img/ig-icon.svg'); }
.svg-share { -webkit-mask-image: url('../img/share-icon.svg'); mask-image: url('../img/share-icon.svg'); }
.svg-tshirt { -webkit-mask-image: url('../img/tshirt-icon.svg'); mask-image: url('../img/tshirt-icon.svg'); }

.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--sky-500); color: white; font-size: 10px; font-weight: 600; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); transform: scale(0); }
.cart-badge.visible { transform: scale(1); }
.cart-badge.bump { animation: badge-bump 0.4s ease; }
@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

.hero { position: relative; height: 440px; margin: 24px 48px; border-radius: 20px; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.42, 0, 0.12, 1); will-change: transform; }
.carousel-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.carousel-slide .slide-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 110px; }
.carousel-slide:nth-child(1) .slide-placeholder { background: linear-gradient(135deg, var(--sky-200), var(--sky-100), #f0e8e6); }
.carousel-slide:nth-child(2) .slide-placeholder { background: linear-gradient(135deg, #dde6ee, var(--sky-200), #e8e4ec); }
.carousel-slide:nth-child(3) .slide-placeholder { background: linear-gradient(135deg, var(--sky-100), #f5eeec, var(--sky-200)); }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 36px 48px; z-index: 2; pointer-events: none; }
.hero-text { text-align: center; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 60px; font-weight: 500; color: var(--white); line-height: 1.1; letter-spacing: 1px; margin-bottom: 10px; }
.hero-text p { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 400; color: var(--white); letter-spacing: 4px; text-transform: uppercase; }
.hero-banner { display: none; }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; transition: all 0.35s; padding: 0; position: relative; }
.carousel-dot::after { content: ''; position: absolute; inset: -8px; }
.carousel-dot.active { background: var(--white); transform: scale(1.25); box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,0.2); backdrop-filter: blur(6px); border: 1.5px solid rgba(255,255,255,0.35); color: white; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; transition: all 0.3s; }
.carousel-arrow:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.08); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.30); z-index: 1; pointer-events: none; }
.hero::before { content: 'Aviora · Aviora · Aviora ·'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%) rotate(90deg); font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.2); white-space: nowrap; letter-spacing: 5px; z-index: 3; }

.section-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--sky-700); padding: 40px 48px 24px; text-align: center; }

/* ── Mobile Product Search ── */
.mobile-product-search {
  display: none; align-items: center; gap: 10px; margin: 0 48px 16px;
  padding: 10px 18px; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 28px; transition: border-color 0.3s;
}
.mobile-product-search:focus-within { border-color: var(--sky-400); }
.mobile-product-search span { font-size: 16px; opacity: 0.5; flex-shrink: 0; }
.mobile-product-search input { border: none; outline: none; font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--text-dark); background: transparent; flex: 1; width: 100%; }
.mobile-product-search input::placeholder { color: var(--text-light); }

/* ── Products toolbar (filtros + ordenamiento) ── */
.products-toolbar { display: flex; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 0 48px 20px; }
.sort-wrapper { flex-shrink: 0; }
.custom-select { position: relative; }
.custom-select-btn { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 16px; border: 1.5px solid var(--border); border-radius: 20px; background: var(--white); font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--text-mid); cursor: pointer; transition: border-color 0.2s, color 0.2s; white-space: nowrap; }
.custom-select-btn:hover, .custom-select-btn[aria-expanded="true"] { border-color: var(--sky-400); color: var(--sky-600); }
.custom-select-btn svg { transition: transform 0.2s; flex-shrink: 0; }
.custom-select-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.custom-select-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 4px 0; min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 50; list-style: none; }
.custom-select-menu.open { display: block; }
.custom-select-option { padding: 9px 16px; font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--text-mid); cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.custom-select-option:hover { background: var(--sky-50); color: var(--sky-600); }
.custom-select-option.active { color: var(--sky-600); font-weight: 600; }

/* ── Toolbar dropdowns ── */
.products-toolbar { gap: 10px; }
.sort-wrapper { flex: 1; }
.custom-select { width: 100%; }
.custom-select-btn { width: 100%; justify-content: space-between; }
.custom-select-menu.align-left { right: auto; left: 0; }
.custom-select-menu.align-right { left: auto; right: 0; }

/* ── Loading ── */
.products-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; gap: 16px; color: var(--text-light);
}
.products-loading.hidden { display: none; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--sky-400); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.products-loading p { font-size: 14px; }

/* ── Error ── */
.products-error {
  display: none; text-align: center; padding: 60px 20px; color: var(--text-light);
}
.products-error span { font-size: 48px; display: block; margin-bottom: 12px; }
.products-error p { font-size: 14px; margin-bottom: 16px; }
.retry-btn {
  padding: 8px 24px; border: 1.5px solid var(--sky-400); border-radius: 20px;
  background: transparent; color: var(--sky-500); font-family: 'Montserrat', sans-serif;
  font-size: 13px; cursor: pointer; transition: all 0.3s;
}
.retry-btn:hover { background: var(--sky-400); color: white; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0 48px 40px; min-height: 600px; }
.product-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.35s ease, box-shadow 0.35s ease; cursor: pointer; position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(59, 148, 230, 0.12); }
.product-card.skeleton { pointer-events: none; cursor: default; }
.product-card.skeleton:hover { transform: none; box-shadow: none; }
.skeleton-img { width: 100%; aspect-ratio: 1; background: linear-gradient(90deg, var(--sky-100) 25%, var(--sky-50) 50%, var(--sky-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.product-card.skeleton .product-info { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--sky-100) 25%, var(--sky-50) 50%, var(--sky-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-line.w40 { width: 40%; } .skeleton-line.w45 { width: 45%; } .skeleton-line.w50 { width: 50%; }
.skeleton-line.w55 { width: 55%; } .skeleton-line.w60 { width: 60%; } .skeleton-line.w65 { width: 65%; }
.skeleton-line.w70 { width: 70%; } .skeleton-line.w75 { width: 75%; } .skeleton-line.w80 { width: 80%; }
.product-img { width: 100%; aspect-ratio: 1; background: var(--sky-50); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img .placeholder-icon { font-size: 48px; opacity: 0.5; }
.product-img .badge { position: absolute; top: 12px; left: 12px; background: var(--sky-600); color: white; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.3px; z-index: 2; }
.product-img .badge-discount { background: #d63384; }
.add-cart-overlay { position: absolute; inset: 0; background: rgba(61, 82, 104, 0.0); display: flex; align-items: center; justify-content: center; transition: background 0.35s; z-index: 1; }
.product-card:hover .add-cart-overlay { background: rgba(61, 82, 104, 0.2); }
.add-cart-btn { background: var(--white); border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(12px); opacity: 0; transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.product-card:hover .add-cart-btn { opacity: 1; transform: translateY(0); }
.add-cart-btn:hover { background: var(--sky-400); color: white; transform: scale(1.1) !important; }
.add-cart-btn:active { transform: scale(0.95) !important; }
.add-cart-btn.added { background: var(--sky-500) !important; color: white !important; }
.product-info { padding: 16px; text-align: center; }
.product-info h3 { font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 4px; line-height: 1.4; }
.product-info .description { font-size: 12px; color: var(--text-light); margin-bottom: 6px; line-height: 1.3; }
.product-info .price { font-size: 16px; font-weight: 600; color: var(--sky-600); }
.price-row { display: flex; align-items: baseline; gap: 6px; justify-content: center; }
.price-offer { font-size: 16px; font-weight: 700; color: #d63384; }
.price-original { font-size: 12px; font-weight: 400; color: var(--text-light); text-decoration: line-through; }
.product-info .sizes { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.color-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.color-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.12); flex-shrink: 0; }
.color-dot[style*="ffffff"], .color-dot[style*="white"] { border-color: var(--border); }

.no-results { display: none; text-align: center; padding: 24px 24px 48px; }
.no-results-msg { font-size: 16px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
.no-results-msg strong { color: var(--sky-700); }
.no-results-hint { font-size: 13px; color: var(--text-light); margin-bottom: 0; }
.no-results-suggest { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-mid); margin: 20px 0 12px; }
.no-results-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; text-align: left; }
@media (max-width: 768px) { .no-results-cards { grid-template-columns: repeat(2, 1fr); } }
.load-more-wrap { text-align: center; padding: 8px 0 40px; }
.load-more-btn { background: none; border: 2px solid var(--sky-400); color: var(--sky-600); border-radius: 30px; padding: 12px 36px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
.load-more-btn:hover { background: var(--sky-500); color: white; border-color: var(--sky-500); }

.trust-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trust-item { display: flex; flex-direction: column; align-items: center; padding: 32px 20px; gap: 10px; position: relative; }
.trust-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
.trust-icon { font-size: 28px; color: var(--sky-400); }
.trust-item h4 { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.trust-item p { font-size: 12px; color: var(--text-light); }


.floating-btns { position: fixed; bottom: 28px; right: 28px; display: flex; flex-direction: column; gap: 14px; z-index: 500; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,0.18); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s; text-decoration: none; color: white; font-size: 26px; }
.float-btn:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(0,0,0,0.25); }
.float-btn:active { transform: scale(0.95); }
.float-btn.whatsapp { background: var(--green-wa); }
.float-btn.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.float-btn svg { width: 28px; height: 28px; fill: white; }

.cart-drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 600; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-drawer-backdrop.open { display: block; opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; width: 380px; max-width: 92vw; height: 100vh; height: 100dvh; background: var(--white); z-index: 601; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.42, 0, 0.12, 1); display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,0.1); }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--sky-700); }
.cart-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-mid); padding: 4px; transition: color 0.3s; }
.cart-close:hover { color: var(--text-dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-mid); font-size: 14px; }
.cart-empty-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; animation: fadeUp 0.3s ease; }
.cart-item-img { width: 60px; height: 60px; border-radius: 10px; background: var(--sky-50); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img .ci-placeholder { font-size: 24px; opacity: 0.4; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-details h4 { font-size: 13px; font-weight: 500; color: var(--text-dark); line-height: 1.3; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-details .ci-variants { font-size: 11px; color: var(--text-light); display: block; margin-bottom: 2px; }
.cart-item-details .ci-price { display: flex; align-items: baseline; gap: 6px; }
.cart-item-details .ci-offer { font-size: 14px; font-weight: 600; color: var(--sky-600); }
.cart-item-details .ci-original { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-mid); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-btn:hover { border-color: var(--sky-400); color: var(--sky-500); }
.cart-item-qty span { font-size: 14px; font-weight: 500; min-width: 18px; text-align: center; }
.cart-footer { border-top: 1px solid var(--border); padding: 20px 24px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.cart-subtotal, .cart-discount-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.amount-sm { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.promo-label { color: var(--sky-600); font-weight: 500; }
.discount-amount { color: #2e7d32; font-weight: 600; }
.cart-summary { margin-bottom: 8px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); padding: 2px 0; }
.cart-summary-row.discount span:last-child { color: #7cb87c; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-top: 10px; border-top: 1px solid var(--border); }
.cart-total .label { font-size: 14px; color: var(--text-mid); }
.cart-total .amount { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--sky-700); }
.cart-checkout-btn { width: 100%; padding: 14px; background: var(--sky-500); color: white; border: none; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; letter-spacing: 0.3px; transition: background 0.3s; }
.cart-checkout-btn:hover { background: var(--sky-600); }

footer { background: var(--sky-50); padding: 48px 48px 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-col h4 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--sky-700); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: var(--text-dark); text-decoration: none; margin-bottom: 8px; transition: color 0.3s; }
.footer-col a:hover { color: var(--sky-500); }
.footer-col .social-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.product-card, .trust-item { opacity: 0; animation: fadeUp 0.6s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .product-card, .trust-item { animation: none; opacity: 1; }
}

/* ── Promo Popup Modal ── */
.promo-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 800; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.promo-modal-backdrop.open { opacity: 1; pointer-events: all; }
.promo-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(0.92); z-index: 801; width: min(420px, 92vw); border-radius: 24px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s; }
.promo-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }
.promo-modal-close { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,0.15); border: none; color: white; font-size: 16px; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 2; }
.promo-modal-close:hover { background: rgba(255,255,255,0.3); }
.promo-modal-header { background: linear-gradient(135deg, var(--sky-700) 0%, var(--sky-500) 100%); padding: 40px 32px 32px; text-align: center; position: relative; }
.promo-modal-tag { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 4px; color: rgba(255,255,255,0.75); text-transform: uppercase; display: block; margin-bottom: 8px; }
.promo-modal-percent { font-family: 'Playfair Display', serif; font-size: 110px; font-weight: 500; color: white; line-height: 1; letter-spacing: -2px; }
.promo-modal-percent span { font-size: 60px; vertical-align: super; }
.promo-modal-off { font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 300; color: rgba(255,255,255,0.85); letter-spacing: 10px; margin-top: -12px; }
.promo-modal-body { background: var(--white); padding: 28px 32px 32px; text-align: center; }
.promo-modal-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; color: var(--sky-700); margin-bottom: 10px; }
.promo-modal-sub { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-bottom: 24px; }
.promo-modal-cta { width: 100%; padding: 15px; background: var(--sky-500); color: white; border: none; border-radius: 14px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.promo-modal-cta:hover { opacity: 0.9; transform: scale(1.02); }

/* ── Product Detail Modal ── */
.product-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 700; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.product-modal-backdrop.open { opacity: 1; pointer-events: all; }
.product-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.97); z-index: 701; background: var(--white); border-radius: 20px; width: min(860px, 94vw); max-height: 90vh; max-height: 90dvh; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.18); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s; opacity: 0; pointer-events: none; }
.product-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }
.product-modal-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: min(560px, 88dvh); }
.modal-gallery { background: var(--sky-50); border-radius: 20px 0 0 20px; display: flex; flex-direction: column; overflow: hidden; }
.modal-img-wrap { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.modal-img-wrap.loading { background: linear-gradient(90deg, var(--sky-100) 25%, var(--sky-50) 50%, var(--sky-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.modal-main-img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: center 25%; display: block; opacity: 0; transition: opacity 0.3s; }
.modal-main-img.loaded { opacity: 1; }
.modal-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: border-color 0.2s, opacity 0.3s; opacity: 0; background: linear-gradient(90deg, var(--sky-100) 25%, var(--sky-50) 50%, var(--sky-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.modal-thumb.loaded { opacity: 1; animation: none; background: none; }
.modal-main-placeholder { width: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.modal-swipe-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.modal-img-next { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.82); border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.18); transition: background 0.2s; color: var(--text-dark); line-height: 1; z-index: 2; }
.modal-img-next:hover { background: white; }
.modal-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: none; gap: 6px; align-items: center; z-index: 3; pointer-events: none; }
.modal-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: width 0.2s, height 0.2s, background 0.2s; flex-shrink: 0; }
.modal-dot.active { width: 9px; height: 9px; background: white; }
.modal-img-expand { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,0.82); border: none; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.18); transition: background 0.2s; color: var(--text-dark); padding: 6px; z-index: 2; }
.modal-img-expand:hover { background: white; }
.modal-img-expand svg { width: 100%; height: 100%; }
.img-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; cursor: zoom-out; }
.img-lightbox.open { opacity: 1; }
.lb-stage { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 0; }
.img-lightbox-img { display: block; max-width: 94vw; max-height: 88dvh; object-fit: contain; border-radius: 4px; cursor: default; }
.lb-swipe-img { position: absolute; top: 50%; left: 50%; max-width: 94vw; max-height: 88dvh; object-fit: contain; border-radius: 4px; }
.img-lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.45); border: none; color: white; font-size: 18px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 3; }
.img-lightbox-close:hover { background: rgba(0,0,0,0.65); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); border: none; color: white; font-size: 22px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 2; }
.lb-nav:hover { background: rgba(0,0,0,0.65); }
.lb-nav-prev { right: calc(100% + 14px); }
.lb-nav-next { left: calc(100% + 14px); }
.lb-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; z-index: 3; }
.lb-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: width 0.2s, height 0.2s, background 0.2s; }
.lb-dot.active { width: 10px; height: 10px; background: #fff; }
@media (max-width: 640px) { .lb-nav { display: none; } }
.modal-thumbnails { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--sky-100); }

.modal-thumb.active { border-color: var(--sky-500); }
.modal-details { padding: 32px 28px 32px 28px; padding-right: 52px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.82); border: none; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.18); transition: background 0.2s; color: var(--text-dark); padding: 6px; z-index: 5; }
.modal-close:hover { background: white; }
.modal-close svg { width: 100%; height: 100%; }
.modal-badge { display: inline-block; background: var(--sky-400); color: white; font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 20px; align-self: flex-start; }
.modal-name { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.modal-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.modal-price { font-size: 28px; font-weight: 600; color: var(--sky-600); }
.modal-price-row { display: flex; align-items: baseline; gap: 10px; }
.modal-price-offer { color: #d63384; }
.modal-price-original { font-size: 18px; font-weight: 400; color: var(--text-light); text-decoration: line-through; }
.modal-badge.badge-discount { background: #d63384; }
.modal-meta { display: flex; flex-direction: column; gap: 6px; }
.modal-meta span { font-size: 13px; color: var(--text-mid); }
.modal-meta strong { color: var(--text-dark); }
/* ── Selección de color y talle ── */
.modal-option-group { display: flex; flex-direction: column; gap: 8px; }
.modal-option-label { font-size: 13px; color: var(--text-mid); }
.modal-option-label strong { color: var(--text-dark); }
.modal-color-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.color-chip { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; outline: none; }
.color-chip.light { border-color: var(--border); }
.color-chip:hover { transform: scale(1.15); }
.color-chip.active { box-shadow: 0 0 0 3px var(--sky-400); transform: scale(1.15); }
.modal-size-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.size-chip { padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--white); color: var(--text-mid); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.size-chip:hover { border-color: var(--sky-400); color: var(--sky-500); }
.size-chip.active { background: var(--sky-500); color: white; border-color: var(--sky-500); }
.modal-selection-error { font-size: 12px; color: #e53935; min-height: 16px; }

.modal-actions-row { display: flex; gap: 10px; margin-top: auto; }
.modal-add-btn { flex: 1; background: var(--sky-500); color: white; border: none; border-radius: 12px; padding: 14px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.modal-add-btn:hover { background: var(--sky-600); }
.modal-share-btn { flex-shrink: 0; background: none; border: 1.5px solid var(--sky-300); border-radius: 12px; width: 48px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.modal-share-btn:hover { border-color: var(--sky-500); background: var(--sky-50); }
.modal-ask-colors { display: inline-block; margin-top: 8px; font-family: 'Montserrat', sans-serif; font-size: 12px; color: var(--sky-500); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.modal-ask-colors:hover { color: var(--sky-700); }
@media (max-width: 640px) {
  /* Bottom sheet */
  .product-modal { top: auto; bottom: 0; left: 0; width: 100%; border-radius: 20px 20px 0 0; transform: translateY(6%) scale(0.98); height: 92dvh; max-height: 92dvh; }
  .product-modal.open { transform: translateY(0) scale(1); }
  /* Layout interno: columna flex de altura fija */
  .product-modal-inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; grid-template-columns: unset; }
  /* Imagen: 40% de la altura del modal */
  .modal-gallery { border-radius: 20px 20px 0 0; flex: 0 0 40%; overflow: hidden; }
  .modal-img-wrap { flex: 1; min-height: 0; aspect-ratio: unset; }
  .modal-main-img, .modal-main-placeholder { aspect-ratio: unset; }
  /* Ocultar miniaturas en mobile (tenemos dots + swipe) */
  .modal-thumbnails { display: none; }
  /* Ocultar descripción en mobile para ganar espacio vertical */
  .modal-desc { display: none; }
  /* Detalles: ocupan el resto y hacen scroll si hay overflow */
  .modal-details { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; padding-bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .modal-name { font-size: 20px; }
  .modal-price { font-size: 22px; }
  .modal-dots { display: flex; }
  .modal-img-next { display: none !important; }
}

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; z-index: 201; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--sky-600); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 50%; min-width: 200px; background: var(--white); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0 0 16px 0; box-shadow: 4px 8px 24px rgba(0,0,0,0.1); z-index: 200; flex-direction: column; gap: 0; padding: 0 0 8px; transform: translateY(-8px); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; pointer-events: none; }
.mobile-nav.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-nav.closing { transform: translateY(-8px); opacity: 0; }
.mobile-nav-backdrop { display: none; position: fixed; inset: 0; top: 0; z-index: 199; }
.mobile-nav-backdrop.open { display: block; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.mobile-nav-title { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--text-mid); }
.mobile-nav-close { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text-mid); padding: 4px; line-height: 1; transition: color 0.2s; }
.mobile-nav-close:hover { color: var(--text-dark); }
.mobile-nav a { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-dark); text-decoration: none; padding: 11px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s, color 0.15s; }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { background: var(--sky-50); color: var(--sky-600); }
.mobile-search { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 24px; padding: 7px 12px; gap: 8px; background: var(--cream); margin: 4px 12px 8px; }
.mobile-search input { border: none; outline: none; font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--text-dark); background: transparent; flex: 1; min-width: 0; }
.mobile-search input::placeholder { color: var(--text-light); }

@media (max-width: 1024px) {
  .navbar { padding: 14px 28px; } .hero { margin: 20px 28px; height: 340px; } .hero-overlay { padding: 28px 32px; } .hero-text h1 { font-size: 46px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 28px 32px; }
  .products-toolbar { padding: 0 28px 16px; }
  .section-title { padding: 32px 28px 20px; } footer { padding: 36px 28px 20px; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; } .nav-links { display: none; } .search-box { display: none; }
  .mobile-product-search { display: flex; margin: 0 16px 12px; }
  .navbar { padding: 12px 16px; } .logo { font-size: 18px; }
  .hero { margin: 12px 16px; height: 260px; border-radius: 16px; } .hero::before { display: none; } .hero-overlay { padding: 24px 20px; } .hero-text h1 { font-size: 30px; } .hero-text p { font-size: 11px; letter-spacing: 3px; } .carousel-slide .slide-placeholder { font-size: 70px; padding: 0 4% 3% 0; }
  .carousel-arrow { display: none; }
  .section-title { padding: 28px 16px 16px; font-size: 24px; }
  .products-toolbar { padding: 0 16px 12px; flex-wrap: wrap; gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 28px; }
  .product-card { border-radius: 12px; } .product-info { padding: 12px; } .product-info h3 { font-size: 13px; } .product-info .price { font-size: 14px; } .price-offer { font-size: 14px; } .product-info .description { font-size: 11px; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item { padding: 20px 16px; flex-direction: row; gap: 14px; text-align: left; align-items: center; }
  .trust-item:not(:last-child)::after { right: 10%; left: 10%; top: auto; bottom: 0; width: 80%; height: 1px; }
  .trust-icon { font-size: 24px; } .trust-item h4 { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } footer { padding: 32px 16px 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .floating-btns { bottom: 20px; right: 16px; } .float-btn { width: 50px; height: 50px; font-size: 22px; } .float-btn svg { width: 24px; height: 24px; }
  .add-cart-overlay { background: transparent; }
  .add-cart-btn { opacity: 1; transform: translateY(0); width: 40px; height: 40px; font-size: 18px; position: absolute; bottom: 10px; right: 10px; }
}
@media (max-width: 480px) {
  .promo-bar { font-size: 10px; padding: 8px 12px; } .top-banner .marquee span { font-size: 11px; }
  .navbar { padding: 10px 12px; } .logo { font-size: 25px; } .nav-right { gap: 10px; } .icon-btn { font-size: 18px; }
  .hero { margin: 10px 12px; height: 200px; border-radius: 14px; } .hero-overlay { padding: 18px 16px; } .hero-text h1 { font-size: 22px; } .hero-text p { font-size: 10px; letter-spacing: 2.5px; } .carousel-slide .slide-placeholder { font-size: 54px; }
  .section-title { padding: 24px 12px 12px; font-size: 22px; }
  .mobile-product-search { margin: 0 12px 10px; padding: 8px 14px; }
  .mobile-product-search input { font-size: 13px; }
  .products-toolbar { padding: 0 12px 10px; flex-wrap: wrap; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px 24px; }
  .product-card { border-radius: 10px; } .product-info { padding: 10px; } .product-info h3 { font-size: 12px; line-height: 1.3; } .product-info .description { display: none; } .product-info .sizes { display: none; } .product-info .price { font-size: 13px; }
  .product-img .badge { font-size: 10px; padding: 3px 8px; top: 8px; left: 8px; }
  .trust-item { padding: 16px 12px; } .trust-item h4 { font-size: 13px; } .trust-item p { font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; } footer { padding: 24px 12px 12px; } .footer-col h4 { font-size: 16px; margin-bottom: 10px; } .footer-col a, .footer-col p { font-size: 12px; }
  .floating-btns { bottom: 16px; right: 12px; gap: 10px; } .float-btn { width: 46px; height: 46px; } .float-btn svg { width: 22px; height: 22px; }
  .product-card, .trust-item { animation: none; opacity: 1; }
}
