:root {
    --primary-color: var(--teal-primary, #0d9488);
    --secondary-color: var(--teal-secondary, #14b8a6);
    --accent-color: color-mix(in srgb, var(--primary-color) 70%, var(--secondary-color));
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: var(--teal-bg, #f0fdfa);
    --dark-bg: #1f2937;
    --text-dark: #1f2937;
    --text-light: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shop-tile-height-mobile: 320px;
    --shop-tile-height-desktop: 350px;
}

/* Mobile-first responsive design */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.shop-header-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, #ffffff 95%, var(--light-bg));
    backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 14px 0 12px;
}

/* Search enhanced styling */
.search-focused .search-bar input {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

/* Search Bar */
.search-container {
    margin-bottom: 30px;
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar-compact {
    max-width: 520px;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, #000000);
    transform: translateY(-50%) scale(1.1);
}

.shop-search-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    animation: spin 0.75s linear infinite;
}

.shop-search-loading .shop-search-spinner {
    display: inline-block;
}

.shop-search-loading .shop-search-icon {
    display: none;
}

.shop-search-loading .shop-search-btn {
    pointer-events: none;
}

.products-grid[aria-busy="true"] {
    opacity: 0.72;
}

/* Product Grid (AliExpress-like) */
.products-grid {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    grid-auto-rows: 8px;
    grid-auto-flow: dense;
    align-items: start;
}

.products-masonry-grid {
    overflow: visible;
}

.products-masonry-grid .product-card {
    break-inside: avoid;
    grid-row-end: span 58;
    height: auto !important;
}

.products-masonry-grid .product-image {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    display: block;
}

.products-masonry-grid .product-image a,
.products-masonry-grid .product-image img {
    display: block;
    width: 100%;
}

.products-masonry-grid .product-image img {
    height: auto;
    max-height: none;
    object-fit: initial;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.09);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    height: var(--shop-tile-height-mobile);
}

.product-card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    transform: none;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 6px;
}

.product-image-loading {
    min-height: 150px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.58) 50%, rgba(255,255,255,0) 100%),
        color-mix(in srgb, var(--light-bg) 84%, #ffffff);
    background-size: 220% 100%, 100% 100%;
    animation: productImageShimmer 1.1s ease-in-out infinite;
}

.product-image-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 1.35rem;
    height: 1.35rem;
    margin: -0.675rem 0 0 -0.675rem;
    border: 2px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
    border-top-color: var(--primary-color);
    border-radius: 999px;
    animation: spin 0.75s linear infinite;
    z-index: 2;
}

.product-image-loaded {
    min-height: 0;
    animation: none;
    background: var(--light-bg);
}

.product-image-loaded::after {
    display: none;
}

.product-image-navigating {
    cursor: progress;
}

.product-image-navigating a {
    pointer-events: none;
}

.product-navigation-spinner {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.875rem 0 0 -0.875rem;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-top-color: var(--primary-color);
    border-radius: 999px;
    animation: spin 0.72s linear infinite;
    z-index: 10;
    pointer-events: none;
}

.product-image-navigating .product-lazy-image {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s ease;
}

.product-lazy-image {
    opacity: 0;
}

.product-image-loaded .product-lazy-image {
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.3s ease;
}

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

.product-discount-watermark {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: calc(100% - 20px);
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid var(--bs-danger, #dc3545);
    background: var(--bs-danger, #dc3545);
    color: #fff;
    box-shadow: none;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.product-discount-watermark i {
    font-size: 9px;
    line-height: 1;
    color: currentColor;
}

.product-discount-watermark span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: row;
    gap: 3px;
}

.product-badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-discount {
    background: var(--danger-color);
    color: white;
}

.badge-new {
    background: var(--success-color);
    color: white;
}

.badge-advertised {
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
    color: white;
}

.product-info {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 4px;
    padding: 12px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    min-height: 1.3em;
}

.product-title:hover {
    color: color-mix(in srgb, var(--primary-color) 82%, #000000);
}

.product-title a {
    color: var(--primary-color);
}

.product-title a:hover {
    color: color-mix(in srgb, var(--primary-color) 82%, #000000);
}

.product-description {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    margin-top: 0;
    white-space: normal;
    overflow: visible;
    flex-wrap: wrap;
    row-gap: 2px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.product-old-price {
    font-size: 14px;
    color: #ef4444;
    text-decoration: line-through;
}

.product-quality-badge {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.1;
    white-space: nowrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    min-height: 20px;
}

.product-rating .stock-status {
    margin-left: auto;
}

.product-rating-placeholder {
    visibility: hidden;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 12px;
    color: #fbbf24;
}

.rating-count {
    font-size: 12px;
    color: #6b7280;
}

.product-meta {
    display: none;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.product-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 6px 6px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
    transform: translateY(-2px);
}

.product-action-btn:hover i {
    transform: translateX(1px);
}

.product-action-btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.product-add-cart-btn {
    cursor: pointer;
    width: 100%;
}

.product-add-cart-btn i,
.product-details-link i {
    transition: transform 0.2s ease;
}

.product-order-now-btn i {
    font-size: 14px;
    line-height: 1;
}

.product-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 6px 6px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-action-btn span,
.product-details-link span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
}

.product-details-link:hover {
    background: color-mix(in srgb, var(--primary-color) 86%, #000000);
    border-color: color-mix(in srgb, var(--primary-color) 86%, #000000);
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
    transform: translateY(-2px);
}

.product-details-link:hover i {
    transform: translateX(3px);
}

.stock-status {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.stock-in {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.stock-low {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
}

.stock-out {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Pagination */
.pagination-custom {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-custom .page-link {
    border: none;
    background: transparent;
    color: var(--text-dark);
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover,
.pagination-custom .page-link.active {
    background: var(--primary-color);
    color: white;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.product-skeleton {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-skeleton .product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-skeleton .product-info {
    padding: 15px;
}

.product-skeleton .skeleton-text {
    background: #f0f0f0;
    height: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.product-skeleton .skeleton-text:last-child {
    width: 60%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes productImageShimmer {
    0% {
        background-position: 180% 0, 0 0;
    }
    100% {
        background-position: -180% 0, 0 0;
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    justify-content: space-between;
}

/* Categories Section */
.categories-section {
    margin-bottom: 30px;
    text-align: center;
}

.shop-sort-select {
    max-width: 210px;
    width: 210px;
}

.shop-category-select {
    max-width: 240px;
    width: 240px;
}

.search-sort-row {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    gap: 1rem !important;
}

.shop-category-select,
.shop-sort-select {
    height: 52px;
    padding: 12px 44px 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    background-color: #fff;
    color: #374151;
    font-size: 16px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.shop-category-select option,
.shop-sort-select option {
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    padding: 0.75rem 1rem;
}

.shop-category-select option:checked,
.shop-sort-select option:checked {
    background: var(--primary-color);
    color: #fff;
}

.search-sort-row .search-bar-compact {
    flex: 1 1 520px;
}

.shop-sort-select:focus,
.shop-category-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.categories-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.categories-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x proximity;
}

.categories-grid::-webkit-scrollbar {
    height: 4px;
}

.categories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.categories-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 2px;
}

.categories-grid::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in srgb, var(--primary-color) 85%, #000000);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: clamp(0.75rem, 1.9vw, 0.92rem);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
    scroll-snap-align: start;
    line-height: 1.2;
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill-selected {
    background: var(--primary-color);
    color: white;
}

.category-pill-selected::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    border: 2px solid white;
}

.category-pill-default {
    background: white;
    color: var(--text-dark);
    border-color: #e5e7eb;
}

.category-pill-default:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.no-products-found {
    grid-column: 1 / -1;
    grid-row: span 40;
    display: flex;
    justify-content: center;
    width: 100%;
}

.shop-empty {
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 0.9rem;
    max-width: 420px;
    width: 100%;
}

.shop-empty i {
    font-size: 2rem;
    color: var(--primary-color);
}

.shop-empty-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
}

.shop-empty-btn:hover,
.shop-empty-btn:focus {
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (min-width: 1200px) {
    .controls-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .controls-row-1 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .controls-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding-left: 10px;
    }
}

.search-small {
    display: flex;
    align-items: center;
}

.search-small input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    flex: 1;
    min-width: 400px;
}

.search-small button {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 8px;
}

.sort-dropdown,
.category-filter,
.price-filter {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-dropdown select,
.category-filter select,
.price-filter input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    min-width: 400px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-header-sticky {
        position: sticky;
        top: 70px;
        z-index: 900;
    }

    .shop-container {
        padding: 0;
        max-width: none;
    }

    .shop-header-sticky {
        padding: 10px 8px 12px;
    }

    .shop-header-sticky .container-fluid,
    .shop-header-sticky .row,
    .shop-header-sticky .col-12,
    .shop-header-sticky .search-section,
    .shop-header-sticky form {
        min-height: 0;
    }

    .search-section {
        margin-bottom: 0 !important;
    }

    .search-sort-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch !important;
        gap: 0.6rem !important;
        max-width: 100%;
    }

    .search-sort-row .search-bar-compact {
        max-width: 100%;
        width: 100%;
        height: 44px;
        flex: 0 0 100%;
    }

    .search-bar input {
        height: 44px;
        padding: 9px 46px 9px 18px;
        font-size: 14px;
        line-height: 1.2;
    }

    .search-bar button {
        right: 6px;
        width: 34px;
        height: 34px;
    }

    .shop-sort-select {
        width: calc(50% - 0.3rem);
        max-width: calc(50% - 0.3rem);
    }

    .shop-category-select {
        width: calc(50% - 0.3rem);
        max-width: calc(50% - 0.3rem);
    }

    .shop-category-select,
    .shop-sort-select {
        flex: 0 0 calc(50% - 0.3rem);
        height: 44px;
        padding: 9px 34px 9px 14px;
        font-size: 14px;
        line-height: 1.2;
    }

    .categories-grid {
        gap: 0.45rem;
    }

    .category-pill {
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 5px;
    }

    .product-card {
        margin-bottom: 0;
        padding: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        height: var(--shop-tile-height-mobile);
    }

    .product-image {
        min-height: 0;
        border-radius: 15px 15px 0 0;
        padding: 8px;
    }

    .product-discount-watermark {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        min-height: 22px;
        padding: 5px 7px;
        border-radius: 7px;
        font-size: 8px;
    }

    .product-discount-watermark i {
        font-size: 8px;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        object-position: center center;
        border-radius: 15px 15px 0 0;
    }

    .product-info {
        padding: 8px;
        min-height: 0;
        gap: 2px;
    }

    .product-title {
        font-size: 12px;
        margin-bottom: 0;
        line-height: 1.2;
        min-height: 1.2em;
    }

    .product-price {
        font-size: 13px;
    }

    .product-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .product-action-btn {
        min-height: 30px;
        padding: 5px 3px;
        border-radius: 7px;
        font-size: 9px;
        gap: 1px;
    }

    .product-details-link {
        min-height: 30px;
        padding: 5px 3px;
        border-radius: 7px;
        font-size: 9px;
        gap: 1px;
    }

    .product-action-btn i,
    .product-details-link i {
        font-size: 10px;
        flex: 0 0 auto;
    }

    .product-order-now-btn i {
        font-size: 13px;
    }

    .product-old-price {
        font-size: 12px;
    }

    .product-quality-badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    .product-rating {
        margin-bottom: 6px;
    }

    .product-meta {
        font-size: 10px;
    }

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

    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .results-count {
        text-align: center;
    }

    .controls-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .sort-dropdown,
    .category-filter,
    .price-filter {
        flex: 1 1 auto;
        min-width: 0;
    }

    .search-small {
        flex: 1 1 200px;
    }
}

@media (min-width: 769px) {
    .products-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }

    .product-card {
        height: var(--shop-tile-height-desktop);
    }

    .shop-container {
        max-width: 1400px;
    }
}

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

/* Filter Toggle Animation */
.filter-toggle-icon {
    transition: transform 0.3s ease;
}

.filters-header.collapsed .filter-toggle-icon {
    transform: rotate(180deg);
}
