:root{--shop-max:1200px}/* Integración visual con el diseño general de Encantos del Olimpo */
html,body{margin:0;padding:0;}
body{font-family:'Poppins',sans-serif;background:var(--bg);color:var(--text);min-height:100vh;padding-top:80px;line-height:1.5;}
button,input,textarea,select{font-family:inherit;}

.shop-container{max-width:1200px;margin:0 auto;padding:70px 24px 90px;box-sizing:border-box;}.shop-container.narrow{max-width:760px}.shop-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:35px}.shop-head h1{font-size:clamp(2.4rem,5vw,4rem);line-height:1.08;margin:.35rem 0;font-weight:700}.shop-head p{color:var(--text-secondary);margin:0;max-width:700px}.eyebrow{font-size:.75rem;letter-spacing:.18em;font-weight:800;color:var(--gold)}.category-shop{margin:0 0 48px}.category-title{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:18px;border-bottom:1px solid var(--border);padding-bottom:15px}.category-title h2{margin:0}.category-title p{margin:.3rem 0;color:var(--text-secondary)}.category-title>span{color:var(--gold);font-weight:700}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.product-card,.shop-card{background:var(--card);border:1px solid var(--border);border-radius:22px;box-shadow:0 14px 35px var(--shadow);overflow:hidden}.product-image{display:block;height:300px;background:rgba(0,0,0,.18)}.product-image img{width:100%;height:100%;object-fit:cover}.no-image{height:100%;display:grid;place-items:center;color:var(--text-secondary)}.product-body{padding:20px 20px 22px}.product-body small{color:var(--text-secondary);font-size:.72rem}.product-body h3{margin:.45rem 0;font-size:1.05rem;line-height:1.35}.product-body p{color:var(--text-secondary);font-size:.9rem;min-height:48px;line-height:1.6}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.product-bottom strong,.detail-price{font-size:1.35rem;color:var(--gold)}.shop-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--accent),#00b0ff);color:#071018;text-decoration:none;font-weight:800;cursor:pointer}.shop-btn.secondary{background:transparent;border:1px solid var(--border);color:var(--text)}.shop-btn.full{width:100%;box-sizing:border-box;margin-top:20px}.shop-btn:disabled{opacity:.6}.stock{display:inline-block;margin:10px 0;color:#50d890;font-weight:700;font-size:.85rem}.stock.out{color:#ff6b6b}.product-detail{display:grid;grid-template-columns:1.05fr .95fr;gap:35px;padding:24px}.detail-copy{padding:25px}.detail-copy h1{font-size:clamp(2rem,5vw,3.4rem);margin:.3rem 0 1rem}.detail-copy p{color:var(--text-secondary);line-height:1.7}.detail-price{font-size:2rem;font-weight:900;margin:25px 0 4px}.buy-row{display:flex;gap:10px;margin-top:8px}.buy-row input{width:85px;padding:12px;border-radius:12px;border:1px solid var(--border);background:var(--bg2);color:var(--text);box-sizing:border-box}.back-link{color:var(--text-secondary);text-decoration:none;display:inline-block;margin-bottom:15px}.cart-layout,.checkout-layout{display:grid;grid-template-columns:1.5fr .7fr;gap:20px;align-items:start}.shop-card{padding:24px}.cart-item{display:grid;grid-template-columns:90px 1fr auto auto;gap:16px;align-items:center;padding:15px 0;border-bottom:1px solid var(--border)}.cart-item:last-child{border-bottom:0}.cart-item img{width:90px;height:90px;object-fit:cover;border-radius:12px}.cart-info h3{margin:0}.cart-info small{color:var(--text-secondary);display:block;margin:3px 0 8px}.cart-info strong{color:var(--gold)}.qty{display:flex;align-items:center;border:1px solid var(--border);border-radius:999px;overflow:hidden}.qty button{width:34px;height:34px;border:0;background:transparent;color:var(--text);cursor:pointer}.qty span{min-width:28px;text-align:center}.remove{border:0;background:transparent;color:#ff6b6b;cursor:pointer}.summary{position:sticky;top:100px}.summary h2{margin-top:0}.summary>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;color:var(--text-secondary)}.summary b{color:var(--text)}.summary .grand{font-size:1.2rem;color:var(--text)}.summary .grand b{color:var(--gold)}.summary-product{font-size:.88rem}.empty{text-align:center;padding:65px 25px}.empty i{font-size:3rem;color:var(--gold)}.empty h2{margin-bottom:8px}.checkout-form h2{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{font-size:.85rem;font-weight:700}.form-grid input,.form-grid textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:13px 14px;border:1px solid var(--border);border-radius:12px;background:var(--bg2);color:var(--text);font:inherit}.wide{grid-column:1/-1}.payment-note{display:flex;gap:12px;margin:22px 0;padding:16px;border:1px solid rgba(212,175,55,.35);border-radius:14px;background:rgba(212,175,55,.08)}.payment-note i{color:var(--gold);font-size:1.2rem}.payment-note span{color:var(--text-secondary);font-size:.82rem}.terms{display:flex;gap:10px;align-items:flex-start;color:var(--text-secondary);font-size:.85rem}.alert{padding:12px 15px;border-radius:12px;background:rgba(255,71,87,.12);border:1px solid #ff4757;color:#ff9aa3;margin-bottom:18px}.success{text-align:center;padding:70px 30px}.success-icon{width:72px;height:72px;border-radius:50%;margin:0 auto 20px;display:grid;place-items:center;background:rgba(80,216,144,.15);color:#50d890;font-size:2.2rem;font-weight:900}.success h1{font-size:2.5rem}.success p{color:var(--text-secondary)}@media(max-width:1050px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.shop-container{padding:55px 18px 70px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.product-detail,.cart-layout,.checkout-layout{grid-template-columns:1fr}.summary{position:static}}@media(max-width:560px){.product-grid{grid-template-columns:1fr}.shop-container{padding:45px 15px 60px}.shop-head,.category-title{align-items:start;flex-direction:column}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.cart-item{grid-template-columns:65px 1fr auto}.cart-item img{width:65px;height:65px}.qty{grid-column:2}.remove{grid-column:3;grid-row:1}.product-image{height:320px}}

/* Indicador global de disponibilidad */
.stock-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
}
.stock.in{
    color:#50d890;
    font-weight:700;
    font-size:.86rem;
}

/* Pantalla de mantenimiento de tienda */
.maintenance-page{min-height:100vh;display:flex;align-items:center;justify-content:center}
.maintenance-card{text-align:center;max-width:680px;margin:40px auto;padding:60px 35px}
.maintenance-icon{width:76px;height:76px;margin:0 auto 24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(212,175,55,.12);color:var(--gold);font-size:30px}
.maintenance-card h1{margin:10px 0 14px}
.maintenance-card p{color:var(--text-secondary);line-height:1.7}
.maintenance-note{margin-bottom:28px}

.account-wrap{max-width:1000px;margin:auto}.account-grid{display:grid;grid-template-columns:230px 1fr;gap:20px}.account-menu{align-self:start}.account-menu a{display:block;padding:12px 14px;border-radius:10px;color:var(--text);text-decoration:none}.account-menu a:hover{background:rgba(212,175,55,.1);color:var(--gold)}.account-menu a.active{background:rgba(255,255,255,.06);color:#fff}.account-card{padding:24px}.account-form{max-width:560px}.account-form label{display:block;margin-bottom:15px;color:var(--text-secondary)}.account-form input{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--bg2);color:var(--text)}.account-table{width:100%;border-collapse:collapse}.account-table th,.account-table td{padding:12px 10px;border-bottom:1px solid var(--border);text-align:left}.account-table a{color:var(--gold)}.account-alert{padding:12px;margin-bottom:15px;border-radius:10px;background:rgba(255,176,32,.1);color:#ffb020}.account-success{padding:12px;margin-bottom:15px;border-radius:10px;background:rgba(80,216,144,.1);color:#50d890}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.address-card{padding:15px;margin-bottom:12px;border:1px solid var(--border);border-radius:12px;background:var(--bg2)}@media(max-width:760px){.account-grid{grid-template-columns:1fr}.account-table{font-size:.85rem}}

.nav-account-link{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 13px;
    border-radius:999px;
    text-decoration:none;
    color:var(--text,#f5f5f5);
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    font-weight:600;
    white-space:nowrap;
}
.nav-account-link:hover{
    color:var(--gold,#d4af37);
    border-color:rgba(212,175,55,.45);
}
.nav-account-link i{color:var(--gold,#d4af37)}
.nav-account-register{background:rgba(0,195,255,.10)}
@media(max-width:900px){
    .nav-account-link span{display:none}
    .nav-account-link{padding:9px 11px}
}

/* Formularios de cliente: alineación y espaciado consistente */
.account-wrap{max-width:680px;margin:0 auto;}
.account-card{padding:32px;}
.account-form{max-width:620px;}
.account-form h1{margin:8px 0 28px;font-size:clamp(2rem,4vw,2.6rem);line-height:1.15;}
.account-form form{display:flex;flex-direction:column;gap:0;}
.account-form label:not(.account-terms){display:block;margin-bottom:16px;color:var(--text-secondary);font-size:.9rem;font-weight:600;}
.account-form input:not([type="checkbox"]):not([type="radio"]){display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:13px 14px;border:1px solid var(--border);border-radius:12px;background:var(--bg2);color:var(--text);outline:none;transition:border-color .2s,box-shadow .2s;}
.account-form input:not([type="checkbox"]):not([type="radio"]):focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,212,255,.10);}
.account-terms{display:flex!important;align-items:flex-start;gap:10px;margin:3px 0 20px!important;color:var(--text-secondary);font-size:.82rem!important;font-weight:400!important;line-height:1.5;}
.account-terms input[type="checkbox"]{display:block!important;width:18px!important;height:18px!important;min-width:18px;margin:2px 0 0!important;accent-color:var(--accent);}
.account-terms span{flex:1;}
.account-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:2px;}
.account-actions .shop-btn{min-height:44px;}
.account-form > form > .shop-btn{align-self:flex-start;margin-top:2px;min-height:44px;}
.account-recovery{margin-top:20px;padding-top:18px;border-top:1px solid var(--border);}
.forgot-password-link{display:flex;align-items:center;gap:13px;padding:13px 15px;border:1px solid rgba(245,197,66,.28);border-radius:14px;background:linear-gradient(135deg,rgba(245,197,66,.09),rgba(255,255,255,.025));color:inherit!important;text-decoration:none!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;}
.forgot-password-link:hover{transform:translateY(-2px);border-color:rgba(245,197,66,.58);background:linear-gradient(135deg,rgba(245,197,66,.14),rgba(0,201,255,.04));box-shadow:0 10px 28px rgba(0,0,0,.22),0 0 16px rgba(245,197,66,.08);}
.forgot-password-link:focus-visible{outline:3px solid rgba(0,201,255,.35);outline-offset:3px;}
.forgot-password-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:linear-gradient(145deg,#ffe27a,#d6a921);color:#111722;box-shadow:0 5px 16px rgba(245,197,66,.16);}
.forgot-password-copy{min-width:0;flex:1;}
.forgot-password-copy strong{display:block;color:#fff;font-size:.93rem;line-height:1.25;}
.forgot-password-copy small{display:block;margin-top:3px;color:var(--text-secondary);font-size:.78rem;line-height:1.35;}
.forgot-password-arrow{color:var(--gold);font-size:.82rem;transition:transform .18s ease;}
.forgot-password-link:hover .forgot-password-arrow{transform:translateX(3px);}
.recovery-submit{align-self:stretch!important;justify-content:center;min-height:50px!important;margin-top:5px!important;border:1px solid rgba(0,201,255,.55)!important;background:linear-gradient(135deg,#18d3f5,#06aee9)!important;color:#06131c!important;box-shadow:0 9px 24px rgba(0,188,236,.18);font-weight:850!important;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;}
.recovery-submit:hover{transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 13px 30px rgba(0,188,236,.26),0 0 18px rgba(0,188,236,.1);}
@media(max-width:560px){.account-card{padding:24px 20px;border-radius:18px;}.account-form h1{margin-bottom:22px;}.account-actions{flex-direction:column;}.account-actions .shop-btn{width:100%;box-sizing:border-box;}.forgot-password-link{padding:12px}.forgot-password-icon{width:39px;height:39px;flex-basis:39px}}


/* Cuenta de cliente: aislamiento total del menú lateral respecto al navbar */
.account-grid > .account-menu{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    bottom:auto !important;
    width:auto !important;
    max-width:none !important;
    height:auto !important;
    z-index:1 !important;
    background:var(--card);
    backdrop-filter:none !important;
    padding:24px;
    box-sizing:border-box;
    overflow:visible !important;
    border:1px solid var(--border);
    border-radius:22px;
}
.account-grid > .account-menu a{
    position:relative !important;
    display:block !important;
}

.nav-account-item.auth-hidden{display:none!important}.nav-account-logged{display:none!important}.nav-account-logged.auth-visible{display:inline-flex!important}

.shipping-box{margin:22px 0;padding:18px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.03)}

/* SKU is internal and is never displayed in the public store. */
.product-sku{display:none!important}

/* SKU is internal and hidden from all public shop views. */
.product-card .product-sku, .product-card small.sku, .cart-item .product-sku, .cart-item small.sku { display:none !important; }

.size-picker{margin:20px 0}.size-options{display:flex;gap:10px;flex-wrap:wrap}.size-option{cursor:pointer}.size-option input{position:absolute;opacity:0}.size-option span{display:block;padding:10px 18px;border:1px solid var(--border);border-radius:999px;background:var(--bg2);transition:.2s}.size-option input:checked+span{background:rgba(0,190,255,.14);border-color:#00bfff;color:#fff;box-shadow:0 0 14px rgba(0,190,255,.18)}.size-option input:disabled+span{opacity:.45;cursor:not-allowed}

.size-dimensions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.size-dimensions label{display:block;font-size:.85rem;font-weight:700}
.size-dimensions input{width:100%;box-sizing:border-box}
@media(max-width:700px){.size-dimensions{grid-template-columns:1fr}}

.size-dimensions-display{margin:10px 0 14px;color:var(--text-secondary);font-size:.92rem;font-weight:600}

/* GALERÍA DE PRODUCTO — ÚNICO CARRUSEL. No usar estilos de galerías anteriores. */
.product-gallery{width:100%;min-width:0}
.product-gallery-carousel{position:relative;width:100%;min-width:0}
.product-gallery-stage{position:relative;width:100%;height:520px;overflow:hidden;border-radius:16px;background:rgba(0,0,0,.18)}
.product-gallery-slide{position:absolute;inset:0;width:100%;height:100%;display:none;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:transparent;overflow:hidden;cursor:zoom-in;line-height:0}
.product-gallery-slide.is-active{display:flex}
.product-gallery-slide img{display:block;width:100%;height:100%;margin:0;padding:0;border:0;object-fit:contain;object-position:center;max-width:none;max-height:none}
.product-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:46px;height:46px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(8,14,24,.82);color:#fff;font-size:34px;line-height:1;cursor:pointer;box-sizing:border-box}
.product-gallery-arrow:hover{background:rgba(0,190,255,.28);border-color:#00bfff}
.product-gallery-prev{left:14px}.product-gallery-next{right:14px}
.product-gallery-dots{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:6;display:flex;gap:7px;padding:7px 10px;border-radius:999px;background:rgba(8,14,24,.72);backdrop-filter:blur(8px)}
.product-gallery-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer}
.product-gallery-dot.is-active{background:#00bfff;transform:scale(1.25)}
.detail-no-image{min-height:360px;display:grid;place-items:center;color:var(--text-secondary);border:1px solid var(--border);border-radius:16px}
.image-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:30px;box-sizing:border-box;background:rgba(3,8,15,.88);backdrop-filter:blur(8px)}
.image-modal.open{display:flex}
.image-modal img{display:block;max-width:92vw;max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.55)}
.image-modal-close{position:absolute;top:20px;right:24px;width:48px;height:48px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(20,28,42,.9);color:#fff;font-size:34px;line-height:1;cursor:pointer;z-index:2}
.image-modal-close:hover{background:rgba(0,190,255,.18);border-color:#00bfff}
body.image-modal-open{overflow:hidden}
@media(max-width:800px){
  .product-gallery-stage{height:380px}
  .product-gallery-arrow{width:40px;height:40px;font-size:30px}
  .product-gallery-prev{left:8px}.product-gallery-next{right:8px}
  .image-modal{padding:16px}.image-modal img{max-width:96vw;max-height:84vh}.image-modal-close{top:12px;right:12px;width:44px;height:44px;font-size:30px}
}

/* CATÁLOGO: las categorías se navegan exclusivamente desde el menú superior */
.main-category-heading{margin-bottom:22px}
.main-category-heading h2{font-size:1.55rem;margin:0 0 5px}
.subcategory-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:42px 0 18px;padding-left:3px}
.subcategory-heading h3{margin:0 0 4px;font-size:1.2rem}.subcategory-heading p{margin:0;color:var(--text-secondary)}
.subcategory-heading>span{color:var(--gold,#f2c21a);font-weight:800;white-space:nowrap}
.catalog-subcategory-section + .catalog-subcategory-section{margin-top:18px}
@media(max-width:700px){
    .subcategory-heading{align-items:flex-start;flex-direction:column;gap:5px}
}

/* PRODUCT CARD ALIGNMENT */
.product-grid{align-items:stretch}
.product-card{display:flex;flex-direction:column;height:100%}
.product-card .product-image{flex:0 0 300px}
.product-card .product-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.product-card .product-body h3{margin:.45rem 0}
.product-card .product-body p{margin-bottom:18px}
.product-card .product-bottom{margin-top:auto;min-height:48px;width:100%}
.product-card .product-bottom strong{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px}
.product-card .product-bottom .shop-btn{flex:0 0 auto}
@media (max-width:700px){.product-card .product-image{flex-basis:260px}}

/* CATÁLOGO COMPACTO */
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.product-card{border-radius:18px}
.product-card .product-image{height:220px;flex-basis:220px}
.product-card .product-body{padding:15px 15px 17px}
.product-card .product-body h3{font-size:.96rem;line-height:1.3;margin:.4rem 0}
.product-card .product-body p{font-size:.8rem;line-height:1.5;min-height:38px;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card .product-bottom{gap:8px;min-height:42px}
.product-card .product-bottom strong{font-size:1.15rem}
.product-card .shop-btn{padding:9px 13px;font-size:.8rem}
@media(max-width:1050px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:700px){.product-card .product-image{height:210px;flex-basis:210px}}
@media(max-width:560px){.product-grid{grid-template-columns:minmax(0,340px);justify-content:center}.product-card .product-image{height:220px;flex-basis:220px}}
