/* =====================================================================
   প্রোডাক্ট ডিটেইল পেজ — মোবাইল-ফার্স্ট ডিজাইন
   (সব ক্লাস .pdx প্রিফিক্সে, তাই অন্য পেজে কোনো প্রভাব ফেলে না)
   ===================================================================== */

.pdx-page { background: #fff; }
.pdx, .pdx *, .pdx *::before, .pdx *::after { box-sizing: border-box; }
.pdx { padding-top: 14px; padding-bottom: 28px; color: #111; }
.pdx button { appearance: none; -webkit-appearance: none; font-family: inherit; }
.pdx a { text-decoration: none; }
.pdx img { max-width: 100%; height: auto; }

/* ---------- লেআউট: মোবাইলে এক কলাম, বড় স্ক্রিনে দুই কলাম ---------- */
.pdx-grid { display: block; }
@media (min-width: 768px) {
  .pdx-grid { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 32px; align-items: start; }
  .pdx-media { position: sticky; top: 16px; }
}

/* ---------- ছবির কার্ড ---------- */
.pdx-stage { position: relative; background: #f3f4f6; border-radius: 18px; padding: 12px; overflow: hidden; }
.pdx-stage .product-details-slider { margin: 0; }
.pdx-stage .product-details-slider .owl-nav,
.pdx-stage .product-details-slider .owl-dots { display: none !important; }
.pdx-stage .product-details-slider .item { border-radius: 10px; overflow: hidden; }
.pdx-stage .product-details-slider .item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: 10px; }

.pdx-badges { position: absolute; top: 18px; left: 18px; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pdx-badge { display: inline-block; background: #111; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; }
.pdx-badge-oos { background: #6b7280; }

.pdx-icons { position: absolute; top: 18px; right: 18px; z-index: 6; display: flex; flex-direction: column; gap: 10px; }
.pdx-ico { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111 !important; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 1px 5px rgba(0, 0, 0, .16); border: 0; padding: 0; cursor: pointer; }
.pdx-ico.is-on i { color: #e11d48; }

.pdx-counter { position: absolute; right: 20px; bottom: 20px; z-index: 6; background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.5; }

.pdx-video { position: absolute; left: 18px; bottom: 18px; z-index: 6; }
.pdx-video a { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 1px 5px rgba(0, 0, 0, .16); }

/* ---------- থাম্বনেইল ---------- */
.pdx-thumbs { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin-top: 12px; padding: 2px 2px 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pdx-thumbs::-webkit-scrollbar { display: none; }
.pdx-thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 4px; margin: 0; border: 2px solid transparent; border-radius: 10px; background: #f3f4f6; overflow: hidden; cursor: pointer; }
.pdx-thumb.active { border-color: #111; }
.pdx-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }

/* ---------- তথ্য অংশ ---------- */
.pdx-info { padding-top: 16px; min-width: 0; }
@media (min-width: 768px) { .pdx-info { padding-top: 0; } }

.pdx-brand { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: #6b7280; margin-bottom: 8px; }
.pdx-brand i { font-size: 11px; }

.pdx-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdx-title { flex: 1 1 auto; min-width: 0; margin: 0; text-transform: none; letter-spacing: normal; font-family: inherit; font-size: 18px; line-height: 1.45; font-weight: 700; color: #111; overflow-wrap: anywhere; }
.pdx-rating { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding-top: 3px; font-size: 12px; color: #9ca3af; white-space: nowrap; }
.pdx-rating i { color: #f59e0b; font-size: 12px; }
.pdx-rating b { color: #111; font-size: 13px; font-weight: 700; }
.pdx-rating:hover { color: #6b7280; }

.pdx-oos-note { margin-top: 8px; color: #dc2626; font-size: 14px; font-weight: 600; }

.pdx-flash { margin-top: 10px; }

/* ---------- দাম ---------- */
.pdx-price { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 14px 0 0; }
.pdx-price .price-area { margin: 0; line-height: 1.1; }
.pdx-now { color: #111; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.pdx-off { background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 6px; text-transform: uppercase; }
.pdx-was { flex-basis: 100%; color: #9ca3af; font-size: 13px; }
.pdx-was del { color: inherit; }

/* ---------- বাটন ---------- */
.pdx-actions { display: flex; gap: 10px; margin: 12px 0 18px; }
.pdx-btn { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 14px; margin: 0; border-radius: 10px; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; transition: transform .1s, opacity .15s; }
.pdx-btn:active { transform: scale(.98); }
.pdx-btn span { color: inherit; }
.pdx-btn-cart { background: #fff; border: 1px solid #1f2937; color: #111 !important; }
.pdx-btn-buy { background: #2563eb; border: 1px solid #2563eb; color: #fff !important; box-shadow: 0 3px 8px rgba(37, 99, 235, .22); }
.pdx-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- সাইজ / অপশন ---------- */
.pdx-opts { margin-bottom: 8px; }
.pdx-attr { margin-bottom: 14px; }
.pdx-attr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pdx-label { margin: 0; font-size: 14px; font-weight: 600; color: #111; }
.pdx-guide-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #2563eb !important; cursor: pointer; }
.pdx-guide-link i { font-size: 12px; }
.pdx-attr-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdx-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pdx-chip { min-width: 46px; height: 40px; padding: 0 14px; margin: 0; border: 1px solid #d9dde3; background: #fff; color: #111; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pdx-chip.active { border-color: #111; background: #111; color: #fff; }

.pdx-qty { flex: 0 0 auto; margin-left: auto; }
.pdx-qty .qtySelector { display: inline-flex; align-items: center; height: 40px; border: 1px solid #e3e5e8; border-radius: 10px; background: #fff; overflow: hidden; margin: 0; }
.pdx-qty .qtySelector > span { display: flex; align-items: center; justify-content: center; width: 38px; height: 100%; font-size: 13px; color: #111; cursor: pointer; user-select: none; -webkit-user-select: none; }
.pdx-qty .qtySelector > span:active { background: #f3f4f6; }
.pdx-qty .qtySelector input.qtyValue { width: 44px; height: 100%; padding: 0; margin: 0; border: 0; border-left: 1px solid #eceef0; border-right: 1px solid #eceef0; border-radius: 0; background: #fff; text-align: center; font-size: 14px; color: #555; box-shadow: none; outline: 0; }

/* ---------- অ্যাকর্ডিয়ন ---------- */
.pdx-acc-list { margin-top: 10px; border-top: 1px solid #ececec; }
.pdx-acc { border-bottom: 1px solid #ececec; }
.pdx-acc > summary { display: flex; align-items: center; gap: 14px; padding: 17px 0; font-size: 15px; font-weight: 600; color: #111; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.pdx-acc > summary::-webkit-details-marker { display: none; }
.pdx-acc > summary::marker { content: ""; }
.pdx-acc > summary > i { flex: 0 0 22px; width: 22px; text-align: center; font-size: 16px; color: #4b5563; }
.pdx-acc > summary::after { content: ""; margin-left: auto; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); margin-right: 3px; transition: transform .2s; }
.pdx-acc[open] > summary::after { transform: rotate(-135deg); }
.pdx-acc-body { padding: 0 0 18px; font-size: 14px; line-height: 1.75; color: #4b5563; overflow-wrap: anywhere; }
.pdx-acc-body img { max-width: 100%; height: auto; }
.pdx-acc-body table { display: block; max-width: 100%; overflow-x: auto; }
.pdx-acc-body p:last-child { margin-bottom: 0; }

/* রিভিউ (অ্যাকর্ডিয়নের ভিতরে) */
.pdx-rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pdx-rv-avg { font-size: 14px; color: #4b5563; }
.pdx-rv-avg b { font-size: 22px; color: #111; margin-right: 4px; }
.pdx-rv-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 8px; background: #111; color: #fff !important; font-size: 13px; font-weight: 600; border: 0; cursor: pointer; }
.pdx-rv { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f0f0; }
.pdx-rv-ava { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.pdx-rv-main { min-width: 0; flex: 1 1 auto; }
.pdx-rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.pdx-rv-name { font-weight: 600; color: #111; font-size: 14px; }
.pdx-rv-stars i { color: #f59e0b; font-size: 12px; }
.pdx-rv-date { font-size: 12px; color: #9ca3af; }
.pdx-rv-sub { margin: 4px 0 2px; font-weight: 600; color: #111; font-size: 14px; }
.pdx-rv-text { margin: 0; color: #4b5563; font-size: 14px; }
.pdx-rv-empty { padding: 4px 0 0; color: #6b7280; }
.pdx-rv-pages { margin-top: 10px; }

/* ---------- You May Also Like ---------- */
.pdx-related { margin-top: 26px; }
.pdx-related-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pdx-related-head h2 { margin: 0; text-transform: none; letter-spacing: normal; font-family: inherit; font-size: 18px; font-weight: 700; color: #111; line-height: 1.3; }
.pdx-related-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #111 !important; white-space: nowrap; }
.pdx-related-head a i { font-size: 11px; }

.pdx-rail { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pdx-rail::-webkit-scrollbar { display: none; }
.pdx-rcard { position: relative; flex: 0 0 150px; width: 150px; scroll-snap-align: start; background: #f3f4f6; border-radius: 14px; padding: 8px 8px 12px; }
.pdx-rimg { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #fff; }
.pdx-rimg img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdx-rbadge { position: absolute; top: 8px; left: 8px; z-index: 2; background: #111; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 5px 7px; border-radius: 999px; }
.pdx-rheart { position: absolute; top: 14px; right: 14px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111 !important; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.pdx-rtitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 12.5px; line-height: 1.4; font-weight: 500; color: #111 !important; min-height: 35px; overflow-wrap: anywhere; }
.pdx-rprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 6px; }
.pdx-rprice b { font-size: 13.5px; font-weight: 700; color: #111; }
.pdx-rprice del { font-size: 11px; color: #9ca3af; }

@media (min-width: 768px) {
  .pdx { padding-top: 24px; }
  .pdx-title { font-size: 22px; }
  .pdx-now { font-size: 30px; }
  .pdx-rcard { flex-basis: 190px; width: 190px; }
  .pdx-rtitle { font-size: 13.5px; min-height: 38px; }
  .pdx-rprice b { font-size: 15px; }
  .pdx-actions { max-width: 520px; }
}

/* খুব ছোট স্ক্রিন */
@media (max-width: 359px) {
  .pdx-btn { font-size: 15px; gap: 8px; }
  .pdx-title { font-size: 16.5px; }
  .pdx-rcard { flex-basis: 138px; width: 138px; }
}


/* ===== সাইজ/কালার: স্টক আউট (ছোট লাল লেখা) + কালার ডট ===== */
.pdx-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.pdx-dot { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset; }
.pdx-chip.active .pdx-dot { border-color: rgba(255,255,255,.85); }
.pdx-chip.pdx-chip-out { flex-direction: column; gap: 3px; height: auto; min-height: 40px; padding: 6px 14px; background: #f6f7f9; border: 1px dashed #cfd4da; color: #9aa1ab; cursor: not-allowed; }
.pdx-chip.pdx-chip-out .pdx-chip-name { text-decoration: line-through; }
.pdx-chip.pdx-chip-out .pdx-dot { opacity: .45; }
.pdx-chip .pdx-out { display: block; font-size: 9px; font-weight: 700; line-height: 1; color: #e11d2e; letter-spacing: .2px; text-decoration: none; }

/* ===== সাইজ চার্ট কার্ড (ক্লিকে খোলে) ===== */
.pdx-sizechart { margin: 18px 0 14px; background: #fff; border: 1px solid #e6e8ec; border-radius: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.pdx-sizechart.open { border-color: #111; box-shadow: 0 10px 30px rgba(17,17,17,.08); }
.pdx-sizechart [hidden] { display: none !important; }

.pdx-sc-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: transparent; border: 0; text-align: left; cursor: pointer; color: #111; -webkit-tap-highlight-color: transparent; }
.pdx-sc-head:focus-visible { outline: 2px solid #111; outline-offset: -3px; border-radius: 16px; }
.pdx-sc-ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: #111; color: #fff; display: grid; place-items: center; font-size: 17px; transition: background .2s; }
.pdx-sizechart.open .pdx-sc-ico { background: #e11d2e; }
.pdx-sc-ttl { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pdx-sc-title { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.2px; }
.pdx-sc-note { font-size: 12px; line-height: 1.35; color: #6b7280; font-weight: 500; }
.pdx-sc-pick { flex: 0 0 auto; min-width: 34px; padding: 5px 10px; border-radius: 999px; background: #fff1f2; color: #e11d2e; font-size: 13px; font-weight: 800; text-align: center; line-height: 1; }
.pdx-sc-chev { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #f3f4f6; display: grid; place-items: center; font-size: 12px; color: #111; transition: transform .3s ease, background .2s, color .2s; }
.pdx-sizechart.open .pdx-sc-chev { transform: rotate(180deg); background: #111; color: #fff; }

.pdx-sc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.pdx-sizechart.open .pdx-sc-panel { grid-template-rows: 1fr; }
.pdx-sc-inner { overflow: hidden; min-height: 0; }
.pdx-sc-body { padding: 0 14px 14px; }

.pdx-sc-wrap { overflow-x: auto; border: 1px solid #e6e8ec; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.pdx-sc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pdx-sc-table th { position: sticky; top: 0; background: #111; color: #fff; font-weight: 700; font-size: 12px; text-align: center; padding: 8px 6px; white-space: nowrap; }
.pdx-sc-table th:first-child { position: sticky; left: 0; z-index: 2; }
.pdx-sc-table td { padding: 8px 6px; text-align: center; color: #374151; font-weight: 500; white-space: nowrap; border-bottom: 1px solid #eef0f3; background: #fff; }
.pdx-sc-table tbody tr:last-child td { border-bottom: 0; }
.pdx-sc-table td.pdx-sc-size { position: sticky; left: 0; z-index: 1; color: #111; font-weight: 800; font-size: 13px; background: #fff; box-shadow: 1px 0 0 #eef0f3; }
.pdx-sc-table tbody tr.sel td { background: #fff1f2; color: #111; font-weight: 700; }
.pdx-sc-table tbody tr.sel td.pdx-sc-size { color: #e11d2e; box-shadow: inset 4px 0 0 #e11d2e; }

.pdx-sc-foot { margin: 10px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: #6b7280; }
.pdx-sc-foot i { margin-top: 2px; color: #9aa1ab; }

@media (min-width: 768px) {
  .pdx-sc-head { padding: 16px 20px; }
  .pdx-sc-body { padding: 4px 20px 20px; }
  .pdx-sc-table { font-size: 13.5px; }
  .pdx-sc-table td, .pdx-sc-table th { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdx-sc-panel, .pdx-sc-chev, .pdx-sizechart, .pdx-sc-ico { transition: none; }
}
