.gear-shop-page.xfg-shop-commerce-page { background:#1b1b1b; }
.xfg-commerce { width:calc(100% - 96px); max-width:1440px; min-height:440px; margin:0 auto; padding:48px 0 72px; color:#f2f2f2; font:400 16px/1.5 var(--shop-text); }
.xfg-commerce [hidden],.xfg-commerce-dialog [hidden],.xfg-preview-cart [hidden] { display:none!important; }
.xfg-commerce-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:40px; }
.xfg-commerce-heading h1 { margin:0; font:500 40px/1.1 var(--shop-display); letter-spacing:0; text-transform:none; }
.xfg-commerce h2,.xfg-commerce-dialog h2 { margin:0 0 24px; font:500 28px/1.2 var(--shop-display); letter-spacing:0; text-transform:none; }
.xfg-commerce h3 { margin:0 0 8px; font:500 22px/1.3 var(--shop-display); }
.xfg-commerce p { margin:0 0 18px; }
.xfg-commerce-heading form { margin:0; }
.xfg-account-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:72px; }
.xfg-commerce-link,.xfg-commerce a:not(.xfg-commerce-button) { color:#eee; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
button.xfg-commerce-link { border:0; background:transparent; padding:0; cursor:pointer; font:inherit; }
.xfg-commerce-link:hover,.xfg-commerce a:not(.xfg-commerce-button):hover { color:#ffd000; }
.gear-shop-page .xfg-commerce-button,.xfg-preview-cart .xfg-cart-checkout-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 24px; border:1px solid #ffd000; border-radius:3px; color:#111; background:#ffd000; font:500 18px/1.2 var(--shop-display); letter-spacing:0; text-decoration:none; cursor:pointer; transition:background-color .15s,color .15s; }
.gear-shop-page .xfg-commerce-button:hover,.xfg-preview-cart .xfg-cart-checkout-link:hover { color:#fff; background:#6b5900; }
.xfg-commerce-button--wide { width:100%; }
.xfg-commerce button:disabled,.xfg-commerce-dialog button:disabled { cursor:default; opacity:.55; }
.xfg-commerce :focus-visible,.xfg-commerce-dialog :focus-visible { outline:2px solid #ffd000; outline-offset:4px; }
.xfg-commerce-status { color:#ccc; font:400 15px/1.5 var(--shop-text); }
.xfg-commerce-status[data-error] { color:#ffb3b3; }
.xfg-commerce-status:empty { display:none; }
.xfg-commerce-test { display:inline-block; padding:8px 12px; border:1px solid #86732b; border-radius:3px; color:#ffe78a; background:#302b1c; }
.xfg-commerce-muted { color:#bfc0c1; font-size:14px; }
.xfg-commerce-empty { padding:24px 0; border-top:1px solid #454545; }
.xfg-commerce-actions { display:flex; flex-wrap:wrap; align-items:center; gap:24px; margin-top:28px; }
.xfg-commerce-orders { width:100%; border-collapse:collapse; text-align:left; }
.xfg-commerce-orders th { padding:14px 12px; border-block:1px solid #555; color:#ccc; font-weight:400; font-size:14px; }
.xfg-commerce-orders td { padding:20px 12px; border-bottom:1px solid #414141; }
.xfg-commerce-orders th:first-child,.xfg-commerce-orders td:first-child { padding-left:0; }
.xfg-commerce-order-number { white-space:nowrap; }
.xfg-address-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.xfg-address-card { min-width:0; padding:24px; border:1px solid #444; border-radius:8px; }
.xfg-address-card address,.xfg-commerce address { font-style:normal; white-space:pre-line; overflow-wrap:anywhere; margin:0 0 18px; }
.xfg-address-card .xfg-commerce-actions { gap:20px; margin-top:20px; }
.xfg-address-badge { display:inline-block; margin-bottom:18px; font-size:13px; padding:2px 9px; border:1px solid #747474; border-radius:3px; }
.xfg-commerce-dialog { position:fixed; inset:0; width:min(650px,calc(100% - 32px)); max-height:calc(100dvh - 48px); margin:auto; padding:28px; overflow:auto; border:1px solid #555; border-radius:8px; background:#24272a; color:#f2f2f2; font:400 16px/1.5 var(--shop-text); }
.xfg-commerce-dialog::backdrop { background:#000a; }
.xfg-commerce-dialog--small { max-width:480px; }
.xfg-commerce-dialog__head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }
.xfg-commerce-dialog__head h2 { margin:0; }
.xfg-commerce-close { display:flex; flex-shrink:0; justify-content:center; align-items:center; width:36px; height:36px; margin:-5px -8px 0 0; border:0; border-radius:3px; color:#fff; background:transparent; font:400 32px/1 var(--shop-text); cursor:pointer; }
.xfg-commerce-close:hover { background:#444; }
.xfg-address-fields { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.xfg-address-fields label { display:flex; flex-direction:column; gap:8px; font-size:14px; }
.xfg-address-fields input,.xfg-address-fields select { width:100%; min-width:0; height:48px; padding:10px 12px; border:1px solid #616161; border-radius:3px; background:#1b1b1b; color:#fff; font:400 16px/1.3 var(--shop-text); }
.xfg-address-wide { grid-column:1/-1; }
.xfg-address-default { display:flex; align-items:center; gap:10px; margin:22px 0; font-size:14px; }
.xfg-address-default input { width:18px; height:18px; accent-color:#ffd000; }
.xfg-commerce-cart { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:48px; align-items:start; }
.xfg-commerce-cart-lines { list-style:none; padding:0; margin:0; }
.xfg-commerce-cart-line { display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:24px; padding:24px 0; border-top:1px solid #494949; align-items:start; }
.xfg-commerce-cart-line:last-child { border-bottom:1px solid #494949; }
.xfg-commerce-photo { position:relative; width:120px; height:140px; overflow:hidden; background:#e9e9e9; border-radius:8px; }
.xfg-commerce-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.xfg-commerce-photo.is-paired img { width:200%; max-width:none; height:100%; object-fit:cover; }
.xfg-commerce-cart-line h2 { font:500 23px/1.2 var(--shop-display); margin:0 0 8px; }
.xfg-commerce-cart-line h2 a { text-decoration:none!important; }
.xfg-commerce-cart-line p { margin:0 0 12px; }
.xfg-commerce-quantity { display:flex; align-items:center; width:130px; margin:16px 0 12px; border:1px solid #777; border-radius:3px; overflow:hidden; }
.xfg-commerce-quantity button { width:38px; height:40px; padding:0; flex:none; border:0; background:transparent; color:#fff; cursor:pointer; font:400 24px/1 var(--shop-text); }
.xfg-commerce-quantity input { width:52px; height:40px; min-width:0; padding:0; border:0; background:transparent; color:#fff; text-align:center; appearance:textfield; font:400 16px/1 var(--shop-text); }
.xfg-commerce-quantity input::-webkit-inner-spin-button { appearance:none; }
.xfg-commerce-summary { padding:28px; background:#24272a; border:1px solid #3a3d3f; border-radius:8px; }
.xfg-commerce-summary h2 { font-size:28px; }
.xfg-commerce-total { display:flex; gap:20px; justify-content:space-between; border-top:1px solid #555; padding-top:18px; }
.xfg-commerce-summary .xfg-commerce-button { margin:10px 0 20px; }
.xfg-commerce-summary [data-checkout-help] { margin:0; }
.xfg-commerce-receipt { max-width:900px; }
.xfg-commerce-receipt-lines { margin:24px 0; padding:0; list-style:none; }
.xfg-commerce-receipt-lines li { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:16px 0; border-bottom:1px solid #4b4b4b; }
.xfg-commerce-receipt-lines strong { white-space:nowrap; }
.xfg-preview-cart .xfg-cart-checkout-link { width:100%; margin:4px 0 12px; min-height:48px; }
.xfg-preview-cart .xfg-cart-view-link { display:block; text-align:center; margin:0 0 16px; color:#eee; text-decoration:underline; text-underline-offset:4px; font:400 15px/1.4 var(--shop-text); }
@media(min-width:1900px) { .xfg-commerce { padding-block:60px 90px; font-size:20px; }.xfg-commerce-heading h1 { font-size:50px; }.xfg-commerce h2 { font-size:35px; }.gear-shop-page .xfg-commerce-button { min-height:50px; font-size:20px; }.xfg-commerce-orders th,.xfg-commerce-muted { font-size:17px; } }
@media(max-width:1000px) { .xfg-commerce { width:calc(100% - 48px); }.xfg-account-grid { gap:40px; }.xfg-address-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.xfg-commerce-cart { gap:24px; }.xfg-commerce-cart-line { grid-template-columns:96px minmax(0,1fr); gap:16px; }.xfg-commerce-photo { width:96px; height:120px; }.xfg-commerce-line-total { grid-column:2; margin-top:-8px; } }
@media(max-width:700px) { .xfg-commerce { padding-block:32px 48px; min-height:360px; }.xfg-commerce-heading { margin-bottom:28px; gap:20px; }.xfg-commerce-heading h1 { font-size:34px; }.xfg-account-grid,.xfg-commerce-cart { grid-template-columns:1fr; gap:40px; }.xfg-commerce h2 { font-size:26px; }.xfg-address-grid { grid-template-columns:1fr; }.xfg-commerce-orders thead { display:none; }.xfg-commerce-orders tbody,.xfg-commerce-orders tr { display:block; }.xfg-commerce-orders tr { padding:16px 0; border-top:1px solid #555; }.xfg-commerce-orders td { display:flex; justify-content:space-between; gap:20px; border:0; padding:5px 0; }.xfg-commerce-orders td::before { content:attr(data-label); color:#bbb; }.xfg-commerce-dialog { padding:24px 20px; }.xfg-address-fields { gap:16px; }.xfg-commerce-summary { padding:24px; }.xfg-commerce-cart-line h2 { font-size:22px; } }
@media(max-width:380px) { .xfg-address-fields { grid-template-columns:1fr; }.xfg-commerce-actions { gap:20px; }.xfg-commerce-cart-line { grid-template-columns:80px minmax(0,1fr); gap:12px; }.xfg-commerce-photo { width:80px; height:110px; } }
@media(prefers-reduced-motion:reduce) { .xfg-commerce *, .xfg-commerce-dialog *, .xfg-cart-checkout-link { transition:none!important; } }
