/* SPUTEK PV commerce UI • v6. Shared by catalog, product, cart and checkout. */
:root{--commerce-ink:#231d29;--commerce-muted:#716a77;--commerce-line:#e7e1ec;--commerce-accent:#523269}
.commerce-button{box-sizing:border-box;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:54px;height:54px;margin:0;padding:0 20px;border:1px solid transparent;border-radius:15px;font:650 14px/1.25 Inter,"Helvetica Neue",Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.commerce-button-primary{background:#211b28;color:#fff;box-shadow:0 7px 16px #26183216}
.commerce-button-primary:hover{background:#4e2e66;color:#fff;box-shadow:0 9px 22px #41205322}
.commerce-button-primary>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#ffffff18;font-size:17px}
.commerce-button-secondary{background:#fff;color:#392b45;border-color:#dcd3e4;box-shadow:0 4px 12px #2e173708}
.commerce-button-secondary:hover{background:#f5f0f9;border-color:#bda7ce}
.commerce-button:disabled,.commerce-button[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none}
.commerce-button:focus-visible,.cart-page :focus-visible,.sputek-cart-toast :focus-visible,.checkout-cart-edit:focus-visible{outline:3px solid #9667b8;outline-offset:3px}
.showcase-buttons,.product-action-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch;width:100%;max-width:470px;margin:20px 0 0}
.product-action-row{max-width:none;margin:16px 0 0}
.showcase-buttons .commerce-button,.product-action-row .commerce-button{width:100%}
/* Reset the old black-pill offsets as well as the current commerce buttons. */
.product-showcase-page .showcase-copy .showcase-buttons,.product-purchase .product-action-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important}
.product-showcase-page .showcase-copy .showcase-buttons>:is(a,button),.product-purchase .product-action-row>:is(a,button){box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;position:relative;top:auto!important;bottom:auto!important;width:100%!important;min-width:0!important;height:54px!important;min-height:54px!important;max-height:54px!important;margin:0!important;padding:0 16px!important;border-radius:15px!important;font:650 14px/1.25 Inter,"Helvetica Neue",Arial,sans-serif!important;gap:10px;white-space:normal!important;text-align:center;transform:none!important;vertical-align:middle;text-decoration:none;cursor:pointer}
.product-showcase-page .showcase-copy .showcase-buttons>.black-pill{border:1px solid transparent!important;background:#211b28!important;color:#fff!important;box-shadow:0 7px 16px #26183216!important}
.product-showcase-page .showcase-copy .showcase-buttons>.black-pill::before,.product-showcase-page .showcase-copy .showcase-buttons>.black-pill::after{content:none!important}
.product-showcase-page .showcase-copy .showcase-buttons>.black-pill>span{display:grid!important;place-items:center;width:28px!important;height:28px!important;margin:0!important;border-radius:8px!important;background:#ffffff18!important;transform:none!important}
.showcase-buttons>.showcase-add-cart{border:1px solid #dcd3e4;background:#fff;color:#392b45;box-shadow:0 4px 12px #2e173708}
.commerce-button.is-added{background:#edf6ee;border-color:#bad8bf;color:#286037}
.showcase-live-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:25px}
.showcase-live-price strong{font-size:24px;letter-spacing:-.04em;color:var(--commerce-ink)}
.showcase-live-price span{font-size:12px;color:var(--commerce-muted)}
.commerce-loading,.commerce-error{padding:32px;border:1px solid var(--commerce-line);border-radius:20px;background:#fff;line-height:1.6}
/* Toast: a clear confirmation, visible action and optional dismissal. */
.sputek-cart-toast{position:fixed;z-index:2100;right:24px;bottom:24px;box-sizing:border-box;display:grid;grid-template-columns:36px minmax(0,1fr) 28px;align-items:start;gap:12px;width:min(420px,calc(100vw - 32px));padding:20px;border:1px solid #e3d9ec;border-radius:22px;background:#fff;color:var(--commerce-ink);box-shadow:0 18px 60px #27133629;animation:cart-toast-in .2s ease-out}
.sputek-toast-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#ede6f4;color:#573376;font-size:20px}
.sputek-cart-toast-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.sputek-cart-toast-copy strong{font-size:15px;line-height:1.4}
.sputek-cart-toast-copy span{font-size:12px;line-height:1.5;color:#716779;overflow-wrap:anywhere}
.sputek-toast-close{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:#f5f1f8;color:#73677c;font-size:21px;cursor:pointer}
.sputek-cart-toast-link{grid-column:2 / 4;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:0 16px;border-radius:12px;background:#33223f;color:#fff;font-size:13px;font-weight:700;text-decoration:none}
.sputek-cart-toast-link:hover{background:#55356d}
@keyframes cart-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
/* Basket */
.cart-page{background:#f7f5f8;color:var(--commerce-ink)}
.cart-page [hidden]{display:none!important}
.cart-main{max-width:1220px;width:calc(100% - 64px);margin:0 auto;padding:150px 0 90px;min-height:75vh}
.cart-eyebrow{font-size:11px;font-weight:700;color:#88768e;letter-spacing:.17em}
.cart-title-row{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:18px 0 36px}
.cart-title-row h1{margin:0;font-size:clamp(34px,4.6vw,58px);line-height:1.08;letter-spacing:-.05em}
.cart-title-row a{display:inline-flex;align-items:center;min-height:42px;color:#60456f;font-size:13px;font-weight:600;text-decoration:none}
.cart-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.cart-list{display:grid;gap:16px;min-width:0}
.cart-line{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:22px;border:1px solid #e8e2ec;border-radius:22px;background:#fff;box-shadow:0 5px 24px #2e183b05;min-width:0}
.cart-image{display:grid;place-items:center;grid-row:1 / 3;align-self:start;width:112px;height:132px;border-radius:16px;background:#f5f4f7;border:1px solid #eeebf2;overflow:hidden}
.cart-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;padding:10px;object-fit:contain}
.cart-line-body{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.cart-product-name{font-size:15px;font-weight:650;line-height:1.45;color:var(--commerce-ink);text-decoration:none;overflow-wrap:anywhere}
.cart-product-name:hover{color:#6d3e8b}
.cart-product-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:#857b8b}
.cart-product-meta>span{background:#f3eff7;padding:4px 8px;border-radius:6px;font-size:11px;color:#6c4f7c}
.cart-line-body p{margin:0;font-size:12px;line-height:1.6;color:var(--commerce-muted)}
.cart-line-body p b{color:#4c4255;font-weight:600}
.cart-line-actions{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:12px;border-top:1px solid #f0edf3;min-width:0}
.cart-quantity{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #e4dce9;border-radius:12px;background:#f9f7fb}
.cart-quantity button{appearance:none;width:38px;height:38px;border:0;border-radius:8px;background:#fff;color:#3f2e4b;font:500 20px/1 Arial;cursor:pointer;box-shadow:0 1px 3px #26183208}
.cart-quantity button:hover:not(:disabled){background:#ede4f5}
.cart-quantity button:disabled{opacity:.35;cursor:not-allowed}
.cart-quantity span{min-width:28px;text-align:center;font-size:13px;font-weight:700}
.cart-line-total{display:flex;flex-direction:column;gap:4px;text-align:right;white-space:nowrap}
.cart-line-total span{font-size:10px;color:#8a7f90}
.cart-line-total strong{font-size:20px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.cart-remove{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 10px;border:1px solid #f0e5eb;border-radius:9px;background:#fcf8fa;color:#9b526a;font:550 11px/1.2 Inter,Arial,sans-serif;cursor:pointer}
.cart-remove:hover{border-color:#e0b8c7;background:#f9ecf1}
.cart-remove svg{width:14px;height:14px;flex-shrink:0}
.cart-summary{position:sticky;top:112px;padding:28px;border:1px solid #e5dce9;border-radius:24px;background:#fff;box-shadow:0 10px 40px #2e183b08}
.cart-summary-kicker{display:block;font-size:10px;font-weight:700;letter-spacing:.16em;color:#927e9c;margin-bottom:10px}
.cart-summary h2{margin:0 0 28px;font-size:23px;letter-spacing:-.035em}
.cart-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:13px;color:#7a6f82}
.cart-summary-row strong{color:#483850;font-weight:600}
.cart-summary-total{border-top:1px solid #e9e1ed;padding-top:24px;margin-top:24px;align-items:baseline;flex-wrap:wrap}
.cart-summary-total strong{font-size:27px;letter-spacing:-.05em;color:#34243e;font-variant-numeric:tabular-nums;white-space:nowrap}
.cart-checkout-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;margin-top:24px;padding:12px;border:0;border-radius:14px;background:#2d2038;color:#fff;font:650 14px/1.4 Inter,Arial,sans-serif;cursor:pointer;box-shadow:0 8px 18px #4026511a}
.cart-checkout-btn:hover:not(:disabled){background:#54356c}
.cart-checkout-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.cart-checkout-note{margin:16px 0 0;padding:12px;border-radius:10px;background:#f6f2fa;color:#6d557c;font-size:12px;line-height:1.55}
.cart-secure{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;color:#85768f;font-size:11px}
.cart-empty{padding:60px 24px;border:1px solid #e6deec;border-radius:24px;background:#fff;text-align:center}
.cart-empty h2{font-size:28px;margin:0 0 12px;letter-spacing:-.04em}
.cart-empty p{color:#7c7084;line-height:1.6;max-width:400px;margin:0 auto 24px}
.cart-empty a{display:inline-flex;padding:15px 24px;border-radius:13px;background:#33233f;color:#fff;text-decoration:none;font-size:14px;font-weight:650}
.cart-stock-alert{color:#ae3853!important;font-weight:600}.cart-line.unavailable{border-color:#e8c9d1}
.cart-line.unavailable:not(:has(.cart-image)) .cart-line-body{grid-column:1 / -1}
/* Order summary uses article/dl elements to avoid old generic div/span overrides. */
.checkout-page .order-summary-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.checkout-page .order-summary-head h2{font-size:22px;line-height:1.25;letter-spacing:-.035em;color:#31253b;margin:0}
.checkout-page .order-summary-head>span{font-size:11px;white-space:nowrap;padding:6px 9px;background:#f1ebf6;color:#795c8a;border-radius:8px}
.checkout-page .buy-summary{display:grid;gap:12px}
.checkout-page .order-item{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:start;gap:12px;padding:16px;border:1px solid #e9e2ef;border-radius:16px;background:#fcfbfd;min-width:0}
.checkout-page .order-item-image{display:block;width:56px;height:72px;object-fit:contain;padding:5px;background:#f3f0f6;border-radius:10px}
.checkout-page .order-item-body{min-width:0}
.checkout-page .order-item-name{display:block;font-size:13px;font-weight:650;line-height:1.45;text-decoration:none;color:#36283f;overflow-wrap:anywhere}
.checkout-page .order-item-power{font-size:11px;color:#8b7795;margin:5px 0 0}
.checkout-page .order-item-facts{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding-top:12px;border-top:1px solid #eae3ef;font-variant-numeric:tabular-nums}
.checkout-page .order-item-facts>div{display:flex;flex-direction:column;gap:5px}
.checkout-page .order-item-facts>div:last-child{grid-column:1 / -1;flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px}
.checkout-page .order-item-facts dt{font-size:10px;color:#8a7994}
.checkout-page .order-item-facts dd{font-size:12px;color:#51405d;margin:0;font-weight:600}
.checkout-page .order-item-facts>div:last-child dd{font-size:17px;color:#3c254c;font-weight:750;white-space:nowrap}
.checkout-page .checkout-stock-status{grid-column:1 / -1;font-size:12px;font-style:normal;line-height:1.5;color:#99763c}
.checkout-page .checkout-stock-status.is-out{color:#ab3c50}
.checkout-page .checkout-cart-edit{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:46px;margin:2px 0 0;padding:10px 14px;border:1px solid #d9cbe5;border-radius:12px;background:#f4eef9;color:#644079;text-decoration:none;font-size:13px;font-weight:650;transition:background .18s}
.checkout-page .checkout-cart-edit:hover{background:#ece2f5}
.checkout-page .checkout-total-row{flex-wrap:wrap;gap:12px}
.checkout-page .checkout-total-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.checkout-page .order-summary-card{max-height:calc(100dvh - 130px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d8c9e3 transparent}
@media(max-width:1100px){.cart-grid{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.cart-summary{padding:24px}.cart-line{grid-template-columns:90px minmax(0,1fr);padding:18px;gap:14px}.cart-image{width:90px;height:114px}.cart-line-actions{grid-column:1 / -1}.cart-remove{min-height:40px}.cart-main{width:calc(100% - 40px);padding-top:125px}}
@media(max-width:900px){.cart-grid{grid-template-columns:1fr}.cart-summary{position:static}.cart-line{grid-template-columns:104px minmax(0,1fr)}.cart-image{width:104px;height:124px}.cart-line-actions{grid-column:2}.checkout-page .order-summary-card{position:static!important;max-height:none}}
@media(max-width:700px){.cart-title-row{align-items:flex-start;flex-direction:column;gap:10px;margin:14px 0 24px}.cart-main{width:calc(100% - 32px);padding-top:115px;padding-bottom:50px}.cart-line{grid-template-columns:76px minmax(0,1fr);padding:16px;gap:13px}.cart-image{width:76px;height:94px;grid-row:auto}.cart-line-actions{grid-column:1 / -1}.cart-product-name{font-size:14px}.cart-product-meta{font-size:11px}.cart-line-total strong{font-size:18px}.cart-summary{padding:24px;border-radius:22px}.sputek-cart-toast{right:16px;bottom:16px;padding:16px;gap:10px}.showcase-buttons{max-width:none;gap:10px}.commerce-button{height:52px;min-height:52px;padding:0 12px;font-size:12px;gap:8px}.product-action-row{gap:10px}.commerce-button-primary>span{width:24px;height:24px}.checkout-page .order-item{padding:14px}.checkout-page .order-summary-head h2{font-size:21px}.checkout-page .order-item-name{font-size:13px}}
@media(max-width:700px){.product-showcase-page .showcase-copy .showcase-buttons>:is(a,button),.product-purchase .product-action-row>:is(a,button){padding:0 10px!important;font-size:12px!important;gap:7px}}
@media(max-width:380px){.product-showcase-page .showcase-copy .showcase-buttons>:is(a,button),.product-purchase .product-action-row>:is(a,button){padding:0 8px!important;font-size:11px!important;gap:6px}.showcase-buttons .commerce-button-primary>span,.product-action-row .commerce-button-primary>span{flex:0 0 20px;width:20px;height:24px}.cart-line-actions{gap:10px}.cart-line-total{margin-left:auto}.cart-remove{order:3;width:100%}.cart-title-row h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){.commerce-button,.sputek-cart-toast{transition:none;animation:none}}
/* Keep both checkout cards in one explicit grid; legacy tablet columns used to persist. */
.product-showcase-page .showcase-product::before,.product-showcase-page .showcase-product::after{left:0!important;right:0!important}
.checkout-page .live-checkout-grid{grid-template-columns:minmax(320px,.85fr) minmax(0,1.35fr)!important}
.checkout-page .live-checkout-grid>.checkout-card{min-width:0}
@media(max-width:1000px){.checkout-page .live-checkout-grid{grid-template-columns:minmax(0,1fr)!important}.checkout-page .live-checkout-grid>.order-summary-card,.checkout-page .live-checkout-grid>.checkout-form-card{grid-column:1!important;grid-row:auto!important;position:static!important;top:auto!important;max-height:none}.checkout-page .checkout-main.checkout-live-main{width:calc(100% - 32px)!important;max-width:760px}}
