.home-storefront {
    --home-accent: var(--o3d-accent, #ff6f00);
    --home-accent-soft: var(--o3d-accent-soft, #ffb36b);
    --home-ink: #071019;
    --home-panel: #0e1a24;
    --home-border: rgba(197, 221, 239, .14);
    --home-muted: rgba(221, 234, 244, .66);
    margin: -1rem -.75rem 0;
    overflow: hidden;
    /* The body owns the shared Products-page backdrop. */
    background: transparent;
    color: #f7fbff;
}

.home-storefront-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 4rem);
    background: transparent;
}

.home-storefront-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .95fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
}

.home-storefront-hero-copy { max-width: 43rem; }

.home-storefront-kicker {
    display: flex;
    align-items: center;
    gap: .48rem;
    margin: 0 0 .9rem;
    color: var(--home-accent-soft);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-storefront-hero h1,
.home-storefront-section-heading h2 {
    margin: 0;
    color: #fff;
    font-weight: 840;
    letter-spacing: -.052em;
}

.home-storefront-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.65rem, 4.1vw, 4.25rem);
    line-height: 1.04;
}

.home-storefront-hero h1 span { color: var(--home-accent); }

.home-storefront-intro {
    max-width: 38rem;
    margin: 1.5rem 0 0;
    color: var(--home-muted);
    font-size: clamp(1rem, 1.4vw, 1.13rem);
    line-height: 1.7;
}

.home-storefront-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.home-storefront-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: .62rem;
    font-size: .88rem;
    font-weight: 820;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-storefront-button:hover { transform: translateY(-2px); }
.home-storefront-button-primary { background: linear-gradient(135deg, #ff922f, #f56d00); box-shadow: 0 .75rem 1.55rem rgba(245, 101, 0, .22), inset 0 1px rgba(255, 255, 255, .25); color: #19110a; }
.home-storefront-button-primary:hover { background: linear-gradient(135deg, #ffa44e, #ff7908); box-shadow: 0 .95rem 1.8rem rgba(245, 101, 0, .32), inset 0 1px rgba(255, 255, 255, .32); color: #19110a; }
.home-storefront-button-secondary { border-color: rgba(207, 226, 239, .22); background: rgba(4, 11, 17, .28); color: #f4f8fc; }
.home-storefront-button-secondary:hover { border-color: rgba(255, 177, 101, .62); background: rgba(255, 111, 0, .1); color: #fff; }

.home-storefront-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.1rem;
    margin: 2.25rem 0 0;
    padding: 0;
    color: rgba(226, 239, 249, .64);
    font-size: .78rem;
    list-style: none;
}

.home-storefront-assurances li { display: inline-flex; align-items: center; gap: .4rem; }
.home-storefront-assurances i { color: var(--home-accent-soft); }

.home-storefront-hero-stage {
    position: relative;
    width: 100%;
    max-width: 34rem;
    margin-left: auto;
}

.home-storefront-hero-product {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(201, 224, 240, .2);
    border-radius: 1.15rem;
    background: linear-gradient(150deg, rgba(22, 42, 58, .98), rgba(7, 15, 22, .98));
    box-shadow: 0 1.55rem 4rem rgba(0, 0, 0, .43), inset 0 1px rgba(255, 255, 255, .055);
    color: #fff;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-storefront-hero-product:hover {
    border-color: rgba(255, 166, 88, .72);
    box-shadow: 0 2rem 4.5rem rgba(0, 0, 0, .56), 0 0 0 1px rgba(255, 133, 34, .16);
    color: #fff;
    transform: translateY(-.28rem);
}

.home-storefront-hero-image {
    display: grid;
    min-height: clamp(20rem, 34vw, 28.5rem);
    place-items: center;
    padding: clamp(1.1rem, 2.8vw, 2.1rem);
    background:
        radial-gradient(circle at 50% 13%, rgba(255, 153, 40, .15), transparent 53%),
        linear-gradient(145deg, #152d3e, #08121b);
}

.home-storefront-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 27rem;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 1.15rem 1.35rem rgba(0, 0, 0, .55));
}

.home-storefront-hero-product-meta {
    display: grid;
    gap: .2rem;
    padding: 1rem 1.15rem 1.15rem;
    border-top: 1px solid rgba(209, 228, 241, .1);
}

.home-storefront-hero-product-label { color: var(--home-accent-soft); font-size: .65rem; font-weight: 840; letter-spacing: .11em; text-transform: uppercase; }
.home-storefront-hero-product-name { overflow: hidden; color: #fff; font-size: 1.04rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.home-storefront-hero-product-price { color: #fff; font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.home-storefront-hero-product-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .23rem; color: rgba(226, 239, 248, .7); font-size: .76rem; font-weight: 720; }
.home-storefront-hero-product-link i { color: var(--home-accent-soft); }

.home-storefront-hero-placeholder {
    display: grid;
    min-height: 27rem;
    place-content: center;
    gap: .7rem;
    border: 1px solid rgba(255, 159, 71, .33);
    border-radius: 1.15rem;
    background: radial-gradient(circle at 38% 30%, rgba(255, 111, 0, .25), transparent 46%), #102131;
    color: var(--home-accent-soft);
    font-size: 4.5rem;
    text-align: center;
}

.home-storefront-hero-placeholder span { color: #fff; font-size: .82rem; font-weight: 840; letter-spacing: .15em; text-transform: uppercase; }

.home-storefront-section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.home-storefront-categories { background: transparent; }
.home-storefront-featured { background: transparent; }

.home-storefront-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.9rem;
}

.home-storefront-section-heading h2 { max-width: 17ch; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1; }

.home-storefront-text-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .42rem;
    color: var(--home-accent-soft);
    font-size: .82rem;
    font-weight: 790;
    text-decoration: none;
}

.home-storefront-text-link:hover { color: #fff; }

.home-storefront-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
    gap: clamp(.72rem, 1.4vw, 1rem);
}

.home-storefront-category-card {
    display: grid;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--home-border);
    border-radius: .9rem;
    background: linear-gradient(150deg, #142534, #0b151f);
    box-shadow: 0 .8rem 1.65rem rgba(0, 0, 0, .17), inset 0 1px rgba(255, 255, 255, .035);
    color: #fff;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-storefront-category-card:hover {
    border-color: rgba(255, 160, 79, .6);
    box-shadow: 0 1.15rem 2.1rem rgba(0, 0, 0, .27), 0 0 0 1px rgba(255, 133, 34, .13);
    color: #fff;
    transform: translateY(-.22rem);
}

.home-storefront-category-image {
    display: grid;
    aspect-ratio: 1.35 / 1;
    place-items: center;
    padding: .7rem;
    border-bottom: 1px solid rgba(210, 228, 240, .08);
    background: radial-gradient(circle at 50% 15%, rgba(255, 147, 24, .12), transparent 58%), #0b1721;
}

.home-storefront-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 .7rem .9rem rgba(0, 0, 0, .44));
}

.home-storefront-category-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-height: 3.8rem;
    padding: .75rem .85rem;
    font-size: .9rem;
    font-weight: 780;
}

.home-storefront-category-content i { color: var(--home-accent-soft); font-size: .76rem; transition: transform .18s ease; }
.home-storefront-category-card:hover .home-storefront-category-content i { transform: translateX(.18rem); }

.home-storefront-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.6rem), 1fr));
    gap: clamp(.9rem, 1.6vw, 1.35rem);
}

.home-storefront-product-grid .product-card-wrapper { min-width: 0; transform: none; transition: transform .2s ease; }
.home-storefront-product-grid .product-card-wrapper:hover { transform: translateY(-.24rem); }
.home-storefront-product-grid .product-card { height: 100%; aspect-ratio: auto; border-color: var(--home-border); border-radius: .98rem; background: linear-gradient(155deg, #182937, #0c161f); box-shadow: 0 .9rem 1.9rem rgba(0, 0, 0, .27), inset 0 1px rgba(255, 255, 255, .045); }
.home-storefront-product-grid .product-card-wrapper:hover .product-card { box-shadow: 0 1.2rem 2.45rem rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 143, 52, .28), inset 0 1px rgba(255, 255, 255, .06); }
.home-storefront-product-grid .product-card::after { display: none; }
.home-storefront-product-grid .product-image-wrapper { flex: 0 0 auto; aspect-ratio: 1 / .86; padding: clamp(.3rem, .78vw, .62rem); border-bottom-color: rgba(255, 255, 255, .08); background: radial-gradient(circle at 50% 8%, rgba(255, 149, 0, .11), transparent 58%), linear-gradient(150deg, #142433, #091119); }
.home-storefront-product-grid .product-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; transform: none; filter: drop-shadow(0 .85rem 1rem rgba(0, 0, 0, .44)); }
.home-storefront-product-grid .product-card-wrapper:hover .product-image { transform: none; filter: drop-shadow(0 .95rem 1.1rem rgba(0, 0, 0, .52)) brightness(1.035); }
.home-storefront-product-grid .product-details { flex: 1 1 auto; min-height: 5.5rem; padding: .9rem .95rem .5rem; background: transparent; }
.home-storefront-product-grid .product-category { color: var(--home-accent-soft); }
.home-storefront-product-grid .product-title { font-size: .98rem; }
.home-storefront-product-grid .product-card-footer { min-height: 3.45rem; padding: .52rem .78rem .78rem .95rem; border-top: 1px solid rgba(208, 226, 240, .075); background: transparent; }
.home-storefront-product-grid .product-card-view { color: rgba(229, 240, 249, .62); font-size: .7rem; text-decoration: none; }
.home-storefront-product-grid .product-card-view:hover { color: #fff; }
.home-storefront-product-grid .product-price { color: #fff; font-size: 1.08rem; font-weight: 820; letter-spacing: -.025em; }
.home-storefront-product-grid .product-card-actions { gap: .5rem; }
.home-storefront-product-grid .product-card-cta { display: inline-flex; width: auto; min-width: 2.45rem; height: 2.35rem; align-items: center; justify-content: center; gap: .38rem; padding: 0 .68rem; border: 1px solid rgba(255, 180, 104, .36); border-radius: .58rem; background: linear-gradient(135deg, #ff8b28, #f56d00); box-shadow: 0 .38rem .85rem rgba(244, 100, 0, .19), inset 0 1px rgba(255, 255, 255, .26); color: #17110b; font-size: .72rem; font-weight: 850; line-height: 1; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.home-storefront-product-grid .product-card-cta > i { font-size: .9rem; }
.home-storefront-product-grid .product-card-wrapper:hover .product-card-cta { transform: none; }
.home-storefront-product-grid .product-card-wrapper:hover .product-card-cta:hover { transform: translateY(-1px); box-shadow: 0 .55rem 1.1rem rgba(244, 100, 0, .28), inset 0 1px rgba(255, 255, 255, .32); color: #17110b; filter: brightness(1.05); }

.home-storefront-service {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid rgba(198, 221, 238, .1);
    background: transparent;
}

.home-storefront-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-storefront-service article { display: flex; align-items: center; gap: .8rem; min-width: 0; padding: .45rem .3rem; }
.home-storefront-service article > i { display: grid; flex: 0 0 auto; width: 2.45rem; height: 2.45rem; place-items: center; border: 1px solid rgba(255, 159, 71, .27); border-radius: .68rem; background: rgba(255, 111, 0, .1); color: var(--home-accent-soft); }
.home-storefront-service article div { display: grid; min-width: 0; gap: .14rem; }
.home-storefront-service strong { color: #fff; font-size: .88rem; font-weight: 800; }
.home-storefront-service span { color: rgba(220, 234, 244, .57); font-size: .76rem; line-height: 1.35; }

.home-storefront-empty { display: grid; min-height: 11rem; place-content: center; gap: .65rem; border: 1px dashed rgba(255, 169, 91, .38); border-radius: .9rem; background: rgba(10, 24, 34, .6); color: var(--home-muted); text-align: center; }
.home-storefront-empty i { color: var(--home-accent); font-size: 1.5rem; }
.home-storefront-empty p { margin: 0; }

@media (max-width: 991.98px) {
    .home-storefront-hero-inner { grid-template-columns: 1fr; }
    .home-storefront-hero-copy { max-width: 45rem; }
    .home-storefront-hero-stage { max-width: 37rem; margin: .45rem auto 0; }
    .home-storefront-service-grid { grid-template-columns: 1fr; gap: .2rem; }
}

@media (max-width: 575.98px) {
    .home-storefront-hero { padding-top: 2rem; }
    .home-storefront-hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
    .home-storefront-actions { display: grid; grid-template-columns: 1fr; }
    .home-storefront-button { width: 100%; }
    .home-storefront-assurances { display: grid; gap: .58rem; }
    .home-storefront-hero-image { min-height: 18rem; }
    .home-storefront-section-heading { align-items: start; flex-direction: column; margin-bottom: 1.45rem; }
    .home-storefront-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-storefront-category-content { min-height: 3.3rem; padding: .62rem .65rem; font-size: .8rem; }
    .home-storefront-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .home-storefront-product-grid .product-details { min-height: 6.1rem; padding: .75rem .75rem .3rem; }
    .home-storefront-product-grid .product-card-footer { min-height: 3rem; padding: .32rem .55rem .62rem .75rem; }
    .home-storefront-product-grid .product-card-view { display: none; }
}

@media (max-width: 410px) {
    .home-storefront-category-grid { gap: .6rem; }
}

/* Phone layout: definite image bounds and wrapping actions prevent intrinsic
   image sizes and long names from stretching the two-column product grid. */
@media (max-width: 767.98px) {
    .home-storefront .container { padding-inline: 1rem; }
    .home-storefront-hero { padding-block: 1.75rem 2rem; }
    .home-storefront-hero-inner { gap: 1.5rem; }
    .home-storefront-intro { margin-top: 1rem; font-size: 1rem; line-height: 1.6; }
    .home-storefront-actions { margin-top: 1.25rem; gap: .6rem; }
    .home-storefront-assurances { display: flex; margin-top: 1.25rem; gap: .6rem 1rem; font-size: .72rem; }
    .home-storefront-hero-image { height: clamp(13rem, 65vw, 21rem); min-height: 0; }
    .home-storefront-hero-image img { min-height: 0; }
    .home-storefront-section { padding-block: 2rem; }
    .home-storefront-section-heading h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); line-height: 1.12; }
    .home-storefront-category-image { position: relative; }
    .home-storefront-category-image img { position: absolute; inset: 0; padding: .7rem; }
    .home-storefront-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .home-storefront-product-grid .product-link { flex: 1 0 auto; min-width: 0; }
    .home-storefront-product-grid .product-image-wrapper { position: relative; width: 100%; aspect-ratio: 1; }
    .home-storefront-product-grid .product-image { position: absolute; inset: 0; width: 100%; height: 100%; padding: .5rem; }
    .home-storefront-product-grid .product-details { min-width: 0; min-height: 6rem; padding: .7rem .65rem .4rem; }
    .home-storefront-product-grid .product-title { font-size: .85rem; overflow-wrap: anywhere; -webkit-line-clamp: 3; }
    .home-storefront-product-grid .product-card-footer { padding: .5rem .65rem .65rem; }
    .home-storefront-product-grid .product-card-view { display: none; }
    .home-storefront-product-grid .product-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: .55rem; }
    .home-storefront-product-grid .product-card-cta { width: 100%; height: auto; min-height: 44px; }
    .home-storefront-product-grid .product-price { font-size: 1rem; }
}

@media (hover: none) {
    .home-storefront-product-grid .product-card-wrapper:hover,
    .home-storefront-hero-product:hover,
    .home-storefront-category-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-storefront-button,
    .home-storefront-hero-product,
    .home-storefront-category-card,
    .home-storefront-category-content i,
    .home-storefront-product-grid .product-card-wrapper,
    .home-storefront-product-grid .product-card-cta { transition: none; }
}
