/* ==========================================================================
   REIS & IRVY'S - PREMIUM SHOP STYLES (Matching Design Mockup)
   ========================================================================== */

/* Root Variables for Shop */
:root {
    --shop-primary: #ff6e80;
    --shop-primary-dark: #ee5569;
    --shop-text: #1a202c;
    --shop-text-light: #718096;
    --shop-text-muted: #a0aec0;
    --shop-bg: #ffffff;
    --shop-bg-light: #f9fafb;
    --shop-border: #e8e8e8;
    --shop-border-light: rgba(0, 0, 0, 0.06);
    --shop-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shop-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shop-radius: 12px;
    --shop-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Layout Overrides */
.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.post-type-archive-product .site-content,
.tax-product_cat .site-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.post-type-archive-product .col-full,
.tax-product_cat .col-full {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.post-type-archive-product .content-area,
.tax-product_cat .content-area {
    margin: 0 !important;
    width: 100% !important;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.shop-hero {
    position: relative;
    padding: 80px var(--page-gutter) 60px;
    text-align: center;
    background: #fff;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/shopbgheader.png') center center / cover no-repeat;
    z-index: 0;
}

/* When user adds a custom bg image */
.shop-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.shop-hero-label {
    display: inline-block;
    padding: 8px 24px;
    background: var(--shop-primary);
    color: #fff;
    border-radius: var(--btn-radius);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.shop-hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--shop-text);
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.shop-hero-subtitle {
    font-size: 1rem;
    color: var(--shop-text-light);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   MAIN SHOP LAYOUT
   ========================================================================== */
.shop-main-section {
    padding: 50px 0 80px;
    background: #fff;
    overflow-x: hidden;
}

.shop-main-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 50px;
}
.shop-content-area {
    min-width: 0;
}

/* ==========================================================================
   SIDEBAR FILTERS
   ========================================================================== */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 18px;
    right: 16px;
    background: none !important;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 0;
    transition: color 0.15s ease;
}
.sidebar-close-btn:hover,
.sidebar-close-btn:focus {
    color: var(--shop-text, #111);
    background: none !important;
    outline: none;
    box-shadow: none;
}
.sidebar-close-btn svg {
    display: block;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--shop-border-light);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 0;
}

.filter-group-header-row .filter-group-toggle {
    margin-bottom: 0;
}

.filter-clear-link {
    font-size: 13px;
    color: var(--shop-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--shop-transition);
}

.filter-clear-link:hover {
    color: var(--shop-primary);
}

.filter-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none !important;
    border: none;
    padding: 0;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--shop-text);
    cursor: pointer;
    font-family: inherit;
    transition: none !important;
}

.header-right-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group-toggle i {
    font-size: 10px;
    color: var(--shop-text-light);
    transition: var(--shop-transition);
}

/* Categories scrollable area */
.filter-group[data-filter="category"] .filter-group-content {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--shop-primary) #e8e8e8;
}

.filter-group[data-filter="category"] .filter-group-content::-webkit-scrollbar {
    width: 5px;
}

.filter-group[data-filter="category"] .filter-group-content::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 10px;
}

.filter-group[data-filter="category"] .filter-group-content::-webkit-scrollbar-thumb {
    background: var(--shop-primary);
    border-radius: 10px;
}

.filter-group-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Category checkboxes (radio style per design) */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--shop-text-light);
    transition: var(--shop-transition);
    position: relative;
    line-height: 1.4;
}

.filter-checkbox:hover {
    color: var(--shop-text);
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Circular radio-style checkmark (matching design) */
.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--shop-border);
    border-radius: 50%;
    position: relative;
    transition: var(--shop-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-checkbox input:checked ~ .checkmark {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
}

.checkmark::after {
    content: "";
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.filter-checkbox input:checked ~ .checkmark::after {
    display: block;
}

/* Active/checked state - filled pink with white checkmark icon */
.filter-checkbox input:checked ~ .checkmark {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
}

.filter-checkbox input:checked ~ .checkmark::after {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.filter-label {
    flex: 1;
}

.filter-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--shop-text-light);
    font-weight: 500;
}

/* Rating Stars */
.filter-rating .filter-stars {
    display: flex;
    gap: 2px;
}

.filter-rating .filter-stars i {
    font-size: 14px;
    color: #ffc107;
}

.filter-rating .filter-stars i.far {
    color: #ddd;
}

/* Price Filter */
.price-range-wrapper {
    margin-top: 4px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.price-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px 14px;
}

.price-input {
    width: 100%;
    background: #fff !important;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-text);
    padding: 0;
    font-family: inherit;
    outline: none;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input:focus {
    outline: none;
}

.price-separator {
    color: var(--shop-text-muted);
    font-weight: 400;
    font-size: 14px;
}

/* Price Range Slider */
.price-slider-track {
    position: relative;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 4px;
}

.price-slider-fill {
    position: absolute;
    height: 100%;
    background: var(--shop-primary);
    border-radius: 4px;
    z-index: 1;
}

.price-slider-track input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    top: 0;
    z-index: 2;
}

.price-slider-track input[type="range"]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--shop-primary);
    border: 3px solid #fff;
    pointer-events: auto;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

.price-slider-track input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--shop-primary);
    border: 3px solid #fff;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-toggle-btn {
    display: none;
    background: #fff;
    border: 1px solid var(--shop-border);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    align-items: center;
    gap: 8px;
}

.shop-result-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--shop-text-light);
}

/* Hide WooCommerce's default result count/ordering */
.shop-content-area .woocommerce-result-count {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--shop-text-light) !important;
}

/* View Toggle */
.shop-view-toggle {
    display: flex;
    gap: 4px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    width: 38px;
    height: 38px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--shop-transition);
    color: var(--shop-text-light);
    font-size: 14px;
}

.view-btn:first-child {
    border-right: 1px solid var(--shop-border);
}

.view-btn.active,
.view-btn:hover {
    background: var(--shop-primary);
    color: #fff;
}

/* ==========================================================================
   CUSTOM SORTING DROPDOWN
   ========================================================================== */
.shop-sort-dropdown {
    position: relative;
}

/* Hide the default WooCommerce ordering */
.shop-sort-dropdown .woocommerce-ordering {
    display: none !important;
}

.sort-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--shop-border);
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--shop-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--shop-transition);
}

.sort-dropdown-trigger:hover {
    border-color: var(--shop-text-muted);
}

.sort-dropdown-trigger i {
    font-size: 10px;
    color: var(--shop-text-light);
    transition: var(--shop-transition);
}

.shop-sort-dropdown.is-open .sort-dropdown-trigger i {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 220px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--shop-transition);
}

.shop-sort-dropdown.is-open .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: block;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--shop-text);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--shop-transition);
    white-space: nowrap;
}

.sort-option:hover {
    background: var(--shop-bg-light);
    color: var(--shop-text);
}

.sort-option.active {
    font-weight: 700;
    color: var(--shop-primary);
    background: rgba(255, 110, 128, 0.06);
}

/* ==========================================================================
   PRODUCT GRID — uses .reis-product-card from content-product.php
   Mirrors homepage / wishlist card; reveals add-to-cart button on hover.
   ========================================================================== */
.shop-products-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.shop-products-grid ul.products::before,
.shop-products-grid ul.products::after { display: none !important; }

/* Card container (matches homepage .reis-product-card) */
.shop-products-grid li.reis-product-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
.shop-products-grid li.reis-product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Sale badge */
.shop-products-grid li.reis-product-card .reis-product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--reis-pink, #ff6e80);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Wishlist button */
.shop-products-grid li.reis-product-card .reis-wl-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    border: none !important;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.2s;
    padding: 0;
}
.shop-products-grid li.reis-product-card .reis-wl-btn:hover {
    transform: scale(1.12);
    background: #fff5f6;
}
.shop-products-grid li.reis-product-card .reis-wl-btn.is-saved { background: #fff0f2; }
.shop-products-grid li.reis-product-card .reis-wl-btn.is-saved svg { fill: var(--reis-pink) !important; }

/* Image wrap */
.shop-products-grid li.reis-product-card .reis-product-card-img-wrap {
    display: block;
    background: #f7f7f7;
    padding: 28px;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}
.shop-products-grid li.reis-product-card .reis-product-card-img-wrap.is-placeholder {
    background: #f3f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-products-grid li.reis-product-card .reis-product-card-no-img {
    font-size: 12px;
    color: #aab;
    font-weight: 400;
}
.shop-products-grid li.reis-product-card .reis-product-card-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    transition: transform 0.3s;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.shop-products-grid li.reis-product-card:hover .reis-product-card-img-wrap img {
    transform: translateY(-4px);
}

/* Add-to-cart action — revealed on hover, sits over the bottom of the image */
.shop-products-grid li.reis-product-card .reis-product-card-actions {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(100% - 100% + 0px); /* fallback */
    top: auto;
    z-index: 3;
    pointer-events: none;
    /* anchored just above the body */
    bottom: 30%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.shop-products-grid li.reis-product-card:hover .reis-product-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.shop-products-grid li.reis-product-card .reis-product-card-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--reis-pink, #ff6e80) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 110, 128, 0.28);
}
.shop-products-grid li.reis-product-card .reis-product-card-cart:hover,
.shop-products-grid li.reis-product-card .reis-product-card-cart:focus {
    background: var(--reis-pink-dark, #e85a6c) !important;
    color: #fff !important;
}
.shop-products-grid li.reis-product-card .reis-product-card-cart.loading { opacity: 0.7; }

/* Hide WC's "View cart" link injected after AJAX add — toast handles confirmation */
.shop-products-grid li.reis-product-card a.added_to_cart,
.shop-products-grid li.reis-product-card .added_to_cart.wc-forward {
    display: none !important;
}

/* Body */
.shop-products-grid li.reis-product-card .reis-product-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.shop-products-grid li.reis-product-card .reis-product-card-cat {
    font-size: 11px;
    color: var(--text-muted, #757575);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.shop-products-grid li.reis-product-card .reis-product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #111);
    text-decoration: none;
    line-height: 1.4;
}
.shop-products-grid li.reis-product-card .reis-product-card-name:hover {
    color: var(--text-dark, #111);
}
.shop-products-grid li.reis-product-card .reis-product-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark, #111);
    margin-top: 4px;
}
.shop-products-grid li.reis-product-card .reis-product-card-price .woocommerce-Price-amount {
    color: var(--text-dark, #111);
}

/* Hide WC's default sale flash since we render our own .reis-product-card-badge */
.shop-products-grid li.reis-product-card .onsale { display: none !important; }

/* Responsive grid: 3 cols desktop, 1 col below 1024px (tablet + mobile) */
@media (max-width: 1024px) {
    .shop-products-grid ul.products { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.shop-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.shop-pagination .woocommerce-pagination ul {
    border: none !important;
    display: flex;
    gap: 8px;
}

.shop-pagination .woocommerce-pagination ul li {
    border-right: none !important;
}

.shop-pagination .woocommerce-pagination ul li a,
.shop-pagination .woocommerce-pagination ul li span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-bg-light);
    border-radius: 10px;
    font-weight: 600;
    color: var(--shop-text);
    transition: var(--shop-transition);
    font-size: 14px;
}

.shop-pagination .woocommerce-pagination ul li span.current,
.shop-pagination .woocommerce-pagination ul li a:hover {
    background: var(--shop-primary) !important;
    color: #fff !important;
}

/* ==========================================================================
   NO PRODUCTS FOUND
   ========================================================================== */
.shop-no-products {
    text-align: center;
    padding: 100px 0;
}

.no-products-icon {
    font-size: 60px;
    color: var(--shop-border);
    margin-bottom: 24px;
}

.shop-no-products h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.shop-no-products p {
    color: var(--shop-text-light);
    margin-bottom: 32px;
}

.no-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--shop-text);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--shop-transition);
    font-size: 14px;
}

.no-products-btn:hover {
    background: var(--shop-primary);
    transform: scale(1.02);
}

/* ==========================================================================
   ACTIVE FILTERS
   ========================================================================== */
.active-filters {
    margin-bottom: 24px;
    background: #fffafa;
    border: 1px dashed var(--shop-primary);
    border-radius: 10px;
    padding: 14px;
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--shop-text);
}

.clear-all-filters {
    color: var(--shop-primary);
    text-decoration: none;
    font-size: 12px;
}

.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--shop-border);
    padding: 4px 10px;
    border-radius: var(--btn-radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--shop-text);
}

.filter-tag i {
    cursor: pointer;
    color: var(--shop-text-light);
    transition: var(--shop-transition);
    font-size: 10px;
}

.filter-tag i:hover {
    color: var(--shop-primary);
}

/* ==========================================================================
   LIST VIEW MODE
   ========================================================================== */
.shop-products-grid.view-list ul.products {
    grid-template-columns: 1fr !important;
}

.shop-products-grid.view-list li.product {
    display: flex !important;
    align-items: center;
}

.shop-products-grid.view-list li.product .woocommerce-loop-product__link {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    padding: 10px 0;
}

.shop-products-grid.view-list li.product img {
    width: 180px !important;
    height: 140px !important;
    min-width: 180px;
    border-bottom: none;
    border-right: 1px solid var(--shop-border-light);
}

.shop-products-grid.view-list li.product .woocommerce-loop-product__title {
    margin: 0 !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

.shop-products-grid.view-list li.product .price {
    margin: 0 !important;
    font-size: 1.1rem !important;
    white-space: nowrap;
}

.shop-products-grid.view-list li.product .button,
.shop-products-grid.view-list li.product .add_to_cart_button {
    position: relative !important;
    top: auto !important;
    opacity: 1 !important;
    height: 44px !important;
    margin: 0 24px 0 20px !important;
    border-radius: 10px !important;
    white-space: nowrap;
    padding: 0 26px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: none !important;
    pointer-events: auto !important;
}

/* Disable the title/price push in list view */
.shop-products-grid.view-list li.product:hover .woocommerce-loop-product__title,
.shop-products-grid.view-list li.product:hover .price {
    transform: none !important;
}

/* Mobile Apply Button */
.sidebar-apply-btn-wrap {
    display: none;
    margin-top: 24px;
}

.sidebar-apply-btn {
    width: 100%;
    background: var(--shop-primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--shop-transition);
    font-family: inherit;
    font-size: 14px;
}

.sidebar-apply-btn:hover {
    background: var(--shop-text);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .shop-main-inner {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 36px;
    }

    .shop-products-grid ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .shop-main-inner {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -360px;
        width: 320px;
        max-width: 88vw;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 56px 24px 24px;
        overflow-y: auto;
        transition: left 0.25s ease;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.08);
    }
    .shop-sidebar .filter-group {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .shop-sidebar .filter-group-toggle {
        margin-bottom: 14px;
        font-size: 14px;
    }
    .shop-sidebar .filter-checkbox {
        font-size: 14px;
        gap: 12px;
        padding: 4px 0;
    }
    .shop-sidebar .filter-count {
        font-size: 12px;
    }
    .shop-sidebar .checkmark {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .shop-sidebar.is-active {
        left: 0;
    }

    .sidebar-close-btn {
        display: block;
    }

    .sidebar-apply-btn-wrap {
        display: block;
    }

    .shop-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--shop-transition);
    }

    .shop-sidebar-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    .filter-toggle-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 50px var(--page-gutter-mobile) 40px;
        min-height: 200px;
    }

    .shop-hero-title {
        font-size: 2rem;
    }

    .shop-hero-label {
        font-size: 10px;
        padding: 6px 18px;
    }

    .shop-main-inner {
        padding: 0 16px;
    }

    .shop-main-section {
        padding: 30px 0 60px;
    }

    /* Toolbar: row 1 = [Filters] [Sort], row 2 = result count (left) */
    .shop-toolbar {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "filter sort"
            "count  count";
        column-gap: 12px;
        row-gap: 10px;
        align-items: center;
    }
    .toolbar-left {
        display: contents;
    }
    .toolbar-left .filter-toggle-btn { grid-area: filter; }
    .toolbar-left .shop-result-count {
        grid-area: count;
        justify-self: start;
        text-align: left;
    }
    .toolbar-right {
        grid-area: sort;
        justify-self: end;
    }

    /* Single-column grid override no longer needed here — handled at 1024px.
       Force the card to stay centered and not crop. */
    .shop-products-grid li.reis-product-card {
        max-width: 420px;
        margin: 0 auto !important;
    }
    .shop-products-grid ul.products {
        gap: 16px !important;
    }

    /* Reposition Add to Cart for smaller image */
    .shop-products-grid li.product .button,
    .shop-products-grid li.product .add_to_cart_button,
    .shop-products-grid li.product a.added_to_cart {
        top: 125px; /* Overlay on mobile image */
    }

    .shop-products-grid li.product:hover .woocommerce-loop-product__title,
    .shop-products-grid li.product:hover .price {
        transform: none !important;
    }

    .shop-products-grid li.product .woocommerce-loop-product__title {
        font-size: 0.75rem !important;
        margin: 10px 12px 2px !important;
    }

    .shop-products-grid li.product .price {
        margin: 4px 12px 14px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .shop-products-grid ul.products {
        grid-template-columns: 1fr !important;
    }
}
