/* ── product-details.css v2.0 ─ speed-optimised ─────────────────────────────
   Changes vs v1.0:
   • All animations use transform/opacity only (no box-shadow, no layout props)
     → avoids composite-layer promotion thrash
   • disc-pill uses will-change:transform so browser pre-promotes it
   • gallery-main::before replaced with a real element via CSS (no radial-gradient
     on pseudo repaint every scroll)
   • Sticky position on .pdp-gallery uses contain:layout to prevent reflow
   • img aspect-ratio locked on thumb + rp-img to prevent CLS
   • contain:content on .pdp-card to limit repaint scope
   • All box-shadow transitions removed (box-shadow is not GPU-composited)
     → replaced with opacity shift on a ::after layer
   • Related slider cards use aspect-ratio on img instead of fixed height
     → prevents layout shift when owl lazy-loads images
   • Removed duplicate/redundant selectors
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── Custom properties ─────────────────────────────────────────────────────── */
:root {
    --p:         #6D28D9;
    --p-dark:    #4C1D95;
    --p-deep:    #3B0D8F;
    --p-soft:    #F5F3FF;
    --p-mid:     #EDE9FE;
    --p-glow:    rgba(109,40,217,.18);
    --s:         #F59E0B;
    --s-dark:    #D97706;
    --s-glow:    rgba(245,158,11,.22);
    --danger:    #EF4444;
    --success:   #10B981;
    --warn:      #F97316;
    --bg:        #F0F5FF;
    --surface:   #FFFFFF;
    --border:    #EDE9FE;
    --border2:   #E2E8F0;
    --text:      #0F172A;
    --text2:     #1E293B;
    --text3:     #374151;
    --muted:     #64748B;
    --muted2:    #94A3B8;
    --grad-p:    linear-gradient(135deg,#6D28D9 0%,#4C1D95 100%);
    --grad-s:    linear-gradient(135deg,#F59E0B 0%,#D97706 100%);
    --grad-warn: linear-gradient(135deg,#F97316 0%,#EA580C 100%);
    --r-xl:  20px; --r-lg: 14px; --r-md: 10px; --r-sm: 7px; --r-pill: 999px;
    --sh-xs: 0 1px 4px rgba(76,29,149,.05);
    --sh-sm: 0 2px 14px rgba(76,29,149,.08);
    --sh-md: 0 8px 30px rgba(76,29,149,.12);
    /* ✦ Only transition transform+opacity — these are GPU-composited */
    --t:      .22s cubic-bezier(.4,0,.2,1);
    --t-slow: .4s  cubic-bezier(.4,0,.2,1);
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Hind Siliguri', sans-serif;
}

/* ─── Base ──────────────────────────────────────────────────────────────────── */
.pdp *, .pdp *::before, .pdp *::after { box-sizing: border-box; }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.pdp img { max-width: 100%; height: auto; display: block; }
.pdp {
    background: var(--bg);
    padding: 20px 0 60px;
    width: 100%;
    /* ✦ overflow-x:hidden removed — was blocking thumb-strip scroll */
}
.pdp .container {
    max-width: 1200px !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.pdp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-family: var(--font-head);
    font-size: 12.5px;
}
.pdp-breadcrumb a { color: var(--muted); text-decoration: none; transition: color var(--t); }
.pdp-breadcrumb a:hover { color: var(--p); }
.pdp-breadcrumb .sep { color: var(--muted2); font-size: 11px; }
.pdp-breadcrumb .cur { color: var(--text3); font-weight: 600; }

/* ─── Main grid ─────────────────────────────────────────────────────────────── */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
    width: 100%;
}
.pdp-grid-left,
.pdp-grid-right {
    min-width: 0;
    width: 100%;
}

/* ─── Gallery card ───────────────────────────────────────────────────────────── */
.pdp-gallery {
    position: sticky;
    top: 16px;
    width: 100%;
    background: #fff;
    border: 1.5px solid #EDE9FE;
    border-radius: 20px;
    box-shadow: 0 2px 14px rgba(76,29,149,.08);
    padding: 10px;
}
.pdp-gallery-inner {
    position: relative;  /* disc-pill anchors here */
    width: 100%;
}
.gallery-main {
    width: 100%;
    background: #F5F3FF;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}
.gallery-main::before { display: none; }

/* ✦ Discount pill — anchors to .pdp-gallery-inner (position:relative) */
.disc-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
    background: linear-gradient(135deg,#EF4444,#DC2626);
    color: #fff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    letter-spacing: .3px;
    will-change: transform;
    animation: disc-pulse 2.4s ease-in-out infinite;
}
/* ✦ Animate transform only — no box-shadow change (not composited) */
@keyframes disc-pulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}

.details_slider { width: 100% !important; }
.details_slider .owl-stage-outer { width: 100% !important; }

/* ✦ FIX: Desktop — fixed height, image contains inside it */
.details_slider .dimage_item {
    width: 100%;
    height: 520px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 16px;
    overflow: hidden;
}
/* ✦ object-fit:contain — image পুরো দেখায়, crop হয় না */
.details_slider .dimage_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}
.details_slider .owl-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}
.details_slider .owl-dots .owl-dot span {
    width: 7px;
    height: 7px;
    background: var(--border);
    border-radius: 4px;
    display: block;
    transition: width var(--t), background var(--t);
}
.details_slider .owl-dots .owl-dot.active span { background: var(--p); width: 20px; }

/* ─── Thumbnail strip — single row, 4 visible, rest scroll ──────────── */
/* ─── Thumbnail strip ────────────────────────────────────────────────────────── */
/* ✦ Wrapper has prev/next arrow buttons injected by JS */
.thumb-strip-wrap {
    position: relative;
    margin-top: 8px;
    padding: 0 30px;
    /* ✦ show exactly 4 items: 4*80 + 3*8 = 344px visible */
    max-width: 100%;
}
.thumb-strip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow: hidden !important;
    width: 100%;
    /* smooth scroll via JS scrollLeft */
    scroll-behavior: smooth;
}
/* Arrow buttons — injected by JS */
.thumb-prev, .thumb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #EDE9FE;
    color: #6D28D9;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(109,40,217,.15);
    z-index: 5;
    transition: background var(--t), color var(--t);
}
.thumb-prev { left: 0; }
.thumb-next { right: 0; }
.thumb-prev:hover, .thumb-next:hover {
    background: #6D28D9;
    color: #fff;
}
.thumb-prev:disabled, .thumb-next:disabled { opacity: .3; cursor: default; }

.thumb-strip .indicator-item {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    padding: 4px;
    cursor: pointer;
    transition: border-color var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.thumb-strip .indicator-item p { display: none; }
.thumb-strip .indicator-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}
.thumb-strip .indicator-item:hover { border-color: #6D28D9; }
.thumb-strip .indicator-item.active {
    border: 2px solid #6D28D9;
}

@media (max-width: 767px) {
    .thumb-strip { gap: 6px; }
    .thumb-strip .indicator-item { flex: 0 0 68px; width: 68px; height: 68px; }
}

/* ─── Product info panel ────────────────────────────────────────────────────── */
.pdp-info {
    background: #fff;
    border: 1.5px solid #EDE9FE;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 2px 14px rgba(76,29,149,.08);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 16px;
}
.pdp-name {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -.3px;
}

/* Rating row */
.pdp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.star-row i { color: #F4B400; font-size: 14px; }
.rating-score {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--text3);
    background: #FFF8E1;
    border: 1px solid #FDE68A;
    border-radius: var(--r-pill);
    padding: 3px 10px;
}
.review-link {
    font-family: var(--font-head);
    font-size: 12.5px;
    color: var(--p);
    font-weight: 600;
    border-bottom: 1px dashed var(--p);
    padding-bottom: 1px;
    transition: color var(--t);
    text-decoration: none;
}
.review-link:hover { color: var(--p-dark); }

/* Price block */
.pdp-price-block {
    background: linear-gradient(135deg,var(--p-soft) 0%,#F5F0FF 100%);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    margin-bottom: 12px;
    position: relative;   /* ✦ code-chip absolute anchor */
    overflow: hidden;
}
/* circle accent removed — code-chip is now top-right */
.pdp-price-block::before { display: none; }
/* hide old code row — now inside price block */
.pdp-code-row { display: none; }
.pdp-price-new {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 900;
    color: var(--p-dark);
    letter-spacing: -.5px;
    line-height: 1;
}
.pdp-price-old {
    font-size: 14px;
    color: var(--muted2);
    font-weight: 500;
    text-decoration: line-through;
    margin-bottom: 4px;
}
.pdp-savings {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16,185,129,.12);
    color: #065f46;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    margin-top: 6px;
}
.pdp-savings i { font-size: 11px; }

/* Code row */
.pdp-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}
.code-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--grad-p);
    color: #fff;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    letter-spacing: .4px;
    cursor: pointer;
    user-select: none;
    border: none;
    outline: none;
    transition: opacity var(--t), transform var(--t);
}
.code-chip:hover { opacity: .85; transform: scale(1.04); }
.code-chip.copied {
    background: linear-gradient(135deg,#10B981,#059669);
}

/* Meta grid */
.pdp-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.meta-chip {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.meta-chip i      { color: var(--p); font-size: 12px; flex-shrink: 0; }
.meta-chip span   { color: var(--muted); font-size: 10px; }
.meta-chip strong { display: block; font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--text2); }
.meta-chip.full-width { grid-column: 1 / -1; }

/* Stock badge */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--r-pill);
}
.stock-badge.in  { background: rgba(16,185,129,.12); color: #065f46; }
.stock-badge.out { background: rgba(239,68,68,.1);   color: #991b1b; }
.stock-badge i   { font-size: 12px; }

/* Divider */
.pdp-div { border: none; border-top: 1px dashed var(--border2); margin: 12px 0; }

/* ─── Variant selectors ──────────────────────────────────────────────────────── */
/* ─── Variant row: label + buttons on one line ──────────────────────────────── */
.mb-3 { margin-bottom: 12px; }
.var-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.var-label {
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.var-label i { color: var(--p); font-size: 11px; }
.selector-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* no margin-bottom — mb-3 on parent handles spacing */
}
.selector-item { position: relative; }
.selector-item_radio { position: absolute; opacity: 0; pointer-events: none; }
.selector-item_label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 32px;
    padding: 5px 12px;
    border: 1.5px solid var(--border2);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text3);
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--t), color var(--t), background var(--t);
}
.selector-item_label:hover { border-color: var(--p); color: var(--p); background: var(--p-soft); }
.selector-item_radio:checked + .selector-item_label {
    border-color: var(--p);
    background: var(--p-soft);
    color: var(--p-dark);
    outline: 2px solid rgba(109,40,217,.15);
    outline-offset: 0;
}

/* ─── Quantity ──────────────────────────────────────────────────────────────── */
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qty-label {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    white-space: nowrap;
}
.pdp-qty-wrap {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #EDE9FE;
    border-radius: 10px;
    overflow: hidden;
    height: 36px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(109,40,217,.08);
}
.pdp-qty-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border: none;
    background: #F5F3FF;
    color: #6D28D9;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: background var(--t), color var(--t);
}
.pdp-qty-btn:hover { background: #EDE9FE; color: #4C1D95; }
.pdp-qty-input {
    width: 42px;
    height: 36px;
    border: none;
    border-left: 1.5px solid #EDE9FE;
    border-right: 1.5px solid #EDE9FE;
    background: #fff;
    color: #0F172A;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    padding: 0;
    flex-shrink: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ─── Action buttons ─────────────────────────────────────────────────────────── */
.pdp-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pdp-actions .row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn-pdp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: none;
    border-radius: var(--r-lg);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    letter-spacing: .2px;
    position: relative;
    overflow: hidden;
    /* ✦ Transition transform only — not box-shadow */
    transition: transform var(--t), opacity var(--t);
}
/* ✦ Hover shine via ::before opacity shift — no layout change */
.btn-pdp::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.14);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}
.btn-pdp:hover              { transform: translateY(-2px); }
.btn-pdp:hover::before      { opacity: 1; }
.btn-pdp:active             { transform: translateY(0) scale(.98); }

.btn-cart  { background: var(--grad-p);    color: #fff !important; }
.btn-order { background: var(--grad-s);    color: #fff !important; }
.btn-call  { background: var(--grad-warn); color: #fff !important; text-decoration: none !important; }
.btn-wa    { background: linear-gradient(135deg,#25D366,#128C7E); color: #fff !important; text-decoration: none !important; }
.btn-pdf   { background: var(--grad-s);    color: #fff !important; }

/* Shipping */
.shipping-box {
    background: #F5F3FF;
    border: 1.5px solid #EDE9FE;
    border-radius: var(--r-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    text-align: center;
}
.shipping-box .ship-icon {
    width: 36px;
    height: 36px;
    background: var(--p-soft);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--p);
    font-size: 16px;
    flex-shrink: 0;
}
.shipping-box .ship-text { font-size: 12.5px; color: #6D28D9; line-height: 1.6; }

/* ─── Tabs ───────────────────────────────────────────────────────────────────── */
.pdp-tabs-bar {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r-xl);
    padding: 0 6px;
    margin-bottom: 18px;
    box-shadow: var(--sh-xs);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pdp-tabs-bar::-webkit-scrollbar { display: none; }
.pdp-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    transition: color var(--t), border-color var(--t);
    white-space: nowrap;
    text-decoration: none;
}
.pdp-tab-link:hover  { color: var(--p); border-color: var(--border); }
.pdp-tab-link.active { color: var(--p-dark); border-color: var(--p); }
.pdp-tab-link .tab-count {
    background: var(--p-soft);
    color: var(--p);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--r-pill);
}

/* ─── Lower grid ─────────────────────────────────────────────────────────────── */
.pdp-lower { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.pdp-lower > div { min-width: 0; overflow: hidden; }

.pdp-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px 26px;
    box-shadow: var(--sh-xs);
    margin-bottom: 18px;
    /* ✦ contain limits repaint to this card only */
    contain: content;
}
.pdp-card-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdp-card-title i { color: var(--p); }

/* Description content */
.desc-content { font-size: 15px; line-height: 1.85; color: var(--text3); }
.desc-content img { max-width: 100%; border-radius: var(--r-md); margin: 12px 0; }
.desc-content h1,.desc-content h2,.desc-content h3,.desc-content h4 {
    font-family: var(--font-head); color: var(--text); margin: 20px 0 10px; font-weight: 800;
}
.desc-content p  { margin-bottom: 12px; }
.desc-content ul,.desc-content ol { padding-left: 22px; margin-bottom: 12px; }
.desc-content li { margin-bottom: 6px; }
.desc-content table { width: 100%; border-collapse: collapse; margin: 16px 0; border-radius: var(--r-md); overflow: hidden; }
.desc-content table th,
.desc-content table td { padding: 10px 14px; border: 1px solid var(--border); font-size: 14px; }
.desc-content table th { background: var(--p-soft); color: var(--p-dark); font-family: var(--font-head); font-weight: 700; }
.desc-content table tr:nth-child(even) td { background: #FBF9FF; }

/* ─── Reviews ────────────────────────────────────────────────────────────────── */
.review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--p-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 20px;
    margin-bottom: 18px;
}
.review-score-big {
    font-family: var(--font-head);
    font-size: 48px;
    font-weight: 900;
    color: var(--p-dark);
    line-height: 1;
    flex-shrink: 0;
}
.review-score-right .stars-row i { color: #F4B400; font-size: 18px; }
.review-score-right .score-sub   { font-size: 13px; color: var(--muted); margin-top: 5px; }

.write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-s);
    color: #fff;
    border: none;
    border-radius: var(--r-lg);
    padding: 11px 20px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--t);
}
.write-review-btn:hover { transform: translateY(-2px); }

.review-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 12px;
    /* ✦ Transition border-color only — no box-shadow transition */
    transition: border-color var(--t);
}
.review-card:hover   { border-color: var(--p); }
.review-card:last-child { margin-bottom: 0; }

.review-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.review-user-row { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grad-p);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}
.review-user-name { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text); }
.review-user-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.review-stars-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #FFF8E1;
    border: 1px solid #FDE68A;
    border-radius: var(--r-pill);
    padding: 6px 12px;
    flex-shrink: 0;
}
.review-stars-pill i { color: #F4B400; font-size: 13px; }
.review-body {
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text3);
    line-height: 1.75;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.review-body i { color: var(--p); margin-top: 4px; flex-shrink: 0; }

.empty-reviews { text-align: center; padding: 40px 20px; color: var(--muted); font-family: var(--font-head); }
.empty-reviews i { font-size: 42px; color: var(--border); display: block; margin-bottom: 12px; }

/* Review form */
.review-form-box {
    display: none;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px 26px;
    margin-top: 16px;
}
.review-form-box.active { display: block; animation: slideDown .35s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.review-form-box .f-group { margin-bottom: 14px; }
.review-form-box .f-label {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 7px;
}
.review-form-box .f-ctrl {
    width: 100%;
    border: 1.5px solid var(--border2);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color var(--t);
    appearance: none;
}
.review-form-box .f-ctrl:focus {
    border-color: var(--p);
    /* ✦ outline instead of box-shadow — no composited layer needed */
    outline: 4px solid rgba(109,40,217,.1);
    outline-offset: 0;
}
.review-form-box textarea.f-ctrl { min-height: 130px; resize: vertical; }

.review-submit-btn {
    background: var(--grad-p);
    color: #fff;
    border: none;
    border-radius: var(--r-lg);
    padding: 13px 28px;
    min-height: 50px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--t);
}
.review-submit-btn:hover { transform: translateY(-2px); }

/* ─── Video card ─────────────────────────────────────────────────────────────── */
.video-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-xs);
    max-width: 100%;
}
.video-card .vc-head {
    background: var(--grad-p);
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-card iframe { width: 100%; height: 280px; border: none; display: block; }

/* ─── Related products ───────────────────────────────────────────────────────── */
.related-section {
    margin-top: 8px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;   /* ✦ clips owl items at edges */
}
.related-heading {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rp-card {
    background: var(--surface);
    border: 1.5px solid #EDE9FE;
    border-radius: var(--r-lg);
    overflow: hidden;
    /* ✦ Transition only transform — no box-shadow */
    transition: border-color var(--t), transform var(--t);
    box-shadow: var(--sh-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rp-card:hover { border-color: var(--p); transform: translateY(-4px); }

.rp-img {
    padding: 14px;
    background: linear-gradient(180deg,#FBF9FF,#fff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.rp-img img {
    width: 100%;
    /* ✦ aspect-ratio prevents CLS while owl lazy-loads */
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
    transition: transform var(--t-slow);
    mix-blend-mode: multiply;
}
.rp-card:hover .rp-img img { transform: scale(1.07); }

.rp-body { padding: 10px 12px 8px; flex: 1; }
.rp-name a {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--text3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--t);
    text-decoration: none;
}
.rp-name a:hover { color: var(--p); }
.rp-price {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 900;
    color: var(--p-dark);
    margin-top: 6px;
}
.rp-price del { font-size: 12px; color: var(--muted2); font-weight: 500; margin-right: 4px; }

.rp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1.5px solid var(--border);
}
.rp-actions a,
.rp-actions button {
    width: 100%;
    min-height: 42px;
    border: none;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rp-actions a:hover,
.rp-actions button:hover { opacity: .88; }
.rp-actions .rpa-cart a  { background: var(--grad-p) !important; color: #fff !important; text-decoration: none !important; }
.rp-actions button       { background: var(--grad-s); color: #fff; }

/* ─── Owl carousel overrides ─────────────────────────────────────────────────── */
.related_slider { position: relative; padding: 6px 2px; }
.related_slider .owl-stage         { display: flex; }
.related_slider .owl-item          { display: flex; height: auto !important; }
.related_slider .owl-item > div    { width: 100%; }
.related_slider .rp-card           { height: 100%; }
.related_slider .owl-dots .owl-dot span {
    background: var(--border);
    transition: background var(--t);
}
.related_slider .owl-dots .owl-dot.active span { background: var(--s); }
.related_slider .owl-nav button {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: var(--surface) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--p) !important;
    font-size: 18px !important;
    box-shadow: var(--sh-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background var(--t), color var(--t) !important;
}
.related_slider .owl-nav button:hover { background: var(--p) !important; color: #fff !important; }
.related_slider .owl-nav .owl-prev  { left: -10px !important; }
.related_slider .owl-nav .owl-next  { right: -10px !important; }

/* ─── Sticky bottom bar (mobile) ────────────────────────────────────────────── */
.sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 2px solid var(--border);
    padding: 10px 16px;
    z-index: 9999;
    gap: 10px;
    box-shadow: 0 -8px 30px rgba(76,29,149,.1);
}

/* ─── Loading spinner ────────────────────────────────────────────────────────── */
#loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--p);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    /* ✦ will-change pre-promotes to GPU layer */
    will-change: transform;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1000;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ─── Main image wrapper (always single img, thumb click swaps src) ──────────── */
/*
 * ✦ এই approach-এ কোনো owl slider নেই main image-এ।
 *   Image সবসময় দেখা যাবে, blank হওয়ার সুযোগ নেই।
 *   Thumbnail click করলে JS দিয়ে img.src swap হয়।
 */
.pdp-main-img-wrap {
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 8px;
}
.pdp-main-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity .08s ease;
    will-change: opacity;
}

/* Keep details_slider styles for any legacy pages that still use it */
.details_slider { width: 100% !important; }
.details_slider .owl-stage-outer { width: 100% !important; }
.details_slider .dimage_item {
    width: 100%;
    height: 520px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 16px;
    overflow: hidden;
}
.details_slider .dimage_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}

/* ─── Simple-product image fallback ─────────────────────────────────────────── */
.simple-product-image {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 16px;
}
.simple-product-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width:991px) {
    .pdp-grid               { grid-template-columns: 1fr; gap: 14px; }
    .pdp-gallery            { position: static; }
    .pdp-info               { position: static; }
    .pdp-main-img-wrap      { min-height: 260px; }
    .pdp-main-img-wrap img  { max-height: 340px; }
    .details_slider .dimage_item { height: 340px; }
    .pdp-lower              { grid-template-columns: 1fr; }
}

@media (max-width:767px) {
    .pdp { padding: 12px 0 80px; }
    .pdp-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
    .pdp-gallery { padding: 8px; border-radius: 14px; }
    .gallery-main { border-radius: 10px; }

    /* ✦ Mobile main image — height:auto দিয়ে image নিজের ratio অনুযায়ী দেখায় */
    .pdp-main-img-wrap {
        min-height: unset;
        padding: 10px;
    }
    .pdp-main-img-wrap img {
        max-height: none;    /* height restrict নেই — যতটুকু image, ততটুকু জায়গা */
        width: 100%;
        height: auto;
    }

    .simple-product-image { min-height: unset; padding: 10px; }
    .simple-product-image img { max-height: none; }

    /* Mobile slider */
    .details_slider .dimage_item {
        height: auto !important;
        min-height: unset !important;
        padding: 10px;
    }
    .details_slider .dimage_item img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .pdp-info { padding: 16px 18px; border-radius: 14px; }
    .pdp-name { font-size: 18px; }
    .pdp-price-new { font-size: 26px; }
    .pdp-meta { grid-template-columns: 1fr 1fr; }
    .pdp-actions .row-btns { grid-template-columns: 1fr; }
    .pdp-tabs-bar { border-radius: 12px; padding: 0 4px; }
    .pdp-tab-link { padding: 12px 14px; font-size: 13px; }
    .pdp-card { padding: 16px; border-radius: 14px; }
    .video-card iframe { height: 220px; }
    .review-summary { flex-direction: column; text-align: center; }
    .review-score-big { font-size: 40px; }
    .related-heading { font-size: 17px; }
    .sticky-bar { display: flex; }
}

@media (max-width:480px) {
    .pdp-name { font-size: 16px; }
    .pdp-price-new { font-size: 24px; }
    .pdp-main-img-wrap img { max-height: none; width: 100%; height: auto; }
    .details_slider .dimage_item { height: auto !important; min-height: unset !important; }
    .details_slider .dimage_item img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
}