/* JABAA Shop V3 — additive and scoped. Preserves existing checkout and app functionality. */
:root { --jabaa-deep:#052416; --jabaa-green:#22c55e; --jabaa-lime:#a3ff34; --jabaa-gold:#ffc75a; }
.jabaa-logo-main{width:clamp(139px,15vw,199px);height:46px;object-fit:contain;object-position:left center;display:block}
.jabaa-footer-logo{width:34px;height:34px;object-fit:contain}
.jabaa-admin-logo{width:min(190px,39vw);height:46px;object-fit:contain;object-position:left}
.jabaa-admin-caption{font-size:.64rem;letter-spacing:.13em;color:#a3ff34;font-weight:800;padding:.33rem .48rem;background:#102d1d;border:1px solid #29593a;border-radius:8px}
.site-nav{background:linear-gradient(90deg,rgba(1,32,18,.97),rgba(2,49,28,.93))!important;border-bottom:1px solid rgba(61,241,125,.22)}
/* Hero: genuine artwork with editable title, CTA and device-specific images. */
.hero.shop-v3{padding:13px 0 0!important}
.shop-v3-hero{isolation:isolate;position:relative;overflow:hidden;min-height:344px;border:1px solid rgba(113,255,152,.21);border-radius:21px;background:#00271c;display:flex;align-items:center;box-shadow:0 16px 46px rgba(0,0,0,.18)}
.shop-v3-hero-media,.shop-v3-hero-media::after{position:absolute;inset:0}
.shop-v3-hero-media{z-index:-1;display:block}
.shop-v3-hero-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.shop-v3-hero-media::after{content:"";background:linear-gradient(90deg,rgba(0,25,17,.76) 0%,rgba(0,32,22,.35) 46%,transparent 81%)}
.shop-v3-hero-content{width:min(620px,56%);padding:clamp(22px,3.5vw,55px);position:relative}
.shop-v3-eyebrow{color:#a4ff89!important;font-size:.69rem!important;letter-spacing:.18em;font-weight:850;display:flex;align-items:center;gap:.45rem}
.shop-v3-eyebrow svg{width:14px;height:14px}
.shop-v3-hero h1{color:white;font-size:clamp(2.35rem,4vw,4.35rem);line-height:1.04;letter-spacing:-.047em;font-weight:950;margin-top:.67rem;overflow-wrap:break-word}
.shop-v3-hero h1 span{color:#a4ff36}
.shop-v3-hero p#shop-hero-subtitle{max-width:480px;color:#d8eadd;margin-top:1rem;font-size:clamp(.84rem,1vw,1.02rem);line-height:1.55}
.shop-v3-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:1.25rem}
.shop-v3-primary,.shop-v3-secondary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.74rem 1.1rem;border-radius:11px;font-weight:850;font-size:.84rem;min-height:42px;transition:transform .2s}
.shop-v3-primary{background:linear-gradient(135deg,#b6ff43,#5cfd64);color:#03220c;box-shadow:0 10px 35px rgba(72,255,92,.2)}
.shop-v3-secondary{border:1px solid rgba(181,255,177,.5);background:rgba(4,26,16,.62);color:#fff}
.shop-v3-primary:hover,.shop-v3-secondary:hover{transform:translateY(-2px)}
.shop-v3-actions svg{width:15px;height:15px}
.shop-v3-features{display:flex;align-items:center;gap:clamp(9px,1.9vw,26px);overflow-x:auto;padding:11px 4px 6px;scrollbar-width:none;border-bottom:1px solid rgba(255,255,255,.07)}
.shop-v3-features span{white-space:nowrap;display:inline-flex;align-items:center;gap:7px;font-size:.75rem;font-weight:700;color:#b8d5c2}
.shop-v3-features svg{width:17px;height:17px;color:#70ec99}
.shop-v3-features::-webkit-scrollbar{display:none}
/* Compact ebook shelves with authentic portrait book proportions */
.catalog-section{padding-top:1rem!important}
.marketplace-toolbar{padding-top:clamp(.9rem,2vw,1.3rem)!important}
.catalog-head h2{font-size:clamp(1.18rem,1.8vw,1.6rem)!important}
.product-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(174px,1fr))!important;gap:11px!important;max-width:none!important}
.product-card{border-radius:13px!important;min-width:0;box-shadow:0 5px 19px rgba(0,0,0,.16);background:linear-gradient(160deg,#13231a,#0b1710)!important}
.product-card .product-media{width:100%!important;height:auto!important;min-width:0!important;max-height:none!important;padding:12px;background:radial-gradient(circle at 50% 35%,rgba(78,179,96,.13),rgba(3,17,10,.7))!important}
.product-card.is-ebook .product-media{aspect-ratio:3/4.1!important}
.product-card.is-digital .product-media{aspect-ratio:3/3.4!important}
.product-card.is-video .product-media{aspect-ratio:16/10!important}
.product-card .product-media img{width:100%;height:100%;object-fit:contain!important;filter:drop-shadow(0 8px 9px rgba(0,0,0,.3))}
.product-card .product-body{padding:10px!important;gap:2px!important}
.product-card .product-title{font-size:.82rem!important;line-height:1.35!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.23em}
.product-card .product-type{font-size:.61rem!important;line-height:1.35}
.product-card .product-category{display:none}
.product-card .product-desc{font-size:.71rem!important;line-height:1.45!important;-webkit-line-clamp:2;max-height:3em}
.product-card .product-footer{display:flex;flex-direction:column;align-items:stretch;gap:7px!important;margin-top:auto;padding-top:8px!important}
.product-card .product-price{font-size:.95rem!important;font-weight:900}
.product-card .product-button{width:100%!important;min-height:35px!important;font-size:.73rem!important;padding:6px!important}
.product-card .preview-button{font-size:.68rem!important;margin-top:4px}
.product-card .favorite-button{width:29px;height:29px}
.shop-free-price{display:inline-block;font-size:.76rem!important;font-weight:900;padding:3px 8px;color:#b8ff4a!important;background:#153c22;border-radius:999px}
.catalog-head p{font-size:.75rem!important}
/* Admin extensions */
.shop-v3-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:4px 0 26px}
.shop-v3-admin-panel{padding:20px;min-width:0}
.shop-v3-section-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:11px}
.shop-v3-section-heading h2{font-size:1.05rem;color:#fff;font-weight:850}
.shop-v3-section-kicker{font-size:.63rem;font-weight:900;letter-spacing:.12em;color:#65f29c;margin-bottom:3px}
.shop-v3-helper{font-size:.74rem;color:#9bbaa9;line-height:1.5;margin:8px 0}
.shop-v3-outline-button{background:#133321;color:#b9edc9;border:1px solid #315a3b;border-radius:9px;padding:6px 12px;font-size:.75rem;font-weight:700}
.shop-v3-ready-dot{font-size:.67rem;color:#befd8d;background:#16321c;border:1px solid #395e32;border-radius:99px;padding:5px 10px}
.shop-v3-metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.shop-v3-metrics-grid>div{border:1px solid rgba(123,255,158,.12);border-radius:13px;padding:12px 10px;background:linear-gradient(180deg,#092a1b,#081d16);min-width:0}
.shop-v3-metrics-grid span{display:block;color:#8fb6a1;font-size:.66rem;line-height:1.4}
.shop-v3-metrics-grid strong{display:block;color:#fff;font-size:clamp(1.1rem,1.7vw,1.5rem);font-weight:950;margin-top:6px}
.shop-v3-promo-form{display:grid;gap:11px}
.shop-v3-promo-form label{color:#bdd8c8;font-size:.71rem;font-weight:750;display:grid;gap:5px;min-width:0}
.shop-v3-promo-form input,.shop-v3-promo-form textarea{width:100%;min-width:0}
.shop-v3-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.shop-v3-promo-form .shop-v3-check{display:flex;align-items:center;gap:8px}
.shop-v3-check input{width:auto}
.shop-v3-promo-preview{position:relative;border:1px solid rgba(255,255,255,.08);border-radius:12px;overflow:hidden;background:#052416}
.shop-v3-promo-preview img{display:block;width:100%;height:115px;object-fit:cover}
.shop-v3-promo-preview p{position:absolute;bottom:5px;left:7px;font-size:.65rem;background:rgba(0,20,10,.8);color:#fff;padding:4px 7px;border-radius:7px}
.shop-v3-promo-list{margin-top:12px;display:grid;gap:8px}
.shop-v3-promo-entry{display:flex;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#0d2015;padding:8px;min-width:0}
.shop-v3-promo-entry img{width:73px;height:49px;object-fit:cover;border-radius:7px;flex-shrink:0}
.shop-v3-promo-entry div{min-width:0;flex:1}
.shop-v3-promo-entry strong{display:block;color:#e6ffe9;font-size:.74rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-v3-promo-entry small{color:#9caf9e;font-size:.65rem}
.shop-v3-promo-entry button{color:#c4ffc9;border:1px solid rgba(100,255,142,.2);padding:5px 8px;border-radius:6px;font-size:.66rem}
@media(max-width:900px){.shop-v3-admin-grid{grid-template-columns:1fr}.shop-v3-hero-content{width:63%}.shop-v3-hero{min-height:310px}}
@media(max-width:640px){
 .hero.shop-v3{padding-top:9px!important}
 .shop-v3-hero{min-height:460px;border-radius:15px;align-items:flex-start}
 .shop-v3-hero-media::after{background:linear-gradient(180deg,rgba(1,28,20,.38),transparent 68%)}
 .shop-v3-hero-media img{object-fit:cover;object-position:center}
 .shop-v3-hero-content{width:100%;padding:21px 17px}
 .shop-v3-hero h1{font-size:clamp(2.05rem,8.4vw,3.25rem);line-height:1.02;max-width:330px}
 .shop-v3-hero p#shop-hero-subtitle{font-size:.77rem;margin-top:.7rem;max-width:275px}
 .shop-v3-eyebrow{font-size:.59rem!important;letter-spacing:.1em!important}
 .shop-v3-actions{gap:7px;margin-top:13px}
 .shop-v3-primary,.shop-v3-secondary{padding:9px 10px;min-height:36px;font-size:.71rem}
 .shop-v3-features{gap:13px;padding:9px 0 7px}
 .shop-v3-features span{font-size:.64rem}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .product-card .product-media{padding:8px!important;aspect-ratio:3/4!important}
 .product-card.is-video .product-media{aspect-ratio:16/10!important}
 .product-card .product-body{padding:8px!important}
 .product-card .product-title{font-size:.75rem!important}
 .product-card .product-desc{display:none!important}
 .product-card .product-type{font-size:.57rem!important}
 .product-card .product-footer{gap:4px!important;padding-top:5px!important}
 .product-card .product-price{font-size:.82rem!important}
 .product-card .product-button{font-size:.67rem!important;min-height:31px!important}
 .product-card .favorite-button{width:26px;height:26px}
 .shop-v3-admin-panel{padding:14px}
 .shop-v3-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shop-v3-two-cols{grid-template-columns:1fr}
}
@media(max-width:355px){.shop-v3-hero{min-height:455px}.shop-v3-hero h1{font-size:1.92rem}.shop-v3-primary,.shop-v3-secondary{font-size:.66rem}.product-grid{gap:6px!important}}

.jabaa-nav-icon{height:38px;width:38px;object-fit:contain;flex-shrink:0}
@media(max-width:480px){.jabaa-admin-caption{display:none}}
