.home-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(166, 105, 255, 0.16), transparent 28%),
        radial-gradient(circle at 90% 12%, rgba(255, 141, 196, 0.12), transparent 24%),
        #fbf8ff;
    color: #16102d;
}

.mobile-store-header,
.store-shell {
    width: min(100%, 430px);
    margin: 0 auto;
}

.mobile-store-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 18px 16px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 12px 32px rgba(57, 26, 122, 0.08);
}

.home-page .sidebar {
    z-index: 120;
}

.home-page .sidebar-link {
    font-weight: 700;
}

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    gap: 12px;
}

.home-logo {
    color: #1d1154;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.home-logo span {
    color: #4b18a8;
    font-size: 30px;
    line-height: 1;
}

.home-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #17102d;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
}

.home-icon-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-store-header .hamburger {
    padding: 6px;
    gap: 5px;
}

.mobile-store-header .hamburger span {
    width: 21px;
    height: 2px;
    background: #17102d;
}

.mini-badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f22b66;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
}

.home-search {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 72px;
    min-height: 56px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(26, 43, 74, 0.08);
    box-shadow: inset 0 0 0 1px rgba(26, 43, 74, 0.04), 0 10px 22px rgba(26, 43, 74, 0.08);
    overflow: hidden;
}

.home-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #17102d;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
}

.home-search input::placeholder {
    color: #8f899c;
}

.home-search button {
    border: 0;
    border-radius: 14px;
    margin: 4px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    display: grid;
    place-items: center;
    cursor: pointer;
}

.home-search button svg {
    width: 25px;
    height: 25px;
}

.store-shell {
    padding: 18px 16px 86px;
}

.sale-hero {
    min-height: 324px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f6f8, #e9e5e3);
    box-shadow: 0 18px 38px rgba(61, 41, 104, 0.12);
}

.sale-hero.is-loading img,
.deal-banner.is-loading img {
    opacity: 0.55;
}

.sale-hero::after {
    content: "";
    position: absolute;
    right: -44px;
    top: 50px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(35, 28, 48, 0.14);
}

.sale-copy {
    position: relative;
    z-index: 3;
    width: 53%;
    padding: 34px 0 28px 22px;
    color: #1d1154;
}

.sale-copy p {
    margin: 0 0 4px;
    max-width: 150px;
    text-transform: uppercase;
    font-size: 28px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 1px;
}

.sale-copy h1 {
    margin: 20px 0 34px;
    color: #5c536f;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 400;
    text-transform: uppercase;
}

.sale-copy strong {
    display: block;
    margin-bottom: 14px;
    font-size: 29px;
    line-height: 1;
    text-transform: uppercase;
}

.shop-pill,
.deal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 22px;
    border-radius: 999px;
    color: #1d1154;
    background: #fff;
    border: 2px solid rgba(29, 17, 84, 0.28);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.sale-hero img {
    position: absolute;
    right: 8px;
    bottom: 14px;
    z-index: 1;
    width: 44%;
    height: 86%;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    transition: opacity 0.25s ease, transform 0.35s ease;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #8e78be;
    cursor: pointer;
}

.hero-dots button.active {
    width: 18px;
    border-radius: 999px;
    background: #6d37d8;
}

.home-section {
    margin-top: 34px;
}

.home-section > h2,
.section-row h2 {
    margin: 0;
    color: #17102d;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
}

.round-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 14px;
    margin-top: 24px;
}

.category-bubble {
    min-width: 0;
    color: #17102d;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease;
}

.category-bubble:hover {
    transform: translateY(-3px);
}

.category-bubble img,
.category-fallback {
    width: 68px;
    height: 68px;
    margin: 0 auto 9px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    object-fit: cover;
    background: linear-gradient(135deg, #eee8ff, #fff2f6);
    box-shadow: 0 10px 22px rgba(71, 46, 128, 0.14);
}

.category-fallback {
    color: #4b18a8;
    font-size: 24px;
    font-weight: 900;
}

.category-bubble span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.category-loader {
    grid-column: 1 / -1;
    padding: 20px 0;
    color: #7a708d;
    text-align: center;
    font-size: 14px;
}

.deal-banner {
    margin-top: 38px;
    min-height: 176px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: #fff;
    box-shadow: 0 18px 36px rgba(26, 43, 74, 0.22);
}

.deal-banner::before {
    content: "";
    position: absolute;
    right: 18%;
    top: 50%;
    width: 178px;
    height: 178px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    display: none;
}

.deal-banner > div {
    position: relative;
    z-index: 3;
    min-width: 0;
    padding: 20px 8px 18px 20px;
}

.deal-banner h2 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 900;
}

.deal-clock {
    display: flex;
    gap: 12px;
    margin-bottom: 9px;
    flex-wrap: wrap;
}

.deal-clock span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    text-transform: uppercase;
}

.deal-clock strong {
    display: block;
    color: #fff;
    font-size: 19px;
}

.deal-banner p {
    margin: 0 0 12px;
    font-size: clamp(17px, 4.8vw, 20px);
    line-height: 1.15;
    font-weight: 700;
}

.deal-button {
    min-height: 40px;
    color: #1d1154;
    border: 0;
}

.deal-banner img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    min-height: 176px;
    object-fit: contain;
    object-position: center;
    padding: 12px 8px 12px 0;
}

.deal-banner.is-empty img,
.sale-hero.is-empty img {
    filter: saturate(0.8);
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-row h2 {
    text-align: left;
}

.section-row a {
    color: #9148da;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: none;
    padding: 0;
    margin: 0;
}

.home-product-grid .product-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    min-width: 0;
}

.home-product-grid .product-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.home-product-grid .product-image-wrapper {
    padding-top: 100%;
    border-radius: 10px;
    background: #efe8e5;
    box-shadow: 0 12px 24px rgba(57, 26, 122, 0.1);
}

.home-product-grid .product-image {
    border-radius: 10px;
    object-fit: cover;
}

.home-product-grid .wishlist-btn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
}

.offer-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    max-width: calc(100% - 58px);
    padding: 5px 8px;
    border-radius: 999px;
    background: #f22b66;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offers-home {
    display: block;
}

.home-product-grid .product-info {
    padding: 13px 0 0;
}

.home-product-grid .product-name {
    min-height: 38px;
    margin: 0 0 10px;
    color: #17102d;
    font-size: 15px;
    line-height: 1.32;
    font-weight: 800;
    word-break: break-word;
}

.home-product-grid .price-row,
.home-product-grid .product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-product-grid .product-price {
    margin: 0;
    color: #17102d;
    font-size: 16px;
    font-weight: 900;
}

.home-product-grid .price-original {
    color: #8f899c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: line-through;
}

.home-product-grid .discount-text {
    color: #f22b66;
    font-size: 13px;
    font-weight: 900;
}

.product-meta-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.product-meta-chip {
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(75, 24, 168, 0.08);
    color: #4b18a8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.home-bottom-nav {
    width: min(100%, 430px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 28px rgba(57, 26, 122, 0.12);
}

.home-page .empty-state {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(75, 24, 168, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(57, 26, 122, 0.08);
}

.home-page .skeleton {
    border-radius: 10px;
}

@media (min-width: 700px) {
    .home-page {
        padding: 22px 0;
    }

    .mobile-store-header,
    .store-shell,
    .home-bottom-nav {
        max-width: 430px;
    }

    .mobile-store-header {
        border-radius: 24px 24px 0 0;
    }

    .home-bottom-nav {
        display: flex;
    }
}

@media (min-width: 980px) {
    .mobile-store-header,
    .store-shell,
    .home-bottom-nav {
        width: min(100%, 520px);
        max-width: 520px;
    }

    .sale-hero {
        min-height: 350px;
    }

    .sale-copy {
        padding-left: 28px;
    }

    .sale-copy p {
        font-size: 31px;
        max-width: 180px;
    }

    .sale-copy h1 {
        font-size: 27px;
    }

    .category-bubble img,
    .category-fallback {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 380px) {
    .mobile-store-header,
    .store-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-actions {
        gap: 4px;
    }

    .home-search {
        grid-template-columns: 1fr 62px;
    }

    .sale-copy p {
        font-size: 26px;
    }

    .sale-copy h1 {
        font-size: 23px;
    }

    .round-category-grid {
        gap: 18px 10px;
    }

    .category-bubble img,
    .category-fallback {
        width: 60px;
        height: 60px;
    }

    .home-product-grid {
        gap: 18px;
    }

    .home-product-grid .product-name {
        font-size: 13px;
    }

    .deal-banner {
        grid-template-columns: minmax(0, 1fr) 40%;
    }

    .deal-clock {
        gap: 8px;
    }
}
