/* ============================================
   WALLSTICKERS247 - Shop Page Styles
   ============================================ */

/* Shop Header */
.shop-header {
    padding: 140px 0 60px;
    background: var(--dark-800);
    text-align: center;
}

.shop-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.shop-header p {
    color: var(--gray-400);
    font-size: 1.1rem;
}

/* Shop Content */
.shop-content {
    padding: 40px 0 80px;
    background: var(--dark-900);
    min-height: 60vh;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.shop-sidebar {
    background: var(--dark-800);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--blue-400);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-filters:hover {
    color: var(--blue-300);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 28px;
}

.filter-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--gray-300);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--dark-700);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-box input::placeholder {
    color: var(--gray-500);
}

.search-box input:focus {
    outline: none;
    border-color: var(--blue-400);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-500);
}

/* Filter Options (Checkboxes) */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.03);
}

.filter-option input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-500);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--blue-400);
    border-radius: 2px;
    transform: scale(0);
    transition: var(--transition-fast);
}

.filter-option input:checked + .checkmark {
    border-color: var(--blue-400);
}

.filter-option input:checked + .checkmark::after {
    transform: scale(1);
}

.label-text {
    font-size: 0.9rem;
    color: var(--gray-300);
}

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-inputs input {
    flex: 1;
    padding: 10px 12px;
    background: var(--dark-700);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    width: 100%;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--blue-400);
}

.price-inputs span {
    color: var(--gray-500);
}

/* Shop Main */
.shop-main {
    min-height: 400px;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--dark-800);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--dark-700);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-toggle svg {
    width: 18px;
    height: 18px;
}

.filter-toggle:hover {
    border-color: var(--blue-400);
}

.results-count {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select label {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.sort-select select {
    padding: 10px 36px 10px 14px;
    background: var(--dark-700);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.sort-select select:focus {
    outline: none;
    border-color: var(--blue-400);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.active-filters:empty {
    display: none;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--blue-300);
}

.active-filter-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    color: var(--blue-400);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: var(--transition-fast);
}

.active-filter-tag button:hover {
    color: var(--white);
}

/* Products Grid in Shop */
.shop-content .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 40px;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}

.no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--white);
}

.no-results p {
    font-size: 1rem;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: var(--transition-medium);
}

.sidebar-overlay.active {
    opacity: 1;
}

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

    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        border-left: none;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: var(--transition-medium);
    }

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

    .sidebar-overlay {
        display: block;
    }

    .filter-toggle {
        display: flex;
    }

    .shop-content .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

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

    .shop-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: space-between;
    }

    .sort-select {
        flex: 1;
    }

    .sort-select select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .shop-content .products-grid {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        width: 100%;
    }
}
