/* Products Page Styles - Using Theme System Colors */

/* Main Shop Area */
.it-shop-area {
    background: var(--it-common-white);
}

/* Sidebar Styles */
.it-shop-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--it-common-black);
    text-transform: capitalize;
}

.sidebar-widget-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--it-common-white);
    border: 1px solid var(--it-border-1);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    color: var(--it-common-black);
}

.sidebar-widget-list:hover,
.sidebar-widget-list.active {
    background: var(--it-theme-1);
    border-color: var(--it-theme-1);
    color: var(--it-common-white);
}

.sidebar-widget-list span svg {
    transition: transform 0.3s ease;
}

.sidebar-widget-list:hover span svg {
    transform: translateX(3px);
}

/* Shop Top Bar */
.it-shop-top-wrap {
    background: var(--it-common-white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--it-border-1);
}

.it-shop-text span {
    font-weight: 600;
    color: var(--it-common-black);
}

.it-shop-filter-box {
    gap: 15px;
}

.it-shop-filter-box span {
    font-weight: 500;
    color: var(--it-heading);
}

/* Shop Item Cards */
.it-shop-item {
    background: var(--it-common-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--it-border-1);
}

.it-shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.it-shop-thumb-box {
    position: relative;
    overflow: hidden;
}

.it-shop-thumb {
    position: relative;
    overflow: hidden;
}

.it-shop-thumb img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.it-shop-item:hover .it-shop-thumb img {
    transform: scale(1.1);
}

.it-shop-cart {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.it-shop-cart a {
    width: 45px;
    height: 45px;
    background: var(--it-theme-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.it-shop-cart a:hover {
    background: var(--it-common-black);
    transform: scale(1.1);
}

.it-shop-action-2 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.it-shop-item:hover .it-shop-action-2 {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.it-shop-action-item-2 {
    display: flex;
    gap: 10px;
}

.it-shop-action-btn-2 {
    width: 45px;
    height: 45px;
    background: var(--it-common-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.it-shop-action-btn-2:hover {
    background: var(--it-theme-1);
    color: var(--it-common-white);
    transform: scale(1.1);
}

.it-shop-tooltip {
    position: absolute;
    background: var(--it-common-black);
    color: var(--it-common-white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.it-shop-tooltip-right {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

.it-shop-action-btn-2:hover .it-shop-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Shop Content */
.it-shop-content {
    padding: 25px;
}

.it-shop-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.it-shop-title a {
    color: var(--it-common-black);
    transition: color 0.3s ease;
}

.it-shop-title a:hover {
    color: var(--it-theme-1);
}

.it-shop-price {
    margin-bottom: 12px;
}

.it-shop-price span {
    font-size: 20px;
    font-weight: 700;
    color: var(--it-theme-1);
}

.it-shop-rating svg {
    margin-right: 2px;
}

/* Category Cards for Subcategories */
.category-service-card {
    background: var(--it-common-white);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--it-border-1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--it-theme-1);
    transition: height 0.3s ease;
}

.category-service-card:hover::before {
    height: 100%;
}

.category-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--it-theme-1), var(--it-theme-2, #e07b00));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--it-common-white);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.category-service-card:hover .category-service-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--it-common-black);
}

.category-service-description {
    color: var(--it-body);
    margin-bottom: 15px;
    line-height: 1.6;
}

.category-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--it-theme-1);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.category-service-link:hover {
    gap: 12px;
}

/* Empty State */
.catalog-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--it-common-white);
    border-radius: 12px;
    border: 2px dashed var(--it-border-1);
}

.catalog-empty-state__icon {
    font-size: 64px;
    color: var(--it-theme-1);
    margin-bottom: 20px;
    opacity: 0.5;
}

.catalog-empty-state__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--it-common-black);
    margin-bottom: 10px;
}

.catalog-empty-state__text {
    color: var(--it-body);
    font-size: 16px;
}

/* Pagination */
.product-pagination .pagination {
    gap: 8px;
}

.product-pagination .page-item .page-link {
    border: 1px solid var(--it-border-1);
    color: var(--it-common-black);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-pagination .page-item.active .page-link {
    background: var(--it-theme-1);
    border-color: var(--it-theme-1);
    color: var(--it-common-white);
}

.product-pagination .page-item .page-link:hover {
    background: var(--it-theme-1);
    border-color: var(--it-theme-1);
    color: var(--it-common-white);
}

.product-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 991px) {
    .it-shop-sidebar {
        position: static;
        margin-bottom: 40px;
    }

    .it-shop-thumb img {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .it-shop-top-wrap {
        padding: 15px 20px;
    }

    .it-shop-filter-box {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .it-shop-thumb img {
        height: 200px;
    }

    .category-service-card {
        padding: 20px;
    }
}