
:root{--store-ink:#171717;--store-muted:#737373;--store-line:#e8e8e8;--store-bg:#fff;--store-soft:#f7f7f5;--store-radius:22px}
*{box-sizing:border-box}.store-page{min-height:100vh;background:var(--store-bg);color:var(--store-ink)}.container{max-width:1180px}
.store-header{position:relative;z-index:20;background:#fff;border-bottom:1px solid var(--store-line);padding:14px 0}.store-header .brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.brand-logo{width:44px;height:44px;border-radius:13px;overflow:hidden;display:grid;place-items:center;background:#111;color:#fff}.brand-logo img{width:100%;height:100%;object-fit:cover}.store-header strong{display:block;font-size:15px}.store-header small{display:block;color:var(--store-muted);font-size:11px;margin-top:2px}.store-header nav a,.mobile-cart{color:inherit;text-decoration:none;font-size:14px}.mobile-cart{font-size:20px}
.category-hero{padding:70px 0 55px;background:linear-gradient(135deg,#fafaf8,#f2f0eb)}.category-back{display:inline-flex;gap:8px;align-items:center;text-decoration:none;color:var(--store-muted);font-size:14px;margin-bottom:32px}.category-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:50px}.category-eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;color:var(--store-muted)}.category-hero h1{font-size:clamp(38px,5vw,68px);line-height:.98;margin:10px 0 15px;font-weight:700}.category-hero p{max-width:650px;color:#666;font-size:17px;line-height:1.7}.category-count{display:inline-block;margin-top:8px;font-size:13px;color:#666}.category-hero-image{width:240px;height:240px;border-radius:30px;overflow:hidden;flex:0 0 240px;box-shadow:0 18px 45px #00000018}.category-hero-image img{width:100%;height:100%;object-fit:cover}.category-products{padding:60px 0 90px}.category-page .product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.category-product-card{background:#fff;border:1px solid var(--store-line);border-radius:20px;overflow:hidden;transition:.25s ease}.category-product-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px #0000000e}.category-product-card .product-thumb{display:block;position:relative;aspect-ratio:1/1;background:#f5f5f3;overflow:hidden}.category-product-card .product-thumb img{width:100%;height:100%;object-fit:cover;transition:.4s}.category-product-card:hover .product-thumb img{transform:scale(1.04)}.product-placeholder{height:100%;display:grid;place-items:center;color:#aaa;font-size:35px}.product-badge{position:absolute;top:13px;left:13px;padding:6px 10px;border-radius:999px;background:#111;color:#fff;font-size:10px}.product-info{padding:18px}.product-info small{color:#8a8a8a;text-transform:uppercase;letter-spacing:.08em;font-size:10px}.product-info h2,.product-info h3{font-size:18px;line-height:1.25;margin:7px 0 10px}.product-info h2 a,.product-info h3 a{color:inherit;text-decoration:none}.price-row{display:flex;gap:9px;align-items:center;margin-bottom:14px}.price-row strong{font-size:17px}.price-row del{color:#999;font-size:13px}.template-add{width:100%;border:0;border-radius:12px;padding:11px 13px;background:#111;color:#fff;font-weight:600;font-size:13px}.empty-store{text-align:center;padding:80px 20px}.empty-store>i{font-size:42px;color:#aaa}.empty-store h2,.empty-store h3{margin-top:15px}.empty-store p{color:#777}.category-empty .template-btn{display:inline-flex;margin-top:10px}.template-btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;padding:12px 18px;border-radius:12px;font-weight:600}.template-btn-primary{background:#111;color:#fff}.template-btn-primary:hover{color:#fff}.template-btn-ghost{border:1px solid #fff;color:#fff}.template-btn-ghost:hover{color:#fff}
@media(max-width:991px){.category-page .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-hero-inner{gap:30px}.category-hero-image{width:190px;height:190px;flex-basis:190px}}
@media(max-width:767px){.category-hero{padding:45px 0}.category-hero-inner{display:block}.category-hero-image{margin-top:25px;width:100%;height:220px}.category-page .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.category-products{padding:40px 0 60px}.category-product-card .product-info{padding:13px}.product-info h2{font-size:15px}.price-row strong{font-size:15px}.category-hero h1{font-size:42px}.category-hero p{font-size:15px}}
@media(max-width:420px){.category-page .product-grid{grid-template-columns:1fr}.category-hero-image{height:200px}}


/* =========================================================
   Production product detail + cart
   ========================================================= */
.product-detail-page{padding-top:42px;padding-bottom:72px}
.product-detail-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:24px;color:var(--store-muted);text-decoration:none;font-size:14px}
.product-detail-layout{align-items:flex-start}
.product-detail-media{position:sticky;top:24px}
.product-detail-image{width:100%;max-width:560px;height:560px;margin:0 auto;padding:18px;border:1px solid var(--store-line);border-radius:24px;background:var(--store-soft);display:flex;align-items:center;justify-content:center;overflow:hidden}
.product-detail-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:14px}
.product-detail-image .image-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#aaa;font-size:48px}
.product-detail-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px;max-width:560px;margin-left:auto;margin-right:auto}
.product-detail-thumb{width:100%;aspect-ratio:1/1;padding:4px;border:1px solid var(--store-line);border-radius:12px;background:#fff;overflow:hidden;cursor:pointer}
.product-detail-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
.product-detail-thumb.is-active{border:2px solid #111;padding:3px}
.product-detail-info{padding:8px 0 0}
.product-detail-category{display:inline-block;margin-bottom:10px;color:var(--store-muted);font-size:12px;text-transform:uppercase;letter-spacing:.09em}
.product-detail-title{margin:0 0 18px;font-size:clamp(30px,4vw,48px);line-height:1.08;font-weight:700}
.product-detail-price{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.product-detail-price strong{font-size:30px;line-height:1}
.product-detail-price del{color:#999;font-size:17px}
.product-detail-short{color:#666;font-size:16px;line-height:1.75}
.product-detail-description{margin-top:22px;color:#555;line-height:1.8}
.product-detail-actions{margin-top:28px}
.product-detail-actions .form-select,.product-detail-actions .form-control{border-radius:12px;min-height:50px}
.product-detail-actions .btn{min-height:50px;border-radius:12px;font-weight:600}
.product-whatsapp{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:12px;margin-top:10px;font-weight:600}
.cart-page .cart-thumb{width:76px;height:76px;border-radius:12px;background:#f1f3f5;overflow:hidden;flex:none;display:grid;place-items:center}
.cart-page .cart-thumb img{width:100%;height:100%;object-fit:cover}
.cart-page .cart-quantity{width:72px;flex:none}
.cart-page .cart-line{width:90px;flex:none}
@media(max-width:991px){
    .product-detail-media{position:static}
    .product-detail-image{height:min(520px,70vw);max-width:520px}
    .product-detail-title{font-size:36px}
}
@media(max-width:767px){
    .product-detail-page{padding-top:24px;padding-bottom:50px}
    .product-detail-image{height:calc(100vw - 48px);min-height:260px;max-height:420px;padding:12px;border-radius:18px}
    .product-detail-image img{border-radius:10px}
    .product-detail-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
    .product-detail-title{font-size:30px}
    .product-detail-price strong{font-size:25px}
    .product-detail-short{font-size:15px}
    .cart-page .cart-item{align-items:flex-start !important;flex-wrap:wrap}
    .cart-page .cart-thumb{width:64px;height:64px}
    .cart-page .cart-quantity{margin-left:76px;width:82px}
    .cart-page .cart-line{margin-left:auto;width:auto}
}
@media(max-width:420px){
    .product-detail-image{height:calc(100vw - 32px);max-height:360px;padding:10px}
    .product-detail-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}
    .cart-page .cart-quantity{margin-left:0}
}

/* Dynamic content safety */
.saas-template h1,.saas-template h2,.saas-template h3,.saas-template p,
.product-detail-title,.product-info h2,.product-info h3,.category-hero p{
    overflow-wrap:anywhere;
}
.template-product .product-thumb img,
.template-category .category-thumb img,
.category-product-card .product-thumb img{
    object-fit:cover;
}

/* Glamora Glam category catalogue: show complete imagery + uniform cards. */
.store-theme-glamora-glamm .category-hero-image{
    background:#f8f4ef;
    border-radius:0;
    width:320px;
    height:320px;
    flex:0 0 320px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 18px 45px rgba(28,24,22,.10);
}
.store-theme-glamora-glamm .category-hero-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.store-theme-glamora-glamm .category-page .product-grid{
    align-items:stretch;
}
.store-theme-glamora-glamm .category-product-card{
    display:flex;
    flex-direction:column;
    height:100%;
    border-radius:0;
    border-color:#e7dfd7;
    box-shadow:none;
}
.store-theme-glamora-glamm .category-product-card .product-thumb{
    aspect-ratio:4/5;
    background:#f7f3ee;
    display:flex;
    align-items:center;
    justify-content:center;
}
.store-theme-glamora-glamm .category-product-card .product-thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    transition:transform .4s ease;
}
.store-theme-glamora-glamm .category-product-card:hover .product-thumb img{
    transform:scale(1.02);
}
.store-theme-glamora-glamm .category-product-card .product-info{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:16px 14px 14px;
}
.store-theme-glamora-glamm .category-product-card .product-info h2{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    min-height:45px;
    max-height:45px;
}
.store-theme-glamora-glamm .category-product-card .price-row{
    min-height:24px;
}
.store-theme-glamora-glamm .category-product-card .product-info form{
    margin-top:auto;
}
@media(max-width:991px){
    .store-theme-glamora-glamm .category-hero-image{
        width:250px;
        height:250px;
        flex-basis:250px;
    }
}
@media(max-width:767px){
    .store-theme-glamora-glamm .category-hero-image{
        width:100%;
        height:300px;
        margin-top:25px;
    }
    .store-theme-glamora-glamm .category-product-card .product-info h2{
        min-height:40px;
        max-height:40px;
        font-size:15px;
        line-height:1.3;
    }
}
@media(max-width:420px){
    .store-theme-glamora-glamm .category-hero-image{
        height:260px;
    }
}

