/* Products Page Styles */

.logo a,
.logo a:visited,
.logo a:active {
    text-decoration: none;
    color: black;
}

.products-section a {
    font-family: 'Arial', sans-serif;
    color: black;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f8f8;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb span {
    color: #000;
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: 40px 0 80px;
    background: #fff;
}

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

/* Filter Sidebar */
.filter-sidebar {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.filter-header h3 {
    font-size: 20px;
    font-weight: bold;
}

.btn-clear-filter {
    background: #ff4757;
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-clear-filter:hover {
    background: #ff3838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-clear-filter:active {
    transform: translateY(0);
}

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

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    border-radius: 5px;
}

.filter-option:hover {
    background: rgba(0,0,0,0.05);
    color: #000;
}

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

.sort-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s;
}

.sort-select:focus {
    outline: none;
    border-color: #000;
}

/* Products Main */
.products-main {
    min-height: 500px;
}

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

.products-header h2 {
    font-size: 28px;
    font-weight: bold;
}

.products-count {
    color: #666;
    font-size: 14px;
}

.btn-filter-mobile {
    display: none;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

/* Product Grid - reuse from main styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-results p {
    font-size: 18px;
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-info h2 {
    font-size: 28px;
    font-weight: bold;
    color: #000;
}

.modal-price {
    font-size: 26px;
    font-weight: bold;
    color: #000;
}

.modal-description h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.modal-description p {
    color: #666;
    line-height: 1.8;
}

.modal-quantity h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    width: fit-content;
}

.qty-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

#qty-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    font-size: 16px;
    font-weight: 600;
}

#qty-input:focus {
    outline: none;
    border-color: #000;
}

.btn-add-to-cart-modal {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-to-cart-modal:hover {
    background: #333;
    transform: translateY(-2px);
}

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

    .filter-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9998;
        background: #fff;
        overflow-y: auto;
        border-radius: 0;
    }

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

    .btn-filter-mobile {
        display: block;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .modal-content {
        margin: 10px;
    }

    .modal-body {
        padding: 20px;
        gap: 20px;
    }

    .modal-image {
        height: 300px;
    }

    .modal-info h2 {
        font-size: 22px;
    }

    .modal-price {
        font-size: 22px;
    }
}

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

    .modal-image {
        height: 250px;
    }
}