/* ============================================
   BICHOTTA - Luxury Boutique Design System
   Version 11.0 - Premium Refinement
   ============================================ */

/* 1. RESET & BASICS (Squared & Clean) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; background-color: #FFFFFF; font-family: 'Montserrat', sans-serif; color: #111827; line-height: 1.4; }
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --primary: #D81B60;
  --accent: #111827;
  --gold: #F3E5AB;
  --border: #EEEEEE;
  --surface: #FDFBFA;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.container { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* 2. HEADER: COMPACT & PRO */
.site-header {
  background: #FFF; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000;
  min-height: 80px; display: flex; align-items: center; box-shadow: 0 2px 15px rgba(0,0,0,0.02);
}
.header-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; width: 100%; gap: 30px; }
.brand img { height: 65px; width: auto; object-fit: contain; }
.header-search form { display: flex; background: var(--surface); border-radius: 100px; border: 1px solid var(--border); padding: 0 15px; max-width: 500px; margin: 0 auto; position: relative; }
.header-search input { flex: 1; border: none; background: transparent; padding: 10px; outline: none; font-size: 0.85rem; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 25px; }

.desktop-nav { display: flex; gap: 20px; align-items: center; margin-right: 10px; }
.desktop-nav a { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); transition: color 0.3s; }
.desktop-nav a:hover { color: var(--primary); }

.action-icon { position: relative; display: inline-flex; color: var(--accent); }

/* PWA UPDATE TOAST */
#pwa-update-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #000; color: #FFF; padding: 15px 25px; border-radius: 50px;
  display: none; align-items: center; gap: 15px; z-index: 3000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid var(--gold);
}
#pwa-update-toast button {
  background: var(--gold); color: #000; border: none; padding: 8px 15px;
  border-radius: 20px; font-weight: 800; font-size: 0.7rem; cursor: pointer;
}
.cart-badge { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; border-radius: 50%; background: #8C1D40; color: #FFF; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

@media (max-width: 1024px) {
  .header-grid { grid-template-columns: auto 1fr auto; }
  .header-search { display: none; }
}

/* 3. HERO: HIGH IMPACT */
.hero-premium { position: relative; min-height: 550px; background: #000; overflow: hidden; display: flex; align-items: center; }
.hero-bg-accent { position: absolute; top: 0; left: 0; width: 55%; height: 100%; background: #000; clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); z-index: 1; }
.hero-grid-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; width: 100%; gap: 30px; position: relative; z-index: 10; }
.hero-visual-branding { display: flex; justify-content: center; }
.hero-brand-mega { max-width: 450px; width: 100%; object-fit: contain; filter: drop-shadow(0 0 30px rgba(216,27,96,0.2)); }
.hero-content { color: #FFF; }
.hero-premium h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; color: var(--gold); margin-bottom: 20px; }
.hero-premium p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 30px; max-width: 500px; }

/* 6. TRUST SECTION (Sleek Horizontal) */
.trust-section {
  padding: 30px 0;
  background: var(--surface);
}

.trust-grid-refined {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card-refined {
  background: #FFF;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
}

.trust-card-refined:hover {
  transform: translateY(-4px);
}

.trust-card-refined span {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.trust-card-refined h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  margin: 0;
  color: var(--accent);
}

@media (max-width: 992px) {
  .trust-grid-refined { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .trust-grid-refined { grid-template-columns: 1fr; }
  .trust-card-refined { height: auto; padding: 20px; }
}

/* 5. PRODUCT CARDS (Zara/Skims Style) */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 600px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.product-card { background: #FFF; display: flex; flex-direction: column; transition: all 0.4s ease; border: 1px solid transparent; }
.product-card:hover { border-color: var(--border); }
.product-image-wrapper { aspect-ratio: 3/4; overflow: hidden; background: #F9F9F9; position: relative; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card-body { padding: 15px 0; }
.product-title { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; color: #333; }
.product-price { font-size: 1rem; font-weight: 700; color: #000; }
.product-rating { color: #FFD700; font-size: 0.65rem; margin-top: 5px; }

/* 6. CATEGORIES (SHEIN WRAPPING) */
.category-grid-premium { display: grid; grid-template-columns: repeat(8, 1fr); gap: 15px; margin: 40px 0; }
@media (max-width: 1024px) { .category-grid-premium { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .category-grid-premium { grid-template-columns: repeat(3, 1fr); } }
.category-item-premium { text-align: center; }
.category-img-wrapper { width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--border); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; background: var(--surface); transition: 0.3s; }
.category-item-premium:hover .category-img-wrapper { border-color: var(--primary); }
.category-name { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #444; }

/* 7. FLASH OFFERS (Fixed Carousel) */
.flash-section { background: #000; color: #FFF; padding: 60px 0; margin-bottom: 40px; }
.flash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.flash-carousel { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.flash-carousel::-webkit-scrollbar { display: none; }
.flash-carousel .product-card { flex: 0 0 250px; background: transparent; border: none; }
.flash-carousel .product-card-body { color: #FFF; }
.flash-carousel .product-title { color: #FFF; }
.flash-carousel .product-price { color: var(--gold); }

/* 8. FOOTER & NAV */
.site-footer { background: #0A0A0A; color: #E2E8F0; padding: 60px 0 30px; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }

@media (max-width: 900px) { 
  .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; } 
}

@media (max-width: 640px) { 
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .footer-brand, .footer-group { text-align: center !important; }
  .footer-social-icons, .footer-payments { justify-content: center !important; }
}

.footer-group h3 { color: var(--primary); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; font-weight: 800; }
.payment-badge { padding: 4px 10px; background: #222; border-radius: 4px; font-size: 0.7rem; margin-right: 5px; }

/* 10. PRODUCT PAGE PREMIUM (Fase 1-8) */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; background: #FFF;
  border-bottom: 1px solid var(--border); padding: 10px 0; z-index: 1050;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-flex { display: flex; justify-content: space-between; align-items: center; }
.sticky-info { display: flex; align-items: center; gap: 15px; }
.sticky-info img { height: 50px; width: 40px; object-fit: cover; border-radius: 4px; }
.sticky-name { font-weight: 700; font-size: 0.9rem; }
.sticky-price { font-weight: 900; color: var(--primary); font-size: 1.1rem; }

.wishlist-btn {
  background: none; border: 1px solid var(--border); padding: 12px 20px;
  border-radius: 8px; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; margin-top: 15px;
  transition: all 0.3s;
}
.wishlist-btn:hover { background: #FDFBFA; border-color: var(--primary); color: var(--primary); }

.tag-visual {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 4px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 15px; margin-right: 8px;
}
.tag-hot { background: #FFF0F0; color: #E53935; border: 1px solid #FFCDD2; }
.tag-new { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }
.tag-fav { background: #FCE4EC; color: #D81B60; border: 1px solid #F8BBD0; }

.trust-inline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 25px; }
.trust-item-sm { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: #666; }

.comp-section { margin: 50px 0; padding: 30px; background: var(--surface); border-radius: 12px; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 20px; }

.best-sellers-carousel {
  display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 20px;
}
.best-sellers-carousel::-webkit-scrollbar { display: none; }
.best-sellers-carousel .product-card { flex: 0 0 200px; }

@media (max-width: 768px) {
  .sticky-name { display: none; }
  .sticky-info { gap: 10px; }
  .sticky-bar .btn-primary { padding: 12px 20px; font-size: 0.8rem; }
}

.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #FFF; border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; z-index: 2000; }
.mobile-nav-item { color: #888; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mobile-nav-item.active { color: var(--primary); }

.btn-primary { background: #000; color: #FFF; padding: 15px 30px; font-weight: 800; font-size: 0.85rem; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary:hover { background: var(--primary); }

/* 11. PREMIUM CHECKOUT SYSTEM */
.checkout-page { padding: 40px 0 120px; background: #F9FAFB; min-height: 100vh; }
.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }

.checkout-card {
  background: #FFF; border-radius: 24px; padding: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04); border: 1px solid var(--border);
}

.checkout-section { margin-bottom: 40px; }
.checkout-section-title {
  font-size: 1.25rem; font-weight: 800; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px; color: var(--accent);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group.full { grid-column: span 2; }

.checkout-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #6B7280; margin-bottom: 8px;
}

.checkout-input, .checkout-select {
  height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid #E5E7EB; background: #FFF; font-family: inherit;
  font-size: 0.95rem; font-weight: 500; transition: all 0.3s; width: 100%;
}

.checkout-input:focus, .checkout-select:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(216, 27, 96, 0.1);
}

.checkout-textarea { min-height: 100px; padding: 16px; }

/* Selectable Cards (Payment & Shipping) */
.selectable-grid { display: grid; gap: 12px; }
.selectable-option {
  position: relative; border: 2px solid #F3F4F6; border-radius: 16px;
  padding: 20px; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; gap: 16px;
}

.selectable-option input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); }
.selectable-option:hover { border-color: #E5E7EB; background: #FAFAFA; }

.selectable-option.active, .selectable-option:has(input:checked) {
  border-color: var(--primary); background: rgba(216, 27, 96, 0.02);
}

.option-info strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.option-info small { color: #6B7280; font-size: 0.8rem; }

/* Order Summary */
.order-summary {
  background: #000; color: #FFF; border-radius: 24px; padding: 28px;
  position: sticky; top: 100px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.summary-title { font-size: 1.5rem; color: var(--gold); margin-bottom: 24px; font-weight: 900; }
.summary-item-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 2px solid var(--gold); margin-top: 12px;
}
.total-label { font-weight: 800; font-size: 1.1rem; }
.total-amount { color: var(--gold); font-size: 1.8rem; font-weight: 900; }

.btn-confirm {
  width: 100%; height: 58px; background: var(--primary); color: #FFF;
  border: none; border-radius: 14px; font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 2px; cursor: pointer;
  transition: all 0.3s; margin-top: 24px;
}
.btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(216,27,96,0.3); }

.summary-badges { display: flex; justify-content: center; gap: 15px; margin-top: 30px; opacity: 0.7; font-size: 0.75rem; font-weight: 700; }
.badge-item { display: flex; align-items: center; gap: 6px; }

@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; margin-bottom: 30px; }
}

@media (max-width: 640px) {
  .checkout-card { padding: 20px; border-radius: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .checkout-page { padding-bottom: 100px; }
}
