
/* === CSS VARIABLES === */
:root {
    --lux-bg: #f8f6f3;
    --lux-white: #fff;
    --lux-grey: #eae6df;
    --lux-gold: #d4af37;
    --lux-green: #3a5a40;
    --lux-blue: #1a2238;
    --lux-shadow: 0 8px 32px 0 rgba(60, 60, 60, 0.10);
    --lux-glass: rgba(255, 255, 255, 0.55);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #111;
    background: #fff;
}

a {
    text-decoration: none;
}

/* === PRODUCTS LAYOUT === */
.products-layout {
    display: flex;
    min-height: calc(100vh - 100px);
    background: var(--lux-bg);
    margin: 0 auto;
    gap: 30px;
    position: relative;
}

/* === SIDEBAR === */
.categories-sidebar {
    width: 280px;
    background: var(--lux-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--lux-shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Search Section */
.search-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--lux-grey);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.search-input-group input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
}

.search-input-group button {
    border: none;
    background: var(--lux-blue);
    color: var(--lux-white);
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Sidebar Header */
.sidebar-header {
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--lux-blue);
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    color: var(--lux-blue);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.category-item:hover,
.category-item.active {
    background: var(--lux-grey);
    color: var(--lux-blue);
}

.category-item i {
    width: 20px;
    text-align: center;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 400;
}

/* === MAIN CONTENT === */
.products-main {
    flex: 1;
}

.products-section {
    background: var(--lux-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--lux-shadow);
}

/* Results Summary */
.results-summary {
    margin-bottom: 30px;
    color: #6c757d;
}

.active-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.active-filters span {
    font-size: 0.9rem;
    color: #666;
}

.filter-tag {
    background: var(--lux-blue);
    color: var(--lux-white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--lux-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--lux-gold);
    color: var(--lux-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-category {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.product-name a {
    color: var(--lux-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-name a:hover {
    color: var(--lux-green);
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lux-blue);
}

.original-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 0.85rem;
    font-weight: 500;
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    margin-left: 8px;
}



.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-view-details {
    flex: 1;
    padding: 6px 12px;
    background: var(--lux-blue);
    color: var(--lux-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}

.btn-view-details:hover {
    background: var(--lux-green);
}

.btn-view-gallery {
    padding: 6px 8px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.btn-view-gallery:hover {
    background: #138496;
}



/* === NO PRODUCTS === */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #adb5bd;
    display: block;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #999;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--lux-blue);
    color: var(--lux-white);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: var(--lux-blue);
    transition: all 0.2s ease;
}

.page-link:hover,
.page-link.current {
    background: var(--lux-blue);
    color: var(--lux-white);
    border-color: var(--lux-blue);
}

.page-ellipsis {
    padding: 8px 12px;
    color: #999;
}
.mob-catagory{
    display: none;
}
/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .products-layout {
        gap: 20px;
        padding: 15px;
    }

    .categories-sidebar {
        width: 250px;
        padding: 15px;
    }

    .search-input-group input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .search-input-group button {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .sidebar-header h3 {
        font-size: 1.1rem;
    }

    .category-item {
        padding: 4px 12px;
        font-size: 0.9rem;
    }

    .category-count {
        font-size: 0.8rem;
    }

    .products-section {
        padding: 20px;
    }

    .results-summary {
        font-size: 0.9rem;
    }

    .filter-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 12px;
        gap: 6px;
    }

    .product-category {
        font-size: 0.7rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-description {
        font-size: 0.8rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .original-price {
        font-size: 0.8rem;
    }

    .discount-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .btn-view-details {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .featured-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .pagination {
        gap: 8px;
        margin-top: 30px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .no-products {
        padding: 40px 15px;
    }

    .no-products i {
        font-size: 2.5rem;
    }

    .no-products h3 {
        font-size: 1.3rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .products-layout {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .categories-sidebar {
        display: none;
    }

    .products-main {
        width: 100%;
        margin-left: 0;
        overflow-y: visible;
    }

    .products-section {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .results-summary {
        font-size: 0.85rem;
    }

    .filter-tag {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: 10px;
        gap: 5px;
    }

    .product-category {
        font-size: 0.65rem;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.75rem;
    }

    .current-price {
        font-size: 0.9rem;
    }

    .original-price {
        font-size: 0.75rem;
    }

    .discount-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .btn-view-details {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .featured-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .pagination {
        gap: 6px;
        margin-top: 25px;
    }

    .page-link {
        padding: 5px 8px;
        font-size: 0.85rem;
    }

    .no-products {
        padding: 30px 10px;
    }

    .no-products i {
        font-size: 2rem;
    }

    .no-products h3 {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Mobile Category Container */
    .mob-catagory {
        display: block;
    }

    /* Mobile Filter Button */
    .mobile-filter-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: var(--lux-blue);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-filter-btn:hover {
        background: var(--lux-green);
        transform: scale(1.1);
    }

    /* Mobile Categories Panel */
    .mobile-categories-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 2px solid var(--lux-blue);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        max-height: 60vh;
        overflow-y: auto;
    }

    .mobile-categories-panel.active {
        transform: translateY(0);
    }

    .mobile-categories-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: var(--lux-blue);
        color: white;
    }

    .mobile-categories-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .mobile-categories-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }

    .mobile-categories-content {
        padding: 20px;
    }

    .mobile-search-section {
        margin-bottom: 20px;
    }

    .mobile-search-input-group {
        display: flex;
        align-items: center;
        background: var(--lux-grey);
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
    }

    .mobile-search-input-group input {
        flex: 1;
        border: none;
        padding: 12px 15px;
        background: transparent;
        outline: none;
        font-size: 0.9rem;
    }

    .mobile-search-input-group button {
        border: none;
        background: var(--lux-blue);
        color: white;
        padding: 12px 15px;
        cursor: pointer;
        font-size: 0.9rem;
    }

    .mobile-categories-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-category-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        color: var(--lux-blue);
        border-radius: 8px;
        transition: all 0.2s ease;
        font-weight: 500;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }

    .mobile-category-item:hover,
    .mobile-category-item.active {
        background: var(--lux-blue);
        color: white;
    }

    .mobile-category-count {
        font-size: 0.8rem;
        opacity: 0.7;
        font-weight: 400;
    }

    /* Overlay for mobile panel */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
} 