/* Product-page styles are isolated from the shared storefront and its cards. */
body[data-page="product-detail"] { background: #f5f7f7; color: #233d46; }
body[data-page="product-detail"] .product-detail-page { max-width: 1360px; margin: 0 auto 64px; padding: 0 28px; font-size: 14px; line-height: 1.6; }
body[data-page="product-detail"] .cart-overlay { z-index: 9999; }
body[data-page="product-detail"] .cart-sidebar { z-index: 10000; height: 100dvh; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
#product-detail-root { --pd-header-offset: 180px; --pd-teal: #155464; --pd-line: #e1e7e8; }
#product-detail-root *, #product-detail-root *::before, #product-detail-root *::after { box-sizing: border-box; }
#product-detail-root [hidden] { display: none !important; }
#product-detail-root a { color: var(--pd-teal); }
#product-detail-root :is(button, a, select, input, textarea):focus-visible { outline: 3px solid #bd315d; outline-offset: 4px; }
#product-detail-root button { font: inherit; cursor: pointer; }
#product-detail-root button:disabled { opacity: .55; cursor: not-allowed; }
body[data-page="product-detail"].cart-is-open .compare-tray { visibility: hidden; }
#product-detail-root :is(h1, h2, h3, p) { overflow-wrap: anywhere; }
#product-detail-root h2 { font-size: 19px; line-height: 1.4; margin: 0 0 18px; color: #233d46; }
#product-detail-root h3 { font-size: 15px; margin: 0 0 8px; }
#product-detail-root :is(h2, h3) { scroll-margin-top: calc(var(--pd-header-offset) + 12px); }
#product-detail-root .pd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 22px 0 18px; color: #647b85; font-size: 12px; }
#product-detail-root .pd-breadcrumb a { color: #607780; text-decoration: none; }
#product-detail-root .pd-breadcrumb > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(100%, 360px); }
#product-detail-root .pd-layout { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); gap: 28px; align-items: start; }
#product-detail-root .pd-visual-column { position: sticky; top: var(--pd-header-offset); min-width: 0; }
#product-detail-root .pd-gallery { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 26px 22px 20px; min-height: 450px; background: white; border: 1px solid var(--pd-line); border-radius: 12px; }
#product-detail-root .pd-thumbnails { display: flex; flex-direction: column; gap: 10px; max-height: 390px; overflow-y: auto; padding: 4px; }
#product-detail-root .pd-thumbnail { display: grid; place-items: center; width: 54px; height: 64px; flex-shrink: 0; border: 1px solid #dfe5e7; border-radius: 8px; background: #fafbfc; padding: 5px; }
#product-detail-root .pd-thumbnail[aria-pressed="true"] { border: 2px solid var(--pd-teal); background: #eef4f4; }
#product-detail-root .pd-thumbnail img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
#product-detail-root .pd-image-area { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#product-detail-root .pd-main-image { display: grid; place-items: center; padding: 12px; border: 0; border-radius: 10px; background: white; width: 100%; height: 360px; cursor: zoom-in; }
#product-detail-root .pd-main-image img { width: 100%; height: 100%; object-fit: contain; min-height: 0; transition: transform .2s; }
#product-detail-root .pd-main-image:hover img { transform: scale(1.025); }
#product-detail-root .pd-image-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; width: 100%; font-size: 11px; color: #647b85; margin: 16px 0 0; }
#product-detail-root .pd-no-image { text-align: center; color: #647b85; padding: 40px 12px; }
#product-detail-root .pd-no-image > span { font-size: 72px; color: #a8b9bf; }
#product-detail-root .pd-purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; }
#product-detail-root .pd-purchase-actions button { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; margin: 0; border: 0; border-radius: 7px; font-size: 14px; font-weight: 750; line-height: 1.3; padding: 14px 12px; text-decoration: none; }
#product-detail-root .pd-add-cart { background: #ffbe53; color: #44361e; box-shadow: none; }
#product-detail-root .pd-buy-now { background: var(--pd-teal); color: white; }
#product-detail-root .pd-purchase-actions button:hover:not(:disabled) { filter: brightness(.96); }
#product-detail-root .pd-visual-note { margin: 16px 0 0; color: #647b85; font-size: 11px; text-align: center; }
#product-detail-root .pd-info-column { min-width: 0; padding: 28px 30px; background: white; border: 1px solid var(--pd-line); border-radius: 12px; }
#product-detail-root .pd-eyebrow { margin: 0 0 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #627c86; }
#product-detail-root h1 { margin: 0 0 12px; font-size: clamp(23px, 2.1vw, 29px); line-height: 1.35; letter-spacing: -.5px; color: #233d46; }
#product-detail-root .pd-customer-reviews { display: inline-block; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
#product-detail-root .pd-price-block { margin-top: 22px; }
#product-detail-root .pd-price-label { font-size: 12px; font-weight: 650; color: #267446; margin: 0 0 4px; }
#product-detail-root .pd-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
#product-detail-root [data-detail-price] { font-size: 34px; line-height: 1.25; letter-spacing: -.8px; color: #233d46; }
#product-detail-root [data-detail-mrp] { color: #647b85; font-size: 16px; }
#product-detail-root [data-detail-discount] { color: #267446; font-size: 14px; font-weight: 750; }
#product-detail-root .pd-tax-note { color: #647b85; font-size: 11px; margin: 7px 0 0; }
#product-detail-root .pd-stock { color: #267446; font-size: 12px; font-weight: 650; margin: 13px 0 0; }
#product-detail-root .pd-stock::before { content: '●'; margin-right: 7px; font-size: 9px; }
#product-detail-root .pd-stock-unavailable { color: #a43b51; }
#product-detail-root .pd-info-block { border-top: 1px solid #edf0f1; padding-top: 22px; margin-top: 23px; }
#product-detail-root .pd-info-block h2 { font-size: 15px; margin: 0 0 12px; }
#product-detail-root .pd-info-block p { color: #5b737e; font-size: 13px; margin: 8px 0 0; }
#product-detail-root .pd-offer-icon { color: #267446; margin-right: 8px; font-size: 19px; }
#product-detail-root .pd-destination { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; color: #647b85; font-size: 12px; max-width: 400px; }
#product-detail-root .pd-destination select { width: 100%; min-height: 42px; padding: 9px 30px 9px 10px; background: #f9fbfb; border: 1px solid #cedbdc; border-radius: 6px; color: #233d46; font: inherit; }
#product-detail-root .pd-delivery-block small { display: block; color: #647b85; font-size: 11px; margin-top: 7px; }
#product-detail-root .pd-facts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
#product-detail-root .pd-facts > div { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
#product-detail-root .pd-facts strong { padding: 8px 14px; border: 1px solid #c5d8dd; border-radius: 6px; color: var(--pd-teal); background: #f4f8f8; }
#product-detail-root .pd-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding-left: 17px; margin: 0; color: #5b737e; font-size: 12px; }
#product-detail-root .pd-highlights li { padding-left: 3px; overflow-wrap: anywhere; }
#product-detail-root .pd-highlights li span { color: #233d46; font-weight: 600; display: block; }
#product-detail-root .pd-seller-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; }
#product-detail-root .pd-seller-badge { background: #eef5f2; color: #267446; padding: 3px 7px; border-radius: 4px; font-size: 10px; }
#product-detail-root .pd-secondary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#product-detail-root .pd-secondary-actions button { display: flex; gap: 7px; align-items: center; width: auto; margin: 0; padding: 10px 12px; font-size: 12px; line-height: 1.3; border: 1px solid var(--pd-line); background: white; border-radius: 6px; color: var(--pd-teal); }
#product-detail-root .pd-secondary-actions .material-symbols-outlined { display: none; }
#product-detail-root .pd-secondary-actions button::before { font: 22px/1 Arial, sans-serif; }
#product-detail-root .detail-wishlist::before { content: '♡'; }
#product-detail-root .detail-wishlist[aria-pressed="true"]::before { content: '♥'; color: #bd315d; }
#product-detail-root .detail-compare::before { content: '↔'; }
#product-detail-root .detail-compare[aria-pressed="true"]::before { content: '✓'; }
#product-detail-root .pd-assurances { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 10px; margin-top: 22px; background: #f5f8f7; padding: 14px 12px; border-radius: 7px; font-size: 11px; }
#product-detail-root .pd-section-nav { display: flex; gap: 30px; overflow-x: auto; padding: 0 26px; margin-top: 30px; background: white; border: 1px solid var(--pd-line); border-radius: 10px; }
#product-detail-root .pd-section-nav a { padding: 18px 0; white-space: nowrap; font-size: 13px; font-weight: 650; text-decoration: none; }
#product-detail-root :is(.pd-section, .product-reviews-section, .product-questions-section, .product-discovery-section) { min-width: 0; margin: 20px 0 0; padding: 28px; border: 1px solid var(--pd-line); background: white; border-radius: 12px; }
#product-detail-root .pd-about > p:last-child { white-space: pre-line; max-width: 980px; color: #5b737e; margin-bottom: 0; }
#product-detail-root .pd-spec-list { margin: 0; }
#product-detail-root .pd-spec-list > div { display: grid; grid-template-columns: minmax(100px, 25%) minmax(0, 1fr); gap: 20px; padding: 13px 16px; font-size: 13px; }
#product-detail-root .pd-spec-list > div:nth-child(odd) { background: #f6f9f9; border-radius: 5px; }
#product-detail-root .pd-spec-list dt { color: #647b85; overflow-wrap: anywhere; }
#product-detail-root .pd-spec-list dd { margin: 0; color: #233d46; overflow-wrap: anywhere; }
#product-detail-root .product-section-heading { gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
#product-detail-root .product-section-heading h2 { margin-bottom: 0; }
#product-detail-root :is(.product-review, .product-question) { overflow-wrap: anywhere; }
#product-detail-root :is(input, textarea, select) { max-width: 100%; font: inherit; }
#product-detail-root .product-review-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#product-detail-root .pd-shopping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
#product-detail-root .pd-shopping-grid > section { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--pd-line); border-radius: 8px; background: #fafcfc; }
#product-detail-root .pd-shopping-grid p { color: #647b85; font-size: 13px; }
#product-detail-root .pd-shopping-grid form { display: grid; gap: 12px; }
#product-detail-root .pd-shopping-grid label { display: grid; gap: 5px; font-size: 12px; }
#product-detail-root .pd-shopping-grid :is(input, select, button) { min-height: 40px; padding: 8px 12px; border: 1px solid #cbd8dc; border-radius: 5px; }
#product-detail-root .pd-image-dialog { width: min(1000px, calc(100% - 32px)); max-width: 1000px; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; color: #233d46; border: 0; border-radius: 14px; box-shadow: 0 20px 80px #102e4a40; }
#product-detail-root .pd-image-dialog::backdrop { background: #152d38b3; }
#product-detail-root .pd-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
#product-detail-root .pd-dialog-heading h2 { font-size: 17px; }
#product-detail-root .pd-dialog-heading button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--pd-line); background: white; border-radius: 50%; font-size: 26px; }
#product-detail-root .pd-dialog-content { height: min(65dvh, 620px); display: grid; place-items: center; }
#product-detail-root .pd-dialog-content img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
#product-detail-root .pd-dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
#product-detail-root .pd-dialog-controls button { border: 1px solid var(--pd-line); border-radius: 6px; background: #f5f8f8; color: var(--pd-teal); padding: 10px 12px; }
@media (max-width: 1050px) {
  #product-detail-root .pd-layout { gap: 20px; }
  #product-detail-root .pd-info-column { padding: 24px; }
  #product-detail-root .pd-gallery { padding: 18px 12px; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; }
  #product-detail-root .pd-thumbnail { width: 44px; height: 54px; }
  #product-detail-root .pd-main-image { padding: 4px; height: 320px; }
  #product-detail-root .pd-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body[data-page="product-detail"] .product-detail-page { padding: 0 18px; margin-bottom: 40px; }
  #product-detail-root .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #product-detail-root .pd-visual-column { position: static; }
  #product-detail-root .pd-gallery { grid-template-columns: 60px minmax(0, 1fr); min-height: 390px; padding: 22px; }
  #product-detail-root .pd-thumbnail { width: 52px; height: 62px; }
  #product-detail-root .pd-main-image { height: 330px; }
  #product-detail-root .pd-highlights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body[data-page="product-detail"] .product-detail-page { padding: 0 12px; margin-bottom: 0; padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
  #product-detail-root .pd-breadcrumb { padding: 16px 4px; font-size: 11px; gap: 6px; }
  #product-detail-root .pd-gallery { display: flex; flex-direction: column-reverse; gap: 14px; min-height: 0; padding: 18px 14px 14px; }
  #product-detail-root .pd-thumbnails { flex-direction: row; justify-content: start; overflow-x: auto; max-height: none; width: 100%; }
  #product-detail-root .pd-image-area { width: 100%; }
  #product-detail-root .pd-main-image { height: 300px; }
  #product-detail-root .pd-image-caption { margin-top: 10px; font-size: 10px; }
  #product-detail-root .pd-purchase-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 990; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pd-line); box-shadow: 0 -4px 18px #233d4610; gap: 10px; }
  body[data-page="product-detail"].has-amazon-bottom-nav #product-detail-root .pd-purchase-actions { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  #product-detail-root .pd-purchase-actions button { min-height: 44px; }
  body[data-page="product-detail"] .compare-tray { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body[data-page="product-detail"].has-amazon-bottom-nav .compare-tray { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
  #product-detail-root .pd-purchase-actions button { min-height: 48px; font-size: 14px; }
  #product-detail-root .pd-visual-note { display: none; }
  #product-detail-root .pd-info-column { padding: 22px 18px; }
  #product-detail-root h1 { font-size: 23px; }
  #product-detail-root [data-detail-price] { font-size: 30px; }
  #product-detail-root .pd-highlights { gap: 12px; }
  #product-detail-root .pd-destination { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
  #product-detail-root .pd-section-nav { gap: 24px; padding: 0 18px; margin-top: 22px; }
  #product-detail-root :is(.pd-section, .product-reviews-section, .product-questions-section, .product-discovery-section) { margin-top: 14px; padding: 22px 18px; }
  #product-detail-root .pd-shopping-grid, #product-detail-root .product-review-fields { grid-template-columns: minmax(0, 1fr); }
  #product-detail-root .pd-spec-list > div { grid-template-columns: minmax(80px, 33%) minmax(0, 1fr); padding: 12px 9px; gap: 12px; font-size: 12px; }
  #product-detail-root .pd-image-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { #product-detail-root .pd-main-image img { transition: none; } }

/* PDP Conversion Triggers: Urgency & Social Proof */
#product-detail-root .pdp-urgency-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
#product-detail-root .pdp-scarcity-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 20px; color: #c2410c; font-size: 11.5px; font-weight: 600; }
#product-detail-root .pdp-scarcity-badge.is-out-of-stock { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
#product-detail-root .pdp-pulse-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; animation: pdpPulse 1.8s infinite; }
#product-detail-root .pdp-pulse-dot.is-amber { background: #ea580c; }
#product-detail-root .pdp-pulse-dot.is-red { background: #dc2626; }
@keyframes pdpPulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
#product-detail-root .pdp-social-proof { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: #475569; }
#product-detail-root .pdp-social-badge { display: inline-flex; align-items: center; gap: 4px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 3px 8px; border-radius: 6px; }
#product-detail-root .pdp-stat-icon { font-size: 15px; color: #ea580c; vertical-align: middle; }
#product-detail-root .pdp-viewers-badge { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
#product-detail-root .pdp-live-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; display: inline-block; animation: pdpPulse 1.5s infinite; }

/* PDP Dynamic Delivery Promise & Pincode SLA */
#product-detail-root .pdp-delivery-sla-container { margin-top: 14px; padding: 12px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; }
#product-detail-root .pdp-delivery-promise-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #166534; }
#product-detail-root .pdp-fast-icon { color: #16a34a; font-size: 20px; }
#product-detail-root .pdp-delivery-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
#product-detail-root .pdp-countdown-clock { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 700; color: #15803d; background: #dcfce7; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
#product-detail-root .pdp-pincode-sla-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: #475569; }
#product-detail-root .pdp-pin-icon { font-size: 15px; color: #64748b; }
#product-detail-root .pdp-pincode-toggle-btn { border: none; background: transparent; color: var(--pd-teal, #155464); font-size: 11.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0 4px; }
#product-detail-root .pdp-pincode-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#product-detail-root .pdp-pincode-input { width: 130px; min-height: 32px; padding: 4px 8px; font-size: 12px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; }
#product-detail-root .pdp-pincode-apply-btn { min-height: 32px; padding: 0 12px; background: var(--pd-teal, #155464); color: white; border: none; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; }
#product-detail-root .pdp-pincode-status { font-size: 11px; font-weight: 600; margin-left: 4px; }
#product-detail-root .pdp-pincode-status.is-success { color: #15803d; }
#product-detail-root .pdp-pincode-status.is-error { color: #b91c1c; }

/* PDP Variant Matrix & Swatch State Handling */
#product-detail-root .pdp-variant-matrix-section { border-top: 1px solid #edf0f1; padding-top: 18px; margin-top: 20px; }
#product-detail-root .pdp-variant-matrix-section h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 750; margin: 0 0 12px; }
#product-detail-root .pdp-swatch-group { margin-bottom: 14px; }
#product-detail-root .pdp-swatch-label-row { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: #475569; margin-bottom: 8px; }
#product-detail-root .pdp-swatch-label-row strong { color: #0f172a; font-weight: 700; }
#product-detail-root .pdp-color-swatches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#product-detail-root .swatch-color-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; padding: 2px; background: #fff; cursor: pointer; display: grid; place-items: center; position: relative; transition: all .15s ease; }
#product-detail-root .swatch-color-btn:hover { transform: scale(1.08); }
#product-detail-root .swatch-color-btn.is-selected { border-color: var(--pd-teal, #155464); box-shadow: 0 0 0 2px rgba(21, 84, 100, 0.25); }
#product-detail-root .swatch-color-dot { width: 100%; height: 100%; border-radius: 50%; display: block; border: 1px solid rgba(0,0,0,0.15); }
#product-detail-root .swatch-color-btn.is-unavailable { opacity: .55; cursor: not-allowed; }
#product-detail-root .swatch-strike { position: absolute; top: 50%; left: 3px; right: 3px; height: 2px; background: #dc2626; transform: rotate(-45deg); pointer-events: none; }
#product-detail-root .pdp-pill-swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#product-detail-root .swatch-pill-btn { padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #1e293b; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s ease; }
#product-detail-root .swatch-pill-btn:hover:not(.is-unavailable) { border-color: var(--pd-teal, #155464); background: #f8fafc; }
#product-detail-root .swatch-pill-btn.is-selected { border-color: var(--pd-teal, #155464); background: #eef4f6; color: var(--pd-teal, #155464); font-weight: 700; box-shadow: inset 0 0 0 1px var(--pd-teal, #155464); }
#product-detail-root .swatch-pill-btn.is-unavailable { border-style: dashed; color: #94a3b8; background: #f8fafc; cursor: not-allowed; opacity: .75; }
#product-detail-root .swatch-out-badge { font-size: 10px; color: #dc2626; background: #fee2e2; padding: 1px 4px; border-radius: 3px; font-weight: 500; }

/* Frequently Bought Together / 1-Click Bundle */
#product-detail-root .pd-bundle-section { background: white; border: 1px solid var(--pd-line, #e1e7e8); border-radius: 12px; padding: 24px 28px; margin-top: 24px; }
#product-detail-root .pd-bundle-heading { margin-bottom: 18px; }
#product-detail-root .pd-bundle-heading h2 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 2px 0 4px; }
#product-detail-root .pd-bundle-subtitle { font-size: 12.5px; color: #64748b; margin: 0; }
#product-detail-root .pd-bundle-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: center; }
#product-detail-root .pd-bundle-items-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#product-detail-root .pd-bundle-card { display: flex; flex-direction: column; align-items: center; width: 160px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fafafa; text-align: center; transition: border-color .15s; }
#product-detail-root .pd-bundle-card:hover { border-color: #cbd5e1; }
#product-detail-root .pd-bundle-card.is-primary { background: #f8fafc; border-color: #cbd5e1; }
#product-detail-root .pd-bundle-thumb { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 8px; }
#product-detail-root .pd-bundle-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
#product-detail-root .pd-bundle-meta { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; width: 100%; }
#product-detail-root .pd-bundle-check-wrap { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; text-align: left; }
#product-detail-root .pd-bundle-checkbox { width: 16px; height: 16px; accent-color: var(--pd-teal, #155464); cursor: pointer; margin-top: 2px; flex-shrink: 0; }
#product-detail-root .pd-bundle-this-item-tag { font-size: 10.5px; font-weight: 700; color: var(--pd-teal, #155464); white-space: nowrap; margin-right: 3px; }
#product-detail-root .pd-bundle-item-name { font-size: 11px; color: #334155; line-height: 1.3; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#product-detail-root .pd-bundle-price-tag { font-size: 13px; color: #0f172a; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
#product-detail-root .pd-bundle-mrp { font-size: 11px; color: #94a3b8; text-decoration: line-through; }
#product-detail-root .pd-bundle-plus { font-size: 22px; font-weight: 700; color: #94a3b8; user-select: none; }
#product-detail-root .pd-bundle-summary-box { padding: 18px 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }
#product-detail-root .pd-bundle-total-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #334155; }
#product-detail-root .pd-bundle-total-price { font-size: 22px; font-weight: 800; color: #0f172a; }
#product-detail-root .pd-bundle-savings-pill { display: flex; align-items: center; gap: 6px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; padding: 6px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
#product-detail-root .pdp-savings-icon { font-size: 16px; color: #059669; }
#product-detail-root .pd-bundle-add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%; background: #f59e0b; color: #451a03; font-size: 13.5px; font-weight: 750; border-radius: 7px; border: none; cursor: pointer; transition: all .2s; }
#product-detail-root .pd-bundle-add-btn:hover:not(:disabled) { filter: brightness(0.95); }
#product-detail-root .pd-bundle-add-btn:disabled { opacity: .55; cursor: not-allowed; }
#product-detail-root .pd-bundle-add-btn.pd-bundle-added { background: #16a34a !important; color: #ffffff !important; }
#product-detail-root .pd-bundle-perks { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #64748b; margin-top: 4px; }

@media (max-width: 900px) {
  #product-detail-root .pd-bundle-grid { grid-template-columns: 1fr; }
  #product-detail-root .pd-bundle-card { width: calc(50% - 16px); }
  #product-detail-root .pd-bundle-plus { display: none; }
}

/* User Retention, Gamification & Social Proof: Loyalty Currency (ZozoCoins) */
#product-detail-root .pdp-zozocoins-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
}
#product-detail-root .pdp-zozocoins-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
#product-detail-root .pdp-zozocoins-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  font-size: 12px;
  color: #78350f;
}
#product-detail-root .pdp-zozocoins-details strong {
  font-size: 13px;
  color: #92400e;
}
#product-detail-root .pdp-zozocoins-tag {
  background: #f59e0b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Price Drop Alert & Stock Alert Buttons */
#product-detail-root .pdp-quick-alerts-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
#product-detail-root .pdp-price-drop-link-btn,
#product-detail-root .pdp-stock-alert-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
#product-detail-root .pdp-price-drop-link-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
#product-detail-root .pdp-stock-alert-link-btn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
#product-detail-root .pdp-stock-alert-link-btn:hover {
  background: #ffedd5;
  border-color: #fdba74;
}
#product-detail-root .pd-purchase-actions .pdp-notify-stock-btn {
  background: #ea580c;
  color: #ffffff;
}
#product-detail-root .pd-purchase-actions .pdp-price-drop-btn {
  background: #0284c7;
  color: #ffffff;
}

/* Price Drop & Restock Notification Modal */
#product-detail-root .pdp-notify-modal {
  width: min(500px, calc(100% - 32px));
  max-width: 500px;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
  margin: auto;
  color: #1e293b;
}
#product-detail-root .pdp-notify-modal::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}
#product-detail-root .pdp-notify-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
#product-detail-root .pdp-notify-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
#product-detail-root .pdp-notify-header-icon {
  font-size: 28px;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 6px;
  border-radius: 10px;
}
#product-detail-root .pdp-notify-modal h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
}
#product-detail-root .pdp-notify-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#product-detail-root .pdp-notify-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
#product-detail-root .pdp-notify-close-btn:hover {
  color: #1e293b;
  background: #f1f5f9;
}
#product-detail-root .pdp-notify-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
#product-detail-root .pdp-notify-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: all .15s ease;
}
#product-detail-root .pdp-notify-type-option:has(input:checked) {
  border-color: #ea580c;
  background: #fff7ed;
  color: #c2410c;
}
#product-detail-root .pdp-notify-channel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}
#product-detail-root .pdp-channel-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all .15s ease;
}
#product-detail-root .pdp-channel-tab.is-active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}
#product-detail-root .pdp-notify-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
#product-detail-root .pdp-notify-field label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
#product-detail-root .pdp-notify-field small {
  font-size: 11px;
  color: #64748b;
}
#product-detail-root .pdp-wa-input-wrap,
#product-detail-root .pdp-price-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}
#product-detail-root .pdp-country-code,
#product-detail-root .pdp-currency-prefix {
  background: #f8fafc;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  border-right: 1px solid #cbd5e1;
}
#product-detail-root .pdp-wa-input-wrap input,
#product-detail-root .pdp-price-input-wrap input {
  border: none !important;
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}
#product-detail-root .pdp-notify-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: #ea580c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
#product-detail-root .pdp-notify-status {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
#product-detail-root .pdp-notify-status.is-success {
  color: #15803d;
  background: #f0fdf4;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}
#product-detail-root .pdp-notify-status.is-error {
  color: #b91c1c;
  background: #fef2f2;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

/* Customer Reviews: Search & Topic Filter Toolbar */
#product-detail-root .review-filter-toolbar {
  margin: 18px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#product-detail-root .review-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  max-width: 520px;
}
#product-detail-root .review-search-icon {
  color: #94a3b8;
  font-size: 18px;
}
#product-detail-root .review-search-input {
  border: none !important;
  background: transparent !important;
  flex: 1;
  font-size: 13px;
  outline: none !important;
  color: #1e293b;
  padding: 4px 0;
}
#product-detail-root .review-search-clear {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
#product-detail-root .review-topic-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#product-detail-root .review-chip {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all .15s ease;
}
#product-detail-root .review-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
#product-detail-root .review-chip.is-active {
  background: var(--pd-teal, #155464);
  color: #ffffff;
  border-color: var(--pd-teal, #155464);
}
#product-detail-root .review-filter-status {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}
#product-detail-root .verified-buyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
}
