/* Budget Radiators - Search Page Styles */
/* Product listing styles matching category page design */

/* ===== SEO AND ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== SEARCH FORM SECTION ===== */
.search-form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.search-form-section h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.search-criteria .control-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.search-criteria .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.search-criteria .btn-primary {
    background-color: #d73f15;
    border-color: #d73f15;
    padding: 8px 20px;
    font-weight: 600;
}

.search-criteria .btn-primary:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

/* ===== PRODUCT CONTENT SECTION ===== */
.product-content {
    margin-top: 0;
}

/* ===== PRODUCT GRID STYLES ===== */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.product-grid-item {
    margin-bottom: 20px;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
}

.product-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #d73f15;
}

/* ===== PRODUCT IMAGE SECTION ===== */
.product-image {
    position: relative;
    height: 260px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Badges */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sale-badge {
    position: absolute;
    top: 8px;
    right: 40px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wishlist-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}

.btn-wishlist {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #787676;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-wishlist:hover {
    background: #d73f15;
    color: white;
    border-color: #d73f15;
    transform: scale(1.1);
}

.quick-view-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card:hover .quick-view-badge {
    opacity: 1;
}

/* ===== PRODUCT DETAILS SECTION ===== */
.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}

/* Product Title */
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    display: block;
    overflow: visible;
}

/* Model ID */
.model-id {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Price Section */
.price-section {
    margin: 8px 0;
}

/* Price and Rating Container */
.price-rating-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    gap: 15px;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: #dc3545;
    line-height: 1;
    display: block;
}

.price-old {
    color: #787676;
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.ex-tax {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
    margin-top: 4px;
}

/* Rating Section */
.rating-section {
    text-align: right;
    min-width: 80px;
    flex-shrink: 0;
}

.rating-section .stars {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    margin-bottom: 4px;
}

.rating-section .stars .fa {
    color: #ffc107;
    font-size: 18px;
}

.rating-section .stars .fa-star,
.rating-section .stars .fa-star-half-o {
    color: #ffc107;
}

.rating-section .stars .fa-star-o {
    color: #ddd;
}

.review-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-align: right;
    margin-top: 2px;
}

/* Stock Info */
.stock-info {
    font-size: 13px;
    color: #28a745;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    text-align: center;
}

.stock-info .fa {
    color: #28a745;
    font-size: 12px;
}

/* Product Specifications - Clean Design */
.product-specs {
    margin: 12px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
    margin: 10px 0 0 0;
    padding: 0;
    border: 0 none;
    background: transparent;
    box-shadow: none;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: #495057;
    flex: 0 0 auto;
    margin-right: 10px;
    min-width: 80px;
    font-size: 13px;
}

.spec-value {
    color: #6c757d;
    text-align: right;
    flex: 1;
    font-weight: 400;
    font-size: 13px;
}

/* Highlight only the unit text for BTU and Watts output */
.spec-unit[data-output="BTU"],
.spec-unit[data-output="Watts"] {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    font-weight: 600;
    color: #787878;
    box-shadow: 0 1px 3px rgb(170 170 170 / 20%);
    display: inline-block;
    margin-left: 2px;
    font-size: 12px;
}

/* Remove old spec-value highlighting */
.spec-value[data-output="BTU"],
.spec-value[data-output="Watts"] {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    font-weight: 400;
    color: #6c757d;
    box-shadow: none;
    display: inline;
}

/* Warranty Info */
.warranty-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.warranty-info .fa {
    color: #dc3545;
    font-size: 13px;
}

/* ===== PAGINATION STYLES ===== */
.pagination-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.showing-results {
    color: #6c757d;
    font-size: 14px;
}

/* ===== NO PRODUCTS MESSAGE ===== */
.no-products {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-products p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .search-form-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .search-criteria .row {
        margin-bottom: 15px;
    }

    .search-criteria .col-sm-4,
    .search-criteria .col-sm-3 {
        margin-bottom: 10px;
    }

    /* Keep product details styling same as desktop */
    .product-details {
        padding: 15px;
        gap: 5px;
    }

    /* Keep product title same as desktop */
    .product-title {
        font-size: 16px;
    }

    /* Keep price styling same as desktop */
    .price-current {
        font-size: 22px;
    }

    .price-old {
        font-size: 16px;
    }

    /* Keep product image height same as desktop */
    .product-image {
        height: 260px;
    }

    /* Keep product specs same as desktop */
    .product-specs {
        margin: 12px 0;
    }

    .spec-item {
        font-size: 13px;
        margin: 10px 0 0 0;
    }

    .spec-label {
        font-size: 13px;
        min-width: 70px;
    }

    .spec-value {
        font-size: 13px;
    }

    .spec-unit[data-output="BTU"],
    .spec-unit[data-output="Watts"] {
        font-size: 12px;
        padding: 2px 4px;
    }

    /* Keep warranty info same as desktop */
    .warranty-info {
        font-size: 13px;
        padding-top: 12px;
    }

    /* Keep stock info same as desktop */
    .stock-info {
        font-size: 13px;
        margin: 8px 0;
    }

    /* Responsive price and rating container */
    .price-rating-container {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .rating-section {
        text-align: left;
        min-width: auto;
    }

    .rating-section .stars {
        justify-content: flex-start;
    }

    .review-count {
        text-align: left;
    }

    .pagination-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .product-grid-item {
        padding: 0 5px;
        margin-bottom: 15px;
    }
}