.products-page {
    padding: 80px 0;
    background: var(--background);
}

/* =========================================
   PAGE HEADER
========================================= */

.products-page .section-title {
    margin-bottom: 45px;
}

/* =========================================
   FILTER BOX
========================================= */

.products-filter {
    margin: 0 0 55px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.05);
}

/* SEARCH */

.filter-search {
    margin-bottom: 28px;
}

.filter-search label,
.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input-wrapper input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

/* FILTER GRID */

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.search-input-wrapper input:focus,
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

/* PRICE */

.price-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.price-filter-currency {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* ACTIONS */

.filter-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.filter-submit {
    border: none;
    cursor: pointer;
}

.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: .3s ease;
}

.filter-reset:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* =========================================
   PRODUCTS GRID
========================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* PRODUCT CARD */

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

/* IMAGE */

.product-card-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4f3ef;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.product-card-image:hover img {
    transform: scale(1.04);
}

/* CONTENT */

.product-card-content {
    padding: 24px;
}

.product-card-category {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.product-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.product-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =========================================
   PRICE
========================================= */

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.product-card-bottom strong {
    font-size: 20px;
}

.product-price-original {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 3px;
}

.product-price-final {
    display: inline-block;
    font-size: 20px;
}

.product-discount-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 5px;
    background: #1f7a45;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

/* =========================================
   NO PRODUCTS
========================================= */

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border-radius: 16px;
}

.no-products h2 {
    margin-bottom: 10px;
}

.no-products p {
    color: #666;
    margin-bottom: 25px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .products-page {
        padding: 50px 0;
    }

    .products-filter {
        padding: 20px;
        margin-bottom: 40px;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input-wrapper input,
    .search-input-wrapper button {
        width: 100%;
    }

    .search-input-wrapper button {
        min-height: 48px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .price-filter {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-submit,
    .filter-reset {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-card-content {
        padding: 20px;
    }

    .product-card h2 {
        font-size: 22px;
    }

    .product-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .product-card-bottom .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   PRODUCT BADGES
========================================= */

.product-card {
    position: relative;
}

.product-card-image {
    position: relative;
}

.product-featured-badge,
.product-image-discount {
    position: absolute;
    z-index: 3;
    top: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
}

.product-featured-badge {
    left: 14px;
    background: var(--secondary);
    color: #fff;
}

.product-image-discount {
    right: 14px;
    background: #1f7a45;
    color: #fff;
}

/* =========================================
   PRICE AREA
========================================= */

.product-price-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.product-price-area strong {
    line-height: 1.2;
}

/* =========================================
   STOCK STATUS
========================================= */

.product-stock {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
}

.product-stock.in-stock {
    color: #1f7a45;
}

.product-stock.backorder {
    color: #b7791f;
}

.product-stock.out-of-stock {
    color: #b42318;
}

/* =========================================
   FEATURED CARD
========================================= */

.product-card.is-featured {
    box-shadow: 0 10px 35px rgba(0,0,0,.09);
}

.product-card.is-featured:hover {
    box-shadow: 0 16px 45px rgba(0,0,0,.13);
}

@media (max-width: 768px) {

    .product-featured-badge,
    .product-image-discount {
        top: 10px;
        font-size: 9px;
        padding: 6px 8px;
    }

}

/* =========================================
   PRODUCT CARD - FINAL POLISH
========================================= */

.product-card {
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card-image {
    text-decoration: none;
}

.product-card-content {
    display: flex;
    flex-direction: column;
}

.product-card-content p {
    min-height: 52px;
}

.product-card-bottom {
    margin-top: auto;
}

.product-price-original {
    display: block;
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.product-price-original del {
    text-decoration-thickness: 1px;
}

.product-price-final {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}

.product-card-bottom .btn {
    flex-shrink: 0;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card-content {
        padding: 18px;
    }

    .product-card h2 {
        font-size: 20px;
    }

    .product-card-content p {
        min-height: auto;
    }

    .product-card-bottom {
        gap: 12px;
    }

    .product-price-final {
        font-size: 18px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .product-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card-bottom .btn {
        width: 100%;
        text-align: center;
    }

}

/* =========================================
   PRODUCT TOOLBAR / VIEW SWITCHER
========================================= */

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

.products-result-info {
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.products-view-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.products-view-label {
    margin-right: 7px;
    color: #777;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.view-option {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s ease;
}

.view-option:hover,
.view-option.is-active {
    border-color: var(--secondary);
}

.view-option.is-active {
    background: #faf7f0;
}

/* Crisp grid icons */

.view-icon {
    width: 15px;
    height: 15px;
    display: grid;
    gap: 2px;
}

.view-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    box-sizing: border-box;
}

.view-icon-1 {
    grid-template-columns: 1fr;
}

.view-icon-2 {
    grid-template-columns: repeat(2, 1fr);
}

.view-icon-3 {
    grid-template-columns: repeat(3, 1fr);
}

.view-icon-4 {
    grid-template-columns: repeat(4, 1fr);
}

.view-icon-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* DEFAULT GRID */

.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* SELECTED VIEW */

.products-grid.view-1 {
    grid-template-columns: minmax(0, 1fr) !important;
}

.products-grid.view-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.products-grid.view-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.products-grid.view-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.products-grid.view-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

/* COMPACT CARDS */

.product-card-content {
    padding: 18px;
}

.product-card-category {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.35px;
}

.product-card h2 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 650;
}

.product-card p {
    margin-bottom: 15px;
    color: #5f5f5f;
    font-size: 13px;
    line-height: 1.5;
}

.product-price-final,
.product-card-bottom strong {
    font-size: 18px;
    font-weight: 700;
}

/* ONE-COLUMN DESKTOP */

.products-grid.view-1 .product-card {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
}

.products-grid.view-1 .product-card-image {
    aspect-ratio: 1 / 1;
}

.products-grid.view-1 .product-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.products-grid.view-1 .product-card h2 {
    font-size: 25px;
}

.products-grid.view-1 .product-card p {
    max-width: 700px;
    font-size: 14px;
}

/* MOBILE */

@media (max-width: 767px) {

    .products-toolbar {
        margin-bottom: 16px;
    }

    .products-view-label {
        display: none;
    }

    .products-view-control {
        margin-left: auto;
    }

    .view-option[data-columns="3"],
    .view-option[data-columns="4"],
    .view-option[data-columns="5"] {
        display: none;
    }

    .product-card-content {
        padding: 14px;
    }

    .product-card-category {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .product-card h2 {
        font-size: 15px;
        line-height: 1.3;
    }

    .product-card p {
        font-size: 11px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price-final,
    .product-card-bottom strong {
        font-size: 16px;
    }

    .product-card-bottom {
        gap: 10px;
    }

    .product-card-bottom .btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .products-grid.view-1 .product-card {
        display: block;
    }

    .products-grid.view-1 .product-card-image {
        aspect-ratio: 4 / 5;
    }

    .products-grid.view-1 .product-card-content {
        padding: 20px;
    }

    .products-grid.view-1 .product-card h2 {
        font-size: 21px;
    }

    .products-grid.view-1 .product-card p {
        font-size: 13px;
        display: block;
    }
}

/* TABLET / LAPTOP */

@media (min-width: 768px) and (max-width: 1399px) {
    .view-option[data-columns="4"],
    .view-option[data-columns="5"] {
        display: none;
    }
}

/* LARGE DESKTOP */

@media (min-width: 1400px) {

    .products-grid.view-5 {
        gap: 18px;
    }

    .products-grid.view-5 .product-card-content {
        padding: 14px;
    }

    .products-grid.view-5 .product-card h2 {
        font-size: 16px;
    }

    .products-grid.view-5 .product-card p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* DESKTOP ONE-COLUMN WIDTH */

@media (min-width: 768px) {
    .products-grid.view-1 .product-card {
        max-width: 1100px;
    }
}

/* VERY SMALL MOBILE */

@media (max-width: 420px) {

    .products-grid {
        gap: 11px;
    }

    .product-card-content {
        padding: 12px;
    }

    .product-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card-bottom .btn {
        width: 100%;
        text-align: center;
    }
}



/* Mobile filter compact mode */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 767px) {
    .mobile-filter-toggle {
        width: 100%;
        min-height: 52px;
        margin: 0 0 14px;
        padding: 0 18px;
        border: 1px solid #d8d0c3;
        border-radius: 10px;
        background: #fff;
        color: #222;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .7px;
        cursor: pointer;
    }

    .mobile-filter-icon {
        font-size: 24px;
        line-height: 1;
        font-weight: 400;
    }

    .mobile-filter-panel {
        display: none;
        margin-bottom: 20px;
    }

    .mobile-filter-panel.is-open {
        display: block;
    }

    .mobile-filter-panel .products-filter {
        margin-top: 0;
    }
}

/* FINAL MOBILE FILTER OVERRIDE */
@media (max-width: 767px) {
    .mobile-filter-toggle {
        display: flex !important;
    }

    .mobile-filter-panel {
        display: none !important;
    }

    .mobile-filter-panel.is-open {
        display: block !important;
    }

    .mobile-filter-panel .products-filter {
        margin: 0 0 20px !important;
    }
}

/* =========================================
   FINAL PRODUCT LIKE + RATING
   ========================================= */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-image {
    position: relative;
}

.product-like-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-like-button:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

.product-like-heart {
    font-size: 21px;
    line-height: 1;
    color: #555;
    transition: color .2s ease, transform .2s ease;
}

.product-like-button.is-liked .product-like-heart {
    color: #c62828;
}

.product-like-button:active .product-like-heart {
    transform: scale(.88);
}

.product-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-rating {
    min-height: 22px;
    margin: 8px 0 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-star {
    font-size: 17px;
    line-height: 1;
    color: #c7c0b5;
}

.rating-star.is-filled {
    color: #b8872f;
}

.product-card-bottom {
    margin-top: auto;
}

/* Keep all product cards equal height */
.products-grid .product-card {
    height: 100%;
}

.products-grid .product-card p {
    min-height: 48px;
}

/* Mobile */
@media (max-width: 767px) {
    .product-like-button {
        top: 9px;
        right: 9px;
        width: 38px;
        height: 38px;
    }

    .product-like-heart {
        font-size: 19px;
    }

    .product-card-rating {
        margin: 7px 0 9px;
    }

    .rating-star {
        font-size: 16px;
    }
}

/* =========================================================
   ZAREEI STUDIO — PRODUCT LISTING UX SYSTEM
   ========================================================= */

.products-page {
    background: var(--background);
}

.products-page .container {
    max-width: var(--container);
}

/* ---------- Product toolbar ---------- */

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 28px;
    padding: 14px 18px;

    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.products-toolbar button,
.products-toolbar select {
    border-radius: var(--radius-sm);
}

.products-toolbar select {
    min-height: 42px;
    padding: 8px 12px;
    border-color: var(--border);
    background: var(--surface);
}

/* ---------- Filters ---------- */

.products-filters,
.product-filters {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.products-filters input,
.products-filters select,
.product-filters input,
.product-filters select {
    min-height: 44px;
}

.products-filters label,
.product-filters label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

/* ---------- Product grid ---------- */

.products-grid {
    gap: 24px;
}

.products-grid > * {
    min-width: 0;
}

/* ---------- Product card ---------- */

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;
    min-width: 0;

    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;

    box-shadow: var(--shadow-xs);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200,169,107,.35);
    box-shadow: var(--shadow-md);
}

/* ---------- Product image ---------- */

.product-card-image,
.product-card .product-image,
.product-card a.image-link {
    position: relative;
    overflow: hidden;
    background: var(--surface-soft);
}

.product-card-image img,
.product-card .product-image img,
.product-card a.image-link img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    transition:
        transform .45s ease,
        opacity var(--transition);
}

.product-card:hover .product-card-image img,
.product-card:hover .product-image img,
.product-card:hover a.image-link img {
    transform: scale(1.035);
}

/* ---------- Card body ---------- */

.product-card-content,
.product-card-info,
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 18px;
}

.product-card h2,
.product-card h3,
.product-card-title {
    margin-bottom: 8px;

    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.product-card h2 a,
.product-card h3 a,
.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card h2 a:hover,
.product-card h3 a:hover,
.product-card-title a:hover {
    color: var(--gold-hover);
}

.product-card-description,
.product-card .short-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    margin-bottom: 14px;

    color: var(--text-light);
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- Category / metadata ---------- */

.product-card .product-category,
.product-card-category {
    margin-bottom: 7px;

    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ---------- Price ---------- */

.product-card .product-price,
.product-card-price {
    margin-top: auto;
    padding-top: 10px;

    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

.product-card .product-price .currency,
.product-card-price .currency {
    font-size: .78em;
    font-weight: 700;
}

/* ---------- Like ---------- */

.product-card .like-button,
.product-card .product-like,
.product-card .like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;

    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;

    background: rgba(255,255,255,.92);
    color: var(--primary);

    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);

    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast);
}

.product-card .like-button:hover,
.product-card .product-like:hover,
.product-card .like-btn:hover {
    transform: scale(1.06);
    background: var(--surface);
    color: var(--gold-hover);
}

/* Never show Like count on listing cards */

.product-card .like-count,
.product-card .likes-count,
.product-card .product-like-count {
    display: none !important;
}

/* ---------- Rating ---------- */

.product-card .rating-count,
.product-card .review-count,
.product-card .rating-number,
.product-card .reviews-count {
    display: none;
}

.product-card .rating,
.product-card .product-rating {
    margin-top: 8px;
    font-size: 13px;
}

/* ---------- Stock / badges ---------- */

.product-card .badge,
.product-card .product-badge,
.product-card .stock-badge {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.product-card .out-of-stock,
.product-card .unavailable {
    opacity: .72;
}

/* ---------- Card action ---------- */

.product-card .btn,
.product-card .product-card-button {
    width: 100%;
    margin-top: 14px;
}

/* ---------- View switcher ---------- */

.products-view-switcher,
.view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px;

    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.products-view-switcher button,
.view-switcher button {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 5px;

    background: transparent;
    color: var(--text-muted);

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.products-view-switcher button:hover,
.products-view-switcher button.active,
.view-switcher button:hover,
.view-switcher button.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

/* ---------- Empty state ---------- */

.products-empty,
.product-empty {
    padding: 64px 24px;

    text-align: center;

    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.products-empty h2,
.product-empty h2 {
    margin-bottom: 8px;
}

.products-empty p,
.product-empty p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
    .products-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .products-grid {
        gap: 16px;
    }

    .product-card-content,
    .product-card-info,
    .product-card-body {
        padding: 15px;
    }

    .product-card h2,
    .product-card h3,
    .product-card-title {
        font-size: 16px;
    }

    .product-card .product-price,
    .product-card-price {
        font-size: 17px;
    }
}

/* ---------- RTL ---------- */

html[dir="rtl"] .product-card .like-button,
html[dir="rtl"] .product-card .product-like,
html[dir="rtl"] .product-card .like-btn {
    right: auto;
    left: 12px;
}

