/* ENTEBHOOMI — spacing / sizing fix for the product view popup (index.html) and the full details page (product.html).
   Same sizing as the Account page: 520px column, 18px side padding, 22px radius, 50px buttons, 40px round close.
   Loaded LAST. Colours are untouched (theme tokens stay in charge). */

/* ================= product view popup ================= */
#productDetailOverlay,#comboPreviewOverlay{padding:0!important;align-items:flex-end!important;justify-content:center!important}
#productDetailOverlay .product-detail-modal,#comboPreviewOverlay .product-detail-modal{
  width:100%!important;max-width:520px!important;max-height:92vh!important;margin:0 auto!important;
  border-radius:24px 24px 0 0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
#productDetailOverlay .modal-head,#comboPreviewOverlay .modal-head{top:14px!important;right:14px!important}
#productDetailOverlay .modal-close,#comboPreviewOverlay .modal-close{width:40px!important;height:40px!important;font-size:24px!important;display:grid!important;place-items:center;padding:0!important}
#productDetailOverlay .pd-brand{display:none!important}
#productDetailOverlay .modal-body,#comboPreviewOverlay .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;padding:0!important}
#productDetailOverlay .product-detail-media,#comboPreviewOverlay .product-detail-media{aspect-ratio:1/1!important;max-height:min(46vh,340px)!important;width:100%!important;margin:0!important}
#productDetailOverlay .product-detail-media img,#productDetailOverlay .product-detail-media video,
#comboPreviewOverlay .product-detail-media img,#comboPreviewOverlay .product-detail-media video{object-fit:contain!important}
#productDetailOverlay .product-detail-info,#comboPreviewOverlay .product-detail-info{padding:18px 18px 16px!important;display:block}
#productDetailOverlay .pd-cat,#comboPreviewOverlay .pd-cat{font-size:11px!important;padding:5px 12px!important;margin:0 0 10px!important}
#productDetailOverlay .pd-title,#comboPreviewOverlay .pd-title{font-size:21px!important;line-height:1.22!important;margin:0 0 8px!important}
#productDetailOverlay .product-detail-desc,#comboPreviewOverlay .product-detail-desc{font-size:14px!important;line-height:1.6!important;margin:0 0 14px!important}
#productDetailPacks:not(:empty){margin:0 0 14px!important}
#productDetailPacks:not(:empty)::before{font-size:11.5px!important;margin:0 0 8px!important}
#productDetailOverlay .pack-chip,#comboPreviewOverlay .pack-chip{font-size:13px!important;padding:9px 16px!important;min-height:38px}
#productDetailOverlay .card-lead-time,#comboPreviewOverlay .card-lead-time{font-size:12px!important;padding:5px 12px!important;margin:0 0 14px!important;display:inline-block}
#productDetailOverlay .pd-full{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:48px;margin:0 0 14px!important;padding:0 16px!important;border-radius:14px!important;font-size:14px!important;font-weight:700}
#productDetailOverlay .pd-features{display:grid;gap:10px;margin:0!important;padding:0!important}
#productDetailOverlay .pd-feature{display:flex;align-items:center;gap:12px;font-size:13.5px!important;line-height:1.4;padding:0!important;margin:0!important}
#productDetailOverlay .pd-feature i{flex:0 0 32px;width:32px;height:32px;border-radius:10px;display:grid;place-items:center}
#productDetailOverlay .pd-feature i svg{width:16px;height:16px}
#productDetailOverlay .product-detail-bottom,#comboPreviewOverlay .product-detail-bottom{
  padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px))!important;gap:14px!important;flex-shrink:0}
#productDetailOverlay .product-detail-bottom .card-price{font-size:24px!important;min-width:0}
#productDetailOverlay .product-detail-bottom .card-price small{font-size:12px!important}
#productDetailOverlay .product-detail-bottom .add-btn,#productDetailOverlay .product-detail-bottom .qty-stepper,
#comboPreviewOverlay .product-detail-bottom .add-btn{height:50px!important;border-radius:14px!important;font-size:15px!important}
@media (min-width:641px){
  #productDetailOverlay,#comboPreviewOverlay{align-items:center!important;padding:24px!important}
  #productDetailOverlay .product-detail-modal,#comboPreviewOverlay .product-detail-modal{border-radius:24px!important;margin:auto!important}
}

/* ================= full details page (product.html) =================
   assets/eb-redesign.css already makes the hero cards transparent (no frame, no padding) and hides .pp-bar,
   so only spacing / sizing is set here. Never add borders or padding to .pp-card / .pp-gal. */
body[data-page="product"] .pp-top{padding:calc(10px + env(safe-area-inset-top,0px)) 18px 10px!important;gap:12px!important}
body[data-page="product"] .pp-top a,body[data-page="product"] .pp-top a:hover{text-decoration:none!important}
body[data-page="product"] .pp-brand small{display:none!important}
body[data-page="product"] .pp-brand b{font-size:1.2rem!important}
body[data-page="product"] .pp-top .pp-ib{width:44px!important;height:44px!important;flex:0 0 44px!important}
body[data-page="product"] .pp{max-width:560px!important;margin:0 auto!important;padding:8px 18px 130px!important}
body[data-page="product"] .pp-hero{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
body[data-page="product"] .pp-gal{padding:0!important}
body[data-page="product"] .pp-stage{border-radius:22px!important}
body[data-page="product"] .pp-slide{aspect-ratio:1/1!important;background:var(--eb57-surface-ffffff,#fff)}
body[data-page="product"] .pp-slide img,body[data-page="product"] .pp-slide video{width:100%!important;height:100%!important;object-fit:contain!important}
body[data-page="product"] .pp-fab{width:44px!important;height:44px!important;right:12px!important}
body[data-page="product"] .pp-fab.fav{top:12px!important}
body[data-page="product"] .pp-fab.shr{top:64px!important}
body[data-page="product"] .pp-info{padding:4px 0!important;gap:12px!important}
body[data-page="product"] .pp-title{font-size:1.6rem!important;line-height:1.18!important}
body[data-page="product"] .pp-sub{font-size:1rem!important}
body[data-page="product"] .pp-pricerow{gap:12px!important;margin-top:2px!important;flex-wrap:nowrap!important;align-items:center}
body[data-page="product"] .pp-price{padding:10px 14px!important;border-radius:16px!important;gap:6px!important;flex:0 1 auto;min-width:0}
body[data-page="product"] .pp-price b{font-size:1.9rem!important;letter-spacing:-1px!important}
body[data-page="product"] .pp-price small{font-size:1rem!important}
body[data-page="product"] .pp-step{min-width:0!important;flex:0 0 auto;width:136px;height:52px!important;border-radius:16px!important}
body[data-page="product"] .pp-step button{width:44px!important}
body[data-page="product"] .pp-cta{display:grid!important;grid-template-columns:1.2fr 1fr!important;gap:10px!important}
body[data-page="product"] .pp-btn{height:54px!important;border-radius:16px!important;font-size:1rem!important;padding:0 12px!important;min-width:0}
body[data-page="product"] .pp-btn svg{width:22px!important;height:22px!important;flex:0 0 22px}
/* trust strip: stack on phones so the three notes are readable */
body[data-page="product"] .pp-trust{grid-template-columns:1fr!important;gap:12px!important;padding:14px 16px!important;border-radius:18px!important}
body[data-page="product"] .pp-trust div{font-size:.9rem!important;gap:12px!important}
body[data-page="product"] .pp-trust div+div{border-left:0!important;padding-left:0!important;border-top:1px solid var(--eb57-border-d3ddd6,#d3ddd6);padding-top:12px}
body[data-page="product"] .pp-trust svg{width:30px!important;height:30px!important;flex:0 0 30px!important}
body[data-page="product"] .pp-details{gap:16px!important;margin-top:16px!important}
body[data-page="product"] .pp-hl-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}
body[data-page="product"] .pp-sec{margin-top:20px!important}
body[data-page="product"] .pp-footcard{margin-top:20px!important}
@media (min-width:900px){
  body[data-page="product"] .pp{max-width:1080px!important}
  body[data-page="product"] .pp-hero{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;gap:34px!important}
  body[data-page="product"] .pp-trust{grid-template-columns:repeat(3,1fr)!important}
  body[data-page="product"] .pp-trust div+div{border-top:0;padding-top:0;border-left:1px solid var(--eb57-border-d3ddd6,#d3ddd6)!important;padding-left:8px!important}
}

/* ---- round 2: match the other pages (theme colour, no underlines, framed image, bottom-nav clearance) ---- */
body[data-page="product"] a,body[data-page="product"] a:hover{text-decoration:none!important}
body[data-page="product"] .pp{padding-bottom:140px!important}
body[data-page="product"] .pp-top{padding-left:12px!important;padding-right:12px!important}
body[data-page="product"] .pp-stage{border:1.4px solid var(--pp-line,var(--eb57-border-e5e9ef,#e5e9ef))!important;box-shadow:0 6px 20px var(--eb57-shadow-0a0e1a-70000,rgba(10,14,26,.07))!important;background:var(--eb57-surface-ffffff,#fff)}
body[data-page="product"] .pp-slide img,body[data-page="product"] .pp-slide video{object-fit:cover!important}
body[data-page="product"] .pp-slide{aspect-ratio:1/1!important;background:var(--eb57-surface-f4f6f8,#f4f6f8)!important}
body[data-page="product"] .pp-dots{margin:12px 0 0!important}
body[data-page="product"] .pp-price{background:var(--pp-pale,var(--eb57-surface-eef2ff,#eef2ff))!important;border:1.4px solid var(--pp-mid,var(--eb57-border-c7d2fe,#c7d2fe))!important}
body[data-page="product"] .pp-step{border:1.4px solid var(--pp-line,var(--eb57-border-e5e9ef,#e5e9ef))!important;box-shadow:none!important}
body[data-page="product"] .pp-btn.main{background:linear-gradient(135deg,var(--pp-primary),var(--pp-deep))!important;color:var(--eb57-text-ffffff,#fff)!important;box-shadow:0 8px 20px var(--eb57-shadow-0a0e1a-140000,rgba(10,14,26,.14))!important}
body[data-page="product"] .pp-btn.alt{background:var(--eb57-surface-ffffff,#fff)!important;color:var(--pp-deep)!important;border:1.4px solid var(--pp-primary)!important;box-shadow:none!important}
body[data-page="product"] .pp-trust{background:var(--eb57-surface-ffffff,#fff)!important;border:1.4px solid var(--pp-line,var(--eb57-border-e5e9ef,#e5e9ef))!important}
body[data-page="product"] .pp-trust svg{color:var(--pp-primary)!important}
body[data-page="product"] .pp-trust div+div{border-top-color:var(--pp-line,var(--eb57-border-e5e9ef,#e5e9ef))!important}
body[data-page="product"] .pp-footcard{border:1.4px solid var(--pp-line,var(--eb57-border-e5e9ef,#e5e9ef))!important;box-shadow:none!important;border-radius:22px!important}
body[data-page="product"] .pp-footcard a{color:var(--pp-ink)!important;font-size:1.2rem!important}
body[data-page="product"] .pp-footcard span{background:var(--pp-pale)!important}
html:has(body[data-page="product"]),body[data-page="product"]{background:var(--eb57-surface-ffffff,#fff)!important}
body[data-page="product"] .pp-top{background:var(--eb57-surface-ffffff-960000,rgba(255,255,255,.96))!important}
body[data-page="product"] .pp-sec-head h2:before,body[data-page="product"] .pp-block>h2:before,body[data-page="product"] .pp-hl h2:before{background:var(--pp-primary)!important}
body[data-page="product"] .pp-sec-head .va{color:var(--pp-deep)!important}
body[data-page="product"] .pc-add,body[data-page="product"] .pp-dots span.on{background:var(--pp-primary)!important}
body[data-page="product"] .pp-footcard span{font-size:.85rem!important;padding:10px 14px!important}

/* ---- round 2: shop popup — close button right, photo flush to top, theme colour ---- */
html body #productDetailOverlay .modal-head,html body #comboPreviewOverlay .modal-head{position:absolute!important;top:14px!important;right:14px!important;left:auto!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;z-index:6!important;justify-content:flex-end}
html body #productDetailOverlay .product-detail-modal::before,html body #comboPreviewOverlay .product-detail-modal::before{display:none!important}
html body #productDetailOverlay .modal-body,html body #comboPreviewOverlay .modal-body{padding:0!important;margin:0!important}
html body #productDetailOverlay .product-detail-media,html body #comboPreviewOverlay .product-detail-media{background:var(--eb57-surface-f4f6f8,#f4f6f8)!important;margin:0!important;border-radius:0!important;box-shadow:none!important}
html body #productDetailOverlay .product-detail-media::before,html body #productDetailOverlay .product-detail-media::after{display:none!important}
html body #productDetailOverlay .pd-full{border:1.4px solid var(--leaf,var(--eb57-border-4f46e5,#4f46e5))!important;color:var(--leaf-deep,var(--eb57-text-3730a3,#3730a3))!important;background:var(--eb57-surface-ffffff,#fff)!important;font-size:14px!important}
html body #productDetailOverlay .pd-features{grid-template-columns:1fr!important}
html body #productDetailOverlay .pd-feature{background:var(--leaf-pale,var(--eb57-surface-eef2ff,#eef2ff))!important;border-radius:14px!important;padding:10px 14px!important;border:0!important}
html body #productDetailOverlay .pd-feature+.pd-feature{border-left:0!important}
html body #productDetailOverlay .pd-feature i{background:var(--eb57-surface-ffffff,#fff)!important;color:var(--leaf,var(--eb57-text-4f46e5,#4f46e5))!important}
html body #productDetailOverlay .pd-features{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}

/* ---- horizontal-scroll guard (phones): nothing may be wider than the screen ---- */
html:has(body[data-page="product"]),html:has(body[data-page="realestate"]){overflow-x:hidden!important;max-width:100%;overscroll-behavior-x:none}
body[data-page="product"],body[data-page="realestate"]{overflow-x:hidden!important;max-width:100%;position:relative}
body[data-page="product"] .pp,body[data-page="product"] .pp-hero,body[data-page="product"] .pp-details,body[data-page="product"] .pp-info,body[data-page="product"] .pp-card,body[data-page="product"] .pp-block{min-width:0!important;max-width:100%!important}
body[data-page="product"] .pp{overflow-x:clip}
body[data-page="product"] .pp-title,body[data-page="product"] .pp-desc,body[data-page="product"] .pp-bul li,body[data-page="product"] .pp-spec td,body[data-page="product"] .pp-spec th,body[data-page="product"] .pc-name{overflow-wrap:anywhere;word-break:break-word}
body[data-page="product"] .pp-spec{display:block;max-width:100%;overflow-x:auto}
body[data-page="product"] .pp-desc img,body[data-page="product"] .pp-desc table,body[data-page="product"] .pp-block img,body[data-page="product"] .pp-block video{max-width:100%!important;height:auto}
body[data-page="product"] .pp-pricerow{flex-wrap:wrap!important}
body[data-page="product"] .pp-price{max-width:100%}
body[data-page="product"] .pp-hl-grid,body[data-page="product"] .pp-grid{max-width:100%}
body[data-page="product"] .pp-rail{max-width:100%;overscroll-behavior-x:contain}
body[data-page="product"] .pp-top{max-width:100%;box-sizing:border-box}
body[data-page="product"] .pp-bar{max-width:100vw;box-sizing:border-box}
#productDetailOverlay,#comboPreviewOverlay{overflow-x:hidden!important}
#productDetailOverlay .product-detail-modal,#productDetailOverlay .modal-body{max-width:100%;overflow-x:hidden}

/* ---- out of stock: the red tag on the photo is enough, no second "Out of stock" button on cards ---- */
html body .card-bottom .card-action .add-btn[disabled],html body .card .card-action .add-btn[disabled],html body .card-bottom .add-btn[disabled]{display:none!important}
html body .card-bottom .card-action:empty{display:none!important}
html body .pc .pc-act .pc-add[disabled],html body .pc .pc-add[disabled]{display:none!important}
html body .pc .pc-act:empty{display:none!important}
html body .card-bottom{align-items:center}
