/* ORBITECH365 Dealer Product Detail V1 (panel inside the Products stage).
   Layout (owner reference design 2026-10-10): top bar (square Back + breadcrumb); gallery / info / purchase summary cards
   (3 columns >= 1200px, gallery + info with the purchase summary below at 901-1199px, one column <= 900px); pill tabs below. */
.pc-actions button[data-product-detail]{opacity:1;cursor:pointer;color:#3045d3}
.pd-grid .product-card .pc-img,.pd-grid .product-card .pc-name{cursor:pointer}
.pdd-panel{background:#f5f6f9}
#productsStage:has(#productDetailPanel:not([hidden])){padding:0}
.pd-shell:has(#productDetailPanel:not([hidden])){max-width:none;border:0;border-radius:0;box-shadow:none}
#pd-owner-tabs[hidden],#productCataloguePanel[hidden],#productDetailPanel[hidden]{display:none!important}
.pdd-shell{box-sizing:border-box;width:100%;min-width:0;padding:0 0 22px;color:#15213a}
.pdd-shell *,.pdd-shell *::before,.pdd-shell *::after{box-sizing:border-box}
.pdd-back{border:1px solid #dfe4ec;border-radius:8px;background:#fff;color:#2336c9;padding:8px 12px;font-size:var(--dealer-fs-body,14.5px);font-weight:850;cursor:pointer}

/* ---- top bar: square Back + breadcrumb "Products / Brand / Category / Name" ---- */
.pdd-top{display:flex;align-items:center;gap:14px;min-width:0;padding:14px 24px;border-bottom:1px solid #e5e9ef;background:#fff}
.pdd-back-icon{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid #e3e7ee;border-radius:10px;background:#fff;color:#15213a}
.pdd-back-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pdd-back-icon:hover{border-color:#f5a66b;color:#c2410c}
.pdd-crumbs{flex:1 1 auto;min-width:0}
.pdd-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;margin:0;padding:0;list-style:none;color:#8a93a3;font-size:var(--dealer-fs-body,14.5px)}
.pdd-crumbs li{display:inline-flex;align-items:center;min-width:0;max-width:100%}
.pdd-crumbs li+li::before{content:"/";margin:0 10px;color:#c3c9d4}
.pdd-crumb{padding:2px 0;border:0;background:none;color:#8a93a3;font-family:inherit;font-size:var(--dealer-fs-body,14.5px);font-weight:600;cursor:pointer}
.pdd-crumb:hover{color:#c2410c;text-decoration:underline}
.pdd-crumbs [aria-current="page"]{display:inline-block;max-width:min(52ch,60vw);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;color:#15213a;font-weight:700}

/* ---- main grid: gallery / info / purchase summary ---- */
.pdd-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,.85fr);gap:16px;align-items:start;margin:22px 24px 0;min-width:0}
.pdd-card{min-width:0;border:1px solid #eef0f4;border-radius:14px;background:#fff}
.pdd-gallery{min-width:0}
.pdd-gallery.pdd-card{padding:16px}
.pdd-media{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1/1;max-height:380px;border-radius:12px;background:#f4f5f8;overflow:hidden}
/* Whole image always visible (2026-09-26): the frame's height comes from aspect-ratio, which a percentage height
   on an in-flow image does not resolve against -- the image fell back to its natural ratio and tall / square photos
   were clipped by overflow:hidden. Absolutely positioned, both dimensions are definite; contain keeps the aspect
   ratio (no crop, no stretch), centred, for tall, wide and square images alike. */
.pdd-main{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;padding:22px;box-sizing:border-box;background:transparent;mix-blend-mode:multiply}
.pdd-placeholder{font-size:44px}
/* Thumbnail rail (2026-09-26 cleanup): horizontal scroll only. The rail was 2px taller than its box, so Windows
   showed a vertical scroll arrow; overflow-y is hidden and a small inner padding keeps the full thumbnails (and
   the active border) visible. Many thumbnails still scroll sideways with a thin bar. */
.pdd-thumbs{display:flex;gap:10px;margin-top:14px;padding:2px 2px 4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.pdd-thumb{flex:0 0 84px;height:84px;padding:6px;border:2px solid transparent;border-radius:12px;background:#f4f5f8;cursor:pointer}
.pdd-thumb.active{border-color:#f26a21}
.pdd-thumb img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}

/* ---- info card ---- */
.pdd-info.pdd-card{padding:24px}
.pdd-brand{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#c2410c;font-size:var(--dealer-fs-label,13.5px);font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.pdd-brand-logo{position:relative;display:inline-block;flex:none;width:68px;height:28px;overflow:hidden;border:1px solid #e5e9ef;border-radius:6px;background:#fff}
.pdd-brand-logo img{position:absolute;inset:2px 4px;width:calc(100% - 8px);height:calc(100% - 4px);object-fit:contain}
.pdd-name{margin:10px 0 6px;color:#15213a;font-size:var(--dealer-fs-title,27px);font-weight:800;line-height:1.25;letter-spacing:-.01em;overflow-wrap:anywhere}
.pdd-id{color:#7a8494;font-size:var(--dealer-fs-body,14.5px);overflow-wrap:anywhere}
.pdd-divider{height:1px;margin:16px 0 14px;border:0;background:#eef0f4}
.pdd-price-cap{color:#8a93a3;font-size:var(--dealer-fs-badge,12.5px);font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pdd-price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;margin-top:4px;color:#15213a}
.pdd-price-amt{font-size:var(--dealer-fs-display,30px);font-weight:800;line-height:1.15;letter-spacing:-.02em}
.pdd-price-unit{color:#8a93a3;font-size:var(--dealer-fs-emphasis,16px);font-weight:600;white-space:nowrap}
.pdd-price-na{color:#475467;font-size:var(--dealer-fs-h3,19px);font-weight:700}
.pdd-price.is-bulk .pdd-price-amt,.pdd-price.is-bulk+.pdd-bulk-note{color:#0d7a3e}
.pdd-bulk-note{margin-top:6px;color:#0d7a3e;font-size:var(--dealer-fs-label,13.5px);font-weight:700;overflow-wrap:anywhere}
.pdd-bulk-note.pdd-muted-note{color:#7a8494;font-weight:600}
.pdd-gst{margin-top:6px;color:#8a93a3;font-size:var(--dealer-fs-badge,12.5px)}
.pdd-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.pdd-fact{display:grid;gap:2px;min-width:0;padding:10px 12px;border-radius:12px;background:#f5f6f9}
.pdd-fact-k{color:#7a8494;font-size:var(--dealer-fs-tiny,12px);font-weight:700}
.pdd-fact-v{overflow-wrap:anywhere;color:#15213a;font-size:var(--dealer-fs-body,14.5px);font-weight:800}
.pdd-fact-in{background:#eaf7ef}.pdd-fact-in .pdd-fact-v{color:#1f7a4a}
.pdd-fact-low{background:#fff5e5}.pdd-fact-low .pdd-fact-v{color:#a76200}
.pdd-fact-out{background:#fdecec}.pdd-fact-out .pdd-fact-v{color:#b83232}
button.pdd-offer-flag{display:block;margin:16px 0 0;padding:0;border:0;background:none;font-family:inherit;text-align:left;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.pdd-muted{margin:14px 0 0;color:#7a8494;font-size:var(--dealer-fs-label,13.5px)}
.pdd-link{border:0;background:transparent;color:#2336c9;font-weight:850;cursor:pointer;padding:0;text-decoration:underline}

/* ---- purchase summary card ---- */
.pdd-buybox.pdd-card{display:grid;gap:12px;padding:20px}
.pdd-buy-title{margin:0;color:#15213a;font-size:var(--dealer-fs-h4,18px);font-weight:800}
.pdd-buy-qty{display:grid;gap:8px;min-width:0}
.pdd-qty-label{color:#8a93a3;font-size:var(--dealer-fs-badge,12.5px);font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pdd-stepper{display:flex;align-items:stretch;height:44px;min-width:0;overflow:hidden;border:1px solid #e3e7ee;border-radius:10px;background:#fff}
.pdd-stepper:focus-within{border-color:#f5a66b;box-shadow:0 0 0 3px rgba(242,106,33,.14)}
.pdd-stepper:has(input[aria-invalid="true"]){border-color:#ce3d3d}
.pdd-step{flex:0 0 44px;padding:0;border:0;background:#f4f5f8;color:#15213a;font-family:inherit;font-size:var(--dealer-fs-h4,18px);font-weight:700;cursor:pointer}
.pdd-step:hover{background:#eceef3}
.pdd-stepper input{flex:1 1 auto;width:auto;min-width:0;height:100%;padding:0 6px;border:0;background:#fff;color:#15213a;text-align:center;font-family:inherit;font-size:var(--dealer-fs-h3-lg,20px);font-weight:800;-moz-appearance:textfield;appearance:textfield}
.pdd-stepper input::-webkit-inner-spin-button,.pdd-stepper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}
.pdd-stepper input:focus-visible{outline:0}
.pdd-buy-actions{display:grid;gap:10px;min-width:0}
.pdd-add,.pdd-buynow{width:100%;height:44px;padding:0 14px;border:0;border-radius:10px;color:#fff;font-family:inherit;font-size:var(--dealer-fs-body,14.5px);font-weight:800;white-space:nowrap;cursor:pointer}
.pdd-add{background:#f26a21}
.pdd-add:hover:not(:disabled){background:#de5a14}
.pdd-buynow{background:#15213a}
.pdd-buynow:hover:not(:disabled){background:#0d1628}
.pdd-add:disabled,.pdd-buynow:disabled{opacity:.5;cursor:not-allowed}
.pdd-error{margin:0;color:#ce3d3d;font-size:var(--dealer-fs-label,13.5px);font-weight:700}
.pdd-error[hidden]{display:none}
.pdd-notice{margin:0;color:#1f8c57;font-size:var(--dealer-fs-label,13.5px);font-weight:800}
.pdd-back-icon:focus-visible,.pdd-step:focus-visible,.pdd-add:focus-visible,.pdd-buynow:focus-visible,.pdd-tab:focus-visible,.pdd-crumb:focus-visible,.pdd-sim:focus-visible,.pdd-thumb:focus-visible,button.pdd-offer-flag:focus-visible{outline:2px solid #15213a;outline-offset:2px}

/* ---- tabs card: Overview / Specifications / Offers / Similar Products (each only with data) ---- */
.pdd-info-tabs{min-width:0;margin:18px 24px 0;padding:10px;border:1px solid #eef0f4;border-radius:14px;background:#fff}
.pdd-tablist{display:flex;gap:6px;padding:4px;overflow-x:auto;overflow-y:hidden;border-radius:14px;background:#fff;scrollbar-width:thin}
.pdd-tab{flex:none;padding:10px 18px;border:0;border-radius:12px;background:none;color:#5b6577;font-family:inherit;font-size:var(--dealer-fs-body,14.5px);font-weight:700;white-space:nowrap;cursor:pointer}
.pdd-tab:hover{color:#c2410c}
.pdd-tab[aria-selected="true"]{background:#fff1e6;color:#c2410c}
.pdd-tabpanel{padding:18px 12px 8px}
.pdd-tabpanel[hidden]{display:none}
.pdd-tabpanel:focus-visible{outline:2px solid #fbd0b0;outline-offset:2px;border-radius:10px}
.pdd-section{margin-top:22px;padding-top:16px;border-top:1px solid #edf0f4}
.pdd-section h2{margin:0 0 8px;color:#172033;font-size:var(--dealer-fs-emphasis,16px)}
.pdd-tabpanel .pdd-section{margin-top:0;padding-top:0;border-top:0}
.pdd-desc{margin:0;color:#4e5968;font-size:var(--dealer-fs-body,14.5px);line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.pdd-spec-table{width:100%;border-collapse:collapse;table-layout:fixed;color:#4e5968;font-size:var(--dealer-fs-body,14.5px);line-height:1.5}
.pdd-spec-table th,.pdd-spec-table td{padding:10px 14px;border-bottom:1px solid #eef0f4;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.pdd-spec-table th{width:36%;background:#f7f8fb;color:#15213a;font-weight:700}
.pdd-similar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}
.pdd-similar li{display:flex;min-width:0}
.pdd-sim{display:flex;flex-direction:column;gap:4px;width:100%;min-width:0;padding:12px;border:1px solid #eef0f4;border-radius:16px;background:#fff;color:#15213a;font-family:inherit;text-align:left;cursor:pointer}
.pdd-sim:hover{border-color:#e3e7ef;box-shadow:0 10px 24px rgba(21,33,58,.08)}
.pdd-sim-img{position:relative;display:grid;place-items:center;height:120px;overflow:hidden;border-radius:12px;background:#f4f5f8}
.pdd-sim-img img{position:absolute;inset:0;width:100%;height:100%;padding:10px;object-fit:contain;mix-blend-mode:multiply}
.pdd-sim-icon{font-size:34px}
.pdd-sim-icon[hidden]{display:none}
.pdd-sim-brand{margin-top:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#c2410c;font-size:var(--dealer-fs-tiny,12px);font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pdd-sim-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em;font-size:var(--dealer-fs-label,13.5px);font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.pdd-sim-price{margin-top:auto;color:#15213a;font-size:var(--dealer-fs-badge,12.5px);font-weight:800;overflow-wrap:anywhere}
.pdd-empty{display:grid;gap:6px;margin-top:18px;padding:36px;text-align:center;color:#77808e;font-size:var(--dealer-fs-body-lg,15px)}
.pdd-empty strong{color:#172033}

/* ---- responsive ---- */
@media (max-width:1439px){
  .pdd-grid{gap:14px}
  .pdd-gallery.pdd-card{padding:14px}.pdd-info.pdd-card{padding:18px}.pdd-buybox.pdd-card{padding:18px}
}
@media (max-width:1199px){
  .pdd-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
  .pdd-buybox.pdd-card{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;column-gap:24px}
  .pdd-buy-title,.pdd-buybox .pdd-notice{grid-column:1/-1}
  .pdd-buy-actions{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
  .pdd-similar{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .pdd-shell{padding:0 0 20px}
  .pdd-top{gap:10px;padding:12px 14px}.pdd-back-icon{width:40px;height:40px}
  .pdd-grid{grid-template-columns:minmax(0,1fr);gap:16px;margin:14px 12px 0}
  .pdd-buybox.pdd-card{grid-template-columns:minmax(0,1fr)}
  .pdd-info-tabs{margin:16px 12px 0}
}
@media (max-width:760px){
  .pdd-similar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pdd-sim-img{height:96px}
  .pdd-spec-table th{width:42%}.pdd-spec-table th,.pdd-spec-table td{padding:8px 10px}
  .pdd-tab{padding:9px 12px}.pdd-info-tabs{padding:8px}.pdd-tabpanel{padding:14px 6px 6px}
}
@media (max-width:480px){
  .pdd-gallery.pdd-card,.pdd-info.pdd-card,.pdd-buybox.pdd-card{padding:16px}
  .pdd-media{max-height:240px}
  .pdd-thumbs{gap:8px}.pdd-thumb{flex-basis:64px;height:64px}
  .pdd-name{font-size:var(--dealer-fs-h3-lg,20px)}
  .pdd-stepper{height:44px}.pdd-step{flex-basis:44px}.pdd-add,.pdd-buynow{height:44px}
}
