/* Product page (products/details/<slug>, view pages/product-page.php): Meesho-like layout in the Pragati palette,
   sized from docs/reference/MEESHO-SPEC.md (section 2 desktop, section 3 mobile).
   Desktop: 632px gallery column (56px thumb rail + 560x470 image card, Add to Cart / Buy Now under it, sticky)
   and a 648px column of stacked cards; "Similar Products" grid below.
   Phones (< 992px): full-width carousel, sections separated by 8px gaps, sticky bottom bar with both buttons.
   Everything is scoped under .pg-pdp (this file is auto-loaded on every page). Kit classes: pragati-shop.css. */

.pg-pdp {
    --pdp-line: #EBE1D3;
    --pdp-divider: #E2D6C6;
    --pdp-gap: #F3EEE7;
    --pdp-radius: 8px;
    --pdp-btn-radius: 4px;
    padding: 24px 0 56px;
}
/* <body> is a fixed-height flex column in the stock theme: never let the page shrink under the footer */
.pg-page.pg-pdp { flex: 1 0 auto; }
.pg-pdp .pg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- two columns ---------- */
.pg-pdp-layout { display: grid; grid-template-columns: minmax(0, 632fr) minmax(0, 648fr); align-items: start; gap: 32px; }
/* the grid item itself is sticky (its containing block is the whole grid, so it can travel along the cards) */
.pg-pdp-media { position: sticky; top: calc(var(--pg-sticky-top, 136px) + 12px); }

/* ---------- desktop gallery (stock swipers, restyled) ---------- */
.pg-pdp .pg-pdp-gallery { margin: 0; }
.pg-pdp .pg-pdp-gallery > .swiper-controls { display: none; }
.pg-pdp .pg-pdp-gallery-row { gap: 16px; align-items: flex-start; }
.pg-pdp .product-thumb-img { flex: 0 0 56px; width: 56px; height: auto; max-height: 470px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.pg-pdp .product-thumb-img::-webkit-scrollbar { display: none; }
.pg-pdp .gallery-thumbs-1 { margin: 0 !important; overflow: visible; }
.pg-pdp .gallery-thumbs-1 .swiper-wrapper { flex-direction: column; gap: 8px; height: auto !important; transform: none !important; }
.pg-pdp .gallery-thumbs-1 .swiper-slide { width: 56px !important; height: 66px !important; margin: 0 !important; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--pdp-line); border-radius: var(--pdp-btn-radius); opacity: 1 !important; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pg-pdp .gallery-thumbs-1 .swiper-slide img { display: block; width: 100% !important; height: 100%; padding: 3px; object-fit: contain; }
.pg-pdp .gallery-thumbs-1 .swiper-slide:hover { border-color: var(--pg-gold); }
.pg-pdp .gallery-thumbs-1 .swiper-slide.is-active { border-color: var(--pg-mocha); box-shadow: inset 0 0 0 1px var(--pg-mocha); }
.pg-pdp .pg-pdp-video-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 26px; color: var(--pg-mocha); background: var(--pg-gold-soft); }

.pg-pdp .pg-pdp-stage { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--pdp-line); border-radius: var(--pdp-radius); }
.pg-pdp .pg-pdp-stage .swiper-main { position: relative; }
.pg-pdp .gallery-top-1 { margin: 0 !important; }
.pg-pdp .gallery-top-1 .swiper-slide { display: flex; height: auto; }
.pg-pdp .pg-pdp-figure { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 560 / 470; margin: 0; padding: 12px; background: #fff; }
.pg-pdp .gallery-top-1 img.product_other_images { display: block; width: 100% !important; height: 100% !important; max-height: 100%; object-fit: contain; }
.pg-pdp .pg-pdp-figure iframe, .pg-pdp .pg-pdp-figure video { width: 100%; height: 100%; border: 0; }
.pg-pdp .pg-pdp-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; font-size: 18px; color: var(--pg-mocha); text-decoration: none; background: #fff; border: 1px solid var(--pdp-line); border-radius: 50%; box-shadow: 0 4px 12px rgba(43, 33, 24, .12); opacity: 0; transition: opacity .15s, background-color .15s, color .15s; }
.pg-pdp .pg-pdp-stage:hover .pg-pdp-zoom, .pg-pdp .pg-pdp-zoom:focus-visible { opacity: 1; }
.pg-pdp .pg-pdp-zoom:hover { color: #fff; background: var(--pg-mocha); border-color: var(--pg-mocha); }
/* prev / next arrows that the theme (theme.swiperSlider) adds around the main image */
.pg-pdp .pg-pdp-stage .swiper-controls .swiper-navigation .swiper-button { width: 36px; height: 36px; color: var(--pg-mocha); background: rgba(255, 255, 255, .96); border: 1px solid var(--pdp-line); box-shadow: 0 4px 12px rgba(43, 33, 24, .12); opacity: 0; transition: opacity .15s, background-color .15s, color .15s; }
.pg-pdp .pg-pdp-stage:hover .swiper-controls .swiper-navigation .swiper-button { opacity: 1; }
.pg-pdp .pg-pdp-stage .swiper-controls .swiper-navigation .swiper-button:hover { color: #fff; background: var(--pg-mocha); }
.pg-pdp .pg-pdp-stage .swiper-controls .swiper-navigation .swiper-button.swiper-button-disabled { opacity: 0 !important; pointer-events: none; }

/* ---------- phone carousel ---------- */
.pg-pdp .pg-pdp-carousel { display: none; }
.pg-pdp .pg-pdp-carousel .swiper-controls { display: none; }
.pg-pdp .pg-pdp-carousel .swiper-slide { display: flex; align-items: center; justify-content: center; height: auto; aspect-ratio: 1 / 1.15; max-height: 70vh; background: #fff; }
.pg-pdp .pg-pdp-carousel .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pg-pdp .pg-pdp-carousel-video, .pg-pdp .pg-pdp-carousel-video iframe, .pg-pdp .pg-pdp-carousel-video video { width: 100%; height: 100%; border: 0; }
.pg-pdp .preview-image-swiper-pagination { position: static; padding: 8px 0 12px; line-height: 0; }
.pg-pdp .preview-image-swiper-pagination .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 3px; background: #CDBFAE; opacity: 1; }
.pg-pdp .preview-image-swiper-pagination .swiper-pagination-bullet-active { width: 16px; background: var(--pg-mocha); border-radius: 3px; }

/* ---------- Add to Cart / Buy Now ---------- */
.pg-pdp-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 32px 16px 0 88px; }
.pg-pdp-cta .pg-pdp-btn { width: 100%; min-height: 48px; padding: 0 12px; font-size: 18px; font-weight: 600; border-radius: var(--pdp-btn-radius); }
.pg-pdp-cta .pg-btn-outline.pg-pdp-btn { font-weight: 500; }
.pg-pdp-cta .pg-pdp-btn i { font-size: 20px; }
.pg-pdp-cta .pg-pdp-btn[disabled] { opacity: .5; }
.pg-pdp-cta .pg-pdp-go-cart[hidden], .pg-pdp-cta .pg-pdp-is-hidden { display: none !important; }

/* similar products thumbnails under the buttons (desktop) / under the carousel (phones) */
.pg-pdp-mini { margin: 32px 0 0 72px; padding-top: 24px; border-top: 1px solid var(--pdp-divider); }
.pg-pdp .pg-pdp-mini-title { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--pg-espresso); }
.pg-pdp-mini-row { display: flex; gap: 12px; padding: 0 12px; }
.pg-pdp .pg-pdp-mini-item { display: block; flex: 0 0 80px; width: 80px; height: 94px; overflow: hidden; background: #fff; border: 1px solid var(--pdp-line); border-radius: var(--pdp-btn-radius); transition: border-color .15s; }
.pg-pdp .pg-pdp-mini-item:hover { border-color: var(--pg-mocha); }
.pg-pdp .pg-pdp-mini-item img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.pg-pdp-mini-item:nth-child(n+6) { display: none !important; }

/* ---------- right column cards ---------- */
.pg-pdp-info .pg-pdp-card { padding: 16px; border-color: var(--pdp-line); border-radius: var(--pdp-radius); }
.pg-pdp-info .pg-pdp-card + .pg-pdp-card { margin-top: 16px; }
.pg-pdp .pg-pdp-card-title { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--pg-espresso); }
.pg-pdp .pg-pdp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pg-pdp .pg-pdp-card-head .pg-pdp-card-title { margin: 0; }
.pg-pdp .pg-pdp-subtitle { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--pg-espresso); }
.pg-pdp .pg-pdp-empty-note { margin: 0; font-size: 14px; color: var(--pg-muted); }
.pg-pdp .pg-pdp-text-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--pg-mocha); text-transform: uppercase; background: none; border: 0; }
.pg-pdp .pg-pdp-text-btn:hover { color: var(--pg-espresso); text-decoration: underline; text-decoration-color: var(--pg-gold); text-underline-offset: 3px; }

/* 1. title, price, rating */
.pg-pdp-summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pg-pdp .pg-pdp-name { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--pg-muted); overflow-wrap: anywhere; }
.pg-pdp-tools { display: flex; flex: 0 0 auto; gap: 8px; margin: -4px -4px 0 0; }
.pg-pdp .pg-pdp-tool { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; font-size: 18px; line-height: 1; color: var(--pg-mocha) !important; text-decoration: none; cursor: pointer; background: #fff; border: 1px solid var(--pdp-line); border-radius: 50%; transition: border-color .15s, background-color .15s; }
.pg-pdp .pg-pdp-tool.fa { font-size: 17px; }
.pg-pdp .pg-pdp-tool:hover, .pg-pdp .pg-pdp-tool:focus-visible, .pg-pdp .pg-pdp-tool[aria-expanded="true"] { background: var(--pg-cream); border-color: var(--pg-mocha); outline: 0; }
/* wishlist: the stock JS toggles fa-heart-o <-> "fa-heart text-danger" on the button itself; keep it mocha, never red */
.pg-pdp .add-to-fav-btn.fa-heart, .pg-pdp .add-to-fav-btn.text-danger { color: var(--pg-mocha) !important; }
.pg-pdp .pg-pdp-tool.fa-heart { background: var(--pg-gold-soft); border-color: var(--pg-mocha); }

.pg-pdp-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 10px 12px; background: var(--pg-cream); border: 1px solid var(--pdp-line); border-radius: var(--pdp-radius); }
.pg-pdp-share[hidden] { display: none; }
.pg-pdp-share-label { font-size: 13px; font-weight: 700; color: var(--pg-mocha); }
.pg-pdp #share .jssocials-shares { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pg-pdp #share .jssocials-share { margin: 0; }
.pg-pdp #share .jssocials-share-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; color: var(--pg-mocha); background: #fff; border: 1px solid var(--pdp-line); border-radius: 50%; }
.pg-pdp #share .jssocials-share-link:hover { color: #fff; background: var(--pg-mocha); border-color: var(--pg-mocha); }
.pg-pdp #share .jssocials-share-logo { font-size: 15px; }
.pg-pdp .pg-pdp-copy { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--pg-mocha); background: #fff; border: 1px solid var(--pdp-line); border-radius: 999px; }
.pg-pdp .pg-pdp-copy:hover { border-color: var(--pg-mocha); }

.pg-pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; }
.pg-pdp #price { font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--pg-espresso); }
.pg-pdp #price small { font-size: 15px !important; font-weight: 600; }
.pg-pdp .pg-pdp-mrp { display: inline-flex; align-items: baseline; gap: 8px; }
.pg-pdp .pg-pdp-mrp .striped-price, .pg-pdp #striped-price { font-size: 16px; color: var(--pg-muted) !important; }
.pg-pdp .pg-pdp-off { font-size: 18px; font-weight: 600; color: var(--pg-success); }
.pg-pdp .pg-pdp-off:empty { display: none; }

.pg-pdp-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pg-pdp .pg-rate { text-decoration: none; }
.pg-pdp .pg-pdp-rating .pg-rate { padding: 4px 10px; font-size: 15px; }
.pg-pdp a.pg-rate:hover { color: var(--pg-espresso); }
.pg-pdp .pg-pdp-rating-count { font-size: 13px; color: var(--pg-muted); }

.pg-pdp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pg-pdp .pg-pdp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--pg-mocha); background: var(--pg-gold-soft); border-radius: 999px; }
.pg-pdp .pg-pdp-tag i { font-size: 15px; }
.pg-pdp .pg-pdp-tag-veg { color: var(--pg-success); background: var(--pg-success-soft); }
.pg-pdp .pg-pdp-tag-nonveg { color: var(--pg-danger); background: var(--pg-danger-soft); }
.pg-pdp-stats { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--pg-muted); }
.pg-pdp-stats i { color: var(--pg-mocha); }

/* 2. Select Size + quantity */
.pg-pdp-option + .pg-pdp-option { margin-top: 20px; }
.pg-pdp-option .pg-pdp-card-title { margin-bottom: 20px; }
.pg-pdp-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-pdp-chips label { position: relative; margin: 0; cursor: pointer; }
.pg-pdp-chips input[type="radio"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pg-pdp-size span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 34px; padding: 0 16px; font-size: 17px; font-weight: 500; color: var(--pg-espresso); white-space: nowrap; background: #fff; border: 1px solid var(--pg-espresso); border-radius: 17px; transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s; }
.pg-pdp-size:hover span { color: var(--pg-mocha); border-color: var(--pg-mocha); }
.pg-pdp-size input:checked + span { font-weight: 700; color: var(--pg-mocha); background: var(--pg-gold-soft); border-color: var(--pg-mocha); box-shadow: inset 0 0 0 1px var(--pg-mocha); }
.pg-pdp-chips input:focus-visible + span, .pg-pdp-chips input:focus-visible + img { outline: 3px solid rgba(212, 160, 23, .55); outline-offset: 2px; }
.pg-pdp-swatch { display: inline-flex; padding: 3px; border-radius: 50%; }
.pg-pdp-swatch-dot { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .2); }
.pg-pdp-swatch input:checked + .pg-pdp-swatch-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pg-mocha); }
.pg-pdp-swatch-img { border-radius: 10px; }
.pg-pdp-swatch-img img { display: block; width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--pdp-line); border-radius: var(--pdp-radius); }
.pg-pdp-swatch-img input:checked + img { border-color: var(--pg-mocha); box-shadow: 0 0 0 2px var(--pg-mocha); }
.pg-pdp .pg-pdp-hint { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--pg-danger); }
.pg-pdp .pg-pdp-hint[hidden] { display: none; }
.pg-pdp .pg-pdp-options.is-missing { border-color: var(--pg-danger); box-shadow: 0 0 0 1px var(--pg-danger); }

.pg-pdp-qty { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.pg-pdp-option ~ .pg-pdp-qty { padding-top: 16px; border-top: 1px solid var(--pg-line); }
.pg-pdp-options > .pg-pdp-qty:first-child { margin-top: 0; }
.pg-pdp .pg-pdp-label { font-size: 15px; font-weight: 600; color: var(--pg-espresso); }
.pg-pdp .num-block { margin: 0; padding: 0; }
.pg-pdp .num-in { display: inline-flex; align-items: stretch; float: none; width: auto; height: 38px; margin: 0; padding: 0; overflow: hidden; background: #fff; border: 1px solid #DCCFBD; border-radius: var(--pdp-btn-radius); }
.pg-pdp .num-in span { position: relative; display: block; float: none; width: 38px; height: 100%; cursor: pointer; }
.pg-pdp .num-in span:hover { background: var(--pg-gold-soft); }
.pg-pdp .num-in span::before, .pg-pdp .num-in span::after { width: 12px; margin-left: -6px; background-color: var(--pg-mocha); }
.pg-pdp .num-in input { float: none; width: 46px; height: 100%; padding: 0; font-size: 15px; font-weight: 700; color: var(--pg-text); text-align: center; background: #fff; border: 0; border-right: 1px solid var(--pg-line); border-left: 1px solid var(--pg-line); }

/* delivery check */
.pg-pdp-check + .pg-pdp-check { margin-top: 12px; }
.pg-pdp-check-row { display: flex; align-items: stretch; gap: 10px; }
.pg-pdp .pg-pdp-check-field { position: relative; flex: 1 1 auto; min-width: 0; margin: 0; }
.pg-pdp .pg-pdp-check-field > i { position: absolute; top: 50%; left: 13px; z-index: 1; font-size: 18px; color: var(--pg-mocha); transform: translateY(-50%); pointer-events: none; }
.pg-pdp .pg-pdp-check-field .pg-input { min-height: 46px; padding-left: 40px; border-radius: var(--pdp-btn-radius); }
.pg-pdp .pg-pdp-check-row .pg-btn { flex: 0 0 auto; min-height: 46px; border-radius: var(--pdp-btn-radius); }
.pg-pdp-check-result { margin-top: 8px; font-size: 14px; }
.pg-pdp-check-result:empty { display: none; }
.pg-pdp .pg-pdp-check-result .text-success { color: var(--pg-success) !important; }
.pg-pdp .pg-pdp-check-result .text-danger { color: var(--pg-danger) !important; }

/* 3. product details */
.pg-pdp .pg-pdp-short { margin-bottom: 18px; }
.pg-pdp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.pg-pdp-spec dt { margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--pg-muted); }
.pg-pdp-spec dd { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--pg-text); overflow-wrap: anywhere; }
.pg-pdp-spec dd small { display: block; margin-top: 2px; font-size: 12px; color: var(--pg-muted); }
.pg-pdp .pg-pdp-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--pg-mocha); font-weight: 600; text-decoration: none; }
.pg-pdp .pg-pdp-brand img { width: auto; height: 22px; }
.pg-pdp-desc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pg-line); }
.pg-pdp .pg-pdp-prose { font-size: 15px; line-height: 1.7; color: var(--pg-text); overflow-wrap: anywhere; }
.pg-pdp .pg-pdp-prose p { margin: 0 0 .7em; color: var(--pg-text); }
.pg-pdp .pg-pdp-prose > :last-child { margin-bottom: 0; }
.pg-pdp .pg-pdp-prose ul, .pg-pdp .pg-pdp-prose ol { margin: 0 0 .7em; padding-left: 1.3em; }
.pg-pdp .pg-pdp-prose li { color: var(--pg-text); }
.pg-pdp .pg-pdp-prose a { color: var(--pg-mocha); text-decoration: underline; }
.pg-pdp .pg-pdp-prose img { max-width: 100% !important; height: auto !important; border-radius: var(--pdp-radius); }
.pg-pdp .pg-pdp-prose iframe, .pg-pdp .pg-pdp-prose video { max-width: 100%; }
.pg-pdp .pg-pdp-prose table { display: block; width: 100%; max-width: 100%; margin: .5em 0 1em; overflow-x: auto; border-collapse: collapse; }
.pg-pdp .pg-pdp-prose td, .pg-pdp .pg-pdp-prose th { padding: 6px 10px; border: 1px solid var(--pg-line); }
.pg-pdp .pg-pdp-prose.is-clamped { position: relative; max-height: 220px; overflow: hidden; }
.pg-pdp .pg-pdp-prose.is-clamped::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 64px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.pg-pdp .pg-pdp-more { margin-top: 8px; padding: 0; font-size: 14px; font-weight: 700; color: var(--pg-mocha); background: none; border: 0; }
.pg-pdp .pg-pdp-more:hover { text-decoration: underline; }
.pg-pdp-extra { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pg-line); }
.pg-pdp-extra > summary { position: relative; padding-right: 26px; font-size: 15px; font-weight: 600; color: var(--pg-espresso); list-style: none; cursor: pointer; }
.pg-pdp-extra > summary::-webkit-details-marker { display: none; }
.pg-pdp-extra > summary::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-right: 2px solid var(--pg-mocha); border-bottom: 2px solid var(--pg-mocha); transform: rotate(45deg); transition: transform .15s; }
.pg-pdp-extra[open] > summary::after { top: 9px; transform: rotate(-135deg); }
.pg-pdp-extra > .pg-pdp-prose { margin-top: 10px; }
.pg-pdp-tagrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pg-pdp-tagrow > i { font-size: 18px; color: var(--pg-mocha); }
.pg-pdp-tagrow .pg-chip { min-height: 30px; padding: 0 12px; font-size: 13px; }

/* 4. sold by */
.pg-pdp-seller-row { display: flex; align-items: center; gap: 14px; }
.pg-pdp-seller-logo { display: flex; flex: 0 0 56px; align-items: center; justify-content: center; width: 56px; height: 56px; overflow: hidden; font-size: 26px; color: var(--pg-mocha); background: var(--pg-cream); border: 1px solid var(--pdp-line); border-radius: 50%; }
.pg-pdp-seller-logo img { width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; }
.pg-pdp-seller-info { flex: 1 1 auto; min-width: 0; }
.pg-pdp .pg-pdp-seller-name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--pg-espresso); overflow-wrap: anywhere; }
.pg-pdp .pg-pdp-seller-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; font-size: 14px; color: var(--pg-muted); }
.pg-pdp .pg-pdp-seller-meta:empty { display: none; }
.pg-pdp .pg-pdp-shop-btn { flex: 0 0 auto; min-height: 42px; padding: 0 24px; font-size: 16px; font-weight: 500; border-radius: var(--pdp-btn-radius); }
.pg-pdp .pg-pdp-seller-desc { margin: 12px 0 0; font-size: 14px; color: var(--pg-muted); }
.pg-pdp .pg-pdp-chat { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; }
.pg-pdp .pg-pdp-chat i { font-size: 18px; }

/* 5. ratings & reviews */
.pg-pdp-rating-summary { display: flex; align-items: center; gap: 32px; padding: 4px 0 8px; }
.pg-pdp-rating-big { flex: 0 0 auto; min-width: 110px; }
.pg-pdp-rating-big strong { display: flex; align-items: center; gap: 6px; font-size: 44px; font-weight: 600; line-height: 1; color: var(--pg-espresso); }
.pg-pdp-rating-big strong i { font-size: 28px; color: var(--pg-gold); }
.pg-pdp-rating-big > span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--pg-muted); }
.pg-pdp-bars { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.pg-pdp-bars li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 5px 0; font-size: 12px; color: var(--pg-muted); }
.pg-pdp-bar-label { color: var(--pg-text); text-align: right; white-space: nowrap; }
.pg-pdp-bar { height: 5px; overflow: hidden; background: #EFE7DC; border-radius: 3px; }
.pg-pdp-bar > span { display: block; height: 100%; background: var(--pg-gold); border-radius: 3px; }
.pg-pdp-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.pg-pdp-photos .pg-pdp-photo { display: block; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; background: var(--pg-cream); border: 1px solid var(--pdp-line); border-radius: var(--pdp-radius); }
.pg-pdp-photos .pg-pdp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-pdp .pg-pdp-photos-more { display: inline-flex; align-items: center; height: 64px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--pg-mocha); text-decoration: none; background: var(--pg-gold-soft); border-radius: var(--pdp-radius); }
.pg-pdp-reviews .review-title { margin-top: 18px; }
.pg-pdp-review-list { margin: 16px 0 0; padding: 0; list-style: none; }
.pg-pdp-review-list:empty { display: none; }
.pg-pdp-review { padding: 16px 0; border-top: 1px solid var(--pdp-divider); }
.pg-pdp-review:last-child { padding-bottom: 4px; }
.pg-pdp-review-head { display: flex; align-items: center; gap: 10px; }
.pg-pdp-avatar { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 15px; color: var(--pg-mocha); background: var(--pg-gold-soft); border-radius: 50%; }
.pg-pdp .pg-pdp-review-name { font-size: 16px; font-weight: 600; color: var(--pg-espresso); }
.pg-pdp-review-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--pg-muted); }
.pg-pdp .pg-pdp-review-text { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--pg-text); overflow-wrap: anywhere; }
.pg-pdp-review-foot { margin-top: 10px; }
.pg-pdp .pg-pdp-review-delete { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--pg-muted); text-decoration: none; }
.pg-pdp .pg-pdp-review-delete:hover { color: var(--pg-danger); }
.pg-pdp .pg-pdp-more-reviews { margin-top: 14px; padding-top: 14px; width: 100%; border-top: 1px solid var(--pdp-divider); }
.pg-pdp .pg-pdp-more-reviews[disabled] { opacity: .6; }
.pg-pdp-review-form { margin-top: 18px; padding: 16px; background: var(--pg-cream); border: 1px solid var(--pdp-line); border-radius: var(--pdp-radius); }
.pg-pdp-review-form .pg-form label { margin-top: 10px; }
.pg-pdp-review-form .pg-btn { margin-top: 14px; border-radius: var(--pdp-btn-radius); }
.pg-pdp .pg-pdp-stars .rating-container .filled-stars { color: var(--pg-gold); -webkit-text-stroke: 0; text-shadow: none; }
.pg-pdp .pg-pdp-stars .rating-container .empty-stars { color: #D9CBB8; }

/* questions & answers */
.pg-pdp-faq .pg-pdp-card-head .pg-btn { border-radius: var(--pdp-btn-radius); }
.pg-pdp-faq-item { border-top: 1px solid var(--pg-line); }
.pg-pdp-faq-item > summary { position: relative; padding: 12px 28px 12px 0; font-size: 15px; font-weight: 600; color: var(--pg-text); list-style: none; cursor: pointer; }
.pg-pdp-faq-item > summary::-webkit-details-marker { display: none; }
.pg-pdp-faq-item > summary::after { content: ""; position: absolute; top: 18px; right: 6px; width: 8px; height: 8px; border-right: 2px solid var(--pg-mocha); border-bottom: 2px solid var(--pg-mocha); transform: rotate(45deg); transition: transform .15s; }
.pg-pdp-faq-item[open] > summary::after { top: 21px; transform: rotate(-135deg); }
.pg-pdp-faq-answer { padding: 0 0 12px; font-size: 14px; color: var(--pg-text); }
.pg-pdp-faq-answer p { margin: 0 0 4px; }
.pg-pdp-faq-answer small { color: var(--pg-muted); }

/* 6. trust strip */
.pg-pdp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 82px; margin: 16px 0 0; padding: 12px 6px; list-style: none; background: var(--pg-gold-soft); border-radius: var(--pdp-radius); }
.pg-pdp-trust li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--pg-espresso); }
.pg-pdp-trust li + li { border-left: 1px solid var(--pg-gold-light); }
.pg-pdp-trust i { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 19px; color: var(--pg-mocha); background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(43, 33, 24, .08); }

/* ---------- Similar Products (shared card: pages/pg-product-card.php) ---------- */
.pg-pdp-similar { margin-top: 40px; scroll-margin-top: 150px; }
.pg-pdp-similar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pg-pdp .pg-pdp-similar-title { margin: 0; font-size: 20px; font-weight: 600; color: var(--pg-espresso); }
.pg-pdp-similar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.pg-pdp .pg-pdp-similar-grid .pg-card { border-color: var(--pdp-line); border-radius: var(--pdp-radius); }
.pg-pdp .pg-card-fav.fa-heart { color: var(--pg-mocha) !important; }

/* ---------- FAQ modal ---------- */
.pg-pdp-modal .modal-content { border: 0; border-radius: var(--pg-radius, 12px); }
.pg-pdp-modal .modal-header { align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--pg-line); }
.pg-pdp-modal .modal-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--pg-espresso); }
.pg-pdp-modal .close { padding: 0 4px; font-size: 28px; line-height: 1; color: var(--pg-muted); background: none; border: 0; opacity: 1; }
.pg-pdp-modal .modal-body { padding: 18px 20px 20px; }
.pg-pdp-modal .pg-btn { margin-top: 12px; border-radius: var(--pdp-btn-radius); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .pg-pdp-similar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .pg-pdp-cta .pg-pdp-btn { font-size: 16px; }
    .pg-pdp-mini-item:nth-child(n+5) { display: none !important; }
}
@media (min-width: 992px) {
    .pg-pdp .swiper-thumbs-container { display: block !important; }
    .pg-pdp .product-page-preview-image-section-md { display: flex !important; }
    .pg-pdp .product-preview-image-section-sm { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pg-pdp-layout { gap: 24px; }
    .pg-pdp-cta { margin-right: 0; }
    /* 10 similar products: keep full rows (2 x 4) */
    .pg-pdp .pg-pdp-similar-grid > .pg-card:nth-child(n+9) { display: none; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    /* 10 similar products: keep full rows (3 x 3) */
    .pg-pdp .pg-pdp-similar-grid > .pg-card:nth-child(n+10) { display: none; }
}

/* tablets and phones: Meesho mobile layout */
@media (max-width: 991.98px) {
    .pg-pdp { padding: 0 0 calc(76px + env(safe-area-inset-bottom)); background: var(--pdp-gap); }
    .pg-pdp > .container { max-width: none; padding-right: 0; padding-left: 0; }
    .pg-pdp-layout { display: block; }
    .pg-pdp-media { position: static; background: #fff; }
    .pg-pdp .swiper-thumbs-container { display: none !important; }
    .pg-pdp .product-preview-image-section-sm { display: block !important; max-width: 600px; margin: 0 auto; }

    .pg-pdp-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1025; gap: 8px; margin: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pdp-line); box-shadow: 0 -2px 8px rgba(43, 33, 24, .08); }
    .pg-pdp-cta .pg-pdp-btn { min-height: 48px; padding: 0 8px; font-size: 16px; }

    .pg-pdp-mini { margin: 0; padding: 12px 0 14px; border-top: 1px solid var(--pdp-line); }
    .pg-pdp .pg-pdp-mini-title { margin: 0 16px 10px; font-size: 15px; }
    .pg-pdp-mini-row { gap: 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pg-pdp-mini-row::-webkit-scrollbar { display: none; }
    .pg-pdp .pg-pdp-mini-item { flex-basis: 64px; width: 64px; height: 76px; }
    .pg-pdp-mini-item:nth-child(n+5) { display: block !important; }

    .pg-pdp-info .pg-pdp-card { margin: 8px 0 0; padding: 16px; border: 0; border-radius: 0; }
    .pg-pdp-info .pg-pdp-card + .pg-pdp-card { margin-top: 8px; }
    .pg-pdp .pg-pdp-card-title { font-size: 18px; }
    .pg-pdp .pg-pdp-name { font-size: 16px; }
    .pg-pdp #price { font-size: 26px; }
    .pg-pdp .pg-pdp-off { font-size: 16px; }
    .pg-pdp-trust { min-height: 72px; margin: 8px 0 0; border-radius: 0; }

    .pg-pdp-similar { margin-top: 8px; padding: 16px 0 0; background: #fff; }
    .pg-pdp-similar-head { margin: 0 16px 12px; }
    .pg-pdp .pg-pdp-similar-title { font-size: 18px; }
    .pg-pdp-similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--pdp-line); }
    /* Meesho mobile grid: cells divided by 1px lines, no gaps, no radius (same as the listing page) */
    .pg-pdp .pg-pdp-similar-grid .pg-card { border-width: 0 1px 1px 0; border-radius: 0; }
    .pg-pdp .pg-pdp-similar-grid .pg-card:hover { transform: none; box-shadow: none; }
    .pg-pdp .pg-pdp-similar-grid .pg-card:nth-child(3n) { border-right: 0; }

    /* the footer's floating buttons (chat, back to top, WhatsApp) sit above the sticky bar */
    body:has(.pg-pdp-cta) .fixed-icon { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
    body:has(.pg-pdp-cta) .whatsapp-icon { bottom: calc(128px + env(safe-area-inset-bottom)) !important; }
    body:has(.pg-pdp-cta) .chat-iframe { bottom: calc(136px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 767.98px) {
    .pg-pdp-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-pdp .pg-pdp-similar-grid .pg-card:nth-child(3n) { border-right: 1px solid var(--pdp-line); }
    .pg-pdp .pg-pdp-similar-grid .pg-card:nth-child(2n) { border-right: 0; }
    .pg-pdp .pg-pdp-similar-grid .pg-card-body { padding: 8px 10px 12px; }
    .pg-pdp .pg-pdp-similar-grid .pg-card-name { font-size: 13px; }
    .pg-pdp .pg-pdp-similar-grid .pg-card-price strong { font-size: 16px; }
    .pg-pdp .pg-pdp-similar-grid .pg-card-price s, .pg-pdp .pg-pdp-similar-grid .pg-card-off { font-size: 12px; }
    .pg-pdp .pg-pdp-similar-grid .pg-card-fav { top: 8px; right: 8px; width: 30px; height: 30px; font-size: 15px; }
    .pg-pdp .pg-pdp-similar-grid .pg-card-badge { top: 8px; left: 8px; font-size: 11px; }
    .pg-pdp-rating-summary { gap: 18px; }
    .pg-pdp-rating-big { min-width: 92px; }
    .pg-pdp-rating-big strong { font-size: 36px; }
    .pg-pdp-bars li { grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 8px; }
    .pg-pdp-size span { height: 32px; font-size: 16px; }
}
@media (max-width: 420px) {
    .pg-pdp-tools { gap: 6px; }
    .pg-pdp .pg-pdp-tool { width: 34px; height: 34px; font-size: 16px; }
    .pg-pdp .pg-pdp-tool.fa { font-size: 15px; }
    .pg-pdp-specs { gap: 14px 16px; }
    .pg-pdp .pg-pdp-shop-btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
    .pg-pdp-rating-summary { flex-direction: column; align-items: stretch; gap: 12px; }
    .pg-pdp-trust li { font-size: 11.5px; }
}
