.shop-page{--shop-bg:#f5f8f6;--shop-surface:#fff;--shop-text:#18382e;--shop-muted:#566960;--shop-border:#dce5df;--shop-action:#156348;margin:0;background:var(--shop-bg);color:var(--shop-text);font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html[data-theme="dark"] .shop-page{--shop-bg:#101c17;--shop-surface:#192a22;--shop-text:#e6f1eb;--shop-muted:#afc4b7;--shop-border:#365044;--shop-action:#237b58}
.shop-page *{box-sizing:border-box}.shop-page a{color:inherit;text-underline-offset:3px}.shop-page img{max-width:100%}.shop-page h1{font-size:clamp(1.8rem,4vw,2.7rem);line-height:1.15;margin:.7rem 0 1rem}.shop-page h2{font-size:1.2rem;line-height:1.3;margin:0 0 1rem}.shop-page p{margin:.65rem 0}.shop-header{background:#0c3f2e;color:#fff}.shop-header-inner{max-width:1320px;margin:auto;padding:14px 24px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}.shop-logo{width:145px;height:66px;object-fit:contain;border-radius:4px;background:#fff}.shop-header nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap;flex:1}.shop-header nav a{text-decoration:none;font-size:.95rem}.shop-header nav a[aria-current]{text-decoration:underline}.shop-header .appearance-control{margin-left:auto}.shop-main{max-width:1320px;margin:auto;padding:28px 24px 64px;min-height:70vh}.shop-heading{margin-bottom:28px}.shop-heading>p:first-child{font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;color:var(--shop-muted)}.shop-store-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}.shop-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.shop-product,.shop-panel{border:1px solid var(--shop-border);border-radius:14px;background:var(--shop-surface);overflow:hidden}.shop-product{display:flex;flex-direction:column}.shop-product>img,.shop-placeholder{width:100%;height:210px;object-fit:contain;background:var(--shop-surface);padding:12px}.shop-placeholder{display:flex;justify-content:center;align-items:center;background:#edf3ef}.shop-placeholder img{max-width:70%;border-radius:5px}.shop-product-body{padding:20px;display:flex;flex:1;flex-direction:column;gap:10px}.shop-product-body h2{font-size:1.08rem;margin:0}.shop-product-body p{color:var(--shop-muted);font-size:.9rem;overflow-wrap:anywhere}.shop-price{font-size:1.12rem;margin-top:auto}.shop-panel{padding:24px}.shop-cart{position:sticky;top:20px;scroll-margin-top:20px}.shop-cart-line{border-bottom:1px solid var(--shop-border);padding:15px 0;overflow-wrap:anywhere}.shop-cart-line small,.shop-summary-line small{display:block;color:var(--shop-muted)}.shop-cart-line form{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:10px 0}.shop-cart-line label{font-size:.8rem}.shop-cart-line input{width:75px;display:block}.shop-main button,.shop-button{display:inline-flex;justify-content:center;align-items:center;background:var(--shop-action);color:#fff;border:1px solid transparent;border-radius:8px;padding:11px 16px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;text-align:center;line-height:1.4}.shop-product button,.shop-cart>.shop-button{width:100%}.shop-main button:disabled{opacity:.55;cursor:not-allowed}.shop-page .shop-secondary{padding:8px 10px;background:transparent;color:var(--shop-text);border-color:var(--shop-border);font-size:.85rem}.shop-page .shop-link{padding:8px 3px;background:transparent;color:var(--shop-text);font-size:.85rem;text-decoration:underline}.shop-page input,.shop-page textarea{background:var(--shop-surface);color:var(--shop-text);border:1px solid var(--shop-border);padding:11px;border-radius:7px;font:inherit;max-width:100%}.shop-page :focus-visible{outline:3px solid #68bc86;outline-offset:3px}.shop-totals{display:grid;grid-template-columns:1fr auto;gap:10px;padding-top:16px;border-top:1px solid var(--shop-border);font-size:.95rem}.shop-muted{color:var(--shop-muted);font-size:.85rem}.shop-notice,.shop-error{padding:14px 18px;border:1px solid var(--shop-border);background:var(--shop-surface);border-radius:8px;margin-bottom:18px}.shop-error{border-color:#bd635c}.shop-checkout-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:32px;align-items:start;margin-top:28px;max-width:1100px}.shop-checkout-form{display:flex;flex-direction:column;gap:20px}.shop-checkout-form label:not(.shop-radio){display:flex;flex-direction:column;gap:6px}.shop-checkout-form small{color:var(--shop-muted);font-size:.83rem}.shop-checkout-form fieldset{border:1px solid var(--shop-border);border-radius:8px;padding:16px}.shop-radio{display:flex;gap:10px;align-items:center;margin:10px 0}.shop-checkout-form [hidden]{display:none!important}.shop-summary{position:sticky;top:20px}.shop-summary-line{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--shop-border);font-size:.95rem}.shop-summary-line strong{white-space:nowrap}.shop-prepared{max-width:720px;margin:50px auto}.shop-prepared .shop-button{margin-top:15px}.shop-footer{background:#0c3f2e;color:#fff;padding:28px 24px;text-align:center}.shop-footer a{margin-left:20px}.shop-pagination{margin-top:24px}.shop-pagination svg{width:20px;height:20px}.shop-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1150px){.shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-store-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:760px){.shop-header-inner{padding:12px 16px;gap:12px}.shop-logo{width:115px;height:52px}.shop-header nav{order:3;flex-basis:100%;gap:18px;justify-content:space-between}.shop-header .appearance-control{margin-left:auto}.shop-main{padding:24px 16px 40px}.shop-store-layout,.shop-checkout-layout{grid-template-columns:1fr;gap:24px}.shop-cart,.shop-summary{position:static}.shop-panel{padding:20px}.shop-product-body{padding:14px}.shop-product>img,.shop-placeholder{height:170px}.shop-products{gap:12px}.shop-product button{padding:10px;font-size:.88rem}.shop-summary-line{flex-wrap:wrap}.shop-footer a{display:block;margin:10px 0 0}}
@media(prefers-reduced-motion:reduce){.shop-page *{scroll-behavior:auto}}

/* Store-only layout. Global navigation/footer are shared with Drago home. */
.shop-page .shop-main{max-width:1120px;margin:auto;padding:36px 0 64px;width:min(1120px,calc(100% - 44px))}
.shop-page .fd-header .appearance-toggle{width:34px;height:34px;padding:0;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:9px}
.shop-page .fd-shop-cart-link{font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.shop-page .fd-shop-cart-link:hover{text-decoration:underline}
@media(max-width:760px){.shop-page .shop-main{width:calc(100% - 28px);padding:28px 0 44px}.shop-page .fd-shop-cart-link{margin-left:auto}}

/* The store inherits public typography and header design. */
.shop-page{font-family:"DM Sans",system-ui,-apple-system,sans-serif}
.shop-page .fd-header .appearance-toggle{width:30px;height:30px;min-width:30px;background:transparent;color:#d9e9df;border:1px solid #ffffff44;border-radius:8px;padding:0}
.shop-page .fd-shop-cart-link{display:inline-flex;background:#fff;color:#173c2d;text-decoration:none}

/* Slide-out cart, independent of product grid and shared Drago header. */
.shop-page .shop-store-layout{display:block}
.shop-page .shop-products{grid-template-columns:repeat(3,minmax(0,1fr))}
.shop-cart-backdrop{position:fixed;inset:0;z-index:180;background:rgba(5,18,13,.48);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s}
.shop-cart-drawer{position:fixed;right:0;top:0;bottom:0;z-index:181;width:min(420px,100vw);background:var(--shop-surface);color:var(--shop-text);box-shadow:-18px 0 46px #0002;transform:translateX(102%);visibility:hidden;transition:transform .3s ease,visibility .3s;display:flex;flex-direction:column}
.shop-cart-open{overflow:hidden}
.shop-cart-open .shop-cart-backdrop{opacity:1;visibility:visible}
.shop-cart-open .shop-cart-drawer{transform:translateX(0);visibility:visible}
.shop-cart-drawer__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--shop-border);min-height:64px}
.shop-cart-drawer__header strong{font-size:18px}
.shop-main .shop-cart-drawer__close{font-size:25px;line-height:1;background:transparent;border:0;color:var(--shop-text);padding:5px 11px}
.shop-cart-drawer__body{flex:1;overflow:auto;min-height:0;padding:18px 20px 26px;position:static;border:0;border-radius:0;box-shadow:none}
.shop-cart-drawer__body>h2{display:none}
.shop-cart-drawer__body .shop-button{display:flex;width:100%;margin-top:16px}
@media(min-width:761px) and (max-width:1150px){.shop-page .shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.shop-page .shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.shop-page .shop-products{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.shop-cart-backdrop,.shop-cart-drawer{transition:none}}

/* Cart is rendered outside <main>; buttons must share the same component styles. */
.shop-page .shop-cart-drawer{font-family:"DM Sans",system-ui,sans-serif}
.shop-page .shop-cart-drawer .shop-cart-drawer__close{border:0;background:transparent;color:var(--shop-text);width:36px;height:36px;min-width:36px;padding:0;border-radius:9px;font-size:24px;line-height:1;display:grid;place-items:center;cursor:pointer}
.shop-page .shop-cart-drawer .shop-cart-drawer__close:hover{background:var(--shop-bg)}
.shop-page .shop-cart-drawer .shop-button{background:var(--shop-action);color:#fff;border:1px solid transparent;border-radius:9px;min-height:46px;padding:12px 16px;font-weight:700;align-items:center;justify-content:center;text-decoration:none}
.shop-page .shop-cart-drawer .shop-button:hover{filter:brightness(1.07)}
.shop-page .shop-cart-drawer button.shop-secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--shop-border);border-radius:8px;background:var(--shop-surface);color:var(--shop-text);padding:9px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.shop-page .shop-cart-drawer button.shop-link{background:transparent;border:0;color:var(--shop-muted);font:inherit;font-size:13px;text-decoration:underline;padding:9px 5px;cursor:pointer}
.shop-page .shop-cart-drawer input{background:var(--shop-surface);color:var(--shop-text);border:1px solid var(--shop-border);border-radius:8px;padding:9px;font:inherit}
.shop-page .shop-cart-drawer .shop-cart-line{margin:0}
.shop-page .shop-product>img{display:block;width:100%;height:220px;object-fit:contain;object-position:center;background:#f0f3f1;padding:16px}
.shop-page .shop-placeholder{height:220px;background:#eff2f0;padding:20px}
.shop-page .shop-placeholder img{display:block;width:auto;height:auto;max-width:65%;max-height:90px;object-fit:contain;object-position:center;margin:auto}
html[data-theme=dark] .shop-page .shop-product>img,html[data-theme=dark] .shop-page .shop-placeholder{background:#303a34}
@media(max-width:760px){.shop-page .shop-product>img,.shop-page .shop-placeholder{height:180px}.shop-page .shop-placeholder img{max-height:78px}}

/* Shared logo crop must not be constrained by generic shop image styles. */
.shop-page .fd-header .fd-brand{width:118px;height:38px;flex:0 0 118px;overflow:hidden}
.shop-page .fd-header .fd-brand img{position:absolute;max-width:none;width:150px;height:150px;left:-17px;top:-61px;object-fit:initial}
/* Same cart slot occupied by appearance control on non-shop pages. */
/* Desktop spacing is controlled by the shared header, not reset by the shop. */
@media(max-width:760px){.shop-page .fd-header .fd-shop-cart-link{margin-left:0}}

/* Leave a glimpse of the store beside the cart on narrow screens. */
@media(max-width:760px){
 .shop-page .shop-cart-drawer{width:min(420px,calc(100vw - 44px))}
 .shop-page .shop-cart-drawer__header{padding-inline:16px}
 .shop-page .shop-cart-drawer__body{padding-inline:16px}
}

/* Minimal, scroll-safe drawer: product list scrolls; checkout never leaves the viewport. */
.shop-page .shop-cart-drawer__body{padding:0;display:flex;flex-direction:column;overflow:hidden;min-height:0}
.shop-page .shop-cart-items{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 20px 18px}
.shop-page .shop-cart-row{display:flex;align-items:start;gap:12px;padding:17px 0;border-bottom:1px solid var(--shop-border);min-width:0}
.shop-page .shop-cart-row__details{min-width:0;flex:1}
.shop-page .shop-cart-row__details>strong{font-size:14px;font-weight:650;line-height:1.4;display:block;overflow-wrap:anywhere}
.shop-page .shop-cart-row__details>small{display:block;color:var(--shop-muted);font-size:12px;margin-top:4px}
.shop-page .shop-cart-row__bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}
.shop-page .shop-cart-row__total{font-size:13px;font-weight:700;white-space:nowrap}
.shop-page .shop-quantity-stepper{display:inline-flex;align-items:center;border:1px solid var(--shop-border);border-radius:9px;height:34px;overflow:hidden;flex:none}
.shop-page .shop-quantity-stepper button{background:transparent;color:var(--shop-text);border:0;border-radius:0;width:33px;height:32px;min-height:0;padding:0;font-size:19px;font-weight:450;line-height:1}
.shop-page .shop-quantity-stepper button:hover:not(:disabled){background:var(--shop-bg)}
.shop-page .shop-quantity-stepper output{min-width:24px;text-align:center;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.shop-page .shop-quantity-stepper button:disabled{opacity:.28}
.shop-page .shop-cart-remove{display:grid;place-items:center;flex:none;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:8px;background:transparent;color:var(--shop-muted);border:0}
.shop-page .shop-cart-remove:hover{background:var(--shop-bg);color:var(--shop-text)}
.shop-page .shop-cart-remove svg{width:17px;height:17px}
.shop-page .shop-cart-remove-form{margin:0;flex:none}
.shop-page .shop-cart-footer{flex:none;margin-top:auto;padding:18px 20px max(20px,env(safe-area-inset-bottom));border-top:1px solid var(--shop-border);background:var(--shop-surface)}
.shop-page .shop-cart-subtotal{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:15px}
.shop-page .shop-cart-subtotal strong{font-size:17px;font-variant-numeric:tabular-nums}
.shop-page .shop-cart-note{font-size:12px;color:var(--shop-muted);margin:7px 0 15px}
.shop-page .shop-cart-footer .shop-cart-checkout{display:flex;width:100%;margin:0;min-height:46px;align-items:center;justify-content:center}
.shop-page .shop-cart-empty{padding:28px 20px;color:var(--shop-muted);font-size:14px;margin:0}
@media(max-width:760px){.shop-page .shop-cart-items{padding-inline:16px}.shop-page .shop-cart-footer{padding-inline:16px}.shop-page .shop-cart-row__bottom{gap:6px}.shop-page .shop-cart-row__total{font-size:12px}}

/* Keep mobile cart comfortably narrow while preserving the outside backdrop. */
@media(max-width:760px){.shop-page .shop-cart-drawer{width:min(350px,calc(100vw - 44px))}}

/* Cart controls: price and remove action share the bottom row. */
.shop-page .shop-cart-row__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.shop-page .shop-cart-row__bottom{gap:8px}
.shop-page .shop-cart-row__total{font-variant-numeric:tabular-nums}
.shop-page .shop-cart-remove,
.shop-page .shop-cart-drawer .shop-cart-drawer__close{
  background:var(--shop-bg);color:var(--shop-text);
  border:1px solid var(--shop-border);
}
.shop-page .shop-cart-remove:hover,
.shop-page .shop-cart-drawer .shop-cart-drawer__close:hover{
  background:var(--shop-border);
}
@media(max-width:400px){
  .shop-page .shop-cart-row__actions{gap:5px}
  .shop-page .shop-cart-row__total{font-size:11px}
  .shop-page .shop-cart-remove{width:30px;min-width:30px;height:30px;min-height:30px}
}

/* Product remove is aligned with unit price, not with quantity and line total. */
.shop-page .shop-cart-row__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;min-width:0}
.shop-page .shop-cart-row__meta small{display:block;min-width:0;color:var(--shop-muted);font-size:12px}
.shop-page .shop-cart-row__meta .shop-cart-remove-form{margin:0;flex:none}
