* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-cream: #FCFAF8;
    --text-brown: #423024;
    --accent-amber: #F59E0B;
    --accent-gradient: linear-gradient(135deg, #F59F0A 0%, #F49271 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0px 8px 32px 0px rgba(31, 38, 135, 0.15);
    --glass-inset: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-cream);
    min-height: 100vh;
    color: var(--text-brown);
    overflow-x: hidden;
}

/* Header with Glassmorphism - FIXED */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

/* Add padding to container to account for fixed header */
.container {
    width: 100%;
    margin: 0;
    padding: 110px 40px 40px 40px;
    /* 94px header + 14px gap + 2px buffer */
    background: rgb(217 212 207 / 28%);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 68px;
    width: auto;
    display: block;
}

.site-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-brown);
    margin-left: 12px;
}

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

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    color: var(--text-brown);
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: rgba(66, 48, 36, 0.5);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-amber);
    background: rgba(255, 255, 255, 0.8);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    background: rgb(227 227 227);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    width: 23px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    border-radius: 1px;
    transition: all 0.2s ease;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1px;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.45);
}

.lang-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    padding: 0px 2px 0 2px;
    border-radius: 5px;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn svg {
    color: var(--text-brown);
    transition: all 0.3s ease;
    pointer-events: none;
}

.icon-btn .badge {
    pointer-events: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.2);
}

.icon-btn:hover svg {
    color: var(--accent-amber);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-amber);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1600px;
    margin: 18px auto;
}

/* Sidebar with Glassmorphism */
.sidebar {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-brown);
    font-weight: 700;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-brown);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle {
    font-size: 0.8rem;
    color: #757575;
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #424242;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    color: var(--accent-amber);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-amber);
}

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

.price-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: #212121;
    font-size: 0.9rem;
    font-weight: 500;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--accent-amber);
    background: rgba(255, 255, 255, 0.8);
}

.price-inputs span {
    color: #757575;
}

.apply-btn,
.clear-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.apply-btn {
    background: var(--accent-gradient);
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(245, 159, 10, 0.3);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 159, 10, 0.4);
}

.clear-btn {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: #212121;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Products Section */
.products-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.products-header h2 {
    font-size: 2.2rem;
    color: var(--text-brown);
    font-weight: 700;
    margin-bottom: 5px;
}

.product-count {
    font-size: 0.95rem;
    color: #757575;
    font-weight: 500;
}

.sort-select {
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: #212121;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.sort-select:focus {
    outline: none;
    border-color: #74C0FC;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0px 8px 32px 0px rgba(31, 38, 135, 0.1),
        var(--glass-inset);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15),
        var(--glass-inset);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: rgba(245, 247, 250, 0.5);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn svg {
    color: var(--text-brown);
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wishlist-btn:hover svg {
    color: var(--accent-amber);
}

.wishlist-btn.active svg {
    color: #FF6B6B;
    fill: #FF6B6B;
}

.pdp-wishlist.active {
    border-color: #F59E0B !important;
}

.pdp-wishlist.active svg {
    color: #F59E0B;
    fill: #F59E0B;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--accent-amber);
    margin-bottom: 8px;
    font-weight: 700;
}

.product-sku {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 6px;
    font-family: monospace;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-brown);
}

.product-description {
    font-size: 0.9rem;
    color: #616161;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-detail__description {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    margin-top: auto;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
}

.add-to-cart-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 159, 10, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 159, 10, 0.4);
}

/* Responsive button for narrow cards */
@media (max-width: 1200px) {
    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .add-to-cart-btn {
        width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        padding: 10px 16px;
    }
}

#wishlistItems {
    height: calc(100% - 165px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-content {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 450px;
    max-width: 90%;
    background: rgb(255 255 255 / 80%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 14px 18px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;

}

.modal.active .modal-content {
    transform: translateX(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #212121;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
    overflow-y: auto;
    height: calc(100% - 284px);
    padding-right: 9px;
    border-radius: 11px;
}


.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
    /* без фона */
}

.cart-items::-webkit-scrollbar-thumb {
    background: #aeaca6fc;
    /* solid */
    border-radius: 5px;
    /* жёсткий, не “пузырь” */
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background-color: #ada797cb;
}



.cart-item {
    display: flex;
    gap: 12px;
    background: rgb(220 171 33 / 7%);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 16px;
    align-items: center;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-brown);
    font-size: 0.95rem;
}

.cart-item-size {
    font-size: 0.8rem;
    color: #757575;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent-amber);
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-brown);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-radius: 8px;
    padding: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
}

.remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: transparent;
    border: none;
    color: #FF6B6B;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    transform: scale(1.1);
    color: #FF4444;
}

.cart-summary {
    padding: 0;
    margin-top: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-brown);
    font-weight: 500;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-brown);
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(81, 207, 102, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 207, 102, 0.4);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212121;
    margin-top: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #212121;
    font-size: 0.95rem;
}

.form-group input {
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #51CF66;
    background: rgba(255, 255, 255, 0.8);
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #9E9E9E;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: var(--text-brown);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.15);
}

.page-link.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 159, 10, 0.3);
}

/* Product detail page responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 110px 30px 30px 30px;
        /* Maintain 14px gap */
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {

    /* Mobile Header */
    header {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 0;
    }

    .logo {
        font-size: 1.3rem;
        order: 1;
        flex: 1;
    }

    .header-icons {
        order: 2;
        gap: 10px;
        margin-left: auto;
    }

    .search-bar {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        margin: 12px 0 0 0;
        max-width: 100%;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .search-bar input {
        padding: 10px 40px 10px 15px;
        font-size: 0.9rem;
        width: 100%;
    }

    .language-switcher {
        padding: 4px;
        gap: 5px;
    }

    .lang-btn {
        font-size: 1.1rem;
    }

    .icon-btn {
        padding: 8px 12px;
        font-size: 1.1rem;
    }

    .badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    /* Container padding adjustment */
    .container {
        padding: 150px 15px 20px 15px;
    }

    /* Products */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .products-header h2 {
        font-size: 1.8rem;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
    }

    /* Sidebar */
    .sidebar {
        padding: 20px;
    }

    /* Modal */
    .modal-content {
        padding: 25px;
        width: 95%;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    header {
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .search-bar input {
        padding: 8px 35px 8px 12px;
        font-size: 0.85rem;
    }

    .icon-btn {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .lang-btn {
        font-size: 1rem;
    }

    .container {
        padding: 150px 10px 15px 10px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .products-header h2 {
        font-size: 1.5rem;
    }

    .product-card {
        border-radius: 20px;
    }

    .product-image-container {
        height: 250px;
    }

    .sidebar h3 {
        font-size: 1.1rem;
    }

    .filter-section h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 504px) {
    .logo {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }
    .main-content {
    margin: 60px auto;
}
    .header-icons {
        justify-content: center;
        margin-left: 0;
        width: 100%;
        margin-top: 15px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-brown);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.1);
}

.page-link.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 159, 10, 0.3);
}