/* MboaShop homepage reset: built from the approved MboaShop mockup and supplied artwork. */
:root { --mboa-green:#00884e; --mboa-green-dark:#006e3e; --mboa-navy:#0b2742; --mboa-line:#e6e9e8; --mboa-muted:#62706b; }
a { text-decoration:none; }
.homepage-shell { display:grid; gap:22px; }
.homepage-hero { position:relative; isolation:isolate; width:calc(100% + 44px); height:auto; aspect-ratio:1672 / 941; margin:0 -22px 0; overflow:hidden; background:#f4f3ed; }
.homepage-hero>img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.hero-hotspot { position:absolute; z-index:2; top:65%; height:23%; border-radius:12px; }
.hero-hotspot-shop { left:4.5%; width:20.5%; }
.hero-hotspot-bulk { left:25.5%; width:20%; }
.hero-hotspot:focus-visible { outline:3px solid #0b2742; outline-offset:2px; }
.department-section { margin:0; }
.section-heading { align-items:center; margin-bottom:10px; }
.section-heading h2 { color:var(--mboa-navy); font-size:21px; font-weight:750; }
.section-heading .eyebrow { margin-bottom:1px; color:var(--mboa-green); font-size:12px; letter-spacing:.02em; }
.section-subtitle { margin:2px 0 0; color:var(--mboa-muted); font-size:14px; }
.text-link { color:var(--mboa-green-dark); font-size:13px; font-weight:750; white-space:nowrap; }
.text-link span { font-size:17px; }
.department-track { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(116px,1fr); gap:10px; overflow-x:auto; padding:2px 2px 10px; scroll-snap-type:x mandatory; scrollbar-color:#aebeb5 transparent; scrollbar-width:thin; }
.department-card { display:flex; min-width:0; flex-direction:column; align-items:center; gap:5px; padding:8px 8px 10px; border:1px solid transparent; border-radius:12px; background:#f5f6f5; text-align:center; scroll-snap-align:start; transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.department-card:hover,.department-card:focus-visible { border-color:#c5e3d1; background:#edf7f1; transform:translateY(-2px); }
.department-card.is-selected { border-color:var(--mboa-green); background:#e8f5ed; }
.department-image { display:grid; width:100%; aspect-ratio:1 / 1; overflow:hidden; place-items:center; border-radius:8px; background:#fff; }
.department-image img { display:block; width:100%; height:100%; object-fit:cover; }
.category-fallback { display:grid; width:100%; height:100%; place-items:center; background:#eef4f0; color:var(--mboa-green-dark); font-size:30px; font-weight:750; }
.department-name { display:-webkit-box; min-height:2.5em; overflow:hidden; color:#142c24; font-size:13px; font-weight:700; line-height:1.23; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.department-count { color:#6f7a75; font-size:12px; }
.featured-section { margin:0; }
.featured-heading { margin-bottom:12px; }
.featured-heading h2 { font-size:22px; }
.homepage-product-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.homepage-product-grid .product-card { overflow:hidden; border:1px solid var(--mboa-line); border-radius:10px; box-shadow:0 2px 8px rgb(11 39 66 / 7%); }
.homepage-product-grid .product-image,.homepage-product-grid .product-image-fallback { aspect-ratio:1.85 / 1; background:#f5f6f5; object-fit:contain; box-sizing:border-box; padding:8px; }
.homepage-product-grid .product-content { gap:6px; padding:10px; }
.homepage-product-grid .product-content h3 { min-height:2.35em; color:#142c24; font-size:14px; line-height:1.2; }
.homepage-product-grid .product-category { display:none; }
.homepage-product-grid .product-price-block { margin-top:0; }
.homepage-product-grid .retail-price { color:#07834e; font-size:19px; font-weight:800; }
.homepage-product-grid .quantity-price { width:fit-content; max-width:100%; padding:3px 6px; border-radius:3px; background:#fff4cd; color:#5d4a13; font-size:10px; }
.homepage-product-grid .quantity-price strong { color:#5d4a13; }
.homepage-product-grid .stock-state { margin:0; color:#66736c; font-size:11px; font-weight:650; }
.homepage-product-grid .stock-state.in-stock { color:#087a46; }
.homepage-product-grid .stock-state.unavailable { color:#c54a18; }
.homepage-product-grid .availability-pill { width:fit-content; max-width:100%; padding:3px 6px; border-radius:12px; background:#e7f3ec; color:#176548; font-size:10px; }
.homepage-product-grid .add-form { grid-template-columns:68px minmax(0,1fr); gap:6px; }
.homepage-product-grid .quantity-input,.homepage-product-grid .add-button { min-height:40px; }
.homepage-product-grid .quantity-input { border-radius:6px; }
.homepage-product-grid .add-button { border-radius:6px; background:var(--mboa-green); font-size:12px; }
.homepage-product-grid .add-button:hover { background:var(--mboa-green-dark); }
.homepage-promos { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.promo-card { position:relative; display:block; min-width:0; overflow:hidden; border:1px solid #e6e9e8; border-radius:11px; background:#f7f8f7; }
.promo-card>img { display:block; width:100%; aspect-ratio:4.12 / 1; object-fit:cover; }
.promo-card:hover { box-shadow:0 4px 14px rgb(11 39 66 / 10%); }
.promo-cta { position:absolute; left:51%; bottom:7%; display:inline-flex; align-items:center; min-height:32px; padding:6px 12px; border:1px solid #0b5687; border-radius:7px; background:#fff; color:#0b4672; font-size:12px; font-weight:750; }
.homepage-benefits { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; padding:5px 2px 0; }
.homepage-benefits>div { display:grid; grid-template-columns:28px minmax(0,1fr); align-content:center; align-items:center; gap:0 8px; min-height:48px; }
.homepage-benefits>div>span { grid-row:span 2; display:grid; width:27px; height:27px; place-items:center; border:2px solid var(--mboa-green); border-radius:50%; color:var(--mboa-green); font-size:14px; font-weight:800; }
.homepage-benefits strong { overflow:hidden; color:var(--mboa-navy); font-size:12px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.homepage-benefits small { overflow:hidden; color:var(--mboa-muted); font-size:10px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.catalog-section { margin-top:2px; }
.catalog-controls { display:flex; align-items:center; gap:9px; margin-bottom:13px; color:var(--mboa-muted); font-size:13px; }
.catalog-controls select { min-height:38px; padding:7px 10px; border:1px solid var(--mboa-line); border-radius:7px; background:#fff; color:var(--mboa-navy); font:inherit; }
.catalog-section .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.books-category-banner { display:block; margin:0 0 16px; overflow:hidden; border-radius:11px; }
.books-category-banner img { display:block; width:100%; aspect-ratio:4.12 / 1; object-fit:cover; }
.no-products { margin:12px 0 22px; padding:24px; border:1px solid var(--mboa-line); border-radius:10px; background:#f7f8f7; color:var(--mboa-navy); }
.no-products p { color:var(--mboa-muted); }
.pagination { display:flex; justify-content:center; align-items:center; gap:12px; margin:20px 0; }
.store-footer { margin-top:0; }
.visually-hidden,.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media(max-width:1050px) {
    .homepage-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .homepage-benefits { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .catalog-section .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
    .homepage-shell { gap:17px; }
    .homepage-hero { width:calc(100% + 24px); height:auto; aspect-ratio:1672 / 941; margin-inline:-12px; }
    .homepage-hero>img { object-position:center; }
    .hero-hotspot { top:57%; height:22%; }
    .hero-hotspot-shop { left:4.5%; width:21%; }
    .hero-hotspot-bulk { left:25.5%; width:20%; }
    .department-track { grid-auto-columns:120px; gap:8px; }
    .department-card { padding:7px; border-radius:10px; }
    .department-image { border-radius:7px; }
    .department-name { font-size:12px; }
    .department-count { font-size:11px; }
    .section-heading h2,.featured-heading h2 { font-size:19px; }
    .section-subtitle { font-size:13px; }
    .homepage-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .homepage-product-grid .product-content { padding:8px; }
    .homepage-product-grid .product-content h3 { font-size:13px; }
    .homepage-product-grid .retail-price { font-size:17px; }
    .homepage-product-grid .add-form { grid-template-columns:54px minmax(0,1fr); gap:5px; }
    .homepage-product-grid .quantity-input,.homepage-product-grid .add-button { min-height:42px; }
    .homepage-product-grid .add-button { padding:6px; font-size:11px; white-space:normal; }
    .homepage-promos { grid-template-columns:1fr; gap:8px; }
    .promo-card>img { aspect-ratio:3.5 / 1; }
    .promo-cta { left:51%; bottom:7%; min-height:30px; padding:5px 9px; font-size:11px; }
    .homepage-benefits { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 4px; }
    .homepage-benefits>div { grid-template-columns:24px minmax(0,1fr); gap:0 6px; }
    .homepage-benefits>div>span { width:23px; height:23px; font-size:12px; }
    .homepage-benefits strong { font-size:11px; }
    .homepage-benefits small { font-size:9px; }
    .catalog-section .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
}

/* The fulfillment badge already states this; avoid repeating it below the price. */
.homepage-product-grid .stock-state.made-to-order { display:none; }

/* Refined hero: compact, aligned to the category row, and with live text links. */
.homepage-hero { position:relative; isolation:isolate; width:100%; height:clamp(210px,18vw,270px); aspect-ratio:auto; margin:0; overflow:hidden; border-radius:14px; background:#f7f8f3; }
.homepage-hero>img { position:absolute; z-index:0; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.homepage-hero::before { position:absolute; z-index:1; inset:0; background:linear-gradient(90deg,#f8faf5 0%,#f8faf5 43%,rgb(248 250 245 / 96%) 46%,rgb(248 250 245 / 48%) 52%,rgb(248 250 245 / 6%) 59%,transparent 63%); content:""; pointer-events:none; }
.hero-copy { position:absolute; z-index:2; top:50%; left:clamp(20px,4.2vw,58px); width:min(48%,600px); transform:translateY(-50%); color:var(--mboa-navy); }
.hero-brand { display:flex; align-items:baseline; gap:0; margin:0 0 7px; color:var(--mboa-green-dark); font-size:18px; font-weight:850; letter-spacing:-.04em; }
.hero-brand span { color:var(--mboa-navy); }
.hero-brand small { margin-left:9px; color:#56615d; font-size:11px; font-weight:600; letter-spacing:0; }
.hero-copy h1 { margin:0; color:#0b2724; font-size:clamp(27px,3.2vw,43px); font-weight:850; letter-spacing:-.045em; line-height:1.03; }
.hero-copy h1 span { color:#07834e; }
.hero-description { max-width:480px; margin:8px 0 13px; color:#25343e; font-size:clamp(12px,1.25vw,16px); line-height:1.35; }
.hero-actions { display:flex; flex-wrap:wrap; gap:9px; }
.hero-button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:42px; padding:0 16px; border:1.5px solid var(--mboa-green); border-radius:8px; font-size:13px; font-weight:750; transition:background .18s ease,transform .18s ease,box-shadow .18s ease; }
.hero-button:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgb(11 39 66 / 15%); }
.hero-button:focus-visible { outline:3px solid #0b2742; outline-offset:3px; }
.hero-button-primary { background:var(--mboa-green); color:#fff; }
.hero-button-primary:hover { background:var(--mboa-green-dark); }
.hero-button-secondary { background:#fff; color:var(--mboa-green-dark); }
.hero-button-secondary:hover { background:#eef8f2; }
@media(max-width:760px) {
    .homepage-hero { width:100%; height:258px; aspect-ratio:auto; margin:0; border-radius:12px; }
    .homepage-hero>img { object-position:72% center; }
    .homepage-hero::before { background:linear-gradient(90deg,#f8faf5 0%,rgb(248 250 245 / 98%) 56%,rgb(248 250 245 / 82%) 68%,rgb(248 250 245 / 22%) 82%,transparent 94%); }
    .hero-copy { left:18px; width:min(74%,390px); }
    .hero-brand { margin-bottom:6px; font-size:16px; }
    .hero-brand small { margin-left:7px; font-size:9px; }
    .hero-copy h1 { font-size:clamp(23px,6.5vw,31px); line-height:1.05; }
    .hero-description { margin:7px 0 11px; font-size:12px; }
    .hero-actions { gap:7px; }
    .hero-button { min-height:38px; padding:0 11px; gap:6px; font-size:11px; }
}

/* Product photos stay fully visible, and each homepage category gets its own row. */
.homepage-category-section { margin:0; }
.homepage-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.homepage-shelf-card { min-width:0; overflow:hidden; border:1px solid var(--mboa-line); border-radius:10px; background:#fff; box-shadow:0 2px 8px rgb(11 39 66 / 7%); }
.homepage-shelf-image-link { display:grid; aspect-ratio:1.35 / 1; overflow:hidden; place-items:center; background:#f5f6f5; }
.homepage-shelf-image { display:block; width:100%; height:100%; box-sizing:border-box; padding:8px; object-fit:contain; }
.homepage-shelf-image-fallback { display:grid; width:100%; height:100%; place-items:center; color:var(--mboa-muted); font-size:13px; }
.homepage-shelf-content { display:grid; gap:5px; padding:10px; }
.homepage-shelf-content .product-category { margin:0; color:var(--mboa-muted); font-size:11px; }
.homepage-shelf-content h3 { min-height:2.3em; margin:0; color:#142c24; font-size:14px; line-height:1.2; }
.homepage-shelf-content .retail-price { color:#07834e; font-size:18px; font-weight:800; }
.homepage-shelf-view { color:var(--mboa-green-dark); font-size:12px; font-weight:750; }
.homepage-wide-banner { display:block; width:100%; overflow:hidden; border:1px solid #e6e9e8; border-radius:12px; background:#fff7dc; }
.homepage-wide-banner img { display:block; width:100%; height:auto; }
.homepage-campos-banner { width:100%; }
.homepage-campos-banner>img { aspect-ratio:4.12 / 1; object-fit:contain; background:#fff; }
@media(max-width:1050px) { .homepage-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
  .homepage-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .homepage-shelf-content { padding:8px; }
  .homepage-shelf-content h3 { font-size:13px; }
}
/* Responsive homepage category shelves and promotional banners */
.homepage-category-section,.homepage-wide-banner,.homepage-campos-banner{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.homepage-category-section .homepage-product-grid{width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;box-sizing:border-box!important}
.homepage-wide-banner img,.homepage-campos-banner img{display:block;width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain!important}
@media(max-width:1050px){.homepage-category-section .homepage-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:640px){.homepage-category-section .homepage-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Keep homepage sections within the viewport */
.homepage-shell{width:min(1280px,calc(100% - 32px))!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.homepage-shell>.store-section,.homepage-shell>.homepage-wide-banner,.homepage-shell>.homepage-campos-banner{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.homepage-category-grid{display:grid!important;width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;box-sizing:border-box!important}
@media(max-width:1050px){.homepage-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:640px){.homepage-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Preserve the full product photo in homepage category shelves */
.homepage-shelf-image{object-fit:contain!important;background:#f5f6f5!important;padding:8px!important;box-sizing:border-box!important}

/* Sponsored category banners and browse tiles */
.homepage-sponsored-banner{display:block;width:100%;max-width:100%;min-width:0;margin:16px 0;border:1px solid #e6ebe7;border-radius:12px;overflow:hidden;background:#fff;box-sizing:border-box}
.homepage-sponsored-banner img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.homepage-category-empty{display:flex;align-items:center;gap:20px;width:100%;min-height:132px;padding:16px;border:1px solid #e2e9e4;border-radius:12px;background:#fff;color:inherit;text-decoration:none;box-sizing:border-box}
.homepage-category-empty-image{display:flex;align-items:center;justify-content:center;width:180px;height:104px;flex:0 0 180px;background:#f5f7f5;border-radius:8px;overflow:hidden}
.homepage-category-empty-image img{width:100%;height:100%;object-fit:contain;padding:8px;box-sizing:border-box}
.homepage-category-empty-content{display:grid;gap:8px}
.homepage-category-empty-content>strong{font-size:1.05rem;color:#102a43}
.homepage-category-empty-content>span:not(.homepage-shelf-view){color:#64748b}
@media(max-width:640px){.homepage-category-empty{gap:12px;padding:10px;min-height:112px}.homepage-category-empty-image{width:104px;height:88px;flex-basis:104px}}
