/* ============================================
   EZ Single Product Box — V3.34
   Slider CSS restored to V3.7 (confirmed working).
   All other layout/theme-override fixes kept.
   Added JS force-loader as safety net for any
   lazy loader that intercepts images.
   ============================================ */

/* Theme bleed prevention */
.pb-wrap a::after,.pb-wrap a::before{display:none !important;content:none !important;border:none !important;}
.pb-wrap,.pb-wrap *{box-sizing:border-box;}
.pb-wrap p{margin:0 !important;font-size:inherit;line-height:inherit;}
.pb-wrap a,.pb-wrap a:visited,.pb-wrap a:hover,.pb-wrap a:focus{color:inherit !important;}
.pb-specs,.pb-specs tbody,.pb-specs tr,.pb-specs td,.pb-specs th{border:none !important;box-shadow:none !important;margin:0 !important;vertical-align:top;font-weight:inherit;text-align:left;}



/* Card */
.pb-wrap{position:relative;display:flex;flex-direction:row;align-items:stretch;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;margin:2em 0;box-shadow:0 4px 24px rgba(0,0,0,.07);}
.pb-badge{position:absolute;top:0;left:0;display:inline-flex;align-items:center;padding:7px 14px;font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#fff !important;background:#4f46e5;border-radius:0 0 8px 0;z-index:10;line-height:1;white-space:nowrap;}

/* Image column */
.pb-image-col{flex:0 0 36%;max-width:36%;background:#fff;display:flex;align-items:center;justify-content:center;position:relative;padding:18px;overflow:visible;}
.pb-image-col>img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;border-radius:10px;}

/* ──────────────────────────────────────────
   SLIDER — V3.7 approach (confirmed working)
   aspect-ratio:1/1 sets square height,
   height:100% chain fills slides and images.
   ────────────────────────────────────────── */
.pb-slider{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:10px;}
.pb-slides{display:flex;width:100%;height:100%;transition:transform .35s ease;will-change:transform;}
.pb-slide{min-width:100%;width:100%;height:100%;flex-shrink:0;overflow:hidden;}
.pb-slide img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none;}

/* Arrows */
.pb-arrow{position:absolute;top:50%;transform:translateY(-50%);background:#fff;color:#374151 !important;border:none;cursor:pointer;width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:600;z-index:20;border-radius:6px;padding:0;box-shadow:0 2px 10px rgba(0,0,0,.18);transition:box-shadow .2s,transform .15s;}
.pb-arrow:hover{box-shadow:0 4px 16px rgba(0,0,0,.26);transform:translateY(-50%) scale(1.06);}
.pb-arrow-prev{left:7px;}.pb-arrow-next{right:7px;}

/* Dots */
.pb-dots{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:5;}
.pb-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;border:none;padding:0;transition:background .2s,transform .2s;}
.pb-dot.pb-dot-active{background:#fff;transform:scale(1.3);}

/* Content col */
.pb-content-col{flex:1;display:flex;flex-direction:column;justify-content:flex-start;padding:20px 22px 16px;gap:6px;}

/* Title — high-specificity beats theme h3 margin-top:40px !important */
body .pb-wrap .pb-content-col h3.pb-title{margin:0 !important;padding:0 !important;border:none !important;}
.pb-title{font-size:1.15rem !important;font-weight:800 !important;color:#0f172a !important;line-height:1.32 !important;margin:0 !important;padding:0 !important;border:none !important;}
.pb-title-link,.pb-title-link:hover,.pb-title-link:visited,.pb-title-link:focus{text-decoration:none !important;color:inherit !important;border:none !important;box-shadow:none !important;}

/* Rating */
.pb-rating{display:flex;align-items:center;gap:7px;margin:0 !important;}
a.pb-rating-link{display:inline-flex;align-items:center;gap:7px;text-decoration:none !important;transition:opacity .2s;}
a.pb-rating-link:hover{opacity:.78;}
.pb-stars{display:inline-flex;gap:2px;font-size:19px;line-height:1;}
.pb-star-full{color:#f59e0b !important;}.pb-star-half{position:relative;display:inline-block;color:#d1d5db !important;}.pb-star-half::before{content:'\2605';position:absolute;left:0;top:0;width:50%;overflow:hidden;color:#f59e0b;display:block;}.pb-star-empty{color:#d1d5db !important;}
.pb-rating-count{font-size:.88rem !important;color:#475569 !important;font-weight:600;}

/* Description — full text */
.pb-description{font-size:.89rem !important;line-height:1.62 !important;color:#374151 !important;margin:0 !important;display:block !important;overflow:visible !important;}
/* Inner <p> tags when user writes multiple paragraphs in description */
.pb-description p{font-size:.89rem !important;line-height:1.62 !important;color:#374151 !important;margin:0 0 8px 0 !important;}
.pb-description p:last-child{margin-bottom:0 !important;}

/* Specs */
.pb-specs-wrap{border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;background:#f8fafc;}
.pb-specs{width:100%;border-collapse:collapse !important;font-size:.83rem !important;}
.pb-specs tr:nth-child(odd) td,.pb-specs tr:nth-child(odd) th{background:#fff;}
.pb-specs tr:nth-child(even) td,.pb-specs tr:nth-child(even) th{background:#eff6ff;}
.pb-spec-label{font-weight:700 !important;color:#1e293b !important;padding:7px 10px 7px 12px !important;width:36%;vertical-align:top !important;line-height:1.4;}
.pb-spec-value{color:#374151 !important;padding:7px 10px 7px 12px !important;vertical-align:top !important;line-height:1.4;}
.pb-specs tr+tr td,.pb-specs tr+tr th{border-top:1px solid #e2e8f0 !important;}

/* Buttons — buttons pushed to bottom */
.pb-buttons{display:flex;flex-direction:row;align-items:stretch;gap:9px;margin-top:auto;padding-top:8px;width:100%;}
.pb-btn{flex:1;width:auto;padding:8px 10px;font-size:.95rem !important;font-weight:800;text-align:center;text-decoration:none !important;border-radius:10px;border:2px solid transparent;cursor:pointer;transition:filter .2s,transform .15s,background .22s,color .22s,border-color .22s;letter-spacing:.025em;white-space:nowrap;display:flex;align-items:center;justify-content:center;line-height:1.3 !important;}
.pb-btn-primary{background:#0f172a;color:#fff !important;box-shadow:0 2px 10px rgba(15,23,42,.22);}
.pb-btn-primary:hover{filter:brightness(1.25);transform:translateY(-2px);}
.pb-btn-secondary{background:transparent;color:#0f172a !important;border-color:#0f172a;transition:background .22s,color .22s,border-color .22s,transform .15s;}
.pb-btn-secondary:hover{background:#0f172a;border-color:#0f172a;color:#fff !important;transform:translateY(-2px);}

/* Mobile / tablet */
@media (max-width:47.99em){
    .pb-wrap{flex-direction:column;}
    .pb-image-col{flex:none !important;max-width:100% !important;width:100% !important;display:block !important;padding:0 !important;height:auto !important;aspect-ratio:16/9 !important;overflow:hidden !important;background:#f1f5f9 !important;border-radius:0 !important;}
    .pb-image-col>img{aspect-ratio:unset !important;width:100% !important;height:100% !important;object-fit:cover !important;border-radius:0 !important;display:block !important;}
    .pb-slider{aspect-ratio:unset !important;width:100% !important;height:100% !important;border-radius:0 !important;}
    .pb-slides{height:100% !important;}
    .pb-slide{height:100% !important;}
    .pb-slide img{width:100% !important;height:100% !important;object-fit:cover !important;border-radius:0 !important;}
    .pb-content-col{padding:16px 16px 14px;width:100%;}
    .pb-title{font-size:1.1rem !important;}
    .pb-buttons{flex-direction:column;align-items:stretch;}
    .pb-btn{flex:none;width:100%;font-size:1rem !important;padding:10px 14px;}
}
@media (max-width:30em){
    .pb-image-col{aspect-ratio:4/3 !important;}
    .pb-content-col{padding:14px 12px;}
    .pb-title{text-align:center !important;}
    .pb-rating{justify-content:center;}
    a.pb-rating-link{justify-content:center;}
    .pb-buttons{align-items:stretch;}
}