.shop-body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(130, 74, 176, 0.22), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(255, 205, 116, 0.12), transparent 24%),
        linear-gradient(180deg, #040209 0%, #090412 48%, #040209 100%);
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    color: #f5f2ff;
}

/* BACKGROUND */
.shop-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.shop-bg.cosmic {
    background:
        radial-gradient(circle at 12% 16%, rgba(188, 109, 255, 0.18), transparent 18%),
        radial-gradient(circle at 88% 22%, rgba(255, 208, 134, 0.15), transparent 16%),
        linear-gradient(180deg, rgba(0,0,0,0.86), rgba(0,0,0,0.26));
    opacity: 1;
    filter: blur(8px);
}

.shop-bg.glow {
    background:
        radial-gradient(circle at 75% 18%, rgba(255, 196, 104, 0.2), transparent 24%),
        radial-gradient(circle at 24% 42%, rgba(164, 109, 255, 0.18), transparent 28%);
    opacity: 0.9;
    mix-blend-mode: screen;
    filter: blur(70px);
}

.shop-shell {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 32px;
}

/* HEADER */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 14px 10px;
    background: linear-gradient(180deg, rgba(4, 2, 9, 0.96) 0%, rgba(4, 2, 9, 0.84) 62%, transparent 100%);
    backdrop-filter: blur(22px);
}

.welcome-manager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 225, 176, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #f6ecdd;
    text-decoration: none;
    font-weight: 700;
    backdrop-filter: blur(16px);
}

.shop-header-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
}

.shop-title {
    text-align: center;
    color: #fff6e8;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    right: -4px;
    top: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 77, 79, 0.8);
}

/* MAIN SECTIONS */
.shop-main {
    padding: 10px 12px 0;
}

/* FILTERS */
.filters-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.filter-select {
    min-width: 180px;
    padding: 12px 16px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(255,213,139,0.06), transparent 60%),
        rgba(14, 12, 22, 0.98);
    border: 1px solid rgba(255, 213, 139, 0.22);
    color: #fff8e6;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 0 rgba(255,213,139,0.10) inset, 0 12px 30px rgba(0,0,0,0.28);
}

.glass-section {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 143, 0.08), transparent 42%),
        radial-gradient(circle at bottom right, rgba(176, 120, 255, 0.1), transparent 40%),
        rgba(18, 13, 29, 0.58);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(24px);
    overflow: visible;
}

.welcome-glass {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 18px;
}

.welcome-copy-wrap {
    max-width: 560px;
}

.welcome-eyebrow {
    color: #ffd58b;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
}

.welcome-title {
    margin-top: 10px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.08;
    font-weight: 800;
    color: #fff7eb;
}

.welcome-description {
    margin-top: 12px;
    color: #d3c7e8;
    line-height: 1.7;
    font-size: 14px;
}

.category-strip {
    margin-top: 14px;
    padding: 10px 10px 6px;
}

/* PRELOADER */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #05030a, #090511);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #ffd58b;
    animation: shopSpin 1s linear infinite;
}

.preloader-title {
    color: #fff0d6;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.preloader.hidden {
    display: none;
}

@keyframes shopSpin {
    to { transform: rotate(360deg); }
}

.category-carousel {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-carousel {
    scrollbar-width: none;
}

.category-card {
    flex: 0 0 150px;
    scroll-snap-align: center;
    background:
        radial-gradient(circle at top left, rgba(255,215,171,0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(142,174,255,0.16), transparent 55%),
        rgba(17, 16, 24, 0.72);
    border-radius: 22px;
    padding: 10px;
    text-align: center;
    color: #f5f2ff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(20px);
}

.category-card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 8px;
}

.category-card span {
    font-size: 13px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.category-card.active {
    border-color: rgba(255, 213, 139, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 213, 139, 0.5), 0 18px 40px rgba(0, 0, 0, 0.9);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding: 10px;
    position: relative;
    z-index: 200;
    overflow: visible;
}

/* ── Search ── */
.search-wrap {
    flex: 1 1 180px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 38px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(255,213,139,0.05), transparent 60%),
        rgba(14, 12, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff8e6;
    font-weight: 500;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
    color: rgba(210, 198, 231, 0.5);
}

.search-input:focus {
    border-color: rgba(255, 213, 139, 0.4);
    box-shadow: 0 0 0 2px rgba(255,213,139,0.08);
}

.filters-row .custom-dropdown {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding: 4px 2px 0;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 10px;
    color: #9a8fd0;
    font-size: 14px;
}

/* ── Skeleton ── */
.skeleton-card {
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    height: 180px;
    border-radius: 20px;
}

.skeleton-line {
    height: 16px;
    border-radius: 8px;
    margin-top: 14px;
}

.skeleton-btn {
    height: 44px;
    border-radius: 999px;
    margin-top: 14px;
}

.skeleton-pulse {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease infinite;
}

@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Pagination ── */
.pagination {
    margin-top: 24px;
    padding: 0 4px 32px;
}

.pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(14, 12, 22, 0.7);
    color: #d2c6e7;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: rgba(255, 213, 139, 0.3);
    color: #fff8e6;
    background: rgba(255, 213, 139, 0.08);
}

.page-btn.active {
    background: linear-gradient(135deg, rgba(255,213,139,0.25), rgba(255,213,139,0.10));
    border-color: rgba(255, 213, 139, 0.5);
    color: #ffd58b;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

.page-dots {
    color: #9a8fd0;
    font-size: 14px;
    padding: 0 4px;
}

/* ── Toast ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-success {
    background: rgba(34, 197, 94, 0.85);
}

.toast-error {
    background: rgba(239, 68, 68, 0.85);
}

.toast-info {
    background: rgba(59, 130, 246, 0.85);
}

/* INFO MODAL */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 2, 10, 0.45);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.menu-drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: min(380px, 86vw);
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    background: rgba(5, 5, 8, 0.94);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

.menu-drawer.open {
    transform: translateX(0);
}

.menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu-drawer-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.menu-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #ffffff;
    font-size: 18px;
}

.menu-drawer-content {
    padding: 22px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.menu-section-label {
    color: rgba(255,255,255,0.58);
    font-size: 14px;
    margin-bottom: 6px;
}

.menu-item,
.menu-external-link {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 2px 0;
}

.menu-item summary,
.menu-external-link {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.menu-item summary::-webkit-details-marker {
    display: none;
}

.menu-item summary::after {
    content: "⌄";
    color: rgba(255,255,255,0.65);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.menu-item[open] summary::after {
    transform: rotate(180deg);
}

.menu-item-body {
    padding: 0 0 18px;
    color: #bfb6d5;
    font-size: 14px;
    line-height: 1.7;
}

.menu-external-indicator {
    color: rgba(255,255,255,0.8);
    font-size: 24px;
}

.menu-actions {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.menu-primary-link,
.menu-secondary-link {
    text-decoration: none;
}

.menu-primary-link {
    min-height: 58px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f2cf82, #efc970);
    color: #151006;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.menu-secondary-link {
    color: #f5f2ff;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.menu-secondary-link::before {
    content: "✈";
    color: #34a8eb;
    font-size: 22px;
}

@media (max-width: 600px) {
    .shop-shell {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 20px;
    }

    .product-img-wrap {
        height: 150px;
        border-radius: 20px 20px 0 0;
    }

    .product-card-body {
        padding: 10px 12px 12px;
    }

    .product-name {
        font-size: 14px;
        min-height: 38px;
        margin-top: 10px;
    }

    .product-price {
        font-size: 18px;
    }

    .add-btn {
        padding: 10px 12px;
        font-size: 13px;
        margin-top: 10px;
    }

    .shop-brandbar,
    .welcome-glass {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-description {
        font-size: 13px;
    }

    .filters-row {
        padding: 8px;
        gap: 8px;
    }

    .search-input {
        padding: 12px 16px 12px 34px;
        font-size: 14px;
    }

    .filters-row .custom-dropdown {
        min-width: 0;
        width: 100%;
    }

    .category-card {
        padding: 10px 16px;
        font-size: 12px;
    }

    .menu-drawer {
        width: min(360px, 92vw);
    }

    .menu-drawer-header,
    .menu-drawer-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-img-wrap {
        height: 120px;
        border-radius: 18px 18px 0 0;
    }

    .filters-row .custom-dropdown {
        min-width: 0;
        width: 100%;
    }
}
