/* Shop Page Styles - Based on ThemeWagon Essence Template */

/* Breadcrumb Area */
.breadcrumb_area {
    /* height: 200px; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.breadcrumb_area.shop-bg {
    background-image: url('../media/suit-bg.jpg');
}

.breadcrumb_area.offer-bg {
    background-image: url('../media/offer.jpg');
}

.breadcrumb_area.category-bg {
    background-image: url('../media/bg-1.jpg');
}

.breadcrumb_area.product-bg {
    background-image: url('../media/suit-bg.jpg');
}

.breadcrumb_area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.breadcrumb_content {
    text-align: center;
    color: white;
}

.breadcrumb_content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 7.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.breadcrumb .breadcrumb-item a:hover {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.breadcrumb .breadcrumb-item.active {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Shop Grid Area */
.shop_grid_area {
    padding: 80px 0;
}

.shop_sidebar_area {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 10;
}

/* Custom scrollbar for sidebar */
.sticky-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sticky-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.widget {
    margin-bottom: 50px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories Widget */
.catagories-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catagories-menu ul li {
    margin-bottom: 10px;
}

.catagories-menu ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0 5px calc(var(--indent-level, 0) * 14px + 0.5rem);
}

.catagories-menu ul li .category-link {
    position: relative;
}

.catagories-menu ul li ul {
    margin-top: 6px;
}

.catagories-menu ul li.has-children > a::after {
    content: '\25B6';
    font-size: 10px;
    margin-left: 6px;
    color: #ccc;
}

.catagories-menu ul li.has-children > a.active::after {
    color: #333;
}


.catagories-menu ul li a:hover,
.catagories-menu ul li a.active {
    color: #333;
    font-weight: 600;
}

/* Price Filter Widget */
.slider-range {
    margin-top: 20px;
}

.range-price {
    margin-bottom: 15px;
}

.range-price label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.range-price input {
    border: none;
    background: transparent;
    color: #333;
    font-weight: 600;
    width: 100px;
}

#slider-range {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    position: relative;
}

#slider-range .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: -6px;
    outline: none;
}

#slider-range .ui-slider-range {
    background: #333;
    height: 100%;
    border-radius: 3px;
}

/* Brands Widget */
.widget-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-desc ul li {
    margin-bottom: 8px;
}

.widget-desc ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 3px 0;
}

.widget-desc ul li a:hover,
.widget-desc ul li a.active {
    color: #333;
}

/* Product Topbar */
.product-topbar {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.total-products p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.total-products span {
    font-weight: 600;
    color: #333;
}

.product-sorting {
    align-items: center;
}

.product-sorting p {
    margin: 0 10px 0 0;
    color: #666;
    font-size: 14px;
}

.product-sorting select {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
    outline: none;
}

.product-sorting select:focus {
    border-color: #333;
}

/* Product Grid */
.shop_grid_product_area .row {
    margin: 0 -15px;
}

.shop_grid_product_area .col-12,
.shop_grid_product_area .col-sm-6,
.shop_grid_product_area .col-lg-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

.single-product-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-product-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.single-product-wrapper:hover .product-img img {
    transform: scale(1.05);
}

.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.single-product-wrapper:hover .hover-img {
    opacity: 1;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.offer-badge span {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Product Favourite */
.product-favourite {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.product-favourite a {
    color: #ccc;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-favourite a:hover,
.product-favourite a.active {
    color: #dc3545;
}

/* Product Description */
.product-description {
    padding: 20px;
}

.product-description span {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.product-description h6 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.product-description h6 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-description h6 a:hover {
    color: #333;
}

.product-price {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

/* Hover Content */
.hover-content {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 15px;
}

.single-product-wrapper:hover .hover-content {
    opacity: 1;
}

.essence-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    display: inline-block;
}

.essence-btn:hover {
    background: #555;
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 50px;
}

.pagination .page-link {
    color: #333;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.pagination .page-item.active .page-link {
    background: #333;
    border-color: #333;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb_content h3 {
        font-size: 2rem;
    }

    .shop_sidebar_area {
        margin-bottom: 20px;
    }

    /* Disable sticky on mobile for better UX */
    .sticky-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .product-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-sorting {
        margin-top: 15px;
    }

    .product-img {
        height: 200px;
    }
}

@media (max-width: 576px) {
   

    .breadcrumb_content h3 {
        font-size: 1.5rem;
    }

    .shop_grid_area {
        padding: 40px 0;
    }

    .product-img {
        height: 180px;
    }
}
/* AJAX loading state */
.shop_grid_product_area.is-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.shop_grid_product_area.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    margin: -1.5rem 0 0 -1.5rem;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.4);
    animation: shop-grid-spinner 0.8s linear infinite;
}

@keyframes shop-grid-spinner {
    to {
        transform: rotate(360deg);
    }
}
