/* =============================================
   Shop Page Styles
   ============================================= */
/* ── Shop Page Layout ── */
.shop-page {
    padding: 80px 0 60px;
    position: relative;
    z-index: 1;
    min-height: auto;
}

.shop-page__layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Sidebar ── */
.shop-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 100px;
}

.shop-sidebar__section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.shop-sidebar__title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin-bottom: 16px;
}

.shop-filter__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: rgba(232, 228, 240, 0.6);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    -webkit-user-select: none;
    user-select: none;
}

.shop-filter__pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--light);
}

.shop-filter__pill.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 105, 135, 0.35);
}

.shop-filter__pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
}

.shop-filter__pill.active .shop-filter__pill-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Price Range */
.shop-price-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    outline: none;
    margin-top: 8px;
}

.shop-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 105, 135, 0.5);
}

.shop-price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 105, 135, 0.5);
}

.shop-price-display {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(232, 228, 240, 0.5);
    margin-top: 8px;
}

/* ── Main Content ── */
.shop-main {
    flex: 1;
    min-width: 0;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-toolbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-category-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.shop-product-count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(232, 228, 240, 0.45);
}

.shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-sort-select {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--light);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.shop-sort-select:focus {
    border-color: var(--cyan);
}

.shop-sort-select option {
    background: var(--navy);
    color: var(--light);
}

.shop-view-toggle {
    display: flex;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.shop-view-btn {
    padding: 8px 12px;
    background: var(--glass-bg);
    color: rgba(232, 228, 240, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-view-btn.active {
    background: var(--gradient-accent);
    color: #fff;
}

.shop-view-btn + .shop-view-btn {
    border-left: 1px solid var(--glass-border);
}

/* ── Product Grid ── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shop-grid--list {
    grid-template-columns: 1fr;
}

.shop-grid--list .product-card {
    display: flex;
    flex-direction: row;
}

.shop-grid--list .product-card__visual {
    width: 200px;
    height: auto;
    min-height: 180px;
    flex-shrink: 0;
}

.shop-grid--list .product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Load More ── */
.shop-load-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.shop-load-more .btn {
    min-width: 200px;
    justify-content: center;
}

/* ── Breadcrumb ── */
.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.shop-breadcrumb a {
    color: rgba(232, 228, 240, 0.5);
    transition: var(--transition);
}

.shop-breadcrumb a:hover {
    color: var(--cyan);
}

.shop-breadcrumb__sep {
    color: rgba(232, 228, 240, 0.25);
}

.shop-breadcrumb__current {
    color: rgba(232, 228, 240, 0.7);
}

/* ── Recent Section ── */
.shop-recent {
    margin-bottom: 48px;
}

.shop-recent__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: rgba(232, 228, 240, 0.7);
}

.shop-recent__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.shop-recent__card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.shop-recent__card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 120, 150, 0.35);
}

.shop-recent__card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ── Mobile Sidebar Toggle ── */
.shop-sidebar-toggle {
    display: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--light);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
}

.shop-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-recent__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 1999;
        padding: 24px;
        background: rgba(15, 15, 45, 0.97);
        backdrop-filter: blur(30px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .shop-sidebar.open {
        display: block;
        transform: translateX(0);
    }

    .shop-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .shop-recent__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-page__layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .shop-page {
        padding: 80px 0 40px;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shop-recent__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-card__name {
        font-size: 0.85rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-card__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card__visual {
        height: 140px;
    }

    .product-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-card__add-cart {
        width: 100%;
        text-align: center;
    }
}