/* ============================================
   BICHOTTA - Luxury Boutique Design System
   Version 12.0 - Ultra Responsive & Cleanup
   ============================================ */

/* 1. RESET & BASICS */
*, *::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: 60px; 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: 450px; 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: 20px; }

.desktop-nav { display: flex; gap: 20px; align-items: center; }
.desktop-nav a { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.desktop-nav a:hover { color: var(--primary); }

.action-icon { position: relative; display: inline-flex; color: var(--accent); }
.cart-badge { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; border-radius: 50%; background: var(--primary); 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; }
  .header-search, .desktop-nav { display: none; }
  .site-header { min-height: 70px; }
  .brand img { height: 50px; }
}

@media (max-width: 480px) {
  .site-header { min-height: 60px; }
  .brand img { height: 40px; }
  .header-grid { gap: 15px; }
}

/* 3. HERO: HIGH IMPACT & MOBILE FIX */
.hero-premium { position: relative; min-height: 550px; background: #000; overflow: visible; display: flex; align-items: center; padding: 40px 0; }
.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: 1fr 1fr; align-items: center; width: 100%; gap: 40px; position: relative; z-index: 10; }
.hero-visual-branding { display: flex; justify-content: center; }
.hero-brand-mega { max-width: 420px; 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.1; color: var(--gold); margin-bottom: 20px; }
.hero-premium p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 30px; max-width: 500px; line-height: 1.6; }

@media (max-width: 768px) {
  .hero-premium { min-height: auto; padding: 60px 0 80px; }
  .hero-bg-accent { display: none; }
  .hero-grid-layout { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-visual-branding { order: -1; width: 100%; display: flex; justify-content: center; }
  .hero-logo-container { width: 100%; display: flex; justify-content: center; }
  .hero-brand-mega { max-width: 280px; width: 75%; margin: 0 auto; display: block; opacity: 1 !important; visibility: visible !important; filter: drop-shadow(0 0 20px rgba(216,27,96,0.3)); }
  .hero-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .hero-premium h1 { font-size: 2.8rem; margin-top: 10px; line-height: 1.05; }
  .hero-description p { max-width: 100%; font-size: 1rem; padding: 0 10px; line-height: 1.5; color: rgba(255,255,255,0.9); }
  .hero-actions-btns { display: flex; justify-content: center; width: 100%; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
  .hero-actions-btns .btn-primary { padding: 15px 25px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-premium h1 { font-size: 2.4rem; }
  .hero-brand-mega { max-width: 240px; }
  .site-header { min-height: 60px; }
  .brand img { height: 35px; }
}

/* 4. TRUST SECTION (Responsive Grid) */
.trust-section { padding: 40px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-grid-refined { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card-refined {
  background: #FFF; border-radius: 15px; padding: 25px; text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.trust-card-refined span { font-size: 1.8rem; }
.trust-card-refined h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--accent); }

@media (max-width: 992px) { .trust-grid-refined { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid-refined { gap: 12px; } .trust-card-refined { padding: 15px; } }

/* 5. PRODUCT CARDS */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }

.product-card { background: #FFF; display: flex; flex-direction: column; }
.product-image-wrapper { aspect-ratio: 3/4; overflow: hidden; background: #F9F9F9; position: relative; border-radius: 8px; }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 12px 0; }
.product-title { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: #111; margin-bottom: 5px; height: 2.4em; overflow: hidden; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.product-price { font-size: 1.1rem; font-weight: 900; color: #000; }
.product-old-price { font-size: 0.85rem; color: #999; text-decoration: line-through; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; }

/* 6. CATEGORIES (SHEIN Style) */
.quick-categories { padding: 40px 0; }
.category-grid-premium { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.category-grid-premium::-webkit-scrollbar { display: none; }
.category-item-premium { text-align: center; flex: 0 0 100px; }
.category-img-wrapper { width: 80px; height: 80px; border-radius: 50%; border: 1.5px solid var(--border); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.category-name { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #444; }

/* 7. FOOTER */
.site-footer { background: #0A0A0A; color: #E2E8F0; padding: 60px 0 100px; 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: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-social-icons { justify-content: center !important; } }

/* 8. PWA FIXES */
main { padding-bottom: 80px; }
.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; display: inline-block; }
.btn-primary:hover { background: var(--primary); color: #fff; }

#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;
}
