/* ============================================
   BICHOTTA - Luxury Elite Design System v33.0
   MASTER PRODUCTION FRAMEWORK - TOTAL CENTERING
   ============================================ */

/* 1. TOKENS & MASTER RESET */
:root {
  --fuchsia: #e91e63;
  --fuchsia-dark: #c2185b;
  --fuchsia-soft: #fff5f7;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --black: #0a0a0a;
  --white: #ffffff;
  --bg-body: #ffffff;
  --text: #111111;
  --text-muted: #777777;
  --border: #eeeeee;
  --header-h: 72px;
  --bottom-nav-h: 64px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-elite: 0 10px 30px rgba(0,0,0,0.06);
}

html, body {
  margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden;
  background: var(--bg-body) !important; color: var(--text);
  font-family: 'Montserrat', sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased;
}

/* Fix for forced black background on index sections */
.site-builder-content { background: #fff; }

* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: -0.5px; }

.container, .wrapper, .site-builder-content, .shop-page-wrapper, .product-page-wrapper {
  width: min(100%, 1200px); margin-inline: auto; padding-inline: 20px;
}

/* 2. HEADER: SINGLE-LINE RESPONSIVE (HIGH CALIBER) */
.site-header {
    background: #fff; height: var(--header-h); display: flex; align-items: center;
    position: sticky; top: 0; z-index: 10000; border-bottom: 1px solid var(--border);
}
.header-grid { 
    display: grid; 
    grid-template-columns: auto 1fr auto; 
    align-items: center; 
    width: 100%; 
    gap: 15px; 
}
.header-left { display: flex; align-items: center; gap: 15px; }
.header-logo img { height: 40px; width: auto; transition: 0.3s ease; }

.desktop-nav { display: flex; gap: 15px; align-items: center; }
.desktop-nav a { font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.desktop-nav a.active { color: var(--fuchsia); }

.header-search { width: 100%; }
.header-search form { 
    display: flex; background: #f5f5f5; border-radius: 99px; height: 38px;
    padding: 0 10px 0 15px; align-items: center; border: 1.5px solid transparent; transition: var(--transition);
}
.header-search form:focus-within { background: #fff; border-color: var(--fuchsia); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.header-search input { flex: 1; border: none; background: transparent; padding: 10px 0; font-size: 0.8rem; font-weight: 600; outline: none; width: 100%; }

.header-icons { display: flex; gap: 15px; align-items: center; }
.icon-btn { color: var(--black); transition: var(--transition); display: flex; align-items: center; }
.icon-btn svg { width: 22px; height: 22px; }

.cart-icon { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -10px; background: var(--fuchsia); color: #fff;
  width: 18px; height: 18px; border-radius: 50%; font-size: 10px; display: grid; place-items: center;
  font-weight: 900; border: 2px solid #fff;
}

@media (max-width: 767px) {
    .site-header { height: 64px; }
    .header-logo img { height: 28px; }
    .header-grid { gap: 10px; }
    .desktop-nav { display: none !important; }
    .header-search form { height: 34px; padding-left: 12px; }
    .header-search input { font-size: 0.75rem; }
    .header-icons { gap: 10px; }
    .header-icons .icon-btn svg { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
    .header-grid { gap: 8px; }
    .header-logo img { height: 24px; }
    .header-search form { padding-left: 8px; }
    .header-icons { gap: 8px; }
}

/* 3. HERO: PREMIUM CENTERING REPAIR */
.hero-premium {
  width: 100%; 
  background: #000000 !important;
  color: #ffffff !important; 
  padding: 80px 0; 
  min-height: 600px; 
  display: flex; 
  align-items: center; 
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hero-grid { 
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 850px; 
  margin: 0 auto;
  gap: 45px;
}

.hero-visual { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
}

.hero-visual img { 
    width: 100%; 
    max-width: 480px; 
    border-radius: 35px; 
    border: 1.5px solid rgba(212,175,55,0.6);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.5), 0 0 120px rgba(212, 175, 55, 0.2); 
    transition: var(--transition);
}
.hero-visual img:hover { transform: scale(1.03); box-shadow: 0 0 80px rgba(212, 175, 55, 0.7); }

.hero-content { 
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-content h1 { 
    font-size: clamp(32px, 6vw, 72px); 
    line-height: 1; 
    color: #ffffff !important; 
    margin-bottom: 25px; 
    width: 100%; 
}
.hero-content p { 
    font-size: 1.25rem; 
    opacity: 0.9; 
    margin-bottom: 45px; 
    font-weight: 300; 
    color: #ffffff !important; 
    line-height: 1.6; 
    max-width: 650px;
}

.hero-btns { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    width: 100%; 
    flex-wrap: wrap;
}

.hero-btns a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  padding: 0 45px; border-radius: 99px; background: var(--fuchsia); color: #fff;
  font-weight: 900; text-transform: uppercase; letter-spacing: 2px; transition: .4s;
  box-shadow: 0 10px 30px rgba(233,30,99,0.3);
}
.hero-btns a:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(233,30,99,0.5); }
.hero-btns a.btn-outline { background: transparent; border: 2.5px solid #fff; }
.hero-btns a.btn-outline:hover { background: #fff; color: #000; }

@media (max-width: 767px) {
  .hero-premium { padding: 60px 0; }
  .hero-grid { gap: 35px; }
  .hero-premium img { max-width: 300px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns a { width: 100%; }
}

/* 4. CATEGORIES: CARRUSEL PRO */
.quick-categories { padding: 60px 0; background: #fff; }
.cat-scroll-container { position: relative; width: 100%; }
.cat-scroll, .categories-track {
  display: flex !important; flex-direction: row !important; gap: 25px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 15px 0;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item, .category-item { flex: 0 0 110px; scroll-snap-align: start; text-align: center; cursor: pointer; }
.cat-circle, .category-icon {
  width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 15px; background: #fff; border: 4px solid #fff; overflow: hidden;
  background-size: cover; background-position: center; transition: .4s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}
.cat-item:hover .cat-circle { border-color: var(--fuchsia); transform: translateY(-10px); box-shadow: 0 15px 30px rgba(233,30,99,0.1); }
.cat-name, .category-name { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #111; letter-spacing: 1px; }

@media (max-width: 767px) {
    .cat-item, .category-item { flex: 0 0 86px; }
    .cat-circle, .category-icon { width: 80px; height: 80px; }
}

/* 5. GRID & CARDS: ELITE MARKETPLACE */
.products-grid, .vitrine-grid, .product-grid {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 30px !important; width: 100%; margin: 40px 0;
}

.product-card {
  background: #fff; border: 1px solid #f2f2f2; border-radius: 24px; overflow: hidden;
  width: 100%; display: flex; flex-direction: column; transition: var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.p-img-box { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #fafafa; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.product-card:hover .product-image { transform: scale(1.1); }

.p-tags { position: absolute; top: 15px; left: 15px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.p-tag { padding: 5px 12px; border-radius: 6px; font-size: 0.65rem; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: 1px; }
.tag-new { background: var(--black); }
.tag-offer { background: var(--fuchsia); }

.product-card-content, .p-info { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.p-meta-elite { font-size: 10px; font-weight: 800; color: var(--fuchsia); text-transform: uppercase; margin-bottom: 10px; display: block; }
.product-card-title, .p-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: #111; height: 2.8em; overflow: hidden; line-height: 1.4; }
.p-price { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.p-current { font-size: 1.3rem; font-weight: 900; color: #000; }
.p-old { font-size: 0.9rem; color: #ccc; text-decoration: line-through; }

.btn-lo-quiero, .btn-primary {
  margin-top: auto; width: 100%; padding: 16px; border-radius: 15px;
  background: var(--black); color: #fff; border: none; font-weight: 900;
  text-transform: uppercase; font-size: 0.75rem; cursor: pointer; letter-spacing: 1px; transition: 0.3s;
}
.btn-lo-quiero:hover { background: var(--fuchsia); transform: scale(1.02); }

@media (max-width: 767px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
  .product-card-content { padding: 15px; }
  .product-card-title { font-size: 0.85rem; }
}

/* 6. SHOP & CART LAYOUT: MARKETPLACE */
.shop-layout, .cart-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 40px; 
    margin-top: 40px; 
    align-items: flex-start; 
}
/* Reorder for Cart: Items first, Summary second */
.cart-layout { grid-template-columns: 1fr 350px; }

.shop-sidebar, .cart-sidebar { 
    background: #fff; 
    padding: 30px; 
    border-radius: 24px; 
    border: 1px solid #f2f2f2;
    position: sticky;
    top: 100px;
}

@media (max-width: 1023px) {
  .shop-layout, .cart-layout { display: flex; flex-direction: column; gap: 30px; }
  .shop-sidebar { display: none !important; }
  .cart-sidebar { width: 100% !important; position: static !important; padding: 25px !important; }
}

/* 7. TRUST BAR & FOOTER: LUXURY DARK */
.benefits-section { background: var(--fuchsia-soft); padding: 60px 0; margin: 48px 0; border-radius: 40px; }
.benefits-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.benefit-card { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.benefit-icon { font-size: 42px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }
.benefit-text { font-weight: 900; font-size: 0.8rem; text-transform: uppercase; color: var(--black); letter-spacing: 1px; }

@media (max-width: 767px) { 
    .benefits-section { border-radius: 0; padding: 40px 20px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } 
}

.site-footer { background: var(--black) !important; color: #fff !important; padding: 80px 0 40px; }
.footer-main-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; width: min(100%, 1100px); margin: auto; }
.footer-col h3 { color: var(--gold); font-size: 0.9rem; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; font-weight: 900; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 15px; opacity: .7; font-size: 14px; transition: 0.3s; }
.footer-col ul li:hover { opacity: 1; transform: translateX(5px); color: var(--fuchsia); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 60px; padding-top: 40px; text-align: center; }

/* MERCADO PAGO LOGO CENTERED & LARGE */
.footer-payments { 
    margin-bottom: 35px; 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    width: 100%; 
    text-align: center;
}
.footer-payments img { 
    height: 110px !important; 
    width: auto; 
    opacity: 1 !important; 
    filter: none !important; 
    margin: 0 auto;
}

.copyright-text { font-size: 12px; opacity: 0.4; letter-spacing: 0.5px; }

@media (max-width: 767px) { 
    .footer-main-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; } 
    .footer-col h3 { margin-bottom: 15px; }
    .footer-col ul { display: none; padding: 15px 0; }
    .footer-col.active ul { display: block; }
}

/* 8. MOBILE BOTTOM APP BAR: FIXED */
.mobile-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: 70px; background: #fff;
  z-index: 20000; display: none; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); align-items: center; justify-items: center;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
}
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 0.65rem; font-weight: 800; color: #999; gap: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-bottom-nav a span:first-child { font-size: 1.5rem; }
.mobile-bottom-nav a.active { color: var(--fuchsia); }

@media (max-width: 767px) {
  .mobile-bottom-nav { display: grid; }
  body { padding-bottom: 80px; }
}

/* 9. MINI CART DRAWER: MASTER */
body.cart-open { overflow: hidden; }

.cart-drawer {
  position: fixed; top: 0; right: -450px; width: min(450px, 100%); height: 100vh;
  height: 100dvh; background: #fff; z-index: 100005; display: flex; flex-direction: column;
  transition: right .4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: -15px 0 50px rgba(0,0,0,0.15); overflow: hidden;
}
.cart-drawer.active { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100004; visibility: hidden; opacity: 0; transition: .4s; }
.cart-overlay.active { visibility: visible; opacity: 1; }

.drawer-header { flex: 0 0 auto; padding: 25px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-items { flex: 1 1 auto; overflow-y: auto; padding: 30px; display: flex; flex-direction: column; gap: 20px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer-footer { flex: 0 0 auto; padding: 30px; background: #fafafa; border-top: 1px solid var(--border); }

/* Scrollbar for Drawer Items */
.drawer-items::-webkit-scrollbar { width: 5px; }
.drawer-items::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }

/* 10. WHATSAPP FLOATING (ULTRA STABLE) */
.floating-whatsapp { 
    position: fixed; 
    bottom: 95px; 
    right: 25px; 
    z-index: 99999; 
    display: flex !important; 
    align-items: center; 
    gap: 12px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.floating-whatsapp:hover { transform: scale(1.1); }

/* Tooltip "Puedo ayudarte" */
.floating-whatsapp::before {
    content: "¿Puedo ayudarte? ✨";
    position: absolute;
    right: 75px;
    background: #ffffff;
    color: #000000;
    padding: 10px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.5s ease;
    pointer-events: none;
    border: 1px solid #eee;
}

.floating-whatsapp:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.wa-icon { 
    width: 62px; 
    height: 62px; 
    border-radius: 50%; 
    background: #25d366; 
    display: flex !important; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 12px 30px rgba(37,211,102,0.4); 
    color: #ffffff; 
}
.wa-icon svg { width: 34px; height: 34px; fill: currentColor; }

/* Animación de entrada automática del tooltip */
@keyframes waTooltipFade {
    0% { opacity: 0; transform: translateX(15px); }
    15% { opacity: 1; transform: translateX(0); }
    85% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(15px); }
}

.floating-whatsapp.show-tip::before {
    animation: waTooltipFade 8s ease forwards;
}

.toast-bichotta { position: fixed; top: 100px; right: 30px; background: var(--black); color: #fff; padding: 20px 30px; border-radius: 20px; z-index: 30000; box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: translateX(150%); transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-left: 6px solid var(--fuchsia); display: flex; align-items: center; gap: 15px; }
.toast-bichotta.active { transform: translateX(0); }

.free-shipping-bar-header { background: #1d000b; color: #d4af37; padding: 10px; text-align: center; font-size: 0.75rem; font-weight: 900; letter-spacing: 2px; }
body > svg, main > svg { display: none !important; }
/* 11. CART PAGE RESPONSIVE REPAIR */
.cart-item-row {
    background: white;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    align-items: center;
    gap: 25px;
    position: relative;
    transition: var(--transition);
}

@media (max-width: 767px) {
    .cart-item-row {
        grid-template-columns: 90px 1fr !important;
        grid-template-rows: auto auto;
        gap: 15px !important;
        padding: 15px !important;
        align-items: flex-start;
    }
    .cart-item-row .item-img {
        grid-row: span 2;
        width: 90px !important;
        height: 120px !important;
    }
    .cart-item-row .item-info h3 {
        font-size: 0.9rem !important;
        padding-right: 35px; /* Space for absolute delete button */
        height: auto !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
        display: block !important;
    }
    .cart-item-row .item-qty {
        grid-column: 2;
        justify-self: flex-start;
        margin-top: 5px;
    }
    .cart-item-row .item-remove {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10;
    }
    .cart-item-row .item-remove button {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}
/* 12. SHIPPING PROGRESS BAR (MERCADO LIBRE STYLE) */
.shipping-progress-container {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-elite);
    margin-bottom: 40px;
}
.progress-msg {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}
.progress-bar-bg {
    background: #f0f0f0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.progress-bar-fill {
    background: linear-gradient(90deg, var(--gold) 0%, var(--fuchsia) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
/* 11. ADVANCED CONVERSION UI (v33.0) */

/* Product Gallery Slider */
.gallery-slider-container { position: relative; width: 100%; overflow: hidden; border-radius: 30px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.gallery-main-track { display: flex; transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); will-change: transform; }
.gallery-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,0.15); border: 2px solid #fff; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--fuchsia); width: 28px; border-radius: 5px; border-color: var(--fuchsia); }

/* Thumbnails Polish */
.luxury-thumbnails { display: flex; gap: 12px; margin-top: 25px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.luxury-thumbnails::-webkit-scrollbar { display: none; }
.luxury-thumb { width: 85px; height: 110px; border-radius: 12px; border: 2px solid #f0f0f0; cursor: pointer; flex-shrink: 0; overflow: hidden; transition: 0.4s; }
.luxury-thumb.active { border-color: var(--fuchsia); box-shadow: 0 5px 15px rgba(233,30,99,0.15); transform: translateY(-5px); }

/* Quick Add Overlay (SHEIN Style) */
.p-quick-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: 0.4s; z-index: 15; backdrop-filter: blur(4px);
}
.product-card:hover .p-quick-overlay { opacity: 1; }

.p-quick-sizes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 20px; }
.p-quick-sizes button {
    background: #fff; border: none; border-radius: 8px; padding: 10px 15px; font-weight: 800;
    font-size: 0.75rem; cursor: pointer; transition: 0.3s;
}
.p-quick-sizes button:hover { background: var(--fuchsia); color: #fff; }

.p-quick-view {
    margin-top: 10px; color: #fff; font-weight: 900; font-size: 0.7rem; letter-spacing: 2px;
    text-decoration: underline; text-underline-offset: 5px;
}

.mobile-only-flex { display: none; }
@media (max-width: 767px) {
    .mobile-only-flex { display: flex; }
    .p-quick-overlay { display: none !important; }
}
/* 12. HIGH-CONTRAST SIZE SELECTOR (v33.1) */
.size-options { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    margin: 20px 0 35px; 
}

.size-option {
    min-width: 65px; 
    height: 52px; 
    border: 2px solid #e0e0e0; 
    border-radius: 14px;
    display: grid; 
    place-items: center; 
    font-weight: 800; 
    font-size: 0.95rem;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); 
    background: #fdfdfd;
    color: #888; /* Muted text when unselected */
}

/* Hover state: Clear intent to select */
.size-option:hover { 
    border-color: #000000; 
    color: #000000; 
    transform: translateY(-3px);
}

/* Active state: UNMISTAKABLE selection */
.size-option.active { 
    border-color: var(--fuchsia) !important; 
    background: var(--fuchsia) !important; 
    color: #ffffff !important; 
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    transform: scale(1.05);
}

/* Checkmark effect for active state (optional luxury touch) */
.size-option.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -5px;
    background: #000;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
/* 13. CONTROLLED GALLERY & ZOOM HD (v34.0) */
.gallery-slider-container { 
    position: relative; 
    width: 100%; 
    max-width: 500px; 
    margin: 0 auto;
    overflow: hidden; 
    border-radius: 30px; 
    background: #f9f9f9; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    cursor: zoom-in;
}

.gallery-slide { 
    flex: 0 0 100%; 
    width: 100%; 
    height: 600px; /* Controlled height */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #fff;
}
.gallery-slide img { 
    max-height: 100%; 
    max-width: 100%; 
    width: auto; 
    height: auto;
    object-fit: contain; /* Professional contain mode */
}

/* LIGHTBOX / ZOOM SYSTEM */
.lightbox-bichotta {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    z-index: 200000; display: none; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(10px);
}
.lightbox-bichotta.active { display: flex; animation: fadeIn 0.4s ease; }
.lightbox-content { max-width: 95%; max-height: 95%; position: relative; display: flex; justify-content: center; }
.lightbox-content img { width: auto; height: auto; max-width: 100%; max-height: 90vh; border-radius: 15px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: -50px; right: 0; color: #fff; font-size: 3rem; cursor: pointer; background: none; border: none; line-height: 1; }

@media (max-width: 767px) {
    .gallery-slide { height: 450px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* RESPONSIVE IMAGE CONTROL (v34.1) */
@media (min-width: 1024px) {
    .gallery-column {
        position: sticky;
        top: 100px;
    }
    .gallery-slide { 
        height: 500px !important; /* Perfect desktop size */
    }
}
/* 14. REFINED BOUTIQUE IMAGE SCALE (v34.2) */
@media (min-width: 1024px) {
    .gallery-slider-container {
        max-width: 420px !important; /* Refined width for boutique look */
    }
    .gallery-slide { 
        height: 420px !important; /* Standard boutique height */
    }
    .main-stage {
        height: 420px !important;
    }
}

@media (max-width: 767px) {
    .gallery-slider-container {
        max-width: 320px !important; /* Centered compact look for mobile */
    }
    .gallery-slide {
        height: 380px !important;
    }
}
/* 15. SHEIN-STYLE COMPACT CARDS (v35.0) */
.products-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important; 
    gap: 20px !important; 
    padding: 20px 0;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* Image Ratio 3:4 */
.p-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: #f9f9f9;
}
.product-image { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }

/* Badges */
.p-badge-discount { position: absolute; top: 8px; left: 8px; background: #ff4d4f; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; z-index: 5; }
.p-badge-stock { position: absolute; top: 35px; left: 8px; background: rgba(255,255,255,0.9); color: #000; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; z-index: 5; border: 1px solid #eee; }

/* Quick Add Button */
.p-quick-add-trigger {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    border: none;
    color: var(--fuchsia);
    font-size: 20px;
    font-weight: 900;
}

/* Info Section */
.product-card-content { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.p-card-title { font-size: 13px; font-weight: 400; color: #333; margin-bottom: 6px; line-height: 1.3; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.p-card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 10px; color: #ffc107; }
.p-card-rating span { color: #999; margin-left: 2px; }

.p-card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.p-card-current { font-size: 1.2rem; font-weight: 900; color: #000; }
.p-card-old { font-size: 0.85rem; color: #999; text-decoration: line-through; }

.p-card-sales { font-size: 11px; color: #999; font-weight: 500; }

/* Inline Quick Select Overlay */
.p-inline-select {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 20;
    padding: 15px;
}
.p-inline-select.active { opacity: 1; visibility: visible; }
.p-inline-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #999; }

.p-inline-sizes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 15px; }
.p-inline-sizes button {
    min-width: 45px; height: 35px; border: 1px solid #ddd; background: #fff; border-radius: 6px;
    font-size: 11px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.p-inline-sizes button:hover { border-color: var(--fuchsia); color: var(--fuchsia); }

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
}

@media (max-width: 767px) {
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 10px 0; }
    .p-card-current { font-size: 1rem; }
    .p-badge-discount { font-size: 10px; padding: 1px 6px; }
}

@media (min-width: 1440px) {
    .products-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
/* 16. GRID & RESPONSIVE FIXES (v35.1) */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .shop-layout {
        display: block; /* Collapse on tablets/mobile */
    }
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 767px) {
    .products-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important;
    }
}

@media (min-width: 1440px) {
    .products-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
/* 17. CHECKOUT MOBILE REPAIR (v35.3) */
@media (max-width: 900px) {
    .checkout-page .shop-layout {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .checkout-page .checkout-steps {
        order: 1 !important;
        width: 100% !important;
    }
    
    .checkout-page .shop-sidebar {
        order: 2 !important; /* Move summary to the end for better flow */
        width: 100% !important;
        display: block !important;
        position: static !important;
        margin-top: 30px !important;
        padding: 25px !important;
        background: #000 !important;
        color: #fff !important;
        border-radius: 20px !important;
    }
    
    .checkout-page .summary-items {
        display: none !important; /* Keep it clean on mobile summary */
    }
}

.checkout-page .shop-sidebar {
    display: block !important; /* Ensure it's not hidden by global shop rules */
}
/* 15. LIGHTBOX SLIDER REFINEMENT (v33.1) */
.lightbox-content { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    position: relative;
    user-select: none;
}
.lb-arrow {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}
.lb-arrow:hover { background: var(--fuchsia); border-color: var(--fuchsia); }

.lb-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@media (max-width: 767px) {
    .lb-arrow { display: none !important; } /* Hide arrows on mobile, use swipe */
    .lightbox-content { padding: 0; }
}
/* 16. CART INTERACTIVE POLISH (v36.1) */
.item-qty div {
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.item-qty button {
    color: var(--text-muted);
    transition: 0.2s;
}
.item-qty button:hover {
    color: var(--fuchsia);
    background: #fafafa;
}
.item-qty input {
    color: var(--black);
    width: 50px !important;
}

@media (max-width: 767px) {
    .item-qty {
        margin-top: 10px;
    }
    .item-qty div {
        height: 40px;
        min-width: 110px;
    }
}
