/* Storefront homepage. Shared checkout and account styles are kept separate. */
body:has(main.shop-home) {
    background-color: #f4f3f9;
}

body:has(main.shop-home) .uc-topbar {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body:has(main.shop-home) .uc-topbar .shop-nav {
    border-color: transparent !important;
    box-shadow: none !important;
}

body:has(main.shop-home) .uc-topbar .shop-brand__name {
    color: #fff !important;
}

body:has(main.shop-home) .uc-topbar .shop-nav__item.active {
    background: #594394 !important;
}

main.shop-home.container {
    --shop-hero-ink: #f9f7ff;
    --shop-hero-muted: #e1d9f5;
    --shop-home-ink: #251d39;
    --shop-home-muted: #675d78;
    --shop-home-accent: #50359e;
    --shop-home-line: #e5dff1;
    gap: 26px;
}

.shop-home .shop-hero-wrap {
    isolation: isolate;
    color: var(--shop-hero-ink);
    background: linear-gradient(118deg, #211532, #352357 65%, #252246);
    border-color: #77619c;
    box-shadow: none !important;
}

.shop-home .shop-hero-wrap::before,
.shop-home .shop-hero-wrap::after {
    content: "";
    position: absolute;
    display: block;
    pointer-events: none;
    z-index: -1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    height: auto;
}

.shop-home .shop-hero-wrap::before {
    inset: -23% -15% -18% -10%;
    background:
        radial-gradient(ellipse 43% 46% at 87% 29%, #6559c1c4 0%, #7950b770 46%, transparent 74%),
        radial-gradient(ellipse 33% 75% at 96% 66%, #4fa7b578 0%, #455fb14a 47%, transparent 76%),
        radial-gradient(ellipse 37% 45% at 48% 96%, #b74eaf69 0%, #7544af38 45%, transparent 76%),
        linear-gradient(151deg, transparent 41%, #d0acff30 53%, #7a79dc12 62%, transparent 75%);
    opacity: .93;
    transform-origin: 78% 48%;
    animation: shop-home-aurora 18s ease-in-out infinite alternate;
}

.shop-home .shop-hero-wrap::after {
    inset: 0;
    opacity: .82;
    background:
        radial-gradient(circle at 4% 14%, #e3cbff 0 1px, transparent 2px),
        radial-gradient(circle at 9% 83%, #bbacff 0 1px, transparent 2px),
        radial-gradient(circle at 17% 8%, #e6c1fa 0 1px, transparent 2px),
        radial-gradient(circle at 29% 74%, #bfa7ef 0 1px, transparent 2px),
        radial-gradient(circle at 38% 12%, #bd9fe5 0 1px, transparent 2px),
        radial-gradient(circle at 49% 20%, #ded4ff 0 1px, transparent 2px),
        radial-gradient(circle at 51% 64%, #efe4ff 0 1px, #c8aaff50 2px, transparent 5px),
        radial-gradient(circle at 56% 11%, #faf5ff 0 1px, #e9caff66 2px, transparent 6px),
        radial-gradient(circle at 59% 46%, #d2c5fd 0 1px, transparent 2px),
        radial-gradient(circle at 62% 69%, #dac7fc 0 1px, transparent 2px),
        radial-gradient(circle at 73% 6%, #e9c3ff 0 1px, transparent 3px),
        radial-gradient(circle at 78% 90%, #b9d8ff 0 1px, transparent 3px),
        radial-gradient(circle at 96% 79%, #a5e2ff 0 1px, #bfefff44 2px, transparent 6px),
        radial-gradient(circle at 98% 19%, #ece7ff 0 1px, transparent 3px);
}

@keyframes shop-home-aurora {
    from { transform: translate3d(-2%, 0, 0) rotate(-3deg) scale(1); }
    to { transform: translate3d(3%, -3%, 0) rotate(6deg) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .shop-home .shop-hero-wrap::before { animation: none; }
    .shop-home .shop-trust__dot { animation: none; }
}

.shop-home .shop-hero__tags { color: #e8d5ff; }
.shop-home .shop-hero__title { color: var(--shop-hero-ink); letter-spacing: 0; }
.shop-home .shop-hero__title em { color: #e0c6ff; }
.shop-home .shop-hero__desc { color: var(--shop-hero-muted); }

.shop-home .shop-hero__actions { gap: 9px; }
.shop-home .shop-hero__btn { min-height: 44px; border-radius: 11px; }
.shop-home .shop-hero__btn--primary,
.shop-home .shop-hero__btn--primary:hover {
    color: #2a194c !important;
    background: linear-gradient(115deg, #efdcff, #d8d1ff) !important;
    border-color: #e5d3ff !important;
    box-shadow: 0 4px 16px #c5a5ff49;
}

.shop-home .shop-hero__btn--primary:hover { background: #f0e6ff !important; }
.shop-home .shop-hero__btn--ghost,
.shop-home .shop-hero__btn--ghost:hover {
    color: #fff !important;
    background: #ffffff12 !important;
    border-color: #cdb9ea91 !important;
}

.shop-home .shop-hero__trust { gap: 6px 14px; }
.shop-home .shop-hero__trust :is(.shop-trust--users, .shop-trust--served) {
    background: #ffffff14;
    border-color: #dfcbff65;
}
.shop-home .shop-hero__trust .shop-trust__label,
.shop-home .shop-hero__trust .shop-trust__num { color: #ece3fb; }
.shop-home .shop-hero__trust .shop-trust__icon { color: #d9baff; }
.shop-home .shop-trust__dot { background: #d6b4ff; }
.shop-home .shop-tg-card {
    border-color: #eee8fa;
    border-radius: 19px;
    background: #fbf9ff;
    box-shadow: 0 6px 18px #1d103623;
}

.shop-home .shop-hero__bar {
    border-top-color: #f2e4ff42;
    color: #e8dcfb;
}
.shop-home .shop-hero__bar-item b,
.shop-home a.shop-hero__bar-item:hover { color: #fff; }
.shop-home a.shop-hero__bar-contract,
.shop-home a.shop-hero__bar-contract:hover {
    color: #2a194c;
    background: #ecddff;
    border-radius: 11px;
}

.shop-home .shop-products__head { min-width: 0; }
.shop-home .shop-products { box-shadow: none !important; }
.shop-home .shop-products__title { color: var(--shop-home-ink); }
.shop-home .shop-products__search-box,
.shop-home .chip-list {
    border-color: var(--shop-home-line);
    box-shadow: 0 3px 12px #3723570a;
}
.shop-home .chip.is-primary {
    background: #eee8fa;
    color: #3d267c;
    box-shadow: inset 3px 0 var(--shop-home-accent);
}
.shop-home .chip-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.shop-home .chip-count { flex-shrink: 0; }

.shop-home .item-list {
    gap: 10px;
    padding: 0;
    margin-inline: 0;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.shop-home .item-card-cell { display: flex; min-width: 0; text-decoration: none; }
.shop-home .item-card-cell .acg-card,
.shop-home .item-card-cell:last-child .acg-card {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--shop-home-line);
    border-radius: 16px;
    padding: 13px 15px;
    box-shadow: 0 3px 10px #3629540b;
}
.shop-home .item-card-cell:hover .acg-card,
.shop-home .item-card-cell:focus-visible .acg-card {
    border-color: #b9a9de;
    background: #fcfaff;
}
.shop-home .acg-card .acg-thumb {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-color: var(--shop-home-line);
}
.shop-home .acg-card .goods-title {
    color: var(--shop-home-ink);
    font-size: 15px;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}
.shop-home .acg-body .stat-row .price {
    color: #442c87;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}
.shop-home .acg-body > .stat-bottom { color: var(--shop-home-muted); }
.shop-home .acg-card > .acg-body::after {
    min-height: 38px;
    height: auto;
    padding: 6px 15px;
    background: var(--shop-home-accent);
    border-radius: 10px;
}
.shop-home .acg-card.soldout > .acg-body::after {
    background: #eee9f7;
    color: #584e67;
}
.shop-home a:focus-visible,
body:has(main.shop-home) .uc-topbar a:focus-visible {
    outline: 2px solid #9d76e7;
    outline-offset: 3px;
}

@media (min-width: 1050px) {
    .shop-home .shop-products { grid-template-columns: 215px minmax(0, 1fr); }
    .shop-home .item-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 899px), (min-width: 1050px) {
    .shop-home .acg-card > .acg-body {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        grid-template-areas: "title title" "tags tags" "price action" "stock action";
        gap: 5px 7px;
    }
    .shop-home .acg-body > .stat-row {
        flex-flow: row wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
    }
    .shop-home .acg-body > .stat-bottom {
        grid-area: stock;
        justify-self: stretch;
        align-items: center;
        justify-content: flex-start;
        flex-flow: row wrap;
        gap: 2px 8px;
        margin: 0;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    main.shop-home.container { gap: 18px; }
    .shop-home .shop-hero { gap: 14px; }
    .shop-home .shop-products { padding-inline: 0; }
    .shop-home .acg-card .acg-thumb { width: 43px; height: 43px; flex-basis: 43px; }
    .shop-home .item-card-cell .acg-card,
    .shop-home .item-card-cell:last-child .acg-card { gap: 9px; padding: 11px; }
    .shop-home .acg-card > .acg-body::after { padding-inline: 10px; }
}

@media (max-width: 768px) {
    body:has(main.shop-home) .uc-topbar .shop-nav { gap: 8px; }
    body:has(main.shop-home) .uc-topbar :is(.shop-nav__list,.shop-search,.shop-auth,.shop-extra),
    body:has(main.shop-home) .uc-topbar .shop-nav__right > a.shop-icon-btn { display: none !important; }
    body:has(main.shop-home) .uc-topbar .shop-brand { flex: 1 1 auto; gap: 7px; }
    body:has(main.shop-home) .uc-topbar .shop-brand__name { display: block; min-width: 0; }
    body:has(main.shop-home) .uc-topbar .shop-burger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: #fff;
        width: 42px;
        height: 42px;
    }
    .shop-home .shop-tg-card__tile .material-icons-outlined { flex: 0 0 22px; width: 22px; overflow: hidden; }
}
