﻿:root {
    --primary: #1d6eb7;
    --secondary: #f47920;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #e9ecef;
    --white: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    margin-bottom: 20px;
}

.dimmed {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.breadcrumb {
    padding: 12px 0;
    background-color: transparent;
}

.breadcrumb-new {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
    font-size: 14px !important;
}

.breadcrumb-new a {
    color: var(--primary) !important;
    text-decoration: none !important;
}

.breadcrumb-new span {
    margin: 0 6px !important;
    color: #666 !important;
}

.breadcrumb-item {
    display: inline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.page-title {
    font-size: 26px !important;
    margin: 16px 0;
    color: var(--dark);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.filter-sidebar {
    background-color: var(--white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}


.filter-section {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 16px;
}

    .filter-section:last-child {
        border-bottom: none;
    }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 16px;
}

.filter-content {
    margin-left: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

    .filter-option label {
        margin-left: 8px;
        cursor: pointer;
        font-size: 14px;
        margin-bottom: 0px !important;
    }

    .filter-option input {
        cursor: pointer;
        font-size: 14px;
    }

.filter-badge {
    background-color: var(--gray);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--dark);
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

    .filter-range input {
        width: 80px;
        padding: 4px;
        border: 1px solid var(--gray);
        border-radius: 4px;
        height: 25px !important;
        font-size:14px;
    }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-tag {
    background-color: var(--light);
    border: 1px solid var(--gray);
    border-radius: 999px;
    padding: 0px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-tag-close {
    cursor: pointer;
    font-weight: 600;
}

.products-section {
    display: flex;
    flex-direction: column;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 16px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}

.products-count {
    font-size: 14px;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .products-sort select {
        padding: 0px 10px;
        border: 1px solid var(--gray);
        border-radius: 4px;
        background-color: var(--white);
        -webkit-appearance: meter !important;
    }

.view-options {
    display: flex;
    gap: 8px;
}

.view-option {
    padding: 6px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .view-option.active {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}


    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06), /* Top shadow */
        0 6px 15px rgba(0, 0, 0, 0.12); /* Bottom shadow */
        z-index: 1;
    }

.product-image {
    height: 200px;
    width: 100%;
    object-fit: contain;
    padding: 16px;
    background-color: var(--white);
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: normal;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    color: #666;
}

.product-meta-label {
    font-weight: bold;
    margin-right: 4px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-item {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--white);
    border: 1px solid var(--gray);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
}

    .page-item.active {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .page-item:hover:not(.active) {
        background-color: var(--gray);
    }

.mobile-filter-toggle {
    display: none;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    margin-bottom: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .filter-sidebar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .products-sort {
        width: 100%;
    }

        .products-sort select {
            flex-grow: 1;
        }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-tag {
    display: inline-block;
    padding: 0px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-right: 8px;
    margin-bottom: 8px;
    background-color: #e9f3ff;
    color: var(--primary);
    line-height: 21px !important;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

    .color-swatch.active {
        border-color: var(--primary);
    }

.empty-state {
    text-align: center;
    padding: 48px 16px;
    background-color: var(--white);
    border-radius: 8px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--gray);
    margin-bottom: 16px;
}

.empty-state-heading {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--dark);
}

.empty-state-text {
    color: #666;
    margin-bottom: 24px;
}


/* Skeleton Loader Styles */
.skeleton .skeleton-box,
.skeleton-line {
    background-color: #d1d5db;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton .product-image {
    width: 100%;
    height: 240px;
}

.skeleton-line {
    height: 16px;
    margin: 8px 0;
}

    .skeleton-line.short {
        width: 60%;
    }

    .skeleton-line.button {
        width: 80%;
        height: 40px;
        margin-top: 12px;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}
