/* ============================================
   PREMIUM SHOP PAGE 2026
   Modern E-commerce Product Grid
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   SHOP PAGE LAYOUT
   ============================================ */

.shop-page {
    padding: 30px 0 80px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0 25px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1B4332;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #40916C;
}

.breadcrumb span {
    color: #999;
}

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

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

/* ============================================
   SIDEBAR FILTERS
   ============================================ */

.shop-sidebar {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: fit-content;
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        border-radius: 0;
        z-index: 9999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.filter-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #1B4332, #40916C);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.filter-link:hover {
    background: rgba(27, 67, 50, 0.08);
    color: #1B4332;
    padding-left: 20px;
}

.filter-link.active {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: white;
    font-weight: 700;
}

/* ============================================
   SHOP PRODUCTS AREA
   ============================================ */

.shop-products {
    flex: 1;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    position: relative;
}

.shop-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1B4332, #40916C);
    border-radius: 2px;
}

@media (max-width: 600px) {
    .shop-header h1 {
        font-size: 24px;
    }
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 45px 12px 20px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    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='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.sort-dropdown select:hover {
    border-color: #1B4332;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* ============================================
   PRODUCTS GRID - SHOP PAGE
   ============================================ */

.shop-products .products-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .shop-products .products-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .shop-products .products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ============================================
   MOBILE FILTER TOGGLE
   ============================================ */

/* .filter-toggle-btn {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 8px 30px rgba(27, 67, 50, 0.4);
    transition: all 0.3s ease;
} */

@media (max-width: 992px) {
    /* .filter-toggle-btn {
        display: flex;
    } */
}

/* .filter-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.5);
}

.filter-toggle-btn svg {
    width: 22px;
    height: 22px;
} */

.filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ff5252;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.filter-badge:empty,
.filter-badge[data-count="0"] {
    display: none;
}

/* ============================================
   MOBILE FILTER OVERLAY
   ============================================ */

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   LOADING STATE
   ============================================ */

.products-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #1B4332;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   EMPTY STATE
   ============================================ */

.no-products {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-products h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.no-products p {
    font-size: 15px;
    color: #666;
}

/* ============================================
   QUICK VIEW MODAL (Enhancement)
   ============================================ */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1);
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.quick-view-close:hover {
    background: #ff5252;
    color: white;
    transform: rotate(90deg);
}

/* ============================================
   PAGINATION (If needed)
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination button {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    border-color: #1B4332;
    color: #1B4332;
}

.pagination button.active {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: white;
    border-color: transparent;
}