:root {
    --ink: #202923;
    --muted: #6e756e;
    --line: #e5e7e1;
    --surface: #fff;
    --canvas: #fff;
    --accent: #176548;
    --accent-dark: #124c37;
    --soft: #eef4ef;
}

body { background: var(--canvas); }
.topbar { position:sticky; top:0; z-index:30; box-shadow:0 2px 10px rgb(22 35 27 / 4%); }
.topbar-inner { width:min(100%,1280px); min-height:58px; padding:0 24px; gap:18px; }
.brand-logo { height:38px; max-width:136px; }
.nav { flex:none; }
.nav a { color:var(--ink); font-size:13px; }
.language-switch { margin-left:0; padding-left:0; border:0; }
.header-search { max-width:440px; margin-left:auto; }
.header-search input { min-height:38px; border-color:#eceee9; background:#f7f8f5; }
.cart-link { min-height:38px; border:0; background:transparent; }
main { width:min(100%,1280px); min-height:0; padding:18px 24px 26px; }
.hero { grid-template-columns:minmax(0,1fr) 230px; gap:22px; min-height:174px; margin-bottom:20px; padding:17px 22px; border:0; border-radius:8px; background:#f4f6f1; }
.hero h1 { max-width:610px; font-family:Georgia,"Times New Roman",serif; font-size:34px; font-weight:500; line-height:1.08; }
.hero-copy>p:not(.eyebrow) { margin:7px 0 11px; font-size:14px; }
.hero .eyebrow { color:#8b5137; }
.hero .btn { min-height:39px; }
.hero-image-link { display:block; height:140px; overflow:hidden; border-radius:5px; background:#fff; }
.hero-image-link img { display:block; width:100%; height:100%; object-fit:contain; }
.store-section { margin-bottom:24px; }
.category-section { margin-bottom:23px; }
.category-heading { display:flex; align-items:baseline; gap:9px; margin:0 0 9px; }
.category-heading h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:500; }
.category-heading span { color:var(--muted); font-size:12px; }
.category-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; }
.category-tile { position:relative; display:flex; min-width:0; min-height:78px; align-items:center; gap:11px; padding:8px; border:1px solid var(--line); border-radius:6px; background:#fff; transition:border-color .16s ease,transform .16s ease; }
.category-tile:hover { transform:translateY(-2px); border-color:#a8bdad; }
.category-tile img { width:60px; height:60px; flex:none; border-radius:4px; background:#f5f5f1; object-fit:cover; }
.category-tile strong { font-size:13px; line-height:1.25; }
.products-heading { align-items:baseline; margin-bottom:12px; }
.products-heading h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:25px; font-weight:500; }
.products-heading .eyebrow { display:none; }
.product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px 13px; }
.product-card { border:0; border-radius:5px; box-shadow:none; }
.product-card:hover { box-shadow:0 5px 20px rgb(27 42 32 / 9%); }
.product-card>a { overflow:hidden; background:#f6f6f3; }
.product-image,.product-image-fallback { aspect-ratio:.82; object-fit:contain; background:#f6f6f3; transition:transform .25s ease; }
.product-card:hover .product-image { transform:scale(1.025); }
.product-content { gap:6px; padding:10px 2px 2px; }
.product-category { font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.product-content h3 { min-height:2.35em; font-size:15px; line-height:1.2; }
.product-price-block { justify-content:flex-start; }
.retail-price { font-size:18px; }
.quantity-price { color:#5d675f; font-size:12px; }
.stock-note { font-size:11px; }
.add-form { grid-template-columns:58px minmax(0,1fr); gap:6px; margin-top:3px; }
.quantity-input { min-height:43px; border-color:#dfe3dc; }
.add-button { min-height:43px; padding:8px 10px; }
.business-section { grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; margin:28px 0 22px; padding:17px 19px; border:0; border-radius:6px; background:#f4f6f1; }
.business-section h2,.campos-section h2 { font-family:Georgia,"Times New Roman",serif; font-size:21px; font-weight:500; }
.business-section p:not(.eyebrow) { margin-top:3px; font-size:13px; }
.bulk-banner { display:none; }
.business-section .btn { min-width:145px; }
.trust-strip { display:flex; flex-wrap:wrap; justify-content:center; gap:9px 18px; margin:15px 0; padding:12px 14px; border:0; border-radius:0; background:#f8f8f5; text-align:center; }
.trust-strip div { display:block; }
.trust-strip div strong { font-size:12px; font-weight:650; }
.trust-strip div span,.trust-strip p { display:none; }
.campos-section { grid-template-columns:minmax(0,1fr) auto auto; gap:14px; margin:15px 0 0; padding:12px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; }
.campos-section .eyebrow { display:none; }
.campos-section h2 { font-family:inherit; font-size:13px; font-weight:700; }
.campos-section p:not(.eyebrow) { margin:2px 0 0; font-size:11px; }
.campos-banner { width:100px; max-height:46px; opacity:.8; }
.campos-section .btn { min-height:34px; padding:6px 10px; font-size:11px; }
.store-footer { margin-top:0; padding:20px 24px 16px; border-top:1px solid var(--line); background:#fafaf8; text-align:left; }
.footer-inner { display:grid; grid-template-columns:1.4fr repeat(3,minmax(120px,1fr)); gap:25px; width:min(100%,1232px); margin:auto; }
.footer-brand img { display:block; width:112px; height:34px; object-fit:contain; object-position:left center; }
.footer-brand p { margin:4px 0; color:var(--muted); font-size:12px; }
.footer-brand small { color:var(--muted); font-size:11px; }
.footer-group { display:grid; align-content:start; gap:6px; }
.footer-group h2 { margin:0 0 2px; font-size:12px; }
.footer-group a { color:#59645c; font-size:12px; }
.footer-group a:hover { color:var(--accent); text-decoration:underline; }
.detail-layout { gap:32px; }
.pwa-status { position:relative; z-index:29; display:flex; align-items:center; justify-content:center; gap:10px; padding:9px 14px; color:#fff; font-size:13px; text-align:center; }
.pwa-status[hidden],.pwa-install[hidden],[data-install-app][hidden],[data-ios-install][hidden] { display:none !important; }
.pwa-offline-status { background:#8a4934; }
.pwa-update-status { justify-content:space-between; background:#176548; }
.pwa-update-status .btn { min-height:34px; padding:6px 11px; border-color:#fff; background:#fff; color:#176548; }
.pwa-install { display:grid; justify-items:start; gap:7px; margin-top:10px; }
.pwa-install .btn { min-height:36px; padding:6px 10px; font-size:12px; }
.pwa-install details { color:var(--ink); font-size:12px; }
.pwa-install summary { color:var(--accent); cursor:pointer; font-weight:700; }
.pwa-install details p { max-width:260px; margin:5px 0 0; }

@media (min-width: 1280px) {
    .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    body { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
    .topbar-inner { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; gap:6px 8px; padding:7px 12px; }
    .brand { grid-column:1; grid-row:1; }
    .brand-logo { height:34px; max-width:112px; }
    .nav { grid-column:2; grid-row:1; }
    .nav a { padding:6px 5px; font-size:12px; }
    .language-switch { grid-column:3; grid-row:1; }
    .cart-link { grid-column:4; grid-row:1; min-height:36px; padding:5px; }
    .cart-link span:not(.cart-count) { display:none; }
    .header-search { grid-column:1/-1; grid-row:2; width:100%; max-width:none; }
    main { padding:12px 12px 24px; }
    .hero { grid-template-columns:minmax(0,1fr) 112px; min-height:124px; gap:8px; margin-bottom:15px; padding:12px; }
    .hero h1 { font-size:24px; }
    .hero-copy>p:not(.eyebrow) { margin:4px 0 8px; font-size:12px; }
    .hero .eyebrow { margin-bottom:3px; font-size:9px; }
    .hero-image-link { height:100px; }
    .hero .btn { min-height:36px; padding:7px 10px; font-size:12px; }
    .category-section { margin-bottom:17px; }
    .category-grid { grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:6px; }
    .category-tile { min-height:57px; gap:7px; padding:5px; }
    .category-tile img { width:44px; height:44px; }
    .category-tile strong { font-size:11px; }
    .products-heading { margin-bottom:9px; }
    .products-heading h2 { font-size:22px; }
    .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 9px; }
    .product-image,.product-image-fallback { aspect-ratio:.82; }
    .product-content { gap:5px; padding:8px 1px 1px; }
    .product-content h3 { min-height:2.4em; font-size:13px; }
    .product-category { font-size:9px; }
    .retail-price { font-size:16px; }
    .quantity-price { font-size:11px; }
    .add-form { grid-template-columns:47px minmax(0,1fr); gap:5px; }
    .quantity-input,.add-button { min-height:44px; }
    .add-button { padding:6px 4px; font-size:11px; }
    .business-section { grid-template-columns:minmax(0,1fr); gap:9px; margin:22px 0 15px; padding:13px; }
    .business-section h2 { font-size:19px; }
    .business-section .btn { width:100%; }
    .trust-strip { gap:7px 12px; padding:10px 4px; }
    .trust-strip div strong { font-size:11px; }
    .campos-section { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
    .campos-banner { display:none; }
    .campos-section .btn { width:auto; }
    .footer-inner { grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px 14px; }
    .footer-brand { grid-column:1/-1; }
    .store-footer { padding:16px 15px calc(16px + env(safe-area-inset-bottom)); }
    .pwa-status { justify-content:space-between; padding:9px 12px; font-size:12px; text-align:left; }
}

@media (max-width: 380px) {
    .topbar-inner { grid-template-columns:minmax(0,1fr) auto auto auto; gap:5px; }
    .brand-logo { max-width:96px; }
    .nav a { font-size:11px; }
    .hero { grid-template-columns:minmax(0,1fr) 88px; }
    .hero-image-link { height:86px; }
    .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.product-card { container-type:inline-size; display:block; }
.product-content { grid-template-columns:minmax(0,1fr); }
.product-content,.product-content h3,.product-price-block,.quantity-price,.add-form { min-width:0; }
.product-content h3 { min-height:0; overflow-wrap:anywhere; }
.product-image,.product-image-fallback { object-fit:contain; }
.add-form { width:100%; grid-template-columns:minmax(48px,28%) minmax(0,1fr); }
.add-form .quantity-input,.add-form .add-button { min-width:0; }
.add-form .add-button { white-space:normal; overflow-wrap:anywhere; line-height:1.2; }

@container (max-width: 184px) {
    .add-form { grid-template-columns:minmax(0,1fr); }
    .add-form .quantity-input,.add-form .add-button { width:100%; }
}