:root {
    --page: #f6f4ef;
    --surface: #fff;
    --surface-soft: #f0f5f8;
    --surface-warm: #fff8e8;
    --ink: #182330;
    --muted: #617080;
    --line: #d8e0e6;
    --line-strong: #b8c6d1;
    --brand: #1f557c;
    --brand-dark: #153b59;
    --brand-soft: #e8f1f7;
    --gold: #f4b740;
    --gold-dark: #6a4500;
    --success: #21724a;
    --danger: #b83b4b;
    --danger-soft: #fff0f2;
    --shadow-sm: 0 2px 8px rgba(26, 51, 72, .07);
    --shadow-md: 0 14px 34px rgba(26, 51, 72, .1);
    --shell: 1280px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { margin: 0 auto; max-width: var(--shell); padding-inline: 28px; }

.utility { background: var(--brand-dark); color: #eef6fb; font-size: .78rem; padding: 8px 0; }
.utility .shell { display: flex; justify-content: space-between; }
.store-header { background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 20; }
.header-main { align-items: center; display: grid; gap: 28px; grid-template-columns: auto minmax(280px, 1fr) auto; min-height: 82px; }
.brand { align-items: center; display: flex; gap: 12px; min-width: max-content; text-decoration: none; }
.brand img { height: 48px; object-fit: contain; width: 48px; }
.brand strong { color: var(--brand-dark); display: block; font-size: 1.03rem; letter-spacing: -.01em; }
.brand small { color: var(--gold-dark); display: block; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.search { display: flex; filter: drop-shadow(0 1px 2px rgba(21, 59, 89, .08)); }
.search input { background: #fff; border: 2px solid var(--brand); border-radius: 8px 0 0 8px; color: var(--ink); min-width: 0; padding: 11px 14px; width: 100%; }
.search input::placeholder { color: #7e8a95; }
.search input:focus { box-shadow: 0 0 0 3px rgba(31, 85, 124, .16); outline: 0; }
.search button { background: var(--brand); border: 0; border-radius: 0 8px 8px 0; color: #fff; cursor: pointer; font-weight: 850; padding: 0 22px; }
.search button:hover { background: var(--brand-dark); }
.header-actions { align-items: center; display: flex; gap: 10px; }
.header-actions a { border: 1px solid var(--line); border-radius: 8px; color: var(--brand-dark); font-size: .84rem; font-weight: 800; padding: 11px 14px; text-decoration: none; white-space: nowrap; }
.header-actions a:hover { background: var(--brand-soft); border-color: var(--line-strong); }
.header-actions .cart-link { background: var(--surface-warm); border-color: #edcf91; color: #5d3b00; }
.store-menu-toggle { align-items: center; background: var(--brand); border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: none; font-weight: 900; gap: 9px; padding: 10px 12px; }
.store-menu-toggle span, .store-menu-toggle span::before, .store-menu-toggle span::after { background: currentColor; content: ""; display: block; height: 2px; position: relative; width: 17px; }
.store-menu-toggle span::before { position: absolute; top: -5px; }
.store-menu-toggle span::after { position: absolute; top: 5px; }
.store-mobile-links { display: none; }
.category-bar { background: var(--brand-soft); border-top: 1px solid #e2ebf0; }
.category-bar .shell { display: flex; gap: 6px; overflow-x: auto; padding-block: 9px; scrollbar-width: thin; }
.category-bar a { border-radius: 6px; color: var(--brand-dark); font-size: .84rem; font-weight: 750; padding: 7px 12px; text-decoration: none; white-space: nowrap; }
.category-bar a:hover { background: #fff; box-shadow: var(--shadow-sm); }

.hero { background: linear-gradient(120deg, #edf5f9 0%, #f8f5ed 58%, #fff4d8 100%); border-bottom: 1px solid var(--line); padding: 52px 0 44px; }
.hero-grid { align-items: center; display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr); }
.eyebrow { color: var(--brand); font-size: .76rem; font-weight: 900; letter-spacing: .14em; margin: 0 0 12px; text-transform: uppercase; }
.hero h1 { color: var(--brand-dark); font-size: clamp(2.35rem, 5vw, 4.8rem); letter-spacing: -.055em; line-height: .98; margin: 0; max-width: 820px; }
.hero p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; margin: 20px 0 0; max-width: 710px; }
.promise-grid { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.promise-grid div { border-right: 1px solid var(--line); min-width: 0; padding: 22px 18px; }
.promise-grid div:last-child { border-right: 0; }
.promise-grid strong, .promise-grid span { display: block; }
.promise-grid strong { color: var(--brand-dark); font-size: .84rem; }
.promise-grid span { color: var(--muted); font-size: .74rem; margin-top: 5px; }

.catalog-layout { display: grid; gap: 34px; grid-template-columns: 230px minmax(0, 1fr); padding-block: 38px 76px; }
.filters { align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: 142px; }
.filters h2 { background: var(--brand-dark); color: #fff; font-size: .78rem; letter-spacing: .1em; margin: 0; padding: 16px 18px; text-transform: uppercase; }
.filters a { border-top: 1px solid var(--line); color: #35495a; display: block; font-size: .87rem; font-weight: 650; padding: 12px 18px; text-decoration: none; }
.filters a:first-of-type { border-top: 0; }
.filters a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.catalog-head { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 18px; }
.catalog-head h2 { color: var(--brand-dark); font-size: 1.65rem; letter-spacing: -.02em; margin: 0; }
.catalog-head span { color: var(--muted); font-size: .84rem; }
.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.product-card:hover { border-color: #afc1cd; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-image { align-items: center; background: #f5f7f8; border-bottom: 1px solid var(--line); display: flex; height: 250px; justify-content: center; overflow: hidden; }
.product-image img { height: 100%; object-fit: contain; transition: transform .2s ease; width: 100%; }
.product-card:hover .product-image img { transform: scale(1.02); }
.product-placeholder { align-items: center; color: #81919e; display: flex; font-size: 2.7rem; font-weight: 900; justify-content: center; }
.product-copy { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-badges { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.product-meta, .fulfillment-badge { border-radius: 999px; display: inline-flex; font-size: .66rem; font-weight: 900; letter-spacing: .07em; padding: 5px 8px; text-transform: uppercase; }
.product-meta { background: var(--brand-soft); color: var(--brand); }
.fulfillment-badge { background: var(--surface-warm); color: var(--gold-dark); }
.product-copy h3 { color: var(--ink); font-size: 1.02rem; line-height: 1.32; margin: 11px 0 7px; }
.product-copy h3 a { text-decoration: none; }
.product-copy p { color: var(--muted); font-size: .84rem; margin: 0 0 18px; }
.product-footer { align-items: end; display: flex; gap: 14px; justify-content: space-between; margin-top: auto; }
.product-price { display: grid; gap: 3px; }
.product-footer strong { color: var(--ink); font-size: 1.12rem; }
.product-footer a { background: var(--gold); border: 1px solid #dfa52f; border-radius: 7px; color: #3d2800; font-size: .78rem; font-weight: 900; padding: 9px 12px; text-decoration: none; white-space: nowrap; }
.product-footer a:hover { background: #ffc95d; }
.stock { color: var(--success); display: block; font-size: .72rem; font-weight: 750; }
.stock.low { color: #9a5800; }
.stock.partner { color: var(--brand); }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); color: var(--muted); padding: 58px 28px; text-align: center; }
.empty h1, .empty h2, .empty h3 { color: var(--brand-dark); }
.empty a { color: var(--brand); font-weight: 800; }

.detail { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.05fr) minmax(370px, .82fr); padding-block: 48px 82px; }
.detail-image { align-items: center; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); display: flex; min-height: 560px; overflow: hidden; }
.detail-image img { height: 100%; max-height: 680px; object-fit: contain; width: 100%; }
.detail-copy { min-width: 0; }
.detail-copy .crumb { color: var(--muted); font-size: .82rem; }
.detail-copy .crumb a { color: var(--brand); font-weight: 750; text-decoration: none; }
.detail-copy h1 { color: var(--brand-dark); font-size: clamp(2.1rem, 4vw, 3.7rem); letter-spacing: -.05em; line-height: 1.02; margin: 18px 0 12px; }
.detail-copy .lead { color: #44596a; font-size: 1.08rem; margin-bottom: 16px; }
.detail-copy > p:not(.lead):not(.detail-price) { color: var(--muted); }
.detail-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.detail-trust span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: #415667; font-size: .76rem; font-weight: 750; padding: 7px 10px; }
.detail-price { color: var(--ink); font-size: 1.8rem; font-weight: 900; margin: 22px 0 14px; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 22px; }
.buy-box label { color: #33495b; display: block; font-size: .78rem; font-weight: 850; margin-bottom: 7px; }
.buy-box select, .buy-box input, .summary input, .summary select { background: #fff; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); padding: 12px; width: 100%; }
.buy-box select:focus, .buy-box input:focus, .summary input:focus, .summary select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 85, 124, .14); outline: 0; }
.buy-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 96px; }
.buy-box button, .checkout-button { background: var(--gold); border: 1px solid #dfa52f; border-radius: 8px; color: #3e2900; cursor: pointer; display: block; font-weight: 950; margin-top: 15px; padding: 14px 18px; text-align: center; text-decoration: none; width: 100%; }
.buy-box button:hover, .checkout-button:hover { background: #ffc85a; }
.buy-box button:disabled { background: #e5e8ea; border-color: #d3d8dc; color: #78838d; cursor: not-allowed; }
.availability { align-items: center; color: var(--success); display: flex; font-size: .8rem; font-weight: 800; gap: 7px; margin: 2px 0 14px; }
.availability::before { background: currentColor; border-radius: 50%; content: ""; height: 8px; width: 8px; }
.availability.supplier { color: var(--brand); }
.source-note { border-top: 1px solid var(--line); color: var(--muted); font-size: .79rem; margin-top: 20px; padding-top: 15px; }
.purchase-notes { display: grid; gap: 9px; margin-top: 16px; }
.purchase-notes p { align-items: start; color: var(--muted); display: flex; font-size: .78rem; gap: 8px; margin: 0; }
.purchase-notes b { color: var(--brand); }

.cart-page { padding-block: 42px 82px; }
.cart-page > h1 { color: var(--brand-dark); font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.045em; margin: 0 0 10px; }
.cart-intro { color: var(--muted); margin: 0 0 26px; }
.cart-layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr) 370px; }
.cart-list { display: grid; gap: 12px; }
.cart-item { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; grid-template-columns: 90px minmax(180px, 1fr) 94px 112px auto; padding: 15px; }
.cart-item img, .cart-item > .product-placeholder { background: #f4f6f7; border: 1px solid var(--line); border-radius: 7px; height: 78px; object-fit: contain; width: 78px; }
.cart-item h2 { color: var(--ink); font-size: .98rem; line-height: 1.3; margin: 0 0 5px; }
.cart-item h2 a { text-decoration: none; }
.cart-item small { color: var(--muted); display: block; font-size: .76rem; }
.cart-fulfillment { color: var(--brand); font-weight: 750; margin-top: 5px; }
.quantity-form label { color: var(--muted); display: block; font-size: .7rem; font-weight: 750; margin-bottom: 4px; }
.cart-item input { background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); padding: 9px; width: 74px; }
.cart-item > strong { text-align: right; }
.remove-button { background: transparent; border: 0; color: var(--danger); cursor: pointer; font-size: .78rem; font-weight: 850; padding: 7px; }
.remove-button:hover { text-decoration: underline; }
.summary { align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 23px; position: sticky; top: 142px; }
.summary h2 { color: var(--brand-dark); margin: 0 0 12px; }
.summary dl { margin: 0; }
.summary dl div { display: flex; gap: 18px; justify-content: space-between; padding: 9px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total { border-top: 1px solid var(--line); color: var(--ink); font-size: 1.17rem; font-weight: 900; margin-top: 8px; padding-top: 16px; }
.summary .checkout-button { margin-top: 18px; }
.delivery-choice { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.delivery-choice label { color: var(--brand-dark); display: block; font-size: .82rem; font-weight: 850; margin-bottom: 7px; }
.delivery-choice input, .delivery-choice select { margin-bottom: 10px; }
.delivery-choice .checkout-button { background: var(--brand); border-color: var(--brand); color: #fff; }
.delivery-choice .checkout-button:hover { background: var(--brand-dark); }
.summary-assurances { background: var(--brand-soft); border-radius: 8px; color: #455b6c; display: grid; font-size: .76rem; gap: 5px; margin-top: 18px; padding: 12px; }
.notice { background: var(--brand-soft); border: 1px solid #bdd2e0; border-radius: 9px; color: #27465d; margin-bottom: 18px; padding: 14px 16px; }
.notice.error { background: var(--danger-soft); border-color: #e2aab2; color: #852737; }
.site-footer { background: #edf1f3; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; padding: 32px 0; }
.site-footer .shell { display: flex; justify-content: space-between; }
.site-footer a { color: var(--brand); font-weight: 700; }

@media (max-width: 1020px) {
    .header-main { grid-template-columns: 1fr auto; gap: 14px; }
    .search { grid-column: 1 / -1; grid-row: 2; padding-bottom: 15px; }
    .hero-grid { grid-template-columns: 1fr; }
    .promise-grid { max-width: 680px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .filters h2 { border-radius: 10px 10px 0 0; }
    .filters a { border: 0; display: inline-block; padding: 12px 14px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail { grid-template-columns: 1fr; }
    .detail-image { min-height: 450px; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 680px) {
    .shell { padding-inline: 16px; }
    .utility { display: none; }
    .header-main { gap: 12px; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 70px; }
    .brand img { height: 40px; width: 40px; }
    .brand small { display: none; }
    .store-menu-toggle { display: flex; }
    .header-actions a:not(.cart-link) { display: none; }
    .header-actions a { padding: 9px 11px; }
    .category-bar { display: none; }
    .store-header.is-open .category-bar { display: block; }
    .category-bar .shell { display: grid; gap: 3px; overflow: visible; padding-block: 10px 14px; scrollbar-width: none; }
    .category-bar a { padding: 10px 12px; }
    .store-mobile-links { border-top: 1px solid var(--line); display: grid; gap: 3px; margin-top: 5px; padding-top: 5px; }
    .category-bar .shell::-webkit-scrollbar { display: none; }
    .search button { padding-inline: 15px; }
    .hero { padding: 34px 0; }
    .hero-grid { gap: 28px; }
    .promise-grid { grid-template-columns: 1fr; }
    .promise-grid div { border-bottom: 1px solid var(--line); border-right: 0; padding: 15px 17px; }
    .promise-grid div:last-child { border-bottom: 0; }
    .catalog-layout { padding-top: 24px; }
    .filters { display: none; }
    .product-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-image { height: 170px; }
    .product-copy { padding: 12px; }
    .product-copy p { display: none; }
    .product-badges { gap: 4px; }
    .fulfillment-badge { display: none; }
    .product-footer { align-items: stretch; flex-direction: column; gap: 10px; }
    .product-footer a { text-align: center; }
    .detail { gap: 28px; padding-top: 24px; }
    .detail-image { min-height: 350px; }
    .buy-row { grid-template-columns: 1fr 88px; }
    .cart-page { padding-top: 28px; }
    .cart-item { align-items: start; grid-template-columns: 70px minmax(0, 1fr) 78px; padding: 12px; }
    .cart-item img, .cart-item > .product-placeholder { height: 62px; width: 62px; }
    .cart-item > strong { grid-column: 2; text-align: left; }
    .cart-item > form:last-child { grid-column: 3; grid-row: 2; }
    .site-footer .shell { display: grid; gap: 8px; }
}
@media (max-width: 440px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-image { height: 225px; }
    .category-bar .shell { padding-inline: 10px; }
}
