
.shop-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:960px;margin:0 auto}
.shop-card{color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:8px}
.shop-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;background:var(--muted);transition:transform .25s ease,opacity .2s ease}
.shop-card:hover img{transform:scale(1.025);opacity:.92}
.shop-card strong,.shop-card span{display:block}
.shop-card strong{font-size:15px}
.shop-card:hover strong{color:var(--primary)}
.shop-card span{font-size:13px;color:var(--muted-foreground)}
.shop-card-price{font-weight:700;font-size:14px}
.shop-card-actions{display:flex;gap:8px;margin-top:4px}
.shop-card-actions .button,.shop-detail-actions .button,button.button{cursor:pointer}
.shop-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);gap:40px;align-items:center;max-width:880px;margin:0 auto}
.shop-detail-image{border-radius:16px;overflow:hidden}
.shop-detail-image img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.shop-kicker{color:var(--primary);font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.shop-detail h1{font-size:32px;line-height:1.1;margin:8px 0 4px}
.shop-name{margin:0 0 20px;color:var(--muted-foreground)}
.shop-price{font-size:18px;font-weight:700;margin:24px 0}
.shop-detail-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.shop-qty{display:inline-flex;align-items:center;gap:8px}
.shop-qty input{width:64px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--background);color:inherit}
.shop-toolbar{display:flex;justify-content:flex-end;gap:12px;max-width:960px;margin:0 auto 18px}
.shop-toolbar a{font-size:14px}
.shop-cart-layout,.shop-checkout-form{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.85fr);gap:28px;max-width:960px;margin:0 auto;align-items:start}
.shop-cart-list{display:grid;gap:14px}
.shop-cart-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto auto auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.shop-cart-thumb img{width:72px;height:72px;object-fit:cover;border-radius:8px;display:block}
.shop-cart-meta{display:grid;gap:2px}
.shop-cart-meta span{color:var(--muted-foreground);font-size:13px}
.shop-cart-qty{display:grid;gap:4px;font-size:12px;color:var(--muted-foreground)}
.shop-cart-qty input{width:64px;padding:6px;border:1px solid var(--border);border-radius:8px;background:var(--background);color:inherit}
.shop-cart-line{font-weight:700}
.shop-cart-remove{border:0;background:transparent;color:var(--muted-foreground);cursor:pointer;font-size:13px}
.shop-cart-summary,.shop-checkout-summary,.shop-checkout-main > section{border:1px solid var(--border);border-radius:12px;padding:18px;background:var(--card)}.shop-checkout-main{display:grid;gap:18px}
.shop-cart-summary h2,.shop-checkout-form h2,.shop-checkout-summary h2{margin:0 0 12px;font-size:18px}
.shop-cart-summary p,.shop-checkout-total{display:flex;justify-content:space-between;gap:12px;margin:8px 0}
.shop-cart-summary .button,.shop-checkout-summary .button{display:block;text-align:center;margin-top:14px}
.shop-cart-continue{display:block;text-align:center;margin-top:10px;font-size:14px;color:var(--muted-foreground)}
.shop-cart-empty{max-width:480px;margin:40px auto;text-align:center;display:grid;gap:16px}
.shop-checkout-form label{display:grid;gap:6px;margin:0 0 12px;font-size:14px}
.shop-checkout-form input,.shop-checkout-form textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--background);color:inherit;font:inherit}
.shop-pay-option{display:flex!important;align-items:center;gap:10px;margin:0 0 10px;justify-content:flex-start!important}.shop-pay-option input{width:auto;margin:0;flex:0 0 auto;accent-color:var(--primary)}.shop-checkout-form .shop-pay-option span{flex:0 1 auto;line-height:1.35;white-space:normal}.shop-pay-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.shop-pay-options .shop-pay-option{min-height:72px;margin:0;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--background);cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.shop-pay-options .shop-pay-option:hover{border-color:color-mix(in srgb,var(--primary) 60%,var(--border))}.shop-pay-options .shop-pay-option:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,var(--background));box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 18%,transparent)}.shop-pay-options .shop-pay-option:focus-within{outline:3px solid color-mix(in srgb,var(--primary) 36%,transparent);outline-offset:2px}.shop-pay-option--brand img{width:44px;height:44px;object-fit:contain;flex:0 0 44px}.shop-pay-option-copy{display:grid!important;gap:2px;min-width:0}.shop-pay-option-copy strong{font-size:14px}.shop-pay-option-copy small{font-size:12px;color:var(--muted-foreground)}@media(prefers-reduced-motion:reduce){.shop-pay-options .shop-pay-option{transition:none}}
.shop-pay-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shop-checkout-summary ul{list-style:none;padding:0;margin:0 0 12px}
.shop-checkout-summary li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent);font-size:14px}
.shop-success{max-width:640px;margin:0 auto;padding:12px 0 40px}
.shop-success ul{list-style:none;padding:0;margin:18px 0}
.shop-success li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}
.shop-success-actions{display:flex;gap:16px;align-items:center;margin-top:20px;flex-wrap:wrap}
.starcore-cart-link span[data-shop-cart-count]{display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;margin-left:.35rem;padding:0 .35rem;border-radius:999px;background:var(--primary);color:#fff;font-size:11px;font-weight:700}
.starcore-cart-icon{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:999px;color:var(--muted-foreground,#71717a);background:transparent;text-decoration:none!important;flex:0 0 auto}
.starcore-cart-icon:hover{color:var(--foreground,#18181b);background:rgba(124,32,255,.08)}
.starcore-cart-icon svg{width:21px;height:21px;display:block}
.starcore-cart-icon span[data-shop-cart-count]{position:absolute;top:4px;right:2px;display:inline-grid;place-items:center;min-width:1.05rem;height:1.05rem;margin:0;padding:0 .28rem;border-radius:999px;background:var(--primary,#7f22fe);color:#fff;font-size:10px;font-weight:700;line-height:1}
.shop-toolbar a span[data-shop-cart-count]{display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;margin-left:.35rem;padding:0 .35rem;border-radius:999px;background:var(--primary);color:#fff;font-size:11px;font-weight:700}
.starcore-shop-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(12px);opacity:0;pointer-events:none;z-index:80;padding:10px 14px;border-radius:999px;background:#18181b;color:#fff;font-size:13px;transition:opacity .2s ease,transform .2s ease}
.starcore-shop-toast[data-show="1"]{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:800px){
  .shop-collection{gap:10px}
  .shop-detail,.shop-cart-layout,.shop-checkout-form{grid-template-columns:1fr;gap:20px}
  .shop-detail h1{font-size:26px}
  .shop-cart-row{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"thumb meta" "qty line" "remove remove"}
  .shop-cart-thumb{grid-area:thumb}
  .shop-cart-meta{grid-area:meta}
  .shop-cart-qty{grid-area:qty}
  .shop-cart-line{grid-area:line;justify-self:end}
  .shop-cart-remove{grid-area:remove;justify-self:start}
}
@media(max-width:640px){
  .shop-collection{grid-template-columns:1fr 1fr}
  .shop-card strong{font-size:12px}
  .shop-card span{font-size:11px}
}
/* Match the main site's semantic colors, typography and controls. */
.mw-shop{--card:var(--surface);--muted-foreground:var(--muted-ink);width:min(1120px,100%);margin:auto;padding:28px 24px 96px;min-height:65vh}
.mw-shop [hidden]{display:none!important}.mw-shop .muted{color:var(--muted-ink)}
.shop-toolbar{max-width:none;align-items:center;justify-content:space-between;margin-bottom:32px;gap:16px}
.shop-breadcrumb{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted-ink)}
.shop-breadcrumb [aria-current=page],.shop-breadcrumb a:hover{color:var(--primary-ink)}
.shop-cart-shortcut{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-height:40px}
.shop-cart-shortcut:hover{background:var(--soft)}.shop-cart-shortcut svg,.shop-card-actions svg{width:18px;height:18px;flex-shrink:0}
.shop-heading{text-align:center;max-width:740px;margin:32px auto 48px}
.shop-kicker{display:inline-block;margin:0 0 16px;padding:5px 12px;border:1px solid color-mix(in srgb,var(--purple) 15%,var(--line));border-radius:99px;background:var(--soft);color:var(--primary-ink);font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:none}
.shop-heading h1{font-size:clamp(28px,3vw,40px);line-height:1.25;letter-spacing:-.035em;margin:0 0 16px;font-weight:700}
.shop-heading>p:last-child{max-width:620px;margin:auto;color:var(--muted-ink);font-size:15px;line-height:1.9;text-wrap:pretty}
.shop-collection{max-width:none;gap:24px}
.shop-card{gap:0;min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;transition:border-color .18s,box-shadow .18s}
.shop-card:hover{border-color:color-mix(in srgb,var(--purple) 35%,var(--line));box-shadow:0 8px 28px #2413390a}
.shop-card-image{display:block;margin:12px 12px 0;border-radius:11px;overflow:hidden;background:var(--soft);aspect-ratio:1}
.shop-card-image img{width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .35s}
.shop-card:hover img{transform:none;opacity:1}.shop-card-image:hover img{transform:scale(1.035)}
.shop-card-content{padding:20px;display:flex;flex-direction:column;flex:1}
.shop-card-label{color:var(--primary-ink);font-size:11px;font-weight:600;letter-spacing:.03em;margin:0 0 6px}
.shop-card h2{font-size:18px;font-weight:600;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}.shop-card h2 a:hover{color:var(--primary-ink)}
.shop-card-description{font-size:13px;color:var(--muted-ink);margin:0 0 20px}
.shop-card-price{font-size:22px;font-weight:600;letter-spacing:-.025em;font-variant-numeric:tabular-nums;margin-top:auto;margin-bottom:18px}
.shop-card-actions{align-items:center;gap:16px;margin-top:0;padding-top:18px;border-top:1px solid var(--line)}
.mw-shop .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border:1px solid transparent;border-radius:10px;background:var(--purple);color:#fff;font-weight:500;font-size:14px;text-align:center;line-height:1.4;cursor:pointer;transition:background .18s}
.mw-shop .button:hover{background:#7020d9}.mw-shop .button:disabled{opacity:.5;cursor:wait}
.shop-card-actions .button{flex:1;padding-inline:10px}.shop-card-actions .button span{color:inherit;font-size:inherit}
.shop-detail-link{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--muted-ink);white-space:nowrap}.shop-detail-link:hover{color:var(--primary-ink)}
.mw-shop .shop-button-secondary{border-color:var(--line);background:var(--surface);color:var(--fg)}.mw-shop .shop-button-secondary:hover{background:var(--soft);border-color:var(--primary-ink)}
.mw-shop :is(a,button,input,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 45%,transparent);outline-offset:3px}
.shop-detail{max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:64px;margin:40px 0 24px}
.shop-detail-image{border-radius:20px;border:1px solid var(--line)}.shop-detail h1{font-size:clamp(28px,3vw,36px);line-height:1.35;letter-spacing:-.025em;margin:0 0 20px}
.shop-detail .muted{line-height:1.9;font-size:15px;margin:0}.shop-price{font-size:30px;font-weight:600;font-variant-numeric:tabular-nums;margin:28px 0;padding-bottom:24px;border-bottom:1px solid var(--line)}
.shop-qty{display:flex;gap:18px;font-size:14px;margin-bottom:24px}.shop-qty input,.shop-cart-qty input{min-height:44px;background:var(--surface);border-color:var(--line)}
.shop-detail-actions{gap:12px}.shop-detail-actions .button{flex:1;min-width:140px}.shop-detail-actions>a{flex-basis:100%;text-align:center;padding:8px;color:var(--muted-ink);font-size:13px}
.shop-cart-layout,.shop-checkout-form{max-width:none;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr)}
.shop-cart-row{grid-template-columns:80px minmax(0,1fr) auto;gap:14px;padding:20px;border-radius:16px}.shop-cart-thumb{grid-row:span 2}.shop-cart-thumb img{width:80px;height:80px;border-radius:10px}
.shop-cart-meta{min-width:0;gap:4px}.shop-cart-meta strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.shop-cart-qty{display:flex;align-items:center;gap:8px}.shop-cart-qty input{width:62px;min-height:38px}
.shop-cart-line{grid-column:2;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.shop-cart-remove{justify-self:end;min-height:36px;padding:5px 8px;font-size:12px}.shop-cart-remove:hover{color:var(--danger-ink)}
.shop-cart-summary,.shop-checkout-summary,.shop-checkout-main>section{border-radius:16px;padding:24px}.shop-cart-summary,.shop-checkout-summary{position:sticky;top:88px;background:var(--soft)}
.shop-cart-summary h2,.shop-checkout-form h2{margin-bottom:20px;font-weight:600}.shop-cart-summary .muted{font-size:12px;line-height:1.8;display:block}
.shop-cart-summary .button,.shop-checkout-summary .button{width:100%}.shop-cart-continue{font-size:13px;padding:4px 0}.shop-cart-layout:has(.shop-cart-empty){display:block}
.shop-cart-empty{max-width:520px;margin:20px auto;padding:52px 24px;border:1px dashed var(--line);border-radius:18px;background:var(--soft)}.shop-cart-empty p{margin:0 0 8px;font-size:16px;color:var(--muted-ink)}
.shop-checkout-form label{margin-bottom:18px;font-size:13px}.shop-checkout-form input,.shop-checkout-form textarea{min-height:44px;background:var(--surface);border-color:var(--line);border-radius:9px}.shop-pay-option input{min-height:0}
.shop-checkout-summary li{padding:12px 0}.shop-checkout-summary li strong{white-space:nowrap;font-variant-numeric:tabular-nums}.shop-checkout-total{font-size:18px;padding-top:12px}
.shop-success{max-width:680px;margin:40px auto;padding:32px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.shop-success h1{font-size:32px;line-height:1.3;margin:0 0 20px}
.starcore-shop-toast{max-width:calc(100vw - 32px);padding:12px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--fg);box-shadow:0 8px 32px #0002;z-index:200}
@media(max-width:900px){.shop-collection{gap:16px}.shop-card-content{padding:16px}.shop-card h2{font-size:16px}.shop-card-actions{gap:10px;flex-wrap:wrap}.shop-detail{gap:32px}.shop-cart-layout,.shop-checkout-form{grid-template-columns:1fr}.shop-cart-summary,.shop-checkout-summary{position:static}}
@media(max-width:640px){.mw-shop{padding:20px 20px 64px}.shop-toolbar{margin-bottom:24px}.shop-heading{margin:28px auto 32px}.shop-heading h1{font-size:28px}.shop-heading>p:last-child{font-size:14px}.shop-collection{grid-template-columns:1fr;gap:24px;max-width:420px;margin:auto}.shop-card-content{padding:20px}.shop-card h2{font-size:19px}.shop-card-actions{flex-wrap:nowrap}.shop-detail{grid-template-columns:1fr;gap:28px;margin-top:24px}.shop-detail h1{font-size:28px}.shop-price{margin:20px 0}.shop-cart-row{grid-template-columns:64px minmax(0,1fr);grid-template-areas:none;padding:16px;gap:12px}.shop-cart-row>*{grid-area:auto}.shop-cart-thumb{grid-row:1}.shop-cart-thumb img{width:64px;height:64px}.shop-cart-qty{grid-column:1/-1}.shop-cart-line{grid-column:1;justify-self:start}.shop-cart-remove{grid-column:2;justify-self:end}.shop-cart-summary,.shop-checkout-summary,.shop-checkout-main>section{padding:20px}.shop-pay-row{grid-template-columns:1fr;gap:0}.shop-success{padding:24px}}
@media(prefers-reduced-motion:reduce){.shop-card,.shop-card-image img,.mw-shop .button,.starcore-shop-toast{transition:none}.shop-card-image:hover img{transform:none}}
.mw-header nav>a[aria-current=page]{background:var(--soft);color:var(--primary-ink);border-radius:6px}

/* Customer order and after-sales forms follow the active language direction. */
.shop-success form{display:grid;gap:16px;margin-block:20px;text-align:start}
.shop-success form label{display:grid;gap:7px;min-width:0}
.shop-success form input,.shop-success form select,.shop-success form textarea{width:100%;min-width:0;min-height:44px;font-size:16px;box-sizing:border-box}
.shop-success form button{justify-self:start;min-height:44px}
.shop-success form [role=alert]{margin:0;overflow-wrap:anywhere}
.shop-success [data-order-details]{overflow-wrap:anywhere;text-align:start}
.shop-success [data-order-details]:empty{display:none}
