/* ==========================================================
   CANDY HOME V1
   独立首页主题：高端糖果风 / 只由 storefront 首页加载
   不修改商品数据、路由、购物车或业务 JavaScript
   ========================================================== */
:root {
    --candy-ink: #262626;
    --candy-muted: #74777c;
    --candy-peach: #E58A55;
    --candy-cream: #EDE4DA;
    --candy-surface: #F7F7F8;
    --candy-mint: #DDF2E8;
    --candy-sky: #E4F1FB;
    --candy-lilac: #F0E9FA;
    --candy-yellow: #FFF2C9;
    --candy-line: rgba(38, 38, 38, .08);
    --candy-shadow: 0 18px 46px rgba(61, 48, 38, .075);
    --candy-shadow-hover: 0 24px 52px rgba(61, 48, 38, .12);
}

body.store-body.store-v3-body {
    color: var(--candy-ink);
    background:
        radial-gradient(ellipse at 5% 8%, rgba(229, 138, 85, .055), transparent 30%),
        radial-gradient(ellipse at 96% 20%, rgba(185, 220, 242, .16), transparent 28%),
        #F7F7F8;
}

body.store-body.store-v3-body .store-main {
    width: min(1460px, calc(100% - 48px));
    max-width: 1460px;
    margin-inline: auto;
}

.store-header {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(38, 38, 38, .055);
    box-shadow: 0 6px 24px rgba(38, 38, 38, .035);
    backdrop-filter: blur(16px);
}

.store-header-inner {
    width: min(1460px, calc(100% - 48px));
    max-width: 1460px;
    margin-inline: auto;
    gap: 22px;
}

.store-brand-mark {
    border: 0;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #E58A55, #F2B785);
    box-shadow: 0 8px 18px rgba(229, 138, 85, .22);
}

.store-brand strong {
    color: var(--candy-ink);
    letter-spacing: -.035em;
}

.store-brand span {
    color: #85817d;
    letter-spacing: .035em;
}

.store-nav {
    gap: 5px;
}

.store-nav a {
    border-radius: 999px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.store-nav a:hover,
.store-nav a.active {
    color: #9B542D;
    background: #FFF0E5;
}

.store-nav .store-cooperation-nav,
.store-cooperation-nav {
    border-radius: 999px;
    color: #fff !important;
    background: var(--candy-ink);
    box-shadow: 0 7px 16px rgba(38, 38, 38, .12);
}

.store-nav .store-cooperation-nav:hover,
.store-cooperation-nav:hover {
    background: #45403d;
    transform: translateY(-1px);
}

.store-login-btn,
.store-account-chip {
    border-radius: 999px;
}

.store-premium-hero {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    margin: 24px 0 38px;
    padding: clamp(28px, 4vw, 56px);
    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 36px;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 221, 190, .58), transparent 24%),
        radial-gradient(circle at 3% 100%, rgba(210, 235, 248, .72), transparent 27%),
        linear-gradient(135deg, #FFFFFF 0%, #FFFBF6 52%, #F6FBFF 100%);
    box-shadow: var(--candy-shadow);
    backdrop-filter: none;
}

.store-premium-hero__glow--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -60px;
    background: radial-gradient(circle, rgba(255, 196, 151, .48), transparent 70%);
    filter: blur(3px);
}

.store-premium-hero__glow--2 {
    width: 260px;
    height: 260px;
    left: -85px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(183, 222, 246, .48), transparent 70%);
    filter: blur(3px);
}

.store-premium-hero__grid {
    gap: clamp(24px, 3vw, 44px);
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
}

.store-premium-kicker {
    padding: 9px 14px;
    border: 1px solid rgba(229, 138, 85, .17);
    border-radius: 999px;
    color: #9B542D;
    background: #FFF1E7;
    font-size: 11px;
    letter-spacing: .08em;
}

.store-premium-title {
    color: var(--candy-ink);
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.store-premium-desc {
    max-width: 690px;
    color: #6F7175;
    font-size: 15px;
    line-height: 1.9;
}

.store-premium-tags {
    gap: 9px;
}

.store-premium-tags span {
    padding: 9px 13px;
    border: 1px solid rgba(38, 38, 38, .055);
    border-radius: 999px;
    color: #5C5752;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 5px 16px rgba(50, 43, 36, .045);
    font-size: 12px;
}

.store-premium-actions {
    gap: 12px;
}

.store-hero-action {
    min-height: 48px;
    border-radius: 15px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.store-hero-action:hover {
    transform: translateY(-2px);
}

.store-hero-action--primary {
    color: #fff;
    background: var(--candy-peach);
    box-shadow: 0 10px 22px rgba(229, 138, 85, .24);
}

.store-hero-action--primary:hover {
    background: #D97943;
    box-shadow: 0 13px 26px rgba(229, 138, 85, .28);
}

.store-hero-action--secondary {
    color: var(--candy-ink);
    border: 1px solid rgba(38, 38, 38, .10);
    background: rgba(255, 255, 255, .9);
}

.store-premium-metrics {
    gap: 12px;
    margin-top: 28px;
}

.store-premium-metric {
    padding: 17px 15px;
    border: 1px solid rgba(38, 38, 38, .055);
    border-radius: 19px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 7px 20px rgba(50, 43, 36, .04);
}

.store-premium-metric strong {
    color: #3B332E;
    font-size: clamp(17px, 1.6vw, 22px);
    letter-spacing: -.035em;
}

.store-premium-metric span {
    color: #85817D;
    font-size: 12px;
}

.store-premium-hero__side {
    gap: 14px;
}

.store-showcase-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 26px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 12px 28px rgba(50, 43, 36, .055);
}

.store-showcase-card--primary {
    background:
        radial-gradient(circle at 100% 0, rgba(255, 225, 200, .72), transparent 40%),
        linear-gradient(140deg, #FFF8F1, #FFFFFF 72%);
}

.store-showcase-badge {
    padding: 7px 11px;
    border-radius: 999px;
    color: #A65F35;
    background: #FFEBDD;
    font-size: 10px;
    letter-spacing: .08em;
}

.store-showcase-card h3 {
    color: #302B27;
    font-size: 20px;
    letter-spacing: -.025em;
}

.store-showcase-card ul {
    color: #77736F;
    font-size: 13px;
    line-height: 1.95;
}

.zs2-rotator {
    margin: 34px 0 48px;
    padding: clamp(22px, 3vw, 36px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 32px;
    background:
        radial-gradient(circle at 0 0, rgba(255, 231, 211, .38), transparent 26%),
        radial-gradient(circle at 100% 10%, rgba(222, 239, 250, .55), transparent 25%),
        rgba(255, 255, 255, .72);
    box-shadow: var(--candy-shadow);
}

.zs2-rotator::before {
    display: none;
}

.zs2-rotator-head {
    position: relative;
    z-index: 1;
    align-items: flex-end;
    margin-bottom: 24px;
}

.zs2-rotator-kicker {
    color: #C87543;
    font-size: 10px;
    letter-spacing: .16em;
}

.zs2-rotator-head h2 {
    color: var(--candy-ink);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 820;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.zs2-rotator-head p {
    color: #77736F;
    font-size: 13px;
}

.zs2-rotator-card {
    overflow: hidden;
    border: 1px solid rgba(38, 38, 38, .06);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(50, 43, 36, .055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.zs2-rotator-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 138, 85, .25);
    box-shadow: var(--candy-shadow-hover);
}

.zs2-card-media {
    overflow: hidden;
    background: linear-gradient(145deg, #F7F7F8, #FFFFFF);
}

.zs2-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.zs2-rotator-card:hover .zs2-card-media img {
    transform: scale(1.035);
}

.zs2-card-badge {
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(38, 38, 38, .07);
}

.zs2-card-code {
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #55504B;
}

.zs2-card-info {
    padding: 16px;
    background: #fff;
}

.zs2-card-info small {
    color: #A19A94;
    letter-spacing: .04em;
}

.zs2-card-info strong {
    color: #302B27;
    line-height: 1.5;
}

.zs2-progress {
    overflow: hidden;
    border-radius: 999px;
    background: #ECE8E4;
}

.zs2-progress span {
    border-radius: 999px;
    background: var(--candy-peach);
}

.store-v3-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 36px;
}

.store-v3-trust > div {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(38, 38, 38, .055);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px rgba(50, 43, 36, .04);
}

.store-v3-trust > div:nth-child(4n+1) { background: linear-gradient(145deg, #FFF8F1, #FFFFFF 72%); }
.store-v3-trust > div:nth-child(4n+2) { background: linear-gradient(145deg, #F0FAF5, #FFFFFF 72%); }
.store-v3-trust > div:nth-child(4n+3) { background: linear-gradient(145deg, #F2F8FD, #FFFFFF 72%); }
.store-v3-trust > div:nth-child(4n+4) { background: linear-gradient(145deg, #F7F2FC, #FFFFFF 72%); }

.store-v3-trust > div > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 13px;
    border-radius: 12px;
    color: #9B542D;
    background: #FFEBDD;
    font-size: 11px;
    font-weight: 850;
}

.store-v3-trust > div > strong {
    display: block;
    color: #302B27;
    font-size: 15px;
}

.store-v3-trust > div > small {
    display: block;
    margin-top: 7px;
    color: #807A74;
    font-size: 12px;
    line-height: 1.65;
}

#store-v3-library-toolbar {
    margin: 30px 0 24px;
    padding: clamp(18px, 2.5vw, 30px) !important;
    border: 1px solid rgba(255, 255, 255, .98) !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: var(--candy-shadow) !important;
    backdrop-filter: blur(14px);
}

.store-v3-library-title h2 {
    color: var(--candy-ink);
    font-weight: 820;
    letter-spacing: -.04em;
}

.store-v3-library-eyebrow {
    color: #B9683A;
    letter-spacing: .13em;
}

.store-v3-library-title p {
    color: #77736F;
}

#store-v3-library-toolbar input,
#store-v3-library-toolbar select,
#store-v3-library-toolbar .input,
#store-v3-library-toolbar .select {
    min-height: 46px;
    border: 1px solid #EAE5E0 !important;
    border-radius: 14px !important;
    background: #FFFEFD !important;
    box-shadow: none !important;
}

#store-v3-library-toolbar input:focus,
#store-v3-library-toolbar select:focus {
    border-color: rgba(229, 138, 85, .65) !important;
    outline: 3px solid rgba(229, 138, 85, .12);
}

#store-v3-library-toolbar .btn,
#store-v3-library-toolbar a {
    border-radius: 13px;
}

#store-v3-library-toolbar .btn-primary {
    border: 0 !important;
    color: #fff !important;
    background: var(--candy-peach) !important;
    box-shadow: 0 8px 18px rgba(229, 138, 85, .18);
}

.store-v3-filter-item {
    border-radius: 999px !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.store-v3-filter-item:hover {
    border-color: rgba(229, 138, 85, .45) !important;
    color: #9B542D !important;
}

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

.store-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(38, 38, 38, .06);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(50, 43, 36, .045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.store-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 138, 85, .25);
    box-shadow: var(--candy-shadow-hover);
}

.store-product-card img {
    max-width: 100%;
    object-fit: contain;
}

.store-product-body {
    padding: 15px;
}

.store-product-code {
    color: #A85F35;
    font-weight: 800;
}

.store-product-body h3 {
    color: #302B27;
    font-weight: 750;
    line-height: 1.5;
}

.store-product-category,
.store-product-meta span {
    color: #85807A;
}

.store-card-badges > * {
    border-radius: 999px;
}

.store-qty-control {
    border-radius: 13px;
    background: #F8F6F3;
}

.store-qty-input {
    border-radius: 9px;
    border-color: #E8E1DA;
    background: #fff;
}

.store-qty-btn {
    border-radius: 10px;
    color: #8E4E2A;
    background: #FFEBDD;
}

.store-floating-cart {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 22px;
    color: #fff;
    background: #302B27;
    box-shadow: 0 14px 34px rgba(38, 38, 38, .2);
}

.store-floating-icon {
    border-radius: 13px;
    color: #7C482C;
    background: #FFE1CA;
}

.store-footer {
    margin-top: 54px;
    border-top: 1px solid rgba(38, 38, 38, .06);
    background: rgba(255, 255, 255, .78);
}

.store-footer-inner {
    width: min(1460px, calc(100% - 48px));
    max-width: 1460px;
    margin-inline: auto;
}

.store-footer-brand strong {
    color: #302B27;
}

.store-footer-brand span,
.store-footer-meta {
    color: #85807A;
}

.store-footer-nav a {
    color: #625B55;
}

.store-footer-nav a:hover {
    color: #B9683A;
}

@media (max-width: 1180px) {
    .store-premium-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
    }

    .store-premium-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    body.store-body.store-v3-body .store-main {
        width: calc(100% - 28px);
    }

    .store-header-inner {
        width: calc(100% - 28px);
        gap: 12px;
    }

    .store-premium-hero {
        margin: 14px 0 24px;
        padding: 24px 20px;
        border-radius: 27px;
    }

    .store-premium-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .store-premium-title {
        font-size: clamp(31px, 8vw, 43px);
        line-height: 1.18;
    }

    .store-premium-desc {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.8;
    }

    .store-premium-tags {
        gap: 7px;
        margin-top: 17px;
    }

    .store-premium-tags span {
        padding: 7px 10px;
        font-size: 11px;
    }

    .store-premium-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 20px;
    }

    .store-hero-action {
        justify-content: center;
        padding-inline: 10px;
        font-size: 13px;
    }

    .store-premium-metrics {
        gap: 9px;
        margin-top: 20px;
    }

    .store-premium-metric {
        padding: 14px 12px;
        border-radius: 16px;
    }

    .store-premium-metric strong {
        font-size: 17px;
    }

    .store-premium-metric span {
        font-size: 11px;
    }

    .store-premium-hero__side {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .store-showcase-card {
        padding: 15px;
        border-radius: 19px;
    }

    .store-showcase-card h3 {
        font-size: 16px;
    }

    .store-showcase-card ul {
        padding-left: 16px;
        font-size: 11px;
        line-height: 1.8;
    }

    .zs2-rotator {
        margin: 26px 0 32px;
        padding: 20px 14px;
        border-radius: 25px;
    }

    .zs2-rotator-head {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }

    .zs2-rotator-head h2 {
        font-size: 29px;
    }

    .zs2-rotator-head p {
        font-size: 12px;
    }

    .store-v3-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 22px 0 28px;
    }

    .store-v3-trust > div {
        padding: 15px;
        border-radius: 18px;
    }

    #store-v3-library-toolbar {
        margin-top: 22px;
        padding: 17px 14px !important;
        border-radius: 24px !important;
    }

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

    .store-product-card {
        border-radius: 17px;
    }

    .store-product-body {
        padding: 11px;
    }

    .store-product-code {
        font-size: 12px !important;
    }

    .store-product-category {
        font-size: 10px !important;
    }

    .store-product-body h3 {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .store-product-meta span {
        font-size: 11px !important;
    }

    .store-card-badges > * {
        font-size: 9px !important;
    }

    .store-qty-input {
        font-size: 13px !important;
    }

    .store-qty-btn {
        font-size: 15px !important;
    }

    .store-footer-inner {
        width: calc(100% - 28px);
    }
}

@media (max-width: 420px) {
    .store-premium-hero__side {
        grid-template-columns: 1fr;
    }

    .store-premium-title {
        font-size: 31px;
    }

    .store-premium-actions {
        grid-template-columns: 1fr;
    }

    .store-v3-trust > div > strong {
        font-size: 13px;
    }

    .store-v3-trust > div > small {
        font-size: 11px;
    }

    .store-product-grid {
        gap: 9px;
    }

    .store-product-body {
        padding: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-hero-action,
    .zs2-rotator-card,
    .zs2-card-media img,
    .store-product-card,
    .store-nav a {
        transition: none !important;
    }
}
