/* v429 — shared full product card: fixed three-action header + overlay extra panels. */
.product-modal{position:fixed;inset:0;width:min(1040px,calc(100vw - 16px));max-height:calc(100dvh - 16px);box-sizing:border-box;margin:auto;padding:0;overflow-x:hidden;overflow-y:auto;overflow-anchor:none;overscroll-behavior:contain;border:1px solid #eee;border-radius:18px;color:#222;background:#fff}.product-modal::backdrop{background:rgba(0,0,0,.6)}
.product-modal .modal-head{position:sticky;z-index:40;top:0;display:grid;width:100%;min-height:56px;box-sizing:border-box;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:10px;padding:8px 14px;border-bottom:1px solid #eee;background:rgba(255,255,255,.98);backdrop-filter:blur(8px)}.product-modal .modal-head [data-product-title]{min-width:0;max-width:none;margin:0;overflow-wrap:anywhere;font-size:clamp(17px,1.7vw,21px);line-height:1.18}.product-modal .modal-card-actions{display:grid;width:max-content;min-width:0;grid-template-columns:repeat(3,38px);align-items:center;justify-content:end;gap:7px;margin-left:auto;white-space:nowrap}.product-modal .modal-card-actions>*{display:inline-grid!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;visibility:visible!important;opacity:1!important}.product-modal .modal-card-actions>[data-modal-close]{display:inline-grid!important}
.product-modal .modal-action-btn,.product-modal .close{position:relative;inset:auto;display:inline-grid;width:38px;height:38px;min-width:38px;min-height:38px;box-sizing:border-box;padding:0;place-items:center;border:1px solid rgba(43,48,54,.14);border-radius:12px;color:#7e848c;background:#fff;box-shadow:0 6px 16px rgba(31,35,40,.08);cursor:pointer}.product-modal .modal-action-btn:hover,.product-modal .modal-action-btn:focus-visible,.product-modal .close:hover,.product-modal .close:focus-visible{border-color:rgba(232,119,27,.45);outline:0;box-shadow:0 8px 19px rgba(232,119,27,.15);transform:translateY(-1px)}.product-modal .modal-action-btn--compare .product-compare-toggle__icon{font-size:21px;line-height:1}.product-modal .modal-action-btn--favorite .fav-btn__star{color:#a5a9af;font-size:22px;line-height:1}.product-modal .modal-action-btn--favorite.is-active .fav-btn__star{color:var(--ctm-orange,#f39e32)}.product-modal .modal-action-btn--compare.is-active,.product-modal .modal-action-btn--compare[aria-pressed="true"]{border-color:rgba(211,110,14,.36);color:#fff;background:linear-gradient(145deg,#ffb35f,#f39e32 56%,#e8771b)}
/* Card controls use absolute positioning elsewhere; keep modal controls in their own grid cells. */
.product-modal .modal-card-actions>.modal-action-btn{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important}
.product-modal .modal-card-actions>[data-modal-compare]{grid-column:1;grid-row:1}
.product-modal .modal-card-actions>[data-modal-favorite]{grid-column:2;grid-row:1}
.product-modal .modal-card-actions>[data-modal-close]{grid-column:3;grid-row:1}
/* Center the glyphs independently of the catalog-card icon rules. */
.product-modal .modal-card-actions>.modal-action-btn--compare,
.product-modal .modal-card-actions>.modal-action-btn--favorite{display:grid!important;place-items:center!important;padding:0!important;line-height:1!important}
.product-modal .modal-card-actions .modal-action-btn--compare .product-compare-toggle__icon,
.product-modal .modal-card-actions .modal-action-btn--favorite .fav-btn__star{position:static!important;inset:auto!important;display:grid!important;place-items:center!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;line-height:1!important;text-align:center!important;transform:none!important}
.product-modal .modal-card-actions .modal-action-btn--favorite.is-active .fav-btn__star,
.product-modal .modal-card-actions .modal-action-btn--favorite[aria-pressed="true"] .fav-btn__star{color:var(--ctm-orange,#f39e32)!important;text-shadow:0 3px 10px rgba(245,130,32,.25)!important}
.product-modal .modal-body{display:grid;grid-template-columns:minmax(210px,.86fr) minmax(270px,1.2fr) minmax(205px,.74fr);gap:12px;align-items:stretch;box-sizing:border-box;max-height:none;padding:11px 14px 12px;overflow:visible}.product-modal .modal-media,.product-modal .modal-details,.product-modal .modal-purchase{min-width:0;min-height:0;box-sizing:border-box;border-radius:14px}.product-modal .modal-media{display:grid;min-height:205px;padding:10px;place-items:center;overflow:hidden;border:1px solid #e8eaed;background:#f7f9fb;box-shadow:0 8px 20px rgba(31,35,40,.06)}.product-modal .modal-media img{width:auto;height:auto;max-width:100%;max-height:min(31dvh,285px);object-fit:contain}.product-modal .modal-media__placeholder{color:#8b9096;font-size:13px}.product-modal .modal-details{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid #e8eaed;background:linear-gradient(180deg,#fff,#fbfcfd)}.product-modal .modal-description{margin:0;color:#7b8087;font-size:13px;line-height:1.35}.product-modal .modal-description[hidden]{display:none}.product-modal .specs{display:block;min-width:0}.product-modal .product-core-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin:0}.product-modal .product-core-grid div{min-width:0;padding:5px 7px;border-radius:8px;background:#f5f6f7}.product-modal .product-core-grid dt{color:#747474;font-size:11px;line-height:1.2}.product-modal .product-core-grid dd{margin:1px 0 0;overflow-wrap:anywhere;font-size:13px;font-weight:750;line-height:1.25}
.product-modal .modal-purchase{display:flex;align-self:stretch;flex-direction:column;gap:9px;padding:11px;border:1px solid rgba(232,119,27,.24);background:linear-gradient(180deg,#fffaf4,#fff);box-shadow:0 10px 24px rgba(80,48,18,.07)}.product-modal .modal-purchase__unit{min-height:18px;color:#73777d;font-size:13px;line-height:1.35}.product-modal .modal-purchase__unit strong{display:block;color:#2c2c2c;font-size:13px}.product-modal .modal-purchase__unit[hidden]{display:none}.product-modal .modal-purchase>.product-stock{align-self:center;margin-top:0}.product-modal .modal-purchase__qty-label{display:grid;width:100%;margin-block:auto;gap:5px;justify-items:center;color:#4b4f55;font-size:13px;font-weight:800;text-align:center}.product-modal .qty-stepper{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:8px;padding:4px 7px;border:1px solid #e5e7eb;border-radius:999px;background:#fff}.product-modal .qty-stepper__btn{display:grid;width:28px;height:28px;padding:0;place-items:center;border:1px solid #e5e7eb;border-radius:999px;color:#111827;background:#fff;cursor:pointer}.product-modal .qty-stepper__input{display:block;width:46px;height:28px;min-height:28px;margin:0;padding:0;border:0;line-height:28px;text-align:center;background:transparent}.product-modal .modal-total-weight{width:max-content;max-width:100%;box-sizing:border-box;padding:6px 9px;border:1px solid rgba(232,119,27,.22);border-radius:9px;color:#75420e;background:rgba(255,247,238,.82);font-size:12px;font-weight:700;line-height:1.2}.product-modal .modal-total-weight[hidden]{display:none}.product-modal .modal-cart-btn{display:inline-flex;width:100%;min-height:43px;align-items:center;justify-content:center;gap:7px;padding:6px 11px;border:1px solid rgba(211,117,11,.32);border-radius:13px;color:#2c2c2c;background:linear-gradient(180deg,#fffaf3,#f1f2f4);box-shadow:0 8px 20px rgba(31,35,40,.08);font:inherit;font-weight:750;cursor:pointer}.product-modal .modal-cart-btn:hover{border-color:#e8771b;transform:translateY(-1px)}.product-modal .modal-cart-btn:focus-visible,.product-modal .qty-stepper__btn:focus-visible{outline:2px solid #e8771b;outline-offset:2px}.product-modal .modal-cart-btn img{width:30px;height:30px;object-fit:contain}.product-modal .modal-cart-btn--added,.product-modal .modal-cart-btn.is-added{color:#9d4f0b;border-color:rgba(232,119,27,.42);background:linear-gradient(180deg,#fff3df,#ffe4bd)}.product-modal .solution-modal-return{padding:8px 9px;border:1px solid #ffc28e;border-radius:11px;color:#a34b00;background:#fff;font:inherit;font-size:12px;cursor:pointer}
.product-modal .product-extra-shell{position:relative;z-index:24;min-width:0;margin:0 14px 0;border-top:1px solid #eee;padding-top:9px}.product-modal .product-extra-shell[hidden]{display:none!important}.product-modal .product-extra-shell.has-open-panel{z-index:36}.product-modal .product-extra-tabs{display:flex;min-width:0;gap:5px}.product-modal .product-extra-tabs[hidden]{display:none!important}.product-modal .product-extra-tab{display:inline-flex;min-height:34px;align-items:center;gap:5px;padding:6px 11px;border:1px solid #e2e5e8;border-radius:10px 10px 0 0;color:#555d65;background:#f7f8f9;font:inherit;font-size:13px;font-weight:750;cursor:pointer}.product-modal .product-extra-tab:hover,.product-modal .product-extra-tab:focus-visible{border-color:rgba(232,119,27,.52);color:#8d470b;outline:0}.product-modal .product-extra-tab.is-active{position:relative;z-index:2;border-color:rgba(232,119,27,.42);border-bottom-color:#fff;color:#9b4d08;background:#fff}.product-modal .product-extra-tab[hidden]{display:none!important}.product-modal .product-extra-panel{position:absolute;z-index:1;top:calc(100% - 1px);left:0;right:0;max-height:min(42dvh,360px);box-sizing:border-box;margin:0;padding:10px;overflow:auto;overscroll-behavior:contain;border:1px solid rgba(232,119,27,.28);border-radius:0 12px 12px 12px;background:#fff;box-shadow:0 18px 34px rgba(47,35,25,.18)}.product-modal .product-extra-panel[hidden]{display:none!important}.product-modal .product-related{position:relative;z-index:1;margin:8px 14px 11px;padding-top:9px;border-top:1px solid #eee}.product-modal .product-attributes__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 9px;align-items:start}.product-modal .product-attribute{display:grid;grid-template-columns:minmax(128px,.72fr) minmax(0,1.28fr);min-width:0;gap:7px;align-items:start;padding:5px 7px;border-radius:8px;background:#f8f8f8;font-size:12px;line-height:1.3}.product-modal .product-attribute span{min-width:0;color:#6e7378;overflow-wrap:break-word}.product-modal .product-attribute strong{min-width:0;text-align:right;overflow-wrap:anywhere}.product-modal .product-documents__list{display:grid;gap:6px}.product-modal .product-document-link{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #e6e8eb;border-radius:10px;color:inherit;background:#fafbfc;text-decoration:none}.product-modal .product-document-link span{display:grid;min-width:0;gap:2px}.product-modal .product-document-link b,.product-modal .product-document-link small{overflow-wrap:anywhere}.product-modal .product-document-link small{color:#777d84}.product-modal .product-document-link em{flex:0 0 auto;color:#a34b00;font-style:normal;font-weight:700}.product-modal .product-documents__more summary{margin:4px 0;color:#a34b00;cursor:pointer}.product-modal .product-documents__more .product-document-link{margin-top:6px}
@media(max-width:820px){.product-modal .modal-body{grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr)}.product-modal .modal-purchase{grid-column:1/-1;min-height:0}.product-modal .modal-purchase__qty-label{margin-block:0}}
@media(max-width:560px){.product-modal{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);border-radius:14px}.product-modal .modal-head{min-height:50px;padding:6px 8px;gap:6px;grid-template-columns:minmax(0,1fr) max-content}.product-modal .modal-head [data-product-title]{max-width:none;font-size:15px}.product-modal .modal-card-actions{width:max-content;min-width:0;grid-template-columns:repeat(3,34px);gap:5px}.product-modal .modal-card-actions>*{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}.product-modal .modal-action-btn,.product-modal .close{width:34px;height:34px;min-width:34px;min-height:34px;border-radius:10px}.product-modal .modal-body{grid-template-columns:minmax(0,1fr);gap:9px;padding:9px}.product-modal .modal-media{min-height:170px;padding:7px;aspect-ratio:auto}.product-modal .modal-media img{max-height:200px}.product-modal .product-core-grid,.product-modal .product-attributes__grid{grid-template-columns:1fr}.product-modal .product-extra-shell,.product-modal .product-related{margin-right:9px;margin-left:9px}.product-modal .product-extra-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.product-modal .product-extra-tabs[data-visible-count="1"]{grid-template-columns:minmax(0,1fr)}.product-modal .product-extra-tab{min-width:0;justify-content:center;padding-right:7px;padding-left:7px}.product-modal .product-extra-panel{max-height:min(48dvh,420px);border-radius:0 10px 10px 10px}.product-modal .product-attribute{grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr)}.product-modal .product-document-link{align-items:flex-start}}
.product-modal .product-document-link .product-document-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
.product-modal .product-document-actions a{color:#a34b00;font-weight:700;text-decoration:underline;text-underline-offset:2px}
@media(max-width:560px){.product-modal .product-document-link{flex-wrap:wrap}.product-modal .product-document-actions{margin-left:auto}}

/* RC43: keep the custom minus/plus controls without browser spinner arrows. */
.product-modal .qty-stepper__input[type="number"]{-moz-appearance:textfield!important;appearance:textfield!important;}
.product-modal .qty-stepper__input[type="number"]::-webkit-inner-spin-button,.product-modal .qty-stepper__input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important;}
