/* ========================================
   PRODUCTS COLLECTION PAGE
   Modern design inspired by Zebronics
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #ffffff;
    color: #2c2c2c;
}

/* ========================================
   PAGE HEADER
   ======================================== */

.collection-header {
    background: #f8f9fa;
    padding: 40px 0 30px;
    border-bottom: 1px solid #e0e0e0;
}

.collection-title {
    font-size: 36px;
    font-weight: 700;
    color: #30385f;
    margin-bottom: 8px;
}

.collection-count {
    font-size: 16px;
    color: #666666;
    margin: 0;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

.collection-main {
    padding: 40px 0 80px;
}

.collection-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

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

.filters-sidebar {
    position: sticky;
    top: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.filters-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.btn-clear-filters {
    background: none;
    border: none;
    color: #30385f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-clear-filters:hover {
    color: #1a1f3a;
    text-decoration: underline;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 16px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a4a4a;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: #30385f;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #30385f;
}

.filter-option span {
    user-select: none;
}

/* ========================================
   PRODUCTS CONTAINER
   ======================================== */

.products-container {
    width: 100%;
}

/* Mobile Filter Toggle (hidden on desktop) */
.mobile-filter-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.btn-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-toggle:hover {
    background: #f8f9fa;
    border-color: #30385f;
}

.mobile-sort {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #2c2c2c;
    background: #ffffff;
    cursor: pointer;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card-link:hover .product-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #30385f;
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #30385f;
    color: #ffffff;
}

.badge-sale {
    background: #ff4444;
    color: #ffffff;
}

/* Product Info */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #30385f;
    margin-top: auto;
}

.price-original {
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
    margin-right: 8px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets and below (1200px) */
@media (max-width: 1200px) {
    .collection-layout {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }

    .collection-title {
        font-size: 32px;
    }
}

/* Tablets and below (992px) */
@media (max-width: 992px) {
    .collection-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        border-radius: 0;
        overflow-y: auto;
    }

    .filters-sidebar.active {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .collection-header {
        padding: 30px 0 20px;
    }

    .collection-title {
        font-size: 28px;
    }

    .product-image {
        height: 220px;
    }
}

/* Mobile Phones (768px) */
@media (max-width: 768px) {
    .collection-main {
        padding: 30px 0 60px;
    }

    .collection-header {
        padding: 24px 0 16px;
    }

    .collection-title {
        font-size: 24px;
    }

    .collection-count {
        font-size: 14px;
    }

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

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-features {
        font-size: 12px;
    }

    .product-price {
        font-size: 18px;
    }

    .price-original {
        font-size: 14px;
    }
}

/* Small Mobile Phones (576px) */
@media (max-width: 576px) {
    .collection-main {
        padding: 20px 0 40px;
    }

    .collection-header {
        padding: 20px 0 12px;
    }

    .collection-title {
        font-size: 20px;
    }

    .products-grid {
        gap: 12px;
    }

    .product-card {
        border-radius: 6px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 12px;
        gap: 6px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-features {
        font-size: 11px;
    }

    .product-price {
        font-size: 16px;
    }

    .badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .mobile-filter-toggle {
        flex-direction: column;
        gap: 12px;
    }

    .btn-filter-toggle,
    .mobile-sort {
        width: 100%;
    }
}
