.store-home {
    --home-bg: #020813;
    --home-panel: #07111f;
    --home-panel-2: #0a1524;
    --home-line: #17283f;
    --home-blue: #087ef4;
    --home-blue-soft: #28a3ff;
    --home-text: #f6f9ff;
    --home-muted: #8e9cb1;
    background: var(--home-bg);
    color: var(--home-text);
}

.store-home .site-header { display: none; }
.store-home main { min-height: 0; }
.store-home .reference-home { background: radial-gradient(circle at 72% 20%, #062353 0, transparent 31%), var(--home-bg); }
.store-home .reference-home svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-utility {
    min-height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #111f32;
    background: #010610;
    color: #9cabc0;
    font-size: 10px;
}

.home-utility-inner,
.home-account-links,
.home-service-links {
    display: flex;
    align-items: center;
}

.home-utility-inner { justify-content: space-between; gap: 24px; }
.home-account-links, .home-service-links { gap: 14px; }
.home-utility a { color: #dce6f5; }
.home-utility svg { width: 13px; height: 13px; vertical-align: -3px; }
.utility-welcome { padding-inline-start: 18px; border-inline-start: 1px solid #1a283b; }

.home-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #102038;
    background: #020915eb;
    backdrop-filter: blur(14px);
}

.home-header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.home-logo img { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; }
.home-logo b, .home-logo small { display: block; }
.home-logo b { font-size: 25px; line-height: 1.15; }
.home-logo small { color: var(--home-blue-soft); font-size: 11px; font-weight: 800; }
.home-main-nav { height: 82px; display: flex; align-items: center; justify-content: center; gap: 27px; }
.home-main-nav a { height: 100%; display: flex; align-items: center; position: relative; color: #bdc9da; font-size: 12px; font-weight: 800; }
.home-main-nav a::after { content: ""; position: absolute; inset: auto 50% 0; width: 0; height: 2px; background: var(--home-blue); transition: width .2s, inset .2s; }
.home-main-nav a:hover, .home-main-nav a.active { color: #fff; }
.home-main-nav a:hover::after, .home-main-nav a.active::after { inset-inline: 0; width: 100%; }

.home-header-actions { display: flex; align-items: center; gap: 9px; }
.home-nav-search { position: relative; }
.home-nav-search input { width: 0; opacity: 0; position: absolute; inset: 0 auto 0 0; border: 1px solid #22344d; border-radius: 7px; background: #07111f; color: #fff; transition: width .2s, opacity .2s; }
.home-nav-search:focus-within input { width: 210px; opacity: 1; inset-inline-end: 0; padding: 9px 42px 9px 10px; }
.home-nav-search button, .home-theme-toggle, .home-cart, .home-mobile-nav summary {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    border: 1px solid #1b2c43;
    border-radius: 7px;
    background: #07111f;
    color: #fff;
    cursor: pointer;
}
.home-nav-search svg, .home-theme-toggle svg, .home-cart svg, .home-mobile-nav summary svg { width: 21px; height: 21px; }
.home-cart span { min-width: 17px; height: 17px; display: grid; place-items: center; position: absolute; inset: -6px -6px auto auto; border-radius: 50%; background: var(--home-blue); color: #fff; font-size: 8px; }
.home-mobile-nav { display: none; position: relative; }
.home-mobile-nav summary { list-style: none; }
.home-mobile-nav summary::-webkit-details-marker { display: none; }
.home-mobile-nav nav { width: 220px; display: grid; position: absolute; inset: 50px 0 auto auto; padding: 8px; border: 1px solid var(--home-line); border-radius: 8px; background: #07111f; box-shadow: 0 20px 40px #000b; }
.home-mobile-nav nav a { padding: 9px 10px; border-bottom: 1px solid #132239; color: #fff; }

.reference-hero {
    min-height: 470px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #12305a;
    background: #010610;
}

.reference-hero > img {
    width: 100%;
    height: 470px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.reference-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    pointer-events: none;
    background: linear-gradient(0deg, #020813 0, transparent 85%);
}

.reference-hero-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    position: absolute;
    z-index: 2;
    inset: auto 0 82px;
}

.reference-hero-action a {
    min-width: 145px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
    background: linear-gradient(135deg, #159bff, #076ce4);
    box-shadow: 0 10px 28px #087ef455;
    color: #fff;
    padding: 11px 18px;
    font-weight: 900;
}
.reference-hero-action svg { width: 17px; height: 17px; }
.reference-hero-action small { color: #aabbd3; }

.home-benefits {
    min-height: 86px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    z-index: 5;
    margin-top: -62px;
    border: 1px solid #1c304b;
    border-radius: 10px;
    background: #07111ff0;
    box-shadow: 0 18px 45px #0009;
    overflow: hidden;
}

.home-benefits > div,
.home-benefits > button {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-inline-end: 1px solid #182b44;
    background: transparent;
    color: #fff;
    padding: 14px 10px;
    text-align: right;
}
.home-benefits > button { cursor: pointer; }
.home-benefits > button:hover, .home-benefits > button:focus-visible { background: #0d2037; outline: 2px solid var(--home-blue); outline-offset: -2px; }
.home-benefits > :last-child { border-inline-end: 0; }
.home-benefits svg { width: 31px; height: 31px; flex: 0 0 auto; color: var(--home-blue-soft); }
.home-benefits b, .home-benefits small { display: block; }
.home-benefits b { font-size: 11px; }
.home-benefits small { color: var(--home-muted); font-size: 9px; }

.home-content { padding-block: 36px 64px; }
.home-category-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
    border: 1px solid var(--home-line);
    border-radius: 9px;
    background: var(--home-panel);
    overflow: hidden;
}
.home-category-rail a { min-height: 106px; display: grid; grid-template-columns: 90px 1fr; grid-template-rows: 1fr 1fr; align-items: end; gap: 0 14px; padding: 12px 18px; border-inline-end: 1px solid var(--home-line); color: #fff; }
.home-category-rail a:last-child { border-inline-end: 0; }
.home-category-rail a > span { width: 90px; height: 82px; display: grid; place-items: center; grid-row: 1 / 3; overflow: hidden; }
.home-category-rail img { width: 100%; height: 100%; object-fit: contain; }
.home-category-rail svg { width: 44px; height: 44px; color: var(--home-blue); }
.home-category-rail b { align-self: end; font-size: 13px; }
.home-category-rail small { align-self: start; color: #5daeff; font-size: 9px; }

.home-search { max-width: 720px; display: grid; grid-template-columns: 1fr auto; margin: 0 auto 28px; border: 1px solid #1d324d; border-radius: 8px; background: #07111f; overflow: hidden; }
.home-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 13px 16px; }
.home-search button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--home-blue); color: #fff; padding: 0 19px; cursor: pointer; }
.home-search svg { width: 17px; height: 17px; }

.home-promotion-strip { display: grid; gap: 8px; margin-bottom: 26px; }
.home-promotion-strip a { display: flex; align-items: center; gap: 12px; border-inline-start: 3px solid var(--home-blue); background: #081522; color: #fff; padding: 10px 14px; }
.home-promotion-strip span { color: #4bb3ff; font-size: 10px; font-weight: 900; }
.home-promotion-strip small { color: var(--home-muted); }

.home-product-sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
.home-showcase { min-width: 0; }
.showcase-heading, .reference-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.showcase-heading h2, .reference-section-heading h2 { margin: 0; color: #fff; font-size: 18px; }
.showcase-heading small, .reference-section-heading small { color: #4aa9ff; font-size: 9px; }
.showcase-heading a, .reference-section-heading > a { color: #5eaef9; font-size: 9px; white-space: nowrap; }
.showcase-list { display: grid; gap: 8px; }
.showcase-card { min-height: 125px; display: grid; grid-template-columns: 88px 1fr; grid-template-rows: 1fr; position: relative; border: 1px solid #14243a; border-radius: 7px; background: var(--home-panel); color: #fff; padding: 9px; overflow: hidden; }
.showcase-image { width: 82px; height: 106px; display: grid; place-items: center; border-radius: 5px; background: #030914; overflow: hidden; }
.showcase-image img { width: 100%; height: 100%; object-fit: contain; }
.showcase-image svg { width: 36px; height: 36px; color: var(--home-blue); }
.showcase-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-inline-start: 10px; }
.showcase-copy small { color: #75869e; font-size: 8px; }
.showcase-copy b { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.showcase-copy strong { margin-top: 7px; color: #fff; font-size: 12px; }
.showcase-card em { position: absolute; inset: 7px 7px auto auto; border-radius: 3px; background: #6b35df; color: #fff; padding: 2px 5px; font-size: 7px; font-style: normal; }

.reference-brands, .reference-catalog { margin-top: 34px; }
.reference-brand-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.reference-brand-list > a { min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--home-line); border-radius: 7px; background: var(--home-panel); color: #fff; padding: 9px; }
.reference-brand-list .brand-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.reference-brand-list b, .reference-brand-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-brand-list b { font-size: 10px; }
.reference-brand-list small { color: var(--home-muted); font-size: 8px; }

.reference-catalog .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reference-catalog .product-card { border-color: #15253b; background: var(--home-panel); }
.reference-catalog .product-visual { height: 210px; }
.reference-catalog .product-copy h3 { color: #fff; }

.store-info-dialog {
    width: min(680px, calc(100% - 24px));
    max-height: min(760px, calc(100vh - 36px));
    border: 1px solid #29476d;
    border-radius: 13px;
    background: #07111f;
    color: #fff;
    padding: 0;
    box-shadow: 0 28px 90px #000d;
    overflow: auto;
}
.store-info-dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; position: sticky; z-index: 2; top: 0; border-bottom: 1px solid #1b2e49; background: #07111ff5; padding: 18px 20px; }
.dialog-heading span { color: #47aaff; font-size: 9px; font-weight: 900; }
.dialog-heading h2 { margin: 2px 0 0; font-size: 22px; }
.dialog-heading > button { width: 35px; height: 35px; border: 1px solid #2a405d; border-radius: 50%; background: #0c1b2e; color: #fff; font-size: 22px; cursor: pointer; }
.shipping-region-list, .payment-method-list { display: grid; gap: 9px; padding: 18px 20px; }
.shipping-region-list article { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; border: 1px solid #1b2d46; border-radius: 8px; background: #0a1727; padding: 13px; }
.shipping-region-list b, .shipping-region-list small { display: block; }
.shipping-region-list small { color: #8192aa; }
.shipping-region-list strong { color: #50b4ff; }
.shipping-region-list p { grid-column: 1 / -1; margin: 0; color: #a9b6c8; font-size: 11px; }
.dialog-note { margin: 0 20px 16px; border-inline-start: 3px solid #168cf2; background: #0b1d32; color: #bac8da; padding: 11px 13px; font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 0 20px 20px; }
.dialog-actions a, .dialog-actions button, .payment-number button, .payment-link { border: 1px solid #2474b9; border-radius: 6px; background: #087ce9; color: #fff; padding: 9px 15px; cursor: pointer; font-weight: 800; }
.dialog-actions button { background: #0c1b2e; border-color: #2b405c; }
.dialog-empty { color: #9babc0; text-align: center; padding: 20px; }
.payment-method-list { grid-template-columns: 1fr 1fr; align-items: start; }
.payment-method-list article { min-width: 0; display: grid; gap: 10px; border: 1px solid #1a2c45; border-radius: 9px; background: #0a1727; padding: 14px; }
.payment-method-heading { display: flex; align-items: center; gap: 10px; }
.payment-method-heading > img, .payment-method-heading > span { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; border-radius: 7px; background: #fff; object-fit: contain; }
.payment-method-heading > span { background: #10263f; color: #54b5ff; }
.payment-method-heading svg { width: 24px; height: 24px; }
.payment-method-heading b, .payment-method-heading small { display: block; }
.payment-method-heading small, .payment-method-list p small { color: #8294ac; }
.payment-method-list p { margin: 0; }
.payment-method-list p > b { display: block; }
.payment-number { display: grid; gap: 8px; }
.payment-number span small, .payment-number span b { display: block; }
.payment-number span small { color: #8294ac; }
.payment-number span b { color: #61bdff; letter-spacing: .05em; }
.payment-number button { justify-self: start; padding: 7px 10px; font-size: 9px; }
.payment-coming-soon { border: 1px dashed #2e4767; border-radius: 6px; color: #adbbcb; padding: 10px; font-size: 10px; }
.payment-instructions { color: #b5c2d3; font-size: 10px; white-space: pre-line; }
.payment-qr { width: 130px; max-width: 100%; justify-self: center; border-radius: 7px; background: #fff; padding: 5px; }
.payment-link { justify-self: start; font-size: 10px; }
.copy-feedback { min-height: 20px; margin: 0 20px 10px; color: #66d9ac; font-size: 11px; text-align: center; }

.store-home footer { border-color: #13233a; background: #010610; }
.store-home .footer-content { border-color: #17283f; background: #07111f; }

@media (max-width: 1080px) {
    .home-main-nav { gap: 15px; }
    .home-main-nav a { font-size: 10px; }
    .home-product-sections { grid-template-columns: 1fr 1fr; }
    .reference-brand-list { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
    .home-utility-inner { justify-content: center; }
    .home-account-links .utility-welcome, .home-service-links span { display: none; }
    .home-main-nav { display: none; }
    .home-mobile-nav { display: block; }
    .home-header-inner { grid-template-columns: 1fr auto; gap: 12px; }
    .home-logo img { width: 50px; height: 50px; }
    .home-logo b { font-size: 20px; }
    .reference-hero, .reference-hero > img { height: auto; min-height: 330px; }
    .reference-hero > img { min-height: 330px; object-fit: cover; }
    .reference-hero-action { inset-block-end: 54px; }
    .home-benefits { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; margin-inline: 10px; }
    .home-category-rail { grid-template-columns: 1fr 1fr; }
    .home-category-rail a:nth-child(2) { border-inline-end: 0; }
    .reference-catalog .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .home-utility { min-height: 32px; }
    .home-utility-inner { width: calc(100% - 20px); }
    .home-account-links { gap: 7px; }
    .home-service-links a:first-of-type { display: none; }
    .home-header-inner { min-height: 68px; }
    .home-logo img { width: 46px; height: 46px; }
    .home-logo span { display: none; }
    .home-nav-search { display: none; }
    .reference-hero, .reference-hero > img { min-height: 240px; }
    .reference-hero > img { height: 240px; }
    .reference-hero-action { inset-block-end: 32px; }
    .reference-hero-action a { min-width: 120px; padding: 9px 13px; font-size: 11px; }
    .reference-hero-action small { display: none; }
    .home-benefits { min-height: 74px; margin-top: -20px; }
    .home-benefits > div, .home-benefits > button { min-width: 145px; padding: 10px 7px; }
    .home-benefits svg { width: 25px; height: 25px; }
    .home-content { padding-top: 24px; }
    .home-category-rail a { min-height: 86px; grid-template-columns: 62px 1fr; padding: 8px 10px; }
    .home-category-rail a > span { width: 62px; height: 66px; }
    .home-product-sections { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .home-product-sections .home-showcase { min-width: min(86vw, 340px); scroll-snap-align: start; }
    .reference-brand-list { grid-template-columns: 1fr 1fr; }
    .reference-catalog .product-grid { grid-template-columns: 1fr 1fr; }
    .reference-catalog .product-visual { height: 155px; }
    .payment-method-list { grid-template-columns: 1fr; }
    .store-info-dialog { max-height: calc(100vh - 18px); }
    .dialog-heading, .shipping-region-list, .payment-method-list { padding-inline: 14px; }
    .dialog-note { margin-inline: 14px; }
    .dialog-actions { padding-inline: 14px; }
}
/* The hero artwork remains dark by design; these overrides cover the surrounding home UI. */
html[data-theme="light"] .store-home {
    --home-bg: #eef3f7;
    --home-panel: #ffffff;
    --home-panel-2: #f6f9fb;
    --home-line: #d4dee6;
    --home-blue: #0874d8;
    --home-blue-soft: #167fcf;
    --home-text: #17283a;
    --home-muted: #647587;
    background: var(--home-bg);
    color: var(--home-text);
}
html[data-theme="light"] .store-home .reference-home { background: radial-gradient(circle at 72% 20%, #dcecff 0, transparent 31%), var(--home-bg); }
html[data-theme="light"] .store-home .home-utility { border-color: #dbe3e9; background: #f8fafc; color: #596b7c; }
html[data-theme="light"] .store-home .home-utility a,
html[data-theme="light"] .store-home .home-account-display { color: #263b50; }
html[data-theme="light"] .store-home .utility-welcome { border-color: #d7e0e7; }
html[data-theme="light"] .store-home .home-header { border-color: #d5dfe7; background: #fffffff2; }
html[data-theme="light"] .store-home .home-logo { color: #17283a; }
html[data-theme="light"] .store-home .home-main-nav a { color: #52667a; }
html[data-theme="light"] .store-home .home-main-nav a:hover,
html[data-theme="light"] .store-home .home-main-nav a.active { color: #0b5fae; }
html[data-theme="light"] .store-home .home-nav-search input,
html[data-theme="light"] .store-home .home-nav-search button,
html[data-theme="light"] .store-home .home-theme-toggle,
html[data-theme="light"] .store-home .home-cart,
html[data-theme="light"] .store-home .home-mobile-nav summary { border-color: #c9d6df; background: #fff; color: #20354a; }
html[data-theme="light"] .store-home .home-mobile-nav nav { border-color: #ccd8e1; background: #fff; box-shadow: 0 20px 40px #27435f26; }
html[data-theme="light"] .store-home .home-mobile-nav nav a { border-color: #dce4ea; color: #20354a; }
html[data-theme="light"] .store-home .home-benefits { border-color: #cfdbe4; background: #fffffff2; box-shadow: 0 18px 45px #28445c26; }
html[data-theme="light"] .store-home .home-benefits > div,
html[data-theme="light"] .store-home .home-benefits > button { border-color: #d7e1e8; color: #20354a; }
html[data-theme="light"] .store-home .home-benefits > button:hover,
html[data-theme="light"] .store-home .home-benefits > button:focus-visible { background: #edf6ff; }
html[data-theme="light"] .store-home .home-category-rail,
html[data-theme="light"] .store-home .showcase-card,
html[data-theme="light"] .store-home .reference-brand-list > a,
html[data-theme="light"] .store-home .reference-catalog .product-card { border-color: var(--home-line); background: #fff; color: #1d3145; box-shadow: 0 8px 24px #31506b12; }
html[data-theme="light"] .store-home .home-category-rail a { border-color: var(--home-line); color: #1d3145; }
html[data-theme="light"] .store-home .home-search { border-color: #cbd8e2; background: #fff; }
html[data-theme="light"] .store-home .home-search input { color: #17283a; }
html[data-theme="light"] .store-home .home-promotion-strip a { background: #fff; color: #20354a; }
html[data-theme="light"] .store-home .showcase-heading h2,
html[data-theme="light"] .store-home .reference-section-heading h2,
html[data-theme="light"] .store-home .showcase-copy b,
html[data-theme="light"] .store-home .showcase-copy strong,
html[data-theme="light"] .store-home .reference-catalog .product-copy h3,
html[data-theme="light"] .store-home .reference-catalog .product-copy h3 a { color: #17283a; }
html[data-theme="light"] .store-home .showcase-image,
html[data-theme="light"] .store-home .reference-catalog .product-visual { background: #f5f8fa; }
html[data-theme="light"] .store-home .store-info-dialog { border-color: #c9d6df; background: #fff; color: #17283a; box-shadow: 0 28px 90px #2d465933; }
html[data-theme="light"] .store-home .dialog-heading { border-color: #d9e2e8; background: #fffffff5; }
html[data-theme="light"] .store-home .dialog-heading > button { border-color: #ccd8e0; background: #f3f7fa; color: #20354a; }
html[data-theme="light"] .store-home .shipping-region-list article,
html[data-theme="light"] .store-home .payment-method-list article { border-color: #d6e0e7; background: #f8fafc; }
html[data-theme="light"] .store-home .dialog-note { background: #eaf4fd; color: #43586c; }
html[data-theme="light"] .store-home .shipping-region-list p,
html[data-theme="light"] .store-home .payment-instructions { color: #53677a; }
html[data-theme="light"] .store-home footer { border-color: #d1dce4; background: #e8eef2; color: #263b4f; }
html[data-theme="light"] .store-home .footer-content { border-color: #d1dce4; background: #fff; }
html[data-theme="light"] .store-home .footer-content > * { border-color: #dbe3e9; }
html[data-theme="light"] .store-home .footer-content b { color: #17283a; }
