/*
 * Homepage storefront
 * Search-first, product-first, compact rails. No generic hero copy.
 */
.home-storefront {
    padding: 22px 0 38px;
    border-bottom: 1px solid var(--light-line);
    background: #fff;
    color: var(--ink);
}

.home-product-search {
    display: grid;
    min-height: 58px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 6px 7px 6px 18px;
    border: 1px solid #e3e9eb;
    border-radius: 15px;
    background: #f4f6f8;
}

.home-product-search svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #778991;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.home-product-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}

.home-product-search input::placeholder {
    color: #a0adb2;
}

.home-product-search button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    cursor: pointer;
}

.home-store-meta {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 3px;
    color: #63757c;
    font-size: 10px;
    font-weight: 700;
}

.home-store-meta > span,
.home-store-meta > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-store-meta svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.home-store-meta > span svg {
    color: #e03845;
}

.home-store-meta > a {
    color: #253a42;
}

.home-store-meta [data-favorite-count] {
    display: none;
}

.home-store-meta [data-favorite-count].has-items {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #e8f7f9;
    color: #007f94;
    font-size: 9px;
}

.home-featured-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 2px;
}

.home-utility-card {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 226px;
    overflow: hidden;
    border: 1px solid #173139;
    border-radius: 17px;
    background:
        linear-gradient(rgba(34, 118, 132, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 118, 132, .06) 1px, transparent 1px),
        #08191e;
    background-size: 28px 28px;
    color: #f2fafb;
    transition: border-color .2s ease, transform .2s ease;
}

.home-utility-card:nth-child(2) {
    background-color: #10191b;
}

.home-utility-card:nth-child(3) {
    background-color: #101712;
}

.home-utility-card::after {
    position: absolute;
    right: -48px;
    bottom: -62px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(69, 196, 214, .12);
    border-radius: 50%;
    content: "";
}

.home-utility-copy {
    position: relative;
    z-index: 2;
    width: 64%;
    padding: 24px 0 62px 22px;
}

.home-utility-copy small {
    display: block;
    color: #58c9da;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-utility-copy h2 {
    max-width: 225px;
    margin: 18px 0 9px;
    color: #fff;
    font-size: clamp(22px, 1.8vw, 28px);
    letter-spacing: -.045em;
    line-height: 1.02;
}

.home-utility-copy span {
    display: block;
    max-width: 200px;
    color: #8fa5ac;
    font-size: 10px;
    font-weight: 620;
    line-height: 1.45;
}

.home-utility-card > b {
    position: absolute;
    z-index: 3;
    bottom: 20px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dce9ec;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.home-utility-card > b i {
    color: #18bfd6;
    font-style: normal;
    font-size: 12px;
}

.home-utility-visual {
    position: absolute;
    z-index: 1;
    top: 17px;
    right: 12px;
    bottom: 17px;
    display: grid;
    width: 42%;
    place-items: center;
}

.home-utility-visual::before {
    position: absolute;
    width: min(100%, 132px);
    aspect-ratio: 1;
    border: 1px solid rgba(85, 203, 219, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgba(85, 203, 219, .035),
        0 0 0 44px rgba(85, 203, 219, .02);
    content: "";
}

.home-utility-visual svg {
    position: relative;
    z-index: 1;
    width: min(100%, 142px);
    height: auto;
    fill: none;
    stroke: rgba(190, 237, 242, .74);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-utility-visual > i {
    position: absolute;
    z-index: 2;
    top: 14%;
    right: 4%;
    display: none;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    place-items: center;
    border: 1px solid #6bd4e2;
    border-radius: 999px;
    background: #0bb1ca;
    color: #05161b;
    font-style: normal;
    font-size: 10px;
    font-weight: 850;
}

.home-utility-visual > i.has-items {
    display: inline-grid;
}

.home-utility-card:hover {
    border-color: #35bcd0;
    transform: translateY(-2px);
}

.home-utility-card:hover .home-utility-visual svg {
    stroke: #e5fbfd;
}

.home-utility-card:focus-visible {
    outline: 3px solid rgba(11, 177, 202, .28);
    outline-offset: 3px;
}

.home-featured-card {
    position: relative;
    display: grid;
    min-height: 226px;
    grid-template-columns: minmax(0, 1fr) 46%;
    overflow: hidden;
    border: 1px solid #173139;
    border-radius: 17px;
    background: #08191e;
    color: #f2fafb;
}

.home-featured-card:nth-child(2) {
    background: #10191b;
}

.home-featured-card:nth-child(3) {
    background: #101712;
}

.home-featured-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 8px 20px 22px;
}

.home-featured-copy > small {
    color: #58c9da;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-featured-copy h2 {
    max-width: 210px;
    margin: 20px 0 8px;
    color: #fff;
    font-size: clamp(21px, 1.8vw, 27px);
    letter-spacing: -.045em;
    line-height: 1.03;
}

.home-featured-copy > strong {
    color: #dce9ec;
    font-size: 13px;
}

.home-featured-copy > strong del {
    color: #70868e;
    font-size: 10px;
}

.home-featured-copy > strong ins {
    color: #fff;
    text-decoration: none;
}

.home-featured-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #9db1b7;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-featured-open span {
    color: #14bad2;
}

.home-featured-media {
    display: grid;
    min-width: 0;
    margin: 8px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f6f6;
}

.home-featured-media img {
    width: 100%;
    height: 100%;
    padding: 18px 12px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transform: scale(1.16);
}

.home-featured-favorite {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.home-category-title,
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.home-category-title {
    margin: 35px 0 16px;
}

.home-category-title h1,
.home-section-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 43px);
    letter-spacing: -.06em;
    line-height: 1;
}

.home-category-title > a,
.home-section-head > a,
.home-section-head > button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #53686f;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.home-category-title > a span {
    color: #00a9c3;
}

.home-category-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 7px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.home-category-rail::-webkit-scrollbar,
.home-filter-rail::-webkit-scrollbar,
.home-featured-rail::-webkit-scrollbar,
.home-personal-shelf .personal-product-grid::-webkit-scrollbar {
    display: none;
}

.home-category-shortcut {
    min-width: 0;
    scroll-snap-align: start;
    text-align: center;
}

.home-category-icon {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e1e7e9;
    border-radius: 15px;
    background: #f2f5f6;
}

.home-category-icon img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.home-category-icon svg {
    width: 44px;
    height: 56px;
    fill: none;
    stroke: #1e353d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.home-category-shortcut > b {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    color: #263b43;
    font-size: 10px;
    font-weight: 720;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-category-shortcut.is-all .home-category-icon {
    grid-template-columns: repeat(2, 14px);
    grid-template-rows: repeat(2, 14px);
    gap: 5px;
    place-content: center;
    border-color: #08afc8;
    background: #08afc8;
}

.home-category-shortcut.is-all .home-category-icon i {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #fff;
}

.home-category-shortcut[data-category="setups"] .home-category-icon img {
    padding: 0;
    object-fit: cover;
    mix-blend-mode: normal;
}

.home-filter-rail {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-top: 16px;
    padding-bottom: 3px;
    scrollbar-width: none;
}

.home-filter-rail a {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 13px;
    border: 1px solid #dce4e6;
    border-radius: 999px;
    color: #53666e;
    background: #fff;
    font-size: 9px;
    font-weight: 750;
    line-height: 32px;
}

.home-filter-rail a:first-child {
    border-color: #d9d2a8;
    background: #faf8ec;
    color: #665d24;
}

.home-popular-section,
.home-personal-shelf {
    padding: 48px 0 58px;
    border-bottom: 1px solid var(--light-line);
    background: #f4f6f6;
    color: var(--ink);
}

.home-section-head {
    margin-bottom: 20px;
}

.home-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-product-grid .mini-whatsapp,
.home-product-grid .compare-card-button {
    display: none;
}

.home-product-grid .product-card-actions {
    grid-template-columns: 1fr;
}

.home-personal-shelf {
    background: #fff;
}

.home-personal-shelf + .home-personal-shelf {
    padding-top: 0;
    border-top: 0;
}

.home-personal-shelf .personal-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-personal-shelf .mini-whatsapp,
.home-personal-shelf .compare-card-button {
    display: none;
}

.home-personal-shelf .product-card-actions {
    grid-template-columns: 1fr;
}

.home-tools {
    padding: 34px 0 94px;
    background: #fff;
    color: var(--ink);
}

.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--light-line);
    border-left: 1px solid var(--light-line);
}

.home-tools-grid a {
    position: relative;
    display: flex;
    min-height: 120px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-right: 1px solid var(--light-line);
    border-bottom: 1px solid var(--light-line);
    background: #fff;
}

.home-tools-grid small {
    color: #00a5be;
    font-size: 8px;
    font-weight: 850;
}

.home-tools-grid strong {
    font-size: 19px;
    letter-spacing: -.035em;
}

.home-tools-grid span {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #7c8d93;
}

.home-tools-grid a:hover {
    background: #f0fafb;
}

@media (max-width: 1050px) {
    .home-featured-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-featured-rail.home-utility-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-utility-card {
        min-height: 205px;
    }

    .home-utility-copy {
        width: 68%;
        padding-left: 18px;
    }

    .home-utility-copy h2 {
        font-size: 22px;
    }

    .home-utility-card > b {
        left: 18px;
    }

    .home-featured-card:nth-child(3) {
        display: none;
    }

    .home-product-grid,
    .home-personal-shelf .personal-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-featured-rail,
    .home-category-rail,
    .home-filter-rail,
    .home-personal-shelf .personal-product-grid {
        contain: paint;
    }

    .home-storefront {
        padding: 13px 0 28px;
    }

    .home-storefront .container,
    .home-popular-section .container,
    .home-personal-shelf .container,
    .home-tools .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .home-product-search {
        min-height: 54px;
        grid-template-columns: 24px minmax(0, 1fr) auto;
        gap: 9px;
        padding-left: 14px;
        border-radius: 13px;
    }

    .home-product-search input {
        font-size: 14px;
    }

    .home-product-search button {
        min-height: 42px;
        padding-inline: 16px;
        border-radius: 9px;
        font-size: 8px;
    }

    .home-store-meta {
        min-height: 46px;
        font-size: 9px;
    }

    .home-featured-rail {
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        grid-template-columns: none;
        gap: 8px;
        overflow-x: auto;
        margin-right: -12px;
        padding-right: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-featured-rail.home-utility-rail {
        grid-template-columns: none;
    }

    .home-utility-card {
        min-height: 184px;
        scroll-snap-align: start;
    }

    .home-utility-copy {
        width: 65%;
        padding: 19px 0 55px 17px;
    }

    .home-utility-copy h2 {
        max-width: 190px;
        margin-top: 14px;
        font-size: 22px;
    }

    .home-utility-copy span {
        max-width: 170px;
        font-size: 9px;
    }

    .home-utility-card > b {
        bottom: 16px;
        left: 17px;
    }

    .home-utility-visual {
        top: 12px;
        right: 8px;
        bottom: 12px;
        width: 40%;
    }

    .home-utility-visual svg {
        width: min(100%, 118px);
    }

    .home-featured-card,
    .home-featured-card:nth-child(3) {
        display: grid;
        min-height: 184px;
        scroll-snap-align: start;
    }

    .home-featured-copy {
        padding: 19px 6px 16px 17px;
    }

    .home-featured-copy h2 {
        margin-top: 15px;
        font-size: 21px;
    }

    .home-featured-media {
        margin: 6px;
    }

    .home-featured-media img {
        padding: 12px 8px;
    }

    .home-featured-favorite {
        top: 11px;
        right: 11px;
        width: 32px;
        height: 32px;
    }

    .home-category-title {
        margin: 28px 0 14px;
    }

    .home-category-title h1,
    .home-section-head h2 {
        font-size: 32px;
    }

    .home-category-rail {
        grid-auto-columns: 78px;
        gap: 8px;
        margin-right: -12px;
        padding-right: 12px;
    }

    .home-category-icon {
        border-radius: 13px;
    }

    .home-category-shortcut > b {
        font-size: 9px;
    }

    .home-popular-section,
    .home-personal-shelf {
        padding: 34px 0 42px;
    }

    .home-section-head {
        margin-bottom: 16px;
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-personal-shelf .personal-product-grid {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow-x: visible;
        margin-right: 0;
        padding-right: 0;
        scroll-snap-type: none;
    }

    .home-personal-shelf .product-card {
        scroll-snap-align: none;
    }

    .home-tools {
        padding: 22px 0 100px;
    }

    .home-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-tools-grid a {
        min-height: 76px;
        justify-content: center;
        padding: 15px 17px;
    }

    .home-tools-grid small {
        position: absolute;
        top: 12px;
        left: 17px;
    }

    .home-tools-grid strong {
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .home-store-meta > span {
        max-width: 160px;
    }

    .home-product-search button {
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-utility-card,
    .home-featured-card,
    .home-category-shortcut,
    .home-tools-grid a {
        transition: none;
        scroll-behavior: auto;
    }
}
