/* Prevent horizontal overflow while shop.css is loaded. */
html,
body {
    overflow-x: hidden;
}

.shop-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
    padding: 80px 0 100px;
    overflow: hidden;
}

.shop-hero .hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shop-hero .hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shop-hero .shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.shop-hero .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 5%;
}

.shop-hero .shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 20%;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.shop-hero .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shop-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.shop-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search-form {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-input-wrapper .search-icon {
    color: #9ca3af;
    font-size: 1.25rem;
    margin-left: 12px;
}

.search-input-wrapper .search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 0;
    background: transparent;
    color: #1f2937;
}

.search-input-wrapper .search-input::placeholder {
    color: #9ca3af;
}

.search-input-wrapper .search-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-input-wrapper .search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f3f4f6;
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.suggestion-price {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
}

.featured-products-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.view-all-link:hover {
    gap: 12px;
}

.featured-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.featured-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.featured-slider::-webkit-scrollbar {
    display: none;
}

.featured-product-card {
    min-width: 245px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.featured-product-card .featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-product-card .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 2;
}

.featured-product-card .product-image-link {
    display: block;
    width: 100%;
    height: 155px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.featured-product-card:hover .featured-product-image {
    transform: scale(1.06);
}

.featured-product-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-product-title {
    display: block;
    font-weight: 700;
    font-size: 0.94rem;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-product-title:hover {
    color: #2563eb;
}

.featured-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.featured-product-price .current-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2563eb;
}

.featured-product-price .original-price {
    font-size: 0.82rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.featured-product-card .quick-add-btn {
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.featured-product-card .quick-add-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #1f2937;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: #2563eb;
    color: white;
}

.slider-prev {
    right: 0;
}

.slider-next {
    left: 0;
}

.filter-sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

.reset-filters {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reset-filters:hover {
    text-decoration: underline;
}

.filter-group {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.filter-title i {
    color: #2563eb;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-option:hover {
    background: #f3f4f6;
}

.filter-option.active {
    background: #eff6ff;
    border-color: #2563eb;
}

.filter-option input {
    display: none;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4b5563;
}

.filter-option.active .option-label {
    color: #2563eb;
    font-weight: 500;
}

.option-count {
    font-size: 0.8rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.price-range-wrapper {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input-group {
    flex: 1;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.price-input {
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-size: 0.9rem;
}

.price-separator {
    color: #9ca3af;
    font-weight: 500;
    margin-top: 20px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 0;
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.filter-checkbox input:checked + .checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '\f26e';
    font-family: 'bootstrap-icons';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #4b5563;
}

.apply-filters-btn {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apply-filters-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: #6b7280;
    font-size: 0.95rem;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 0.9rem;
    color: #6b7280;
    white-space: nowrap;
}

.sort-select {
    padding: 10px 40px 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    color: #1f2937;
    cursor: pointer;
    min-width: 180px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 10px;
}

.view-toggle .view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.view-toggle .view-btn:hover,
.view-toggle .view-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eff6ff;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #1e40af;
}

.clear-search {
    color: #ef4444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-search:hover {
    text-decoration: underline;
}

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

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

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.products-grid.list-view .product-image-wrapper {
    height: 100%;
    min-height: 180px;
    border-radius: 12px 0 0 12px;
}

.products-grid.list-view .product-image,
.products-grid.list-view .product-image-hover {
    border-radius: 12px 0 0 12px;
}

.products-grid.list-view .product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.list-view .product-description {
    display: block;
    margin-bottom: 12px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.product-badges span {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-featured {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.badge-digital {
    background: #06b6d4;
    color: white;
}

.badge-discount {
    background: #ef4444;
    color: white;
}

.product-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #1f2937;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.action-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.08);
}

.product-image-wrapper {
    display: block;
    position: relative;
    width: 100%;
    height: 165px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    display: inline-block;
    font-size: 0.74rem;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-category:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.38;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title:hover {
    color: #2563eb;
}

.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.81rem;
    color: #6b7280;
    line-height: 1.45;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.78rem;
}

.product-rating .stars .bi-star {
    color: #d1d5db;
}

.rating-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 10px;
    padding-top: 8px !important;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-price .current-price {
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
}

.product-price .original-price {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-stock {
    font-size: 0.76rem;
}

.product-stock .in-stock {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-stock .out-of-stock {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
}

.add-to-cart-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.shop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.shop-pagination .pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: white;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.shop-pagination .page-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.shop-pagination .page-btn.active {
    background: #2563eb;
    color: white;
}

.shop-pagination .prev-btn,
.shop-pagination .next-btn {
    gap: 8px;
}

.shop-pagination .page-dots {
    color: #9ca3af;
    padding: 0 8px;
}

.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.quick-view-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1);
}

.quick-view-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.quick-view-close:hover {
    background: #ef4444;
    color: white;
}

.quick-view-body {
    padding: 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f4f6;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cart-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
}

.cart-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cart-notification i {
    font-size: 1.25rem;
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-filter-toggle i {
    font-size: 1.1rem;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    html, body {
        overflow-x: hidden;
    }
    
    .shop-hero h1 {
        font-size: 2.25rem;
    }
    
    .mobile-filter-toggle {
        display: flex;
    }
    
    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        margin-bottom: 0;
    }
    
    .filter-sidebar.active {
        right: 0;
    }
    
    .filter-overlay.active {
        display: block;
    }
    
    .filter-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 20px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .filter-close-btn {
        display: flex;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: #f3f4f6;
        color: #1f2937;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .filter-close-btn:hover {
        background: #ef4444;
        color: white;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 50px 0 70px;
    }
    
    .shop-hero h1 {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .shop-hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .shop-hero .hero-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .hero-search-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .search-input-wrapper {
        padding: 6px 6px 6px 15px;
    }
    
    .search-input-wrapper .search-input {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .search-input-wrapper .search-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .product-image-wrapper {
        height: 180px;
        border-radius: 16px 16px 0 0;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .product-content {
        padding: 16px;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-description {
        font-size: 0.85rem;
        display: none;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .toolbar-actions {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sort-wrapper {
        flex: 1;
        min-width: 0;
    }
    
    .sort-label {
        display: none;
    }
    
    .sort-select {
        width: 100%;
        min-width: unset;
        padding: 10px 35px 10px 12px;
        font-size: 0.85rem;
    }
    
    .view-toggle {
        flex-shrink: 0;
    }
    
    .view-toggle .view-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .featured-slider-wrapper {
        padding: 0;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .featured-slider {
        gap: 12px;
        padding: 15px 0;
    }
    
    .featured-product-card {
        min-width: 220px;
    }
    
    .featured-product-card .product-image-link {
        height: 160px;
    }
    
    .featured-product-content {
        padding: 14px;
    }
    
    .slider-nav {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .modern-section-title {
        font-size: 1.25rem;
    }
    
    .shop-pagination .pagination-list {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .shop-pagination .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .shop-pagination .prev-btn,
    .shop-pagination .next-btn {
        font-size: 0.85rem;
    }
    
    .quick-view-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 16px;
    }
    
    .quick-view-body {
        padding: 20px;
    }
    
    .empty-state-modern {
        padding: 40px 20px;
    }
    
    .empty-state-modern .empty-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .empty-state-modern h3 {
        font-size: 1.2rem;
    }
    
    .search-results-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 40px 0 60px;
    }
    
    .shop-hero h1 {
        font-size: 1.4rem;
    }
    
    .shop-hero p {
        font-size: 0.9rem;
    }
    
    .products-grid {
        gap: 12px;
    }
    
    .product-image-wrapper {
        height: 160px;
    }
    
    .product-content {
        padding: 12px;
    }
    
    .product-badges span {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .product-actions .action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .featured-product-card {
        min-width: 200px;
    }
    
    .mobile-filter-toggle {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .filter-sidebar {
        width: 280px;
        right: -290px;
    }
}
/* ===== Slide-in Cart Sidebar ===== */
.cart-sidebar-open {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 44px;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-weight: var(--font-semibold);
    transition: all var(--duration-normal) var(--easing-ease);
}

.cart-sidebar-open:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding-inline: var(--space-xs);
    border-radius: var(--radius-full);
    background: var(--accent);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
}

.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--easing-ease);
}

.cart-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 1050;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    color: var(--text);
    border-inline-end: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--duration-normal) var(--easing-ease);
}

html[dir="rtl"] .cart-sidebar {
    transform: translateX(105%);
}

.cart-sidebar.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

html[dir="rtl"] .cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-xl);
    border-block-end: 1px solid var(--border);
}

.cart-sidebar-body {
    padding: var(--space-xl);
    overflow-y: auto;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-block-end: 1px solid var(--border);
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-height: 40px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.checkout-step.active {
    background: var(--gradient-primary);
    color: white;
}

@media (max-width: 576px) {
    .checkout-steps {
        grid-template-columns: 1fr;
    }
}
