/* Category Header */
.category-header {
    background-color: var(--background-light);
    padding: 40px 0;
    margin-bottom: 40px;
}

.breadcrumb {
    margin-bottom: 15px;
    padding: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-default);
}

.breadcrumb-item a:hover {
    color: var(--primary-gold);
}

.breadcrumb-item.active {
    color: var(--primary-gold);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #999;
}

.category-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
}

.category-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 600px;
}

.category-banner {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.category-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-banner:hover img {
    transform: scale(1.03);
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

.filters-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filters-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
}

.close-filters {
    display: none;
}

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

.filter-heading {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-options::-webkit-scrollbar {
    width: 5px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    border-color: #ccc;
    width: 18px;
    height: 18px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #555;
    font-size: 0.95rem;
    padding-left: 5px;
    cursor: pointer;
}

.filter-count {
    color: #999;
    font-size: 0.85rem;
}

/* Price Range Filter */
.price-range {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.min-price, .max-price {
    flex: 1;
}

.min-price label, .max-price label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.min-price input, .max-price input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

.min-price input:focus, .max-price input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 10, 91, 0.1);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.apply-filters-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    flex: 1;
    transition: var(--transition-default);
}

.apply-filters-btn:hover {
    background-color: #2a1570;
}

.reset-filters-btn {
    background-color: #f1f1f1;
    color: #666;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-default);
}

.reset-filters-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Store Header */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.store-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-toggle-btn {
    display: none;
    background-color: var(--light-purple);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition-default);
}

.filter-toggle-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.filter-toggle-btn i {
    margin-right: 5px;
}

.sort-options {
    min-width: 200px;
}

.form-select {
    border-color: var(--border-color);
    color: #555;
    font-size: 0.95rem;
    padding: 8px 15px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 10, 91, 0.1);
}

/* Active Filters */
.active-filters {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.active-filters-header h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.clear-all-filters {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-default);
}

.clear-all-filters:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background-color: white;
    color: #555;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.remove-filter {
    color: #999;
    margin-left: 8px;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition-default);
}

.remove-filter:hover {
    color: #ff5252;
}

/* Products Container */
.products-container {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 576px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card-wrapper {
    width: 100%;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 3px;
    z-index: 1;
}

.new-badge {
    background-color: var(--primary-color);
    color: white;
    left: 10px;
}

.sale-badge {
    background-color: var(--primary-gold);
    color: white;
    right: 10px;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition-default);
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card:hover .product-name {
    color: var(--primary-gold);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-default);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn, .add-to-cart-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.quick-view-btn:hover, .add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
}

.no-products-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-products-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-products h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.no-products p {
    color: #666;
    margin-bottom: 20px;
}

/* Pagination */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.page-item .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 5px;
    transition: var(--transition-default);
    min-width: 40px;
    text-align: center;
}

.page-item .page-link:hover {
    background-color: var(--light-purple);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: #999;
    pointer-events: none;
    background-color: #f8f8f8;
}

/* Related Categories Section */
.related-categories-section {
    background-color: var(--background-light);
    padding: 60px 0;
    margin-top: 40px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
}

.related-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.related-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-category-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.related-category-image {
    height: 150px;
    overflow: hidden;
}

.related-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-category-card:hover .related-category-image img {
    transform: scale(1.1);
}

.related-category-info {
    padding: 15px;
}

.related-category-name {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    transition: var(--transition-default);
}

.related-category-card:hover .related-category-name {
    color: var(--primary-gold);
}

.related-category-count {
    color: #999;
    font-size: 0.85rem;
}

/* Quick View Modal */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.quick-view-content {
    padding: 20px;
}

.quick-view-product {
    display: flex;
    flex-wrap: wrap;
}

.quick-view-gallery {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .quick-view-gallery {
        flex: 0 0 40%;
        max-width: 40%;
        margin-bottom: 0;
    }
}

.quick-view-main-image-container {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.quick-view-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.quick-view-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.quick-view-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.quick-view-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.quick-view-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.quick-view-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.quick-view-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-default);
}

.quick-view-thumbnail.active {
    border-color: var(--primary-color);
}

.quick-view-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-details {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
}

@media (min-width: 768px) {
    .quick-view-details {
        flex: 0 0 60%;
        max-width: 60%;
        padding-left: 30px;
    }
}

.quick-view-product-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quick-view-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.quick-view-current-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.quick-view-original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
}

.quick-view-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-view-meta {
    margin-bottom: 20px;
}

.quick-view-meta-item {
    display: flex;
    margin-bottom: 10px;
}

.quick-view-meta-label {
    color: #666;
    font-weight: 600;
    width: 100px;
}

.quick-view-meta-value {
    color: #333;
}

.quick-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.quick-view-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.quick-view-quantity-btn {
    background-color: #f1f1f1;
    color: #555;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-default);
}

.quick-view-quantity-btn:hover {
    background-color: #e0e0e0;
}

.quick-view-quantity {
    width: 50px;
    height: 35px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.95rem;
}

.quick-view-quantity:focus {
    outline: none;
}

.quick-view-add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-default);
}

.quick-view-add-to-cart:hover {
    background-color: #2a1570;
}

.quick-view-add-to-cart i {
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .category-title {
        font-size: 1.8rem;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1050;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-radius: 0;
        margin-bottom: 0;
        padding-top: 25px;
    }

    .filters-sidebar.show {
        transform: translateX(0);
    }

    body.filters-open {
        overflow: hidden;
    }

    .close-filters {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

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

@media (max-width: 767.98px) {
    .category-header {
        padding: 30px 0;
        margin-bottom: 30px;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .related-categories-section {
        padding: 40px 0;
    }

    .store-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-controls {
        width: 100%;
        justify-content: space-between;
    }

    .sort-options {
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .category-title {
        font-size: 1.4rem;
    }

    .product-image {
        height: 180px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .original-price {
        font-size: 0.85rem;
    }

    .filter-actions {
        flex-direction: column;
    }

    .reset-filters-btn {
        width: 100%;
    }

    .related-category-image {
        height: 120px;
    }

    .related-category-name {
        font-size: 0.95rem;
    }

    .quick-view-product-name {
        font-size: 1.3rem;
    }
}
