/* ==========================================================================
   GasFlow Products Page Stylesheet
   Theme: Clean White / Light Theme with Precision Cyan & Orange Accents
   ========================================================================== */

/* Page Header & Search Bar */
.products-header-section {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.products-page-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
}

.products-search-wrapper {
    max-width: 420px;
    width: 100%;
}

.products-search-input {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px 0 0 12px;
    color: #0f172a;
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.products-search-input:focus {
    background: #ffffff;
    border-color: var(--cyan-500);
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.2);
    color: #0f172a;
    outline: none;
}

.products-search-btn {
    background: var(--cyan-500);
    border: 1px solid var(--cyan-500);
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: #ffffff;
    padding: 0.65rem 1.2rem;
    transition: var(--transition-smooth);
}

.products-search-btn:hover {
    background: #0369a1;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Top Category Pills & Sorting Bar
   ========================================================================== */
.products-filter-topbar {
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.category-pills-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    width: 100%;
}

.category-pills-nav::-webkit-scrollbar {
    display: none;
}

.category-pill-btn {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    color: #475569;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap !important;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.category-pill-btn:hover {
    color: var(--cyan-500);
    border-color: var(--cyan-500);
    background: rgba(2, 132, 199, 0.08);
    transform: translateY(-2px);
}

.category-pill-btn.active {
    background: var(--cyan-500);
    border-color: var(--cyan-500);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.sort-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sort-label {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}

.custom-select-dark {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.85rem;
    padding: 0.45rem 2rem 0.45rem 1rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.custom-select-dark:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.2);
    outline: none;
    color: #0f172a;
}

.custom-select-dark option {
    background: #ffffff;
    color: #0f172a;
}

/* ==========================================================================
   Filter Sidebar (Desktop & Mobile Offcanvas)
   ========================================================================== */
.sidebar-filter-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.sidebar-filter-card .card-header {
    border-bottom: 1px solid var(--border-light);
    background: transparent;
}

.filter-section-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0284c7;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.filter-checkbox-label:hover {
    color: #0284c7;
}

.form-check-input-cyan {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input-cyan:checked {
    background-color: var(--cyan-500);
    border-color: var(--cyan-500);
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

/* Range Sliders */
.range-slider-cyan {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}

.range-slider-cyan::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cyan-500);
    cursor: pointer;
    box-shadow: 0 0 8px var(--cyan-500);
    transition: var(--transition-smooth);
}

.range-slider-cyan::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   Product Cards & Grid
   ========================================================================== */
.product-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-bounce);
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan-500);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.12);
}

/* Featured / Most Popular Highlight Card (GF-12 in screenshot) */
.product-card.popular-highlight {
    border: 1.5px solid var(--cyan-500);
    box-shadow: 0 8px 30px rgba(2, 132, 199, 0.15);
}

.product-card.popular-highlight:hover {
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
}

.product-card-top-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.badge-card-cyan {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0284c7;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.badge-card-orange {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid var(--orange-primary);
    color: var(--orange-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 16px 16px 0 0;
}

.product-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.product-thumb-stage,
.product-image-container {
    width: 100%;
    height: 240px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 14px 0 0;
}

.product-image-container img,
.product-image-container .product-image,
.product-thumb-stage img,
.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-wrapper img,
.product-card:hover .product-image-container img,
.product-card:hover .product-image,
.product-card:hover .product-thumb-img {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .product-image-wrapper {
        height: 300px;
    }
    .product-thumb-stage,
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .product-image-wrapper {
        height: 240px;
    }
    .product-thumb-stage,
    .product-image-container {
        height: 200px;
    }
}

.product-title {
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.product-card:hover .product-title {
    color: #0284c7;
}

.product-type-label {
    font-size: 0.8rem;
    color: #64748b;
}

.rating-stars {
    color: #f59e0b;
    font-size: 0.85rem;
}

.product-price {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-original-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Add to Cart button standard (cyan glass) */
.btn-card-cart {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #0284c7;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-card-cart:hover {
    background: var(--cyan-500);
    border-color: var(--cyan-500);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
    transform: translateY(-2px);
}

/* Add to Cart button Orange for Most Popular */
.btn-card-cart-orange {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8800 100%);
    border: 1px solid var(--orange-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-card-cart-orange:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffa500 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   Custom Pagination (Compact Prev / Current Page / Next)
   ========================================================================== */
.gasflow-pagination-wrapper {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.gasflow-pagination {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gasflow-pagination .page-item {
    margin: 0;
}

.gasflow-pagination .page-item .page-link {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 1.05rem;
    font-family: var(--font-hud, 'Outfit'), 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    min-width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.gasflow-pagination .page-item .page-link i {
    font-size: 1rem;
    font-weight: 600;
    -webkit-text-stroke: 0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.gasflow-pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    background: #f8fafc;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18);
}

.gasflow-pagination .page-item:not(.disabled):not(.active) .page-link:hover i {
    color: #0284c7;
}

.gasflow-pagination .page-item:not(.disabled):not(.active) .page-link:hover i.bi-chevron-left {
    transform: translateX(-2px);
}

.gasflow-pagination .page-item:not(.disabled):not(.active) .page-link:hover i.bi-chevron-right {
    transform: translateX(2px);
}

.gasflow-pagination .page-item.active .page-link {
    background: #0284c7;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #0284c7;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
    cursor: default;
}

.gasflow-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e1;
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.gasflow-pagination .page-item.disabled .page-link i {
    color: #cbd5e1;
    -webkit-text-stroke: 0;
}

/* Quick View Modal Styles */
.modal-content-glass {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

.spec-list-table {
    width: 100%;
    font-size: 0.85rem;
}

.spec-list-table tr {
    border-bottom: 1px solid var(--border-light);
}

.spec-list-table td {
    padding: 0.45rem 0;
}

.quick-view-stage-wrapper {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 290px !important;
    min-height: 290px !important;
    position: relative !important;
    overflow: hidden !important;
}

.quick-view-stage-wrapper img#quickViewMainImage,
#quickViewMainImage {
    max-height: 250px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
}

/* ==========================================================================
   Dynamic Reviews & Ratings System Styles
   ========================================================================== */
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.35rem;
    font-size: 1.75rem;
    cursor: pointer;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease-in-out, transform 0.15s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input[type="radio"]:checked ~ label {
    color: #f59e0b;
    transform: scale(1.1);
}

.star-rating-input label:active {
    transform: scale(1.25);
}

.rating-score-box {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
}

.rating-score-box .score-number {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Orbitron', sans-serif;
}

.review-dist-bar-track {
    height: 9px;
    background-color: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.review-dist-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
    flex-shrink: 0;
}

.single-review-card {
    border: 1px solid #f1f5f9;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.single-review-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.verified-buyer-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Mobile Filter Offcanvas Drawer Styles */
.mobile-filter-offcanvas {
    --bs-offcanvas-width: 310px;
}

.mobile-filter-offcanvas .offcanvas-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0 !important;
}

.filter-group-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
}

