body, button, input, select, textarea { font-family: var(--aster-font-family); }
body { background: var(--aster-canvas); color: var(--aster-ink); }

a { color: inherit; }

:focus-visible { outline: none; box-shadow: var(--aster-focus); }

.aster-header { background: rgba(252, 250, 247, .96); border-bottom: 1px solid var(--aster-border); box-shadow: none; }
.aster-header .navbar-brand { color: var(--aster-ink); font-size: 1.05rem; letter-spacing: .02em; }
.aster-header .nav-link { color: var(--aster-ink); min-height: 44px; padding-inline: .7rem; }
.aster-header .nav-link:hover { color: var(--aster-brand); }
.aster-header .navbar-toggler { border: 0; border-radius: var(--aster-radius-control); min-height: 44px; min-width: 44px; }
.aster-cart-link { align-items: center; border: 1px solid var(--aster-border); border-radius: var(--aster-radius-control); display: inline-flex; gap: .45rem; min-height: 44px; padding: .45rem .7rem; text-decoration: none; }
.aster-cart-count { align-items: center; background: var(--aster-action); border-radius: 99px; color: #fff; display: inline-flex; font-size: .75rem; justify-content: center; min-width: 1.35rem; padding: .08rem .32rem; }

.aster-button, .aster-button-outline { align-items: center; border-radius: var(--aster-radius-control); display: inline-flex; font-size: .9rem; font-weight: 600; justify-content: center; min-height: 44px; padding: .6rem 1rem; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.aster-button { background: var(--aster-action); border: 1px solid var(--aster-action); color: #fff; }
.aster-button:hover { background: var(--aster-action-hover); border-color: var(--aster-action-hover); color: #fff; }
.aster-button:focus-visible { box-shadow: 0 0 0 3px var(--aster-action-focus); }
.btn-brand { background-color: var(--aster-action) !important; border-color: var(--aster-action) !important; color: #fff !important; }
.btn-brand:hover, .btn-brand:focus-visible { background-color: var(--aster-action-hover) !important; border-color: var(--aster-action-hover) !important; color: #fff !important; }
.aster-button-outline { background: transparent; border: 1px solid var(--aster-brand); color: var(--aster-brand); }
.aster-button-outline:hover { background: var(--aster-brand); color: #fff; }

.aster-product-card { background: transparent; border: 0; min-width: 0; }
.aster-product-media { aspect-ratio: 1; background: #f3eee9; border-radius: var(--aster-radius-media); display: block; overflow: hidden; position: relative; }
.aster-product-media img { height: 100%; object-fit: cover; transition: transform 180ms ease; width: 100%; }
.aster-product-card:hover .aster-product-media img { transform: scale(1.02); }
.aster-product-badge { background: var(--aster-surface); border: 1px solid var(--aster-border); border-radius: 999px; color: var(--aster-muted); font-size: .72rem; inset-block-start: .7rem; inset-inline-start: .7rem; padding: .25rem .45rem; position: absolute; }
.aster-product-category { color: var(--aster-muted); font-size: .8rem; margin: .7rem 0 .25rem; }
.aster-product-title { font-size: 1rem; line-height: 1.65; margin: 0; min-height: 3.3em; }
.aster-price { align-items: baseline; display: flex; flex-wrap: wrap; gap: .25rem .45rem; margin-top: .7rem; }
.aster-price-current { color: var(--aster-ink); font-size: 1rem; font-weight: 700; }
.aster-price-old { color: var(--aster-muted); font-size: .8rem; }
.aster-price-discount { color: var(--aster-danger); font-size: .76rem; }
.product-price { color: var(--aster-ink) !important; }
.aster-add-container { margin-top: .8rem; }
.aster-add-button { min-height: 42px; width: 100%; }
.aster-add-button.htmx-request { cursor: wait; opacity: .72; pointer-events: none; }
.aster-add-button .aster-loading { display: none; }
.aster-add-button.htmx-request .aster-default { display: none; }
.aster-add-button.htmx-request .aster-loading { display: inline; }
.aster-cart-success { align-items: center; color: var(--aster-success); display: flex; font-size: .9rem; font-weight: 600; gap: .45rem; justify-content: space-between; min-height: 42px; }
.aster-cart-success a { color: var(--aster-brand); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }

.aster-home { overflow: hidden; padding: 16px 16px 0; }
.aster-home-section { margin: 48px auto; max-width: 1280px; }
.aster-home-search { background: var(--aster-surface); border: 1px solid var(--aster-border); border-radius: var(--aster-radius-control); display: flex; min-height: 48px; overflow: hidden; }
.aster-home-search input { background: transparent; border: 0; box-shadow: none; min-width: 0; padding-inline: 1rem; }
.aster-home-search button { background: transparent; border: 0; color: var(--aster-brand); min-width: 48px; }
.aster-home-intro { max-width: 700px; }
.aster-home-title { font-size: clamp(1.65rem, 3.4vw, 2.35rem); line-height: 1.55; margin: 0 0 10px; }
.aster-home-lede { color: var(--aster-muted); line-height: 2; margin: 0; }
.aster-pathways { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }
.aster-pathway { border: 1px solid var(--aster-border); border-radius: var(--aster-radius-media); color: var(--aster-ink); display: block; height: 100%; min-height: 156px; padding: 20px; position: relative; text-decoration: none; transition: border-color 180ms ease, transform 180ms ease; }
.aster-pathway:hover { border-color: var(--aster-brand); color: var(--aster-ink); transform: translateY(-2px); }
.aster-pathway--make { background: #f0f4ef; }
.aster-pathway--shop { background: #f8f0e9; }
.aster-pathway-kicker { color: var(--aster-sage); display: block; font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.aster-pathway h2 { font-size: 1.15rem; margin: 0 0 7px; }
.aster-pathway p { color: var(--aster-muted); font-size: .9rem; line-height: 1.8; margin: 0; }
.aster-pathway-arrow { bottom: 18px; color: var(--aster-action); font-size: 1.1rem; inset-inline-end: 20px; position: absolute; }
.aster-slider { background: var(--aster-surface); border: 1px solid var(--aster-border); border-radius: var(--aster-radius-media); overflow: hidden; }
.aster-slider .carousel-item { background: #f3eee9; text-align: center; }
.aster-slider-image { display: block; height: auto; max-height: 580px; object-fit: contain; width: 100%; }
.aster-slider .carousel-control-next, .aster-slider .carousel-control-prev { width: 10%; }
.aster-section-heading { align-items: end; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 20px; }
.aster-section-heading h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 0; }
.aster-section-kicker { color: var(--aster-sage); font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 12px; }
.aster-section-link { color: var(--aster-brand); font-size: .9rem; text-decoration: none; text-underline-offset: 4px; }
.aster-promo-grid { --bs-gutter-x: 12px; --bs-gutter-y: 24px; }
.aster-promo { color: var(--aster-ink); display: block; text-decoration: none; }
.aster-promo-image { aspect-ratio: 1; background: #f3eee9; border-radius: var(--aster-radius-media); display: block; overflow: hidden; }
.aster-promo-image img { height: 100%; object-fit: contain; transition: transform 180ms ease; width: 100%; }
.aster-promo:hover img { transform: scale(1.015); }
.aster-promo-title { display: block; font-size: .92rem; font-weight: 700; line-height: 1.65; padding-top: 9px; }
.aster-home-products { row-gap: 32px; }
.aster-discovery-group { border-top: 1px solid var(--aster-border); padding-top: 20px; }
.aster-discovery-group + .aster-discovery-group { margin-top: 32px; }
.aster-discovery-group h3 { font-size: 1.05rem; margin-bottom: 18px; }
.aster-product-rail-controls { display: none; }
.aster-guide { background: var(--aster-surface); border-block: 1px solid var(--aster-border); padding: 28px 0; }
.aster-guide-links { display: flex; flex-wrap: wrap; gap: 10px; }
.aster-guide-link { border-bottom: 1px solid var(--aster-border); color: var(--aster-ink); font-size: .92rem; padding: .5rem 0; text-decoration: none; }
.aster-guide-link:hover { border-color: var(--aster-brand); color: var(--aster-brand); }
.aster-story { border-block: 1px solid var(--aster-border); max-width: 780px; padding-block: 28px; }
.aster-story-copy h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.6; margin-bottom: 13px; }
.aster-story-copy p { color: var(--aster-muted); line-height: 2; }
.aster-benefits { border-block: 1px solid var(--aster-border); padding-block: 24px; }
.aster-benefit { align-items: flex-start; display: flex; gap: 12px; }
.aster-benefit-mark { color: var(--aster-gold); font-size: 1.1rem; line-height: 1.4; }
.aster-benefit h2 { font-size: .95rem; margin: 0 0 4px; }
.aster-benefit p { color: var(--aster-muted); font-size: .84rem; line-height: 1.7; margin: 0; }
.aster-footer { margin-top: 4rem !important; }
.aster-footer .footer-link[href="#"], .aster-footer .social-icon[href="#"] { display: none; }
@media (max-width: 767.98px) {
    .aster-footer { margin-top: 2.5rem !important; padding-top: 2rem !important; }
    .aster-footer .row { --bs-gutter-y: 1.5rem; }
    .aster-footer h5 { margin-bottom: .8rem !important; }
    .aster-footer p, .aster-footer li { font-size: .88rem; line-height: 1.8; }
    .aster-footer .trust-seal img { max-height: 58px !important; }
}
@media (min-width: 768px) { .aster-home { padding-inline: 24px; } .aster-home-section { margin-block: 64px; } }
@media (max-width: 767.98px) { .aster-slider .carousel-control-next, .aster-slider .carousel-control-prev { width: 15%; } .aster-section-heading { align-items: start; } }

/* Home V4 refinements */
.aster-brand { min-width: 0; white-space: nowrap; }
.aster-brand-label { overflow: hidden; text-overflow: ellipsis; }
.aster-button-outline { border-color: var(--aster-action); color: var(--aster-action); }
.aster-button-outline:hover { background: var(--aster-action-hover); border-color: var(--aster-action-hover); color: #fff; }
.aster-button-outline:focus-visible, .aster-pathway:focus-visible, .aster-category-orbit:focus-visible, .aster-carousel-control:focus-visible { box-shadow: 0 0 0 3px var(--aster-action-focus); outline: 0; }
.aster-home { padding-top: 12px; }
.aster-home-section { margin-block: 42px; }
.aster-home-intro { margin-bottom: 24px; max-width: 760px; }
.aster-home-title { font-size: clamp(1.65rem, 3.1vw, 2.2rem); line-height: 1.5; margin-bottom: 8px; }
.aster-home-title-mobile { display: none; }
.aster-home-slider-section { margin-top: 0; }
.aster-slider picture { display: block; }
.aster-pathway { min-height: 160px; }
.aster-pathway:hover { border-color: var(--aster-action); }
.aster-pathway-icon { align-items: center; background: rgba(255,255,255,.6); border: 1px solid rgba(36,24,23,.1); border-radius: 50%; color: var(--aster-action); display: inline-flex; height: 34px; justify-content: center; margin-bottom: 9px; width: 34px; }
.aster-pathway-icon svg { height: 20px; width: 20px; }
.aster-pathway-kicker { margin-bottom: 6px; }
.aster-pathway-cta { bottom: 16px; color: var(--aster-action); font-size: .86rem; font-weight: 700; inset-inline-end: 20px; position: absolute; }
.aster-category-rail { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 3px 2px 12px; scrollbar-width: thin; }
.aster-category-orbit { color: var(--aster-ink); flex: 0 0 104px; scroll-snap-align: start; text-align: center; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.aster-category-orbit:hover { color: var(--aster-action); transform: translateY(-2px); }
.aster-category-icon { align-items: center; background: #f3eee9; border: 1px solid var(--aster-border); border-radius: 50%; color: var(--aster-action); display: inline-flex; height: 82px; justify-content: center; transition: background-color 180ms ease, border-color 180ms ease; width: 82px; }
.aster-category-orbit:hover .aster-category-icon { background: #e9f1f1; border-color: var(--aster-action); }
.aster-category-icon svg { height: 34px; width: 34px; }
.aster-category-name { display: block; font-size: .82rem; font-weight: 600; line-height: 1.6; margin-top: 8px; }
.aster-carousel-controls { gap: 7px; }
.aster-carousel-control { align-items: center; background: var(--aster-surface); border: 1px solid var(--aster-border); border-radius: 50%; color: var(--aster-action); display: inline-flex; height: 36px; justify-content: center; padding: 0; width: 36px; }
.aster-carousel-control:hover { background: #e9f1f1; border-color: var(--aster-action); }
@media (min-width: 768px) { .aster-home-section { margin-block: 56px; } .aster-category-orbit { flex-basis: 118px; } .aster-category-icon { height: 92px; width: 92px; } }
@media (min-width: 992px) { .aster-brand #logo-img { width: 110px; } .aster-brand-label { font-size: 1.05rem; } }
@media (min-width: 992px) { .aster-header .navbar-collapse { order: 2; } .aster-header > .container > .aster-cart-link { order: 3; } }
@media (max-width: 767.98px) { .aster-header .container { gap: .2rem; padding-inline: .7rem; } .aster-brand { gap: .35rem !important; font-size: .82rem; } .aster-brand #logo-img { width: 68px; } .aster-cart-link { gap: .25rem; min-height: 42px; padding: .35rem .45rem; } .aster-home { padding: 8px 12px 0; } .aster-home-section { margin-block: 28px; } .aster-home-intro { margin-bottom: 18px; } .aster-home-title { font-size: clamp(1.25rem, 6.3vw, 1.5rem); line-height: 1.45; margin: 0; white-space: nowrap; } .aster-home-title-desktop { display: none; } .aster-home-title-mobile { display: inline; } .aster-home-lede { display: none; } .aster-pathways { --bs-gutter-y: 10px; } .aster-pathway { min-height: 134px; padding: 14px 16px; } .aster-pathway-icon { height: 28px; margin-bottom: 5px; width: 28px; } .aster-pathway-icon svg { height: 17px; width: 17px; } .aster-pathway-kicker { font-size: .72rem; margin-bottom: 3px; } .aster-pathway h2 { font-size: 1rem; margin-bottom: 3px; } .aster-pathway p { font-size: .79rem; line-height: 1.65; padding-inline-end: 52px; } .aster-pathway-cta { bottom: 12px; font-size: .8rem; inset-inline-end: 16px; } .aster-category-rail { gap: 10px; margin-inline: -12px; padding-inline: 12px; } .aster-category-orbit { flex-basis: 86px; } .aster-category-icon { height: 66px; width: 66px; } .aster-category-icon svg { height: 27px; width: 27px; } .aster-category-name { font-size: .73rem; margin-top: 6px; } }
@media (max-width: 359.98px) { .aster-brand { font-size: .72rem; } .aster-brand #logo-img { width: 57px; } .aster-cart-link { min-width: 40px; padding-inline: .35rem; } .aster-cart-count { font-size: .67rem; } }

/* Home V5.1: a restrained editorial rhythm for the single semantic H1. */
.aster-home-intro { margin-bottom: 20px; margin-top: 32px; max-width: 980px; }
.aster-home-title-wrap { align-items: center; display: flex; gap: 12px; }
.aster-home-title-accent { background: var(--aster-gold); border-radius: 99px; display: block; flex: 0 0 auto; height: 3px; width: 34px; }
.aster-home-title { font-size: clamp(2.25rem, 3vw, 2.5rem); letter-spacing: -.02em; line-height: 1.35; margin: 0; }
.aster-home-lede { margin-top: 10px; }

/* Home V5: one compact heading rhythm for curated mobile sections. */
.aster-category-carousel-section .aster-section-heading,
.aster-home-section[aria-labelledby="promo-heading"] .aster-section-heading { align-items: center; margin-bottom: 16px; }
.aster-category-carousel-section .aster-section-heading h2,
.aster-home-section[aria-labelledby="promo-heading"] .aster-section-heading h2 { font-weight: 750; line-height: 1.5; }
.aster-category-name { min-height: 2.55em; overflow-wrap: anywhere; }
.aster-guide-links { gap: 10px 18px; }
@media (max-width: 767.98px) {
    .aster-home-intro { margin-bottom: 16px; margin-top: 20px; }
    .aster-home-title-wrap { gap: 9px; }
    .aster-home-title-accent { height: 3px; width: 24px; }
    .aster-home-title { font-size: clamp(1.25rem, 5.4vw, 1.375rem); letter-spacing: 0; line-height: 1.45; white-space: nowrap; }
    .aster-category-carousel-section .aster-section-heading,
    .aster-home-section[aria-labelledby="promo-heading"] .aster-section-heading { margin-bottom: 14px; }
    .aster-category-carousel-section .aster-section-heading h2,
    .aster-home-section[aria-labelledby="promo-heading"] .aster-section-heading h2 { font-size: 1.18rem; font-weight: 750; }
    .aster-category-orbit { flex-basis: 92px; }
    .aster-category-name { font-size: .78rem; line-height: 1.58; min-height: 2.5em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; }
}

/* Home V5.2: final editorial polish without changing content or data. */
.aster-home-intro { margin-top: 26px; text-align: center; }
.aster-home-title-wrap { align-items: center; display: flex; gap: 16px; justify-content: center; }
.aster-home-title-wrap::before,
.aster-home-title-wrap::after { background: var(--aster-gold); content: ""; display: block; flex: 0 1 72px; height: 1px; min-width: 32px; opacity: .78; }
.aster-home-title { font-size: clamp(2.25rem, 3vw, 2.5rem); }
.aster-home-lede { margin-inline: auto; }

.aster-promo { background: #fcfaf7; border: 1px solid var(--aster-border); border-radius: var(--aster-radius-media); overflow: hidden; transition: border-color 180ms ease, transform 180ms ease; }
.aster-promo-image { border-radius: 0; }
.aster-promo-title { min-height: 3.15em; padding: 10px 12px 13px; }
.aster-promo:hover { border-color: var(--aster-action); color: var(--aster-ink); transform: translateY(-2px); }
.aster-promo:focus-visible { box-shadow: 0 0 0 3px var(--aster-action-focus); outline: 0; }

.aster-category-rail { scrollbar-width: none; }
.aster-category-rail::-webkit-scrollbar { height: 0; width: 0; }

@media (max-width: 767.98px) {
    .aster-home-intro { margin-bottom: 12px; margin-top: 16px; }
    .aster-home-title-wrap { gap: 9px; }
    .aster-home-title-wrap::before,
    .aster-home-title-wrap::after { flex-basis: 18px; min-width: 18px; }
    .aster-home-title { font-size: clamp(1.25rem, 5.4vw, 1.375rem); }
    .aster-promo-title { font-size: .82rem; padding: 8px 9px 10px; }
    .aster-home-product-rail-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
    .aster-home-product-rail-heading h3 { margin-bottom: 0; }
    .aster-product-rail-controls { display: flex; gap: 6px; }
    .aster-product-rail-control { align-items: center; background: var(--aster-surface); border: 1px solid var(--aster-border); border-radius: 50%; color: var(--aster-action); display: inline-flex; height: 32px; justify-content: center; padding: 0; width: 32px; }
    .aster-product-rail-control:disabled { cursor: default; opacity: .4; }
    .aster-home-product-rail { --bs-gutter-x: 12px; flex-wrap: nowrap; margin-inline: -12px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 6px 10px; scrollbar-width: none; }
    .aster-home-product-rail::-webkit-scrollbar { height: 0; width: 0; }
    .aster-home-product-rail-item { flex: 0 0 clamp(216px, 76vw, 300px); max-width: clamp(216px, 76vw, 300px); }
}
