/* =========================================================
   PRODUCT PAGE V2
   ========================================================= */
.pd {
    --pg: #16A34A; --pg-d: #15803D; --pg-s: #ECFDF3;
    --dk: #1F2328; --rd: #DC2626; --rd-s: #FEF2F2;
    --bl: #2563EB; --bl-s: #EFF6FF; --or: #EC5F12; --or-s: #FFF4ED; --pu: #7C3AED; --pu-s: #F5F3FF;
    --ink: #111827; --mut: #6B7280; --line: #E5E7EB; --bg: #F6F7F8;
    font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink); background: var(--bg); padding-bottom: 30px;
}
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd a { text-decoration: none; }
.pd h1, .pd h2, .pd h3, .pd p { margin: 0; }
.pd button { font-family: inherit; }
@media (min-width: 1200px) { .pd .container { max-width: 1120px; } }

.pd-main { padding: 14px 0 6px; }
.pd-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mut); margin-bottom: 12px; }
.pd-crumb a { color: var(--mut) !important; }
.pd-crumb a:hover { color: var(--pg) !important; }
.pd-crumb i { font-size: 9px; opacity: .6; }
.pd-crumb span { color: var(--ink); }

.pd-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }

/* ---------- gallery ---------- */
.pd-gallery { position: sticky; top: 90px; }
.pd-stage { position: relative; border-radius: 16px; overflow: hidden; background: #F3F4F6; aspect-ratio: 1 / 1; }
.pd-stage .owl-stage-outer, .pd-stage .details_slider { height: 100%; }
.pd-lcp, .pd-stage .dimage_item { aspect-ratio: 1 / 1; background: #F3F4F6; }
.pd-lcp img, .pd-stage .dimage_item img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.pd-off {
    position: absolute; top: 12px; left: 12px; z-index: 5;
    background: var(--rd); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 8px;
}
.pd-count {
    position: absolute; right: 12px; bottom: 12px; z-index: 5;
    background: rgba(17, 24, 39, .75); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.pd-stage .owl-nav, .pd-stage .owl-dots { display: none !important; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs .indicator-item {
    flex: 0 0 76px; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; background: #F3F4F6; transition: border-color .2s, opacity .2s; opacity: .75;
}
.pd-thumbs .indicator-item.active { border-color: var(--pg); opacity: 1; }
.pd-thumbs .indicator-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- info ---------- */
.pd-title { font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.pd-live {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
    background: var(--pg-s); color: var(--dk); font-size: 13px; font-weight: 500;
    padding: 5px 14px; border-radius: 999px;
}
.pd-live i { color: var(--pg); font-size: 13px; }
.pd-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pg); animation: pdBlink 1.4s infinite; }
@keyframes pdBlink { 50% { opacity: .3; } }
.pd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd-stars { color: #F59E0B; font-size: 14px; display: inline-flex; gap: 2px; }
.pd-stars .far { color: #D1D5DB; }
.pd-stars.sm { font-size: 11px; }
.pd-muted { color: var(--mut) !important; }
.pd-sep { width: 1px; height: 14px; background: var(--line); }

.pd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pd-price strong { font-size: 34px; font-weight: 700; color: var(--pg-d); line-height: 1; }
.pd-price del { font-size: 16px; color: var(--mut); }
.pd-badge-off { background: var(--rd); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
.pd-save { color: var(--pg-d); font-size: 14px; font-weight: 600; margin-top: 6px; }

.pd-block { margin-top: 16px; }
.pd-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-color, .pd-size { position: relative; cursor: pointer; margin: 0; }
.pd-color input, .pd-size input { position: absolute; opacity: 0; pointer-events: none; }
.pd-color span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.pd-color input:checked + span { box-shadow: 0 0 0 2.5px var(--pg); }
.pd-size span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 38px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; transition: all .2s;
}
.pd-size input:checked + span { border-color: var(--pg); background: var(--pg-s); color: var(--pg-d); }
.pd-unit { margin-top: 12px; font-size: 14px; color: var(--mut); }
.pd-wholesale { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pd-wholesale button {
    border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer;
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; transition: all .2s;
}
.pd-wholesale button span { font-size: 12px; color: var(--mut); }
.pd-wholesale button b { font-size: 15px; color: var(--pg-d); }
.pd-wholesale button.active-tier { border-color: var(--pg); background: var(--pg-s); }

.pd-row { display: flex; gap: 10px; margin-top: 18px; }
.pd-qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 48px; flex-shrink: 0; background: #fff; }
.pd-qty .minus, .pd-qty .plus {
    width: 40px; height: 100%; display: flex !important; align-items: center; justify-content: center; cursor: pointer;
    font-size: 20px; color: var(--mut); user-select: none; background: none !important; border: 0 !important; position: static !important;
}
.pd-qty .minus:hover, .pd-qty .plus:hover { color: var(--pg); }
.pd-qty input {
    width: 40px; height: 100%; border: 0 !important; outline: 0; text-align: center; font-size: 16px; font-weight: 700;
    background: transparent; padding: 0; box-shadow: none !important;
}
.pd-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px;
    border: 0; border-radius: 12px; cursor: pointer; font-size: 16px; font-weight: 700; color: #fff !important;
    transition: filter .2s, transform .1s; white-space: nowrap;
}
.pd-btn:hover { filter: brightness(.94); }
.pd-btn:active { transform: scale(.99); }
.pd-row .pd-btn { flex: 1; }
.pd-btn-green { background: var(--pg); }
.pd-btn-dark { background: var(--dk); margin-top: 10px; height: 52px; }
.pd-btn-wa { background: #25D366; margin-top: 10px; height: 52px; }
.pd-btn-wa i { font-size: 20px; }

.pd-notes { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mut); }
.pd-notes .ok { color: var(--pg-d); font-weight: 600; }
.pd-notes .no { color: var(--rd); font-weight: 600; }
.pd-notes i { width: 16px; }

/* booking box */
.pd-book { margin-top: 16px; border: 1px solid #DBEAFE; border-radius: 14px; overflow: hidden; background: #fff; }
.pd-book-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #F8FAFF; border-bottom: 1px solid #DBEAFE; }
.pd-book-head > span { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.pd-book-head > span i { color: var(--or); }
.pd-book-timer { display: flex; gap: 6px; }
.pd-book-timer span { display: flex; flex-direction: column; align-items: center; }
.pd-book-timer b { background: var(--bl); color: #fff; border-radius: 999px; min-width: 32px; height: 24px; font-size: 13px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.pd-book-timer small { font-size: 10px; color: var(--mut); margin-top: 1px; }
.pd-book-sub { text-align: center; color: var(--pg-d); font-weight: 600; font-size: 14px; padding: 10px 14px 6px; }
.pd-book-cols { display: grid; grid-template-columns: 1fr 1fr; }
.pd-book-cols > div { padding: 8px 12px 12px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.pd-book-cols > div + div { border-left: 1px solid var(--line); }
.pd-book-cols b { font-size: 15px; }
.pd-book-cols b.in { color: var(--rd); }
.pd-book-cols b.out { color: var(--bl); }
.pd-book-cols span { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.pd-book-cols small { font-size: 12px; color: var(--mut); }
.pd-book-foot { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--pg-s); padding: 9px 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--pg-d); }
.pd-book-foot span { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.pd-book-foot small { font-size: 10.5px; font-weight: 500; color: var(--mut); }
.pd-book-foot .cod { color: var(--bl); }

.pd-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pd-feats > div { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pd-feats .i { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.pd-feats .i.b { background: var(--bl-s); color: var(--bl); }
.pd-feats .i.o { background: var(--or-s); color: var(--or); }
.pd-feats .i.g { background: var(--pg-s); color: var(--pg); }
.pd-feats .i.p { background: var(--pu-s); color: var(--pu); }
.pd-feats p { display: flex; flex-direction: column; line-height: 1.3; }
.pd-feats b { font-size: 14px; }
.pd-feats small { font-size: 12px; color: var(--mut); }

/* ---------- sections ---------- */
.pd-section { padding: 26px 0 4px; }
.pd-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.pd-sec-head small { display: block; color: var(--pg); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.pd-sec-head h2 { font-size: 26px; font-weight: 700; color: var(--ink); }
.pd-sec-head p { color: var(--mut); font-size: 14px; }
.pd-sec-head a { color: var(--pg-d) !important; font-weight: 700; font-size: 14px; }
.pd-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.pd-box h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.pd-box h3 span { font-size: 13px; color: var(--mut); font-weight: 500; }
.pd-desc-body { font-size: 15.5px; line-height: 1.8; color: #374151; overflow-wrap: anywhere; }
.pd-desc-body img { max-width: 100% !important; height: auto !important; border-radius: 10px; }
.pd-desc-body table { width: 100%; }
.pd-desc-body iframe { max-width: 100%; }

.pd-faq { border-bottom: 1px solid var(--line); }
.pd-faq:last-child { border-bottom: 0; }
.pd-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; padding: 14px 0; text-align: left; font-size: 15.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pd-faq-q i { font-size: 12px; color: var(--mut); transition: transform .25s; }
.pd-faq.open .pd-faq-q i { transform: rotate(180deg); }
.pd-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.pd-faq.open .pd-faq-a { max-height: 300px; }
.pd-faq-a p { padding: 0 0 14px; color: var(--mut); font-size: 14.5px; line-height: 1.7; }

.pd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.pd-video iframe, .pd-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* reviews */
.pd-rev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pd-rev-sum { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pd-rev-sum b { font-size: 20px; }
.pd-btn-outline { border: 1.5px solid var(--pg); color: var(--pg-d); background: #fff; border-radius: 10px; height: 40px; padding: 0 16px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pd-btn-outline.active, .pd-btn-outline:hover { background: var(--pg); color: #fff; }
.pd-review-form { background: #F9FAFB; border-radius: 12px; padding: 14px; margin: 12px 0; }
.pd-review-form input[type="text"], .pd-review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; }
.pd-review-form textarea { min-height: 90px; margin-top: 10px; resize: vertical; }
.pd-star-input { display: flex; gap: 6px; margin-top: 10px; font-size: 24px; color: #D1D5DB; cursor: pointer; }
.pd-star-input .active { color: #F59E0B; }
.pd-review-form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pd-img-label { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #9CA3AF; border-radius: 10px; padding: 9px 14px; font-size: 14px; cursor: pointer; margin: 0; color: var(--mut); }
.pd-img-label input { display: none; }
.pd-review-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pd-review-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.pd-review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pd-review:last-child { border-bottom: 0; }
.pd-review-top { display: flex; align-items: center; gap: 10px; }
.pd-review-top > div { display: flex; flex-direction: column; }
.pd-review-top b { font-size: 14.5px; }
.pd-review-top small { margin-left: auto; color: var(--mut); font-size: 12px; }
.pd-av { width: 38px; height: 38px; border-radius: 50%; background: var(--pg); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-review p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: #374151; }
.pd-review-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pd-review-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.pd-empty { color: var(--mut); text-align: center; padding: 18px 0; font-size: 14.5px; }

/* related */
.pd-sec-head.plain { border-top: 1px solid var(--line); }
.pd-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-rcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.pd-rcard:hover { box-shadow: 0 12px 26px rgba(17, 24, 39, .08); transform: translateY(-3px); }
.pd-rimg { position: relative; display: block; aspect-ratio: 1 / 1; background: #F3F4F6; overflow: hidden; }
.pd-rimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-roff { position: absolute; top: 10px; right: 10px; background: var(--rd); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; z-index: 2; }
.pd-rbody { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.pd-rname { color: var(--ink) !important; font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pd-rprice { display: flex; align-items: baseline; gap: 6px; }
.pd-rprice b { color: var(--pg-d); font-size: 17px; }
.pd-rprice del { color: var(--mut); font-size: 12.5px; }
.pd-rsave { align-self: flex-start; background: var(--pg-s); color: var(--pg-d); font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.pd-ract { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.pd-ract form { margin: 0; }
.pd-rform { flex: 1; display: flex; }
.pd-rbtn { flex: 1; width: 100%; height: 38px; border: 0; border-radius: 9px; background: var(--dk); color: #fff !important; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; }
.pd-rcart { width: 38px; height: 38px; border: 0; border-radius: 9px; background: var(--pg); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* sticky bar */
.pd-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: none; align-items: center; gap: 10px;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); transform: translateY(100%); transition: transform .3s;
}
.pd-sticky.show { transform: translateY(0); }
.pd-sticky-price { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.pd-sticky-price b { color: var(--pg-d); font-size: 19px; }
.pd-sticky-price del { color: var(--mut); font-size: 12px; }
.pd-sticky .pd-btn { margin: 0; height: 46px; font-size: 15px; flex: 1; }
.pd-sticky-cart { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--pg); color: #fff; font-size: 17px; flex-shrink: 0; cursor: pointer; }

/* lightbox */
.pp-lightbox-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 10000; display: none; align-items: center; justify-content: center; }
.pp-lightbox-overlay.active { display: flex; }
.pp-lightbox-img-wrap img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.pp-lightbox-close { position: absolute; top: 14px; right: 22px; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }

/* responsive */
@media (max-width: 991px) {
    .pd-gallery { position: static; }
    .pd-related { grid-template-columns: repeat(3, 1fr); }
    .pd-sticky { display: flex; }
}
@media (max-width: 767px) {
    .pd-main { padding-top: 8px; }
    .pd-main .container { padding-left: 10px; padding-right: 10px; }
    .pd-card { padding: 12px; border-radius: 16px; }
    .pd-title { font-size: 22px; }
    .pd-price strong { font-size: 28px; }
    .pd-thumbs .indicator-item { flex-basis: 64px; width: 64px; height: 64px; }
    .pd-book-cols span { font-size: 12.5px; }
    .pd-book-foot { font-size: 12px; }
    .pd-feats > div { padding: 10px; gap: 8px; }
    .pd-feats b { font-size: 13px; }
    .pd-sec-head h2 { font-size: 22px; }
    .pd-box { padding: 14px; }
    .pd-related { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; margin-right: -10px; padding-right: 10px; }
    .pd-related::-webkit-scrollbar { display: none; }
    .pd-rcard { flex: 0 0 62%; scroll-snap-align: start; }
    .pd { padding-bottom: 80px; }
}

/* ---- Override legacy theme button styles (.add_cart_btn / .order_now_btn) ---- */
.pd .pd-info .pd-btn,
.pd .pd-info .pd-btn:hover,
.pd .pd-info .pd-btn:active,
.pd .pd-info .pd-btn:focus {
    width: 100% !important; margin-left: 0 !important; border: 0 !important; border-radius: 12px !important;
    font-family: 'Hind Siliguri', system-ui, sans-serif !important; font-size: 16px !important; font-weight: 700 !important;
    color: #fff !important; outline: 0 !important; box-shadow: none;
}
.pd .pd-info .pd-row .pd-btn { flex: 1 !important; width: auto !important; margin-top: 0 !important; height: 48px !important; }
.pd .pd-info .pd-btn-green, .pd .pd-info .pd-btn-green:hover, .pd .pd-info .pd-btn-green:active { background: var(--pg) !important; box-shadow: 0 6px 16px rgba(22, 163, 74, .22) !important; }
.pd .pd-info .pd-btn-dark, .pd .pd-info .pd-btn-dark:hover, .pd .pd-info .pd-btn-dark:active { background: var(--dk) !important; margin-top: 10px !important; height: 52px !important; box-shadow: 0 8px 18px rgba(17, 24, 39, .22) !important; }
.pd .pd-info .pd-btn-wa, .pd .pd-info .pd-btn-wa:hover { background: #25D366 !important; margin-top: 10px !important; height: 52px !important; box-shadow: 0 8px 18px rgba(37, 211, 102, .25) !important; }
.pd .pd-info .pd-btn:hover { filter: brightness(.95); }
.pd .pd-qty { background: #F3F4F6 !important; border: 0 !important; height: 48px; border-radius: 12px; }
.pd .pd-qty input { background: transparent !important; color: var(--ink) !important; }

/* short description under price */
.pd-short { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; color: var(--mut);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pd-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--pg-d) !important; }
.pd-more i { font-size: 11px; }

.pd .pd-sticky .pd-btn, .pd .pd-sticky .pd-btn:hover { width: auto !important; flex: 1; margin: 0 !important; border: 0 !important; border-radius: 12px !important; background: var(--dk) !important; color: #fff !important; font-size: 15px !important; height: 46px !important; }
