/* ========================================================
   Styles extracted from store.blade.php
   ======================================================== */

.store-page-section {
        background-color: #fafafb;
        min-height: 85vh;
        padding: 30px 0 60px;
    }
    @media (min-width: 1200px) {
        .store-page-section .container {
            max-width: 1440px;
        }
    }

    /* Page Header */
    .store-header-title {
        font-size: 26px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 4px;
        letter-spacing: -0.3px;
    }
    .store-header-subtitle {
        font-size: 14px;
        color: #64748b;
        margin-bottom: 24px;
    }

    /* Sidebar Filter Cards - Matching Mockup */
    .store-filter-card {
        background: #ffffff;
        border: 1px solid #edf2f7;
        border-radius: 20px;
        padding: 22px;
        margin-bottom: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }
    .store-filter-title {
        font-size: 15px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 14px;
    }

    /* Sort By Select - Exact Image Match */
    .store-sort-select {
        width: 100%;
        height: 46px;
        padding: 0 16px;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 16px center/14px;
        font-size: 14.5px;
        font-weight: 600;
        color: #1e293b;
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .store-sort-select:focus {
        border-color: var(--primary-color, #ea580c);
        box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 234, 88, 12), 0.12);
    }

    /* Price Range Slider - Exact Image Match */
    .price-slider-wrap {
        padding: 10px 6px 4px;
    }
    .ui-slider-horizontal {
        position: relative;
        text-align: left;
        height: 6px;
        background: #f1f5f9;
        border-radius: 10px;
        border: none;
    }
    .ui-slider-horizontal .ui-slider-range {
        position: absolute;
        z-index: 1;
        display: block;
        border: 0;
        background: var(--primary-color, #ea580c);
        border-radius: 10px;
        height: 100%;
    }
    .ui-slider-horizontal .ui-slider-handle {
        position: absolute;
        z-index: 2;
        width: 20px;
        height: 20px;
        cursor: pointer;
        border-radius: 50%;
        background: #ffffff !important;
        border: 2.5px solid var(--primary-color, #ea580c) !important;
        top: -7px;
        margin-left: -10px;
        outline: none !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
        transition: transform 0.15s ease;
    }
    .ui-slider-horizontal .ui-slider-handle:hover,
    .ui-slider-horizontal .ui-slider-handle:active {
        transform: scale(1.18);
    }

    .price-range-labels {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 15px;
        font-weight: 700;
        color: #475569;
        margin: 10px 0 16px;
    }

    .price-inputs-row {
        display: flex;
        align-items: flex-end;
        gap: 8px;
    }
    .price-input-col {
        flex: 1;
    }
    .price-input-label {
        font-size: 12.5px;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 5px;
        display: block;
    }
    .price-number-input {
        width: 100%;
        height: 42px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        color: #1e293b;
        background: #ffffff;
        outline: none;
        transition: all 0.2s ease;
        padding: 0 8px;
    }
    .price-number-input:focus {
        border-color: var(--primary-color, #ea580c);
        box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 234, 88, 12), 0.12);
    }
    .price-separator {
        font-size: 18px;
        font-weight: 700;
        color: #94a3b8;
        padding-bottom: 8px;
    }

    /* Checkbox Filter Items */
    .store-filter-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .store-filter-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
    }
    .store-filter-item label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0;
        cursor: pointer;
    }
    .store-filter-left {
        display: flex;
        align-items: center;
        gap: 9px;
    }
    .store-filter-check {
        width: 16px;
        height: 16px;
        accent-color: var(--primary-color, #ea580c);
        cursor: pointer;
    }
    .store-filter-name {
        font-size: 13.5px;
        color: #334155;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    .store-filter-item:hover .store-filter-name {
        color: var(--primary-color, #ea580c);
    }
    .store-filter-count {
        font-size: 12px;
        color: #94a3b8;
        font-weight: 600;
        background: #f8fafc;
        padding: 1px 7px;
        border-radius: 6px;
    }

    /* Product Grid: 4 cards per row on large devices */
    .store-products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    /* Product Card */
    .store-product-card {
        background: #ffffff;
        border: 1px solid #edf2f7;
        border-radius: 16px;
        padding: 10px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        position: relative;
    }
    .store-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    }

    /* Image Wrapper */
    .store-img-wrap {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #f8fafc;
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    .store-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }
    .store-product-card:hover .store-img-wrap img {
        transform: scale(1.03);
    }

    /* Discount Badge */
    .store-discount-pill {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.96);
        color: #0f172a;
        font-size: 11px;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        letter-spacing: 0.2px;
    }

    /* Wishlist Button */
    .store-wishlist-btn {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    .store-wishlist-btn:hover {
        background: #ffffff;
        color: #ef4444;
        transform: scale(1.1);
    }

    /* Out of Stock */
    .store-stockout-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-weight: 700;
        font-size: 14px;
    }

    /* Product Title */
    .store-product-title {
        font-size: 13.5px;
        font-weight: 700;
        color: #1e293b;
        margin: 10px 0 4px;
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.2s ease;
        line-height: 1.4;
    }
    .store-product-title:hover {
        color: var(--primary-color, #ea580c);
    }

    /* Pricing */
    .store-price-row {
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin-bottom: 10px;
    }
    .store-sale-price {
        font-size: 15.5px;
        font-weight: 800;
        color: var(--primary-color, #ea580c);
    }
    .store-old-price {
        font-size: 12.5px;
        color: #94a3b8;
        text-decoration: line-through;
        font-weight: 500;
    }

    /* Action Buttons Row */
    .store-btn-row {
        display: flex;
        gap: 6px;
        margin-top: auto;
    }
    .btn-store-cart {
        flex: 1;
        height: 36px;
        border: 1.5px solid #e2e8f0;
        background: #ffffff;
        color: #334155;
        border-radius: 8px;
        font-size: 11.5px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        cursor: pointer;
        padding: 0 4px;
        white-space: nowrap;
        transition: all 0.2s ease;
    }
    .btn-store-cart:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #0f172a;
    }

    .btn-store-buy {
        flex: 1;
        height: 36px;
        border: none;
        background: var(--buy-now-btn, #ea580c);
        color: var(--btn-text-color, #ffffff);
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        cursor: pointer;
        padding: 0 4px;
        white-space: nowrap;
        transition: all 0.2s ease;
    }
    .btn-store-buy:hover {
        background: var(--btn-hover, #c2410c);
        color: var(--btn-text-color, #ffffff);
        transform: translateY(-1px);
    }

    /* Mobile Filter Toggle */
    .store-mobile-filter-btn {
        display: none;
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 700;
        color: #334155;
        margin-bottom: 18px;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    @media (max-width: 991px) {
        .store-mobile-filter-btn { display: inline-flex; }
        .store-sidebar-col { display: none; }
        .store-sidebar-col.show-mobile { display: block; margin-bottom: 20px; }
        .store-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    }
    @media (max-width: 575px) {
        .store-page-section { padding: 20px 0 40px; }
        .store-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
        .store-product-card { padding: 9px; }
        .store-product-title { font-size: 13px; }
        .store-sale-price { font-size: 14px; }
        .btn-store-cart, .btn-store-buy { height: 34px; font-size: 11px; padding: 0 2px; }
    }
