/* ═══════════════════════════════════════════════════════════
   Index Premium — LilysFragrance-inspired Liquid Glass
   Scoped to body.index-page.storefront-v2.index-premium
   Load after storefront.css
   ═══════════════════════════════════════════════════════════ */

body.index-page.storefront-v2.index-premium {
    --ip-header-h: 52px;
    --ip-gap: 12px;
    --ip-max: 1200px;
    --ip-pill: 999px;
    --ip-panel-r: 22px;
    --ip-acrylic: rgba(255, 255, 255, 0.65);
    --ip-card-bg: rgba(255, 255, 255, 0.96);
    --ip-card-border: rgba(0, 0, 0, 0.1);
    --ip-card-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 10px 32px rgba(0, 0, 0, 0.11);
    --ip-blur: saturate(190%) blur(22px);
    --ip-specular: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --ip-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

/* ─── Background ─── */
body.index-page.storefront-v2.index-premium {
    background:
        radial-gradient(ellipse 80% 55% at 50% -8%, rgba(0, 112, 193, 0.09) 0%, transparent 55%),
        linear-gradient(180deg, #f3f3f6 0%, #e6e6ec 100%);
}

body.index-page.storefront-v2.index-premium.storefront-unified .index-main {
    padding-top: calc(var(--sf-gap) + var(--sf-header-h) + 0.75rem);
}

body.index-page.storefront-v2.index-premium.storefront-unified.search-open .index-main {
    padding-top: calc(var(--sf-gap) + var(--sf-header-h) + 58px);
}

body.index-page.storefront-v2.index-premium.storefront-unified .glass-search-bar {
    top: calc(var(--sf-gap) + var(--sf-header-h) + 8px);
    left: max(var(--sf-gap), env(safe-area-inset-left));
    right: max(var(--sf-gap), env(safe-area-inset-right));
    border-radius: var(--ip-pill);
}

body.index-page.storefront-v2.index-premium:not(.storefront-unified) .glass-search-bar {
    top: calc(var(--ip-gap) + var(--ip-header-h) + 8px);
    left: max(var(--ip-gap), env(safe-area-inset-left));
    right: max(var(--ip-gap), env(safe-area-inset-right));
    border-radius: var(--ip-pill);
}

body.index-page.storefront-v2.index-premium.search-open .index-main {
    padding-top: calc(var(--ip-gap) + var(--ip-header-h) + 58px);
}

/* ─── Acrylic panels ─── */
body.index-page.storefront-v2.index-premium .glass-panel {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.48) 0%,
        rgba(255, 255, 255, 0.32) 100%
    );
    backdrop-filter: saturate(165%) blur(10px);
    -webkit-backdrop-filter: saturate(165%) blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

/* ─── Floating glass panels (centered modal, not lateral) ─── */
body.index-page.storefront-v2.index-premium .glass-float-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(440px, calc(100vw - 2rem));
    max-height: min(86vh, 760px);
    height: auto;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--ip-panel-r);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transform: translate(-50%, calc(-50% + 14px)) scale(0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.32s ease,
        visibility 0.32s ease;
}

body.index-page.storefront-v2.index-premium .glass-float-panel.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.index-page.storefront-v2.index-premium .glass-float-panel .panel-header {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
}

body.index-page.storefront-v2.index-premium .glass-float-panel .panel-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.index-page.storefront-v2.index-premium .glass-float-panel .panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.15rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

body.index-page.storefront-v2.index-premium .glass-float-panel .cart-drawer-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0));
}

body.index-page.storefront-v2.index-premium .glass-overlay.active {
    background: rgba(248, 248, 250, 0.22);
    backdrop-filter: blur(6px) saturate(130%);
    -webkit-backdrop-filter: blur(6px) saturate(130%);
}

body.index-page.storefront-v2.index-premium .btn-google,
body.index-page.storefront-v2.index-premium .auth-submit-btn,
body.index-page.storefront-v2.index-premium .btn-view-cart,
body.index-page.storefront-v2.index-premium .auth-form-group input,
body.index-page.storefront-v2.index-premium .profile-links a,
body.index-page.storefront-v2.index-premium .profile-links button,
body.index-page.storefront-v2.index-premium .panel-close-btn {
    border-radius: var(--ip-pill);
}

/* ─── Main layout ─── */
body.index-page.storefront-v2.index-premium:not(.storefront-unified) .index-main {
    padding-top: calc(var(--ip-gap) + var(--ip-header-h) + 1rem);
    max-width: var(--ip-max);
    margin: 0 auto;
    width: 100%;
}

body.index-page.storefront-v2.index-premium.storefront-unified .index-main {
    max-width: var(--ip-max);
    margin: 0 auto;
    width: 100%;
}

/* ─── Hero compact ─── */
body.index-page.storefront-v2.index-premium .index-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 0.9rem;
    background: var(--ip-acrylic);
    backdrop-filter: var(--ip-blur);
    -webkit-backdrop-filter: var(--ip-blur);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    box-shadow: var(--ip-shadow), var(--ip-specular);
}

body.index-page.storefront-v2.index-premium .index-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

body.index-page.storefront-v2.index-premium .index-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.75rem 0.5rem 0.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.index-page.storefront-v2.index-premium .index-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
    background: none;
    border: none;
}

body.index-page.storefront-v2.index-premium .index-trust-pill svg {
    width: 11px;
    height: 11px;
    opacity: 0.55;
    flex-shrink: 0;
}

body.index-page.storefront-v2.index-premium .index-trust-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

@media (max-width: 520px) {
    body.index-page.storefront-v2.index-premium .index-trust-sep {
        display: none;
    }

    body.index-page.storefront-v2.index-premium .index-trust-row {
        gap: 0.45rem 0.85rem;
    }
}

body.index-page.storefront-v2.index-premium .index-hero-text h1 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

body.index-page.storefront-v2.index-premium .index-hero-kicker {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

body.index-page.storefront-v2.index-premium .btn-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--ip-pill);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

body.index-page.storefront-v2.index-premium .btn-capsule-dark {
    background: var(--primary-black);
    color: #fff;
}

body.index-page.storefront-v2.index-premium .btn-capsule-dark:hover {
    background: #222;
}

body.index-page.storefront-v2.index-premium .btn-capsule svg {
    width: 14px;
    height: 14px;
}

/* ─── Category nav — Apple Store style ─── */
body.index-page.storefront-v2.index-premium .index-categories-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.35rem 1rem 0.95rem;
    background: #fff;
}

body.index-page.storefront-v2.index-premium .index-hero-compact {
    padding: 0 1rem 1.35rem;
    margin-bottom: 0;
    margin-top: 0.15rem;
}

body.index-page.storefront-v2.index-premium .category-strip-wrap {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.index-page.storefront-v2.index-premium .category-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem 1.5rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
}

body.index-page.storefront-v2.index-premium .category-strip::-webkit-scrollbar {
    display: none;
}

body.index-page.storefront-v2.index-premium .category-card {
    width: 100%;
    max-width: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

body.index-page.storefront-v2.index-premium .category-card-visual {
    width: 100%;
    aspect-ratio: 1;
    max-height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    padding: 0 0 0.15rem;
}

body.index-page.storefront-v2.index-premium .category-card-visual img {
    max-width: 88%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

body.index-page.storefront-v2.index-premium .category-card-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 72%;
    height: 72%;
    align-self: center;
    margin: auto;
}

body.index-page.storefront-v2.index-premium .category-card-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    filter: none;
}

body.index-page.storefront-v2.index-premium .category-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(0, 0, 0, 0.35);
}

body.index-page.storefront-v2.index-premium .category-card-fallback svg {
    width: 30px;
    height: 30px;
    opacity: 0.4;
}

body.index-page.storefront-v2.index-premium .category-card-label {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.52);
    letter-spacing: -0.015em;
    max-width: 100%;
    padding: 0 0.15rem;
}

body.index-page.storefront-v2.index-premium .category-card.active .category-card-label {
    color: var(--primary-black);
    font-weight: 600;
}

body.index-page.storefront-v2.index-premium .category-card-all .category-card-visual {
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.index-page.storefront-v2.index-premium .category-card-all-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #111;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

body.index-page.storefront-v2.index-premium .category-card-all-icon svg {
    width: 30px;
    height: 30px;
    display: block;
}

body.index-page.storefront-v2.index-premium .category-card-all.active .category-card-all-icon {
    background: #0070c1;
    color: #fff;
    box-shadow: 0 3px 14px rgba(0, 112, 193, 0.35);
}

body.index-page.storefront-v2.index-premium.search-open .category-strip-wrap {
    top: auto !important;
}

@media (max-width: 720px) {
    body.index-page.storefront-v2.index-premium .index-categories-section {
        padding: 0 0.85rem 1.25rem;
    }

    body.index-page.storefront-v2.index-premium .category-strip {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 1rem;
        max-width: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 0.1rem 0.2rem;
    }

    body.index-page.storefront-v2.index-premium .category-card {
        flex: 0 0 104px;
        width: 104px;
        max-width: 104px;
        scroll-snap-align: start;
    }

    body.index-page.storefront-v2.index-premium .category-card-visual {
        max-height: 104px;
    }

    body.index-page.storefront-v2.index-premium .category-card-all-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    body.index-page.storefront-v2.index-premium .category-card-all-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Legacy text pills — other pages */
body.index-page.storefront-v2.index-premium .category-pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.45rem 0.95rem;
    border: 1px solid transparent;
    border-radius: var(--ip-pill);
    background: transparent;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 1;
    min-width: 0;
    min-height: 0;
}

body.index-page.storefront-v2.index-premium .category-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

body.index-page.storefront-v2.index-premium .category-pill.active {
    background: var(--primary-black);
    color: #fff;
    border-color: var(--primary-black);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

body.index-page.storefront-v2.index-premium .category-pill.active svg {
    color: #fff;
}

/* ─── Product sections & grid ─── */
body.index-page.storefront-v2.index-premium .homepage-sections {
    max-width: var(--ip-max);
    margin: 0 auto;
    padding: 2rem 1rem 3.5rem;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.index-page.storefront-v2.index-premium .homepage-section {
    margin-bottom: 2rem;
    scroll-margin-top: calc(var(--ip-gap) + var(--ip-header-h) + 20px);
    width: 100%;
}

body.index-page.storefront-v2.index-premium .homepage-section:last-child {
    margin-bottom: 0;
}

body.index-page.storefront-v2.index-premium.storefront-unified .homepage-section {
    scroll-margin-top: calc(var(--sf-gap) + var(--sf-header-h) + 20px);
}

body.index-page.storefront-v2.index-premium .homepage-section.category-panel {
    background: var(--ip-acrylic);
    backdrop-filter: var(--ip-blur);
    -webkit-backdrop-filter: var(--ip-blur);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    padding: 1.35rem 1.15rem 1.45rem;
    box-shadow: var(--ip-shadow), var(--ip-specular);
}

body.index-page.storefront-v2.index-premium .category-panel-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.index-page.storefront-v2.index-premium .category-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--ip-specular);
    flex-shrink: 0;
}

body.index-page.storefront-v2.index-premium .category-panel-icon svg {
    width: 15px;
    height: 15px;
    color: var(--primary-black);
}

body.index-page.storefront-v2.index-premium .category-panel-body {
    width: 100%;
}

body.index-page.storefront-v2.index-premium .section-title {
    text-align: left;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0;
    padding-left: 0;
}

body.index-page.storefront-v2.index-premium .product-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    body.index-page.storefront-v2.index-premium .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    body.index-page.storefront-v2.index-premium .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.1rem;
    }
}

/* ─── Product cards ─── */
body.index-page.storefront-v2.index-premium .product-card {
    max-width: none;
    width: 100%;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 18px;
    background: var(--ip-card-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid var(--ip-card-border);
    box-shadow: var(--ip-card-shadow), var(--ip-specular);
    opacity: 0;
    transform: translateY(10px);
    overflow: hidden;
}

/* CRITICAL: reveal must beat the opacity:0 above */
body.index-page.storefront-v2.index-premium .product-card.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

body.index-page.storefront-v2.index-premium .product-card.reveal:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.14), var(--ip-specular);
    border-color: rgba(0, 0, 0, 0.14);
}

body.index-page.storefront-v2.index-premium .product-image-wrap {
    position: relative;
    border-radius: 0;
    margin-bottom: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
}

body.index-page.storefront-v2.index-premium .product-card-media-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
}

body.index-page.storefront-v2.index-premium .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

body.index-page.storefront-v2.index-premium .btn-favorite-float {
    width: 30px;
    height: 30px;
    top: 8px;
    left: 8px;
    z-index: 3;
}

body.index-page.storefront-v2.index-premium .btn-favorite-float svg {
    width: 14px;
    height: 14px;
}

body.index-page.storefront-v2.index-premium .condition-badge {
    font-size: 0.58rem;
    padding: 3px 8px;
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    z-index: 2;
}

body.index-page.storefront-v2.index-premium .product-card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    flex: 1;
    padding: 0.85rem 1rem 1rem;
    gap: 0.35rem;
}

body.index-page.storefront-v2.index-premium .product-category-tag {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.75;
    margin: 0;
    order: 0;
}

body.index-page.storefront-v2.index-premium .product-name {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    order: 1;
}

body.index-page.storefront-v2.index-premium .product-price {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.15rem 0 0.35rem;
    order: 2;
}

body.index-page.storefront-v2.index-premium .product-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
    padding-top: 0.25rem;
    order: 3;
}

body.index-page.storefront-v2.index-premium .product-sold-out-label {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: var(--ip-pill);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

body.index-page.storefront-v2.index-premium .btn-add-cart-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--ip-pill);
    background: var(--primary-black);
    color: #fff;
    border: none;
    flex-shrink: 0;
    font-family: inherit;
    cursor: pointer;
}

body.index-page.storefront-v2.index-premium .btn-add-cart-glass svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

body.index-page.storefront-v2.index-premium .btn-add-cart-glass .btn-added {
    display: none;
}

body.index-page.storefront-v2.index-premium .btn-add-cart-glass .btn-label {
    display: inline;
}

/* ─── Footer ─── */
body.index-page.storefront-v2.index-premium .index-footer-minimal {
    max-width: calc(var(--ip-max) - 2rem);
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
    padding: 1.25rem 1rem;
    border-radius: 20px;
    background: var(--ip-acrylic);
    backdrop-filter: var(--ip-blur);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--ip-shadow), var(--ip-specular);
}

/* ─── Toast ─── */
body.index-page.storefront-v2.index-premium .cart-toast {
    top: calc(var(--ip-gap) + var(--ip-header-h) + 8px);
    border-radius: var(--ip-pill);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    body.index-page.storefront-v2.index-premium .product-card {
        opacity: 1;
        transform: none;
    }

    body.index-page.storefront-v2.index-premium .product-card.reveal {
        transition: none;
    }
}

/* ─── Mobile (legacy block — extended at end of file) ─── */
@media (max-width: 768px) {
    body.index-page.storefront-v2.index-premium .index-hero-text h1 {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.index-page.storefront-v2.index-premium .glass-float-panel {
        transition: opacity 0.15s ease, visibility 0.15s ease;
        transform: translate(-50%, -50%);
    }

    body.index-page.storefront-v2.index-premium .glass-float-panel.open {
        transform: translate(-50%, -50%);
    }
}

/* ─── Hero enhancements ─── */
body.index-page.storefront-v2.index-premium .index-hero-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
    max-width: 36ch;
}

body.index-page.storefront-v2.index-premium .index-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

body.index-page.storefront-v2.index-premium .btn-capsule-outline {
    background: rgba(255, 255, 255, 0.45);
    color: var(--primary-black);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.index-page.storefront-v2.index-premium .index-hero-visual {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--ip-shadow);
}

body.index-page.storefront-v2.index-premium .index-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.index-page.storefront-v2.index-premium .index-featured-section {
    max-width: var(--ip-max);
    margin: 0.25rem auto 1rem;
    padding: 0 1rem;
}

body.index-page.storefront-v2.index-premium .search-results-section {
    max-width: var(--ip-max);
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* ─── Search mode ─── */
body.index-page.storefront-v2.index-premium.search-results-mode #indexHero,
body.index-page.storefront-v2.index-premium.search-results-mode #indexCategoriesSection,
body.index-page.storefront-v2.index-premium.search-results-mode #featuredSection,
body.index-page.storefront-v2.index-premium.search-results-mode #homepageSections {
    display: none !important;
}

body.index-page.storefront-v2.index-premium .search-kbd-hint {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.35);
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

body.index-page.storefront-v2.index-premium .search-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

body.index-page.storefront-v2.index-premium .search-highlight-mark {
    background: rgba(0, 112, 193, 0.18);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* ─── Product card links ─── */
body.index-page.storefront-v2.index-premium .product-card-media-link,
body.index-page.storefront-v2.index-premium .product-card-title-link {
    color: inherit;
    text-decoration: none;
}

body.index-page.storefront-v2.index-premium .product-card-title-link:hover {
    text-decoration: underline;
}

body.index-page.storefront-v2.index-premium .product-card.is-sold-out {
    opacity: 0.72;
}

body.index-page.storefront-v2.index-premium .stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--ip-pill);
    z-index: 2;
}

body.index-page.storefront-v2.index-premium .stock-sold-out {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

body.index-page.storefront-v2.index-premium .stock-low {
    background: rgba(255, 152, 0, 0.92);
    color: #fff;
}

body.index-page.storefront-v2.index-premium .product-sold-out-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.index-page.storefront-v2.index-premium .section-view-all {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-black);
    text-decoration: none;
    white-space: nowrap;
}

body.index-page.storefront-v2.index-premium .section-view-all:hover {
    text-decoration: underline;
}

body.index-page.storefront-v2.index-premium .category-panel-header {
    flex-wrap: wrap;
}

/* ─── Category strip mobile fade ─── */
body.index-page.storefront-v2.index-premium .category-strip-wrap {
    position: relative;
}

body.index-page.storefront-v2.index-premium .category-strip-fade {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 720px) {
    body.index-page.storefront-v2.index-premium .category-strip-fade {
        display: block;
    }

    body.index-page.storefront-v2.index-premium .category-strip-fade-left {
        left: 0;
        background: linear-gradient(90deg, #fff 0%, transparent 100%);
    }

    body.index-page.storefront-v2.index-premium .category-strip-fade-right {
        right: 0;
        background: linear-gradient(270deg, #fff 0%, transparent 100%);
    }

    body.index-page.storefront-v2.index-premium .category-card.active .category-card-visual {
        transform: scale(1.04);
        transition: transform 0.25s ease;
    }
}

/* ─── Skeletons ─── */
body.index-page.storefront-v2.index-premium .category-skeleton {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.07) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
    animation: ip-shimmer 1.2s infinite;
}

body.index-page.storefront-v2.index-premium .skeleton-section {
    margin-bottom: 2rem;
}

body.index-page.storefront-v2.index-premium .home-error-card {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

body.index-page.storefront-v2.index-premium .home-error-card svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

@keyframes ip-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

body.index-page.storefront-v2.index-premium .cart-drawer-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

body.index-page.storefront-v2.index-premium .cart-drawer-thumb-wrap {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

body.index-page.storefront-v2.index-premium .cart-drawer-thumb-wrap .cart-drawer-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.storefront-v2 .cart-drawer-thumb-wrap {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f4;
}

body.storefront-v2 .cart-drawer-thumb-wrap .cart-drawer-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Storefront toast ─── */
.storefront-toast {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.storefront-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.storefront-toast-icon svg {
    width: 16px;
    height: 16px;
}

/* ─── Personal Info float panel ─── */
body.index-page.storefront-v2.index-premium .personal-info-panel.glass-float-panel {
    width: min(520px, calc(100vw - 2rem));
    max-height: min(90vh, 820px);
}

body.index-page.storefront-v2.index-premium .personal-info-panel-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.index-page.storefront-v2.index-premium .personal-info-hero {
    text-align: center;
    padding: 0.25rem 0 0.5rem;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-trigger {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 0.85rem;
    padding: 0;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    font-family: inherit;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-trigger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--ip-shadow);
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-hover {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-hover svg {
    width: 22px;
    height: 22px;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-trigger:hover .personal-info-avatar-hover,
body.index-page.storefront-v2.index-premium .personal-info-avatar-trigger:focus-visible .personal-info-avatar-hover,
body.index-page.storefront-v2.index-premium .personal-info-avatar-trigger.is-upload-open .personal-info-avatar-hover {
    opacity: 1;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 112, 193, 0.35);
    border-radius: 50%;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-loading {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-loading.is-visible,
body.index-page.storefront-v2.index-premium .personal-info-avatar-loading:not([hidden]).is-visible {
    display: flex;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-loading[hidden] {
    display: none !important;
}

body.index-page.storefront-v2.index-premium .personal-info-avatar-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--primary-black);
    border-radius: 50%;
    animation: piAvatarSpin 0.7s linear infinite;
}

@keyframes piAvatarSpin {
    to { transform: rotate(360deg); }
}

body.index-page.storefront-v2.index-premium .avatar-upload-sheet {
    margin-top: 0.35rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
}

body.index-page.storefront-v2.index-premium .avatar-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 132px;
    padding: 1rem;
    border-radius: 14px;
    border: 1.5px dashed rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.index-page.storefront-v2.index-premium .avatar-upload-dropzone.is-dragover {
    border-color: rgba(0, 112, 193, 0.55);
    background: rgba(0, 112, 193, 0.08);
    transform: scale(1.01);
}

body.index-page.storefront-v2.index-premium .avatar-upload-dropzone svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

body.index-page.storefront-v2.index-premium .avatar-upload-title {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-black);
}

body.index-page.storefront-v2.index-premium .avatar-upload-hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

body.index-page.storefront-v2.index-premium .avatar-upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

body.index-page.storefront-v2.index-premium .avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.62rem 0.75rem;
    border-radius: var(--ip-pill);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-black);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.index-page.storefront-v2.index-premium .avatar-upload-btn svg {
    width: 15px;
    height: 15px;
}

body.index-page.storefront-v2.index-premium .avatar-upload-btn:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

body.index-page.storefront-v2.index-premium .avatar-upload-btn-primary {
    background: var(--primary-black);
    color: #fff;
    border-color: transparent;
}

body.index-page.storefront-v2.index-premium .avatar-upload-btn-primary:hover {
    background: #222;
    color: #fff;
}

body.index-page.storefront-v2.index-premium .avatar-upload-btn-ghost {
    background: transparent;
}

body.index-page.storefront-v2.index-premium .avatar-upload-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.index-page.storefront-v2.index-premium .avatar-upload-preview-frame {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--ip-shadow);
}

body.index-page.storefront-v2.index-premium .avatar-upload-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.index-page.storefront-v2.index-premium .avatar-upload-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

@media (max-width: 420px) {
    body.index-page.storefront-v2.index-premium .avatar-upload-actions,
    body.index-page.storefront-v2.index-premium .avatar-upload-preview-actions {
        grid-template-columns: 1fr;
    }
}

body.index-page.storefront-v2.index-premium .personal-info-name {
    margin: 0 0 0.2rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.index-page.storefront-v2.index-premium .personal-info-email {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

body.index-page.storefront-v2.index-premium .personal-info-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
}

body.index-page.storefront-v2.index-premium .personal-info-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

body.index-page.storefront-v2.index-premium .personal-info-field label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

body.index-page.storefront-v2.index-premium .personal-info-field label svg {
    width: 13px;
    height: 13px;
}

body.index-page.storefront-v2.index-premium .personal-info-field input {
    border: none;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-black);
    font-family: inherit;
}

body.index-page.storefront-v2.index-premium .personal-info-field input:disabled {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

body.index-page.storefront-v2.index-premium .personal-info-field input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 112, 193, 0.25);
}

body.index-page.storefront-v2.index-premium .personal-info-actions {
    display: flex;
    justify-content: center;
    padding-top: 0.25rem;
}

body.index-page.storefront-v2.index-premium .personal-info-edit-btn,
body.index-page.storefront-v2.index-premium .personal-info-save-btn {
    width: 100%;
    max-width: 320px;
    border-radius: var(--ip-pill);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

@media (max-width: 560px) {
    body.index-page.storefront-v2.index-premium .personal-info-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.index-page.storefront-v2.index-premium .index-hero-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    body.index-page.storefront-v2.index-premium .index-hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    body.index-page.storefront-v2.index-premium .index-hero-actions .btn-capsule {
        justify-content: center;
        width: 100%;
        min-height: 44px;
        white-space: normal;
        text-align: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.76rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Mobile redesign — bottom sheets, touch targets, spacing
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    body.index-page.storefront-v2.index-premium {
        --ip-mobile-gutter: 1rem;
        --ip-touch: 44px;
    }

    body.index-page.storefront-v2.index-premium.storefront-unified {
        --sf-header-h: 50px;
        --sf-gap: 10px;
    }

    body.index-page.storefront-v2.index-premium.storefront-unified .index-main {
        padding-top: calc(var(--sf-gap) + var(--sf-header-h) + 0.65rem);
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    body.index-page.storefront-v2.index-premium.storefront-unified.search-open .index-main {
        padding-top: calc(var(--sf-gap) + var(--sf-header-h) + 54px);
    }

    body.index-page.storefront-v2.index-premium .glass-header {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
    }

    /* Search */
    body.index-page.storefront-v2.index-premium .glass-search-bar {
        top: calc(var(--sf-gap) + var(--sf-header-h) + 6px);
    }

    body.index-page.storefront-v2.index-premium .glass-search-inner {
        padding: 0 0.15rem;
    }

    body.index-page.storefront-v2.index-premium .glass-search-input {
        min-height: var(--ip-touch);
        font-size: 16px;
        padding: 0.7rem 1rem;
    }

    body.index-page.storefront-v2.index-premium .search-kbd-hint {
        display: none;
    }

    /* Bottom sheets — unified mobile panel pattern */
    body.index-page.storefront-v2.index-premium .glass-float-panel,
    body.index-page.storefront-v2.index-premium #profilePanel.slide-panel.glass-float-panel,
    body.index-page.storefront-v2.index-premium #favoritesPanel.slide-panel.glass-float-panel,
    body.index-page.storefront-v2.index-premium #cartDrawer.slide-drawer.glass-float-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: min(92dvh, 760px);
        height: auto;
        border-radius: 22px 22px 0 0;
        transform: translateY(calc(100% + 24px));
        opacity: 1;
        visibility: hidden;
        box-shadow:
            0 -8px 40px rgba(0, 0, 0, 0.14),
            0 24px 70px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    body.index-page.storefront-v2.index-premium .glass-float-panel.open,
    body.index-page.storefront-v2.index-premium #profilePanel.slide-panel.glass-float-panel.open,
    body.index-page.storefront-v2.index-premium #favoritesPanel.slide-panel.glass-float-panel.open,
    body.index-page.storefront-v2.index-premium #cartDrawer.slide-drawer.glass-float-panel.open {
        transform: translateY(0);
        visibility: visible;
    }

    body.index-page.storefront-v2.index-premium .glass-float-panel .panel-header {
        position: relative;
        padding: 1.35rem 1.1rem 1rem;
    }

    body.index-page.storefront-v2.index-premium .glass-float-panel .panel-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.14);
    }

    body.index-page.storefront-v2.index-premium .glass-float-panel .panel-header h2 {
        font-size: 1rem;
    }

    body.index-page.storefront-v2.index-premium .glass-float-panel .panel-body {
        padding: 0.85rem 1.1rem 1.1rem;
    }

    body.index-page.storefront-v2.index-premium .panel-close-btn {
        width: var(--ip-touch);
        height: var(--ip-touch);
        min-width: var(--ip-touch);
        min-height: var(--ip-touch);
    }

    body.index-page.storefront-v2.index-premium .personal-info-panel.glass-float-panel {
        width: 100%;
        max-height: min(94dvh, 820px);
    }

    /* Hero */
    body.index-page.storefront-v2.index-premium .index-hero-compact {
        padding: 0 var(--ip-mobile-gutter) 1rem;
    }

    body.index-page.storefront-v2.index-premium .index-hero-inner {
        padding: 0.95rem 1rem 0.85rem;
        border-radius: 18px;
    }

    body.index-page.storefront-v2.index-premium .index-hero-desc {
        font-size: 0.78rem;
        max-width: none;
    }

    body.index-page.storefront-v2.index-premium .index-trust-row {
        margin-top: 0.75rem;
        padding-top: 0.65rem;
    }

    body.index-page.storefront-v2.index-premium .index-trust-pill {
        font-size: 0.58rem;
    }

    /* Categories */
    body.index-page.storefront-v2.index-premium .index-categories-section {
        padding: 0 0 var(--ip-mobile-gutter);
    }

    body.index-page.storefront-v2.index-premium .category-card {
        flex: 0 0 104px;
        width: 104px;
        max-width: 104px;
    }

    body.index-page.storefront-v2.index-premium .category-card-visual {
        max-height: 104px;
    }

    body.index-page.storefront-v2.index-premium .category-card-label {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    body.index-page.storefront-v2.index-premium .category-skeleton {
        width: 104px;
        height: 104px;
    }

    /* Sections & grid */
    body.index-page.storefront-v2.index-premium .index-featured-section,
    body.index-page.storefront-v2.index-premium .search-results-section {
        padding-left: var(--ip-mobile-gutter);
        padding-right: var(--ip-mobile-gutter);
    }

    body.index-page.storefront-v2.index-premium .homepage-sections {
        padding: 1.35rem var(--ip-mobile-gutter) calc(2.5rem + env(safe-area-inset-bottom, 0));
    }

    body.index-page.storefront-v2.index-premium .homepage-section.category-panel {
        padding: 1.1rem 0.95rem 1.15rem;
        border-radius: 18px;
    }

    body.index-page.storefront-v2.index-premium .product-grid {
        gap: 0.65rem;
    }

    body.index-page.storefront-v2.index-premium .product-card-body {
        padding: 0.75rem 0.7rem 0.85rem;
        gap: 0.28rem;
    }

    body.index-page.storefront-v2.index-premium .product-name {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    body.index-page.storefront-v2.index-premium .product-price {
        font-size: 1rem;
    }

    body.index-page.storefront-v2.index-premium .btn-add-cart-glass {
        min-height: var(--ip-touch);
        padding: 0.7rem 0.85rem;
        font-size: 0.68rem;
    }

    body.index-page.storefront-v2.index-premium .btn-favorite-float {
        width: 36px;
        height: 36px;
        top: 6px;
        left: 6px;
    }

    body.index-page.storefront-v2.index-premium .btn-favorite-float svg {
        width: 16px;
        height: 16px;
    }

    /* Footer */
    body.index-page.storefront-v2.index-premium .index-footer-minimal {
        margin-left: var(--ip-mobile-gutter);
        margin-right: var(--ip-mobile-gutter);
        margin-top: auto;
        margin-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
        padding: 1rem 0.85rem;
    }

    /* Toast */
    body.index-page.storefront-v2.index-premium .storefront-toast,
    body.index-page.storefront-v2.index-premium .cart-toast {
        top: auto;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0));
        left: var(--ip-mobile-gutter);
        right: var(--ip-mobile-gutter);
        transform: translateY(12px);
        width: auto;
        max-width: none;
    }

    body.index-page.storefront-v2.index-premium .storefront-toast.show,
    body.index-page.storefront-v2.index-premium .cart-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    body.index-page.storefront-v2.index-premium .index-hero-actions {
        grid-template-columns: 1fr;
    }

    body.index-page.storefront-v2.index-premium .glass-wordmark {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.index-page.storefront-v2.index-premium .product-grid {
        gap: 0.55rem;
    }

    body.index-page.storefront-v2.index-premium .product-card-body {
        padding: 0.65rem 0.6rem 0.75rem;
    }

    body.index-page.storefront-v2.index-premium .product-name {
        font-size: 0.76rem;
    }

    body.index-page.storefront-v2.index-premium .product-price {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    body.index-page.storefront-v2.index-premium .glass-float-panel,
    body.index-page.storefront-v2.index-premium #profilePanel.slide-panel.glass-float-panel,
    body.index-page.storefront-v2.index-premium #favoritesPanel.slide-panel.glass-float-panel,
    body.index-page.storefront-v2.index-premium #cartDrawer.slide-drawer.glass-float-panel {
        transform: translateY(100%);
        transition: transform 0.15s ease, visibility 0.15s ease;
    }

    body.index-page.storefront-v2.index-premium .glass-float-panel.open,
    body.index-page.storefront-v2.index-premium #profilePanel.slide-panel.glass-float-panel.open,
    body.index-page.storefront-v2.index-premium #favoritesPanel.slide-panel.glass-float-panel.open,
    body.index-page.storefront-v2.index-premium #cartDrawer.slide-drawer.glass-float-panel.open {
        transform: translateY(0);
    }
}

@media (hover: none) and (pointer: coarse) {
    body.index-page.storefront-v2.index-premium .product-card.reveal:hover {
        transform: none;
        box-shadow: var(--ip-card-shadow), var(--ip-specular);
    }

    body.index-page.storefront-v2.index-premium .product-card.reveal:active {
        transform: scale(0.985);
        transition: transform 0.12s ease;
    }

    body.index-page.storefront-v2.index-premium .btn-add-cart-glass:active,
    body.index-page.storefront-v2.index-premium .btn-capsule:active,
    body.index-page.storefront-v2.index-premium .category-card:active {
        opacity: 0.88;
        transform: scale(0.98);
    }

    body.index-page.storefront-v2.index-premium .glass-icon-btn:active,
    body.index-page.storefront-v2.index-premium .panel-close-btn:active {
        opacity: 0.75;
        transform: scale(0.94);
    }
}
