/* Layout Wrapper & Red Top Header */
.shop-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-top-header {
    background: #ff0000;
    border-radius: 20px;
    padding: 14px 24px;
    margin-bottom:40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.header-search-wrap {
    position: relative;
    width: 320px;
}

.header-search-wrap input {
    width: 100%;
    padding: 10px 40px 10px 18px;
    border-radius: 12px;
    border: none;
    background: #f8f8f8;
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.header-search-wrap .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.header-meta-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 600;
}

.header-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-sort-wrap select {
    background: #ffffff;
    color: #333;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.shop-body-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Sidebar Styling */
.shop-sidebar {
    flex: 0 0 260px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.shop-main-content {
    flex: 1;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header p {
    margin: 0;
    font-size: 18px;
}

#clear-filters {
    font-size: 12px;
    color: #e60000;
    text-decoration: none;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group p {
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #444;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* Price Slider Styling */
.price-slider-wrapper {
    padding: 5px 0 10px 0;
}

#price-range-slider {
    height: 6px;
    background: #e1e1e1;
    border: none;
    border-radius: 4px;
    margin-bottom: 12px;
}

#price-range-slider .ui-slider-range {
    background: #e60000;
    border-radius: 4px;
}

#price-range-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e60000;
    top: -5px;
    outline: none;
    cursor: pointer;
}

.price-amount-display {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.apply-filters-btn {
    width: 100%;
    background: #e60000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.apply-filters-btn:hover {
    background: #cc0000;
}

/* Responsive Grid Container */
.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1100px) {
    .custom-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .custom-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Card Outer Styling */
.custom-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e1e1e1;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

/* Dark Image Centering Area */
.card-image-wrap {
    height: 180px;
    background: #2b3036;
    border-radius: 14px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.card-image-wrap a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Card Details Footer */
.card-details {
    padding-top: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom:20px !important;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: bold;
    font-size: 15px;
    color: #111;
}

.add-to-cart-btn {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.add-to-cart-btn:hover {
    color: #e60000;
}

/* Pagination Styling */
.custom-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.custom-pagination .page-numbers {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.custom-pagination .page-numbers.current {
    background: #e60000;
    color: #fff;
    border-color: #e60000;
}

@media (max-width: 900px) {
    .shop-top-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .header-search-wrap {
        width: 100%;
    }
    .header-meta-wrap {
        justify-content: space-between;
    }
    .shop-body-layout {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
    }
}