/* Reset and base styles */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ===== КАСТОМНЫЙ СКРОЛЛБАР В ЦВЕТАХ САЙТА ===== */
html {
    scrollbar-width: thin;
    scrollbar-color: #ef233c #f1f3f5;
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-left: 1px solid #e9ecef;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%);
    border-radius: 5px;
    border: 2px solid #f1f3f5;
    transition: all 0.2s ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d11a2b 0%, #b91c1c 100%);
    border: 1px solid #f1f3f5;
}

html::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

body {
    scrollbar-width: thin;
    scrollbar-color: #ef233c #f1f3f5;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-left: 1px solid #e9ecef;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%);
    border-radius: 5px;
    border: 2px solid #f1f3f5;
    transition: all 0.2s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d11a2b 0%, #b91c1c 100%);
    border: 1px solid #f1f3f5;
}

body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}

a {
    text-decoration: none;
}

/* Main Container */
.element-light {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
    padding-top: 67px; /* Отступ для фиксированного хедера */
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 67px;
    background: #f4f4f4;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 61px;
    height: 51px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-link.active {
    color: #ef233c;
    font-weight: 600;
}

.nav-link:hover {
    color: #ef233c;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher {
    display: flex;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-right: 10px;
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #a9b0c3;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
}

.lang-btn:hover {
    background: rgba(239, 35, 60, 0.1);
    color: #ef233c;
}

.lang-btn.active {
    background: #ef233c;
    color: white;
}

.lang-btn.active:hover {
    background: #d11a2b;
}

.cart-btn, .login-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cart-btn {
    background: #ef233c;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.cart-btn:hover {
    color: white;
}

.login-btn {
    background: white;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #000;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.mobile-logo {
    width: 50px;
    height: 42px;
    object-fit: contain;
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(239, 35, 60, 0.1);
    color: #ef233c;
}

.mobile-menu-actions {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.mobile-language-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mobile-language-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mobile-language-buttons {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-lang-btn.active {
    background: #ef233c;
    color: white;
}

.mobile-cart-btn,
.mobile-login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.mobile-cart-btn {
    background: #ef233c;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
}

.mobile-cart-btn:hover {
    background: #d11a2b;
    color: white;
}

.mobile-login-btn {
    background: white;
    color: #000;
    border: 1px solid #ddd;
}

.mobile-login-btn:hover {
    background: #f5f5f5;
}

/* Main Content */
.main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 0; /* padding-top: 24px всегда */
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 40px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #666;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #ef233c;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: #000;
    font-weight: 500;
}

/* Empty Suggestions State */
.empty-suggestions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 1rem 0;
}

.empty-suggestions__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-suggestions__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-suggestions__subtext {
    font-size: 0.9rem;
    color: #6c757d;
    opacity: 0.8;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.loading-spinner p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* Error Message */
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.error-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 1rem;
}

.error-content i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-content h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.error-content p {
    margin: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-primary {
    background: #667eea;
}

.btn-primary:hover {
    background: #5a6fd8;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
    transform: translateX(100%);
}
    to {
        opacity: 1;
    transform: translateX(0);
}
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Product Suggestions Banner */
.product-suggestions {
    position: relative;
    margin: 0 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 0 20px 0;
    z-index: 1; /* Ниже хедера (z-index: 1000) */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.product-suggestions__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.product-suggestions__title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.product-suggestions__divider {
    width: 40px;
    height: 2px;
    background-color: #ef233c;
    border-radius: 1px;
}

.product-suggestions__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-suggestions__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 28px;
    color: #000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-suggestions__arrow:hover {
    background: #ef233c;
    color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

.product-suggestions__arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.product-suggestions__arrow--left {
    left: -20px;
}

.product-suggestions__arrow--right {
    right: -20px;
}

.product-suggestions__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.product-suggestions__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0 0 10px 0;
    flex: 1;
}

.product-suggestions__grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.product-suggestions__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 0 0;
}

.product-suggestions__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
}

.product-suggestions__dot--active {
    background: #ef233c;
}

.product-suggestions__card {
    background-color: #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100px;
    max-height: 100px;
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    flex-shrink: 0;
    padding: 10px;
    gap: 12px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Product Suggestions Link */
.product-suggestions__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    flex-grow: 1;
    gap: 12px;
}

.product-suggestions__link:hover {
    text-decoration: none;
    color: inherit;
}

.product-suggestions__card:hover .product-suggestions__link {
    transform: translateY(-2px);
}

.product-suggestions__image {
    width: 121px;
    height: 80px;
    max-height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.product-suggestions__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.product-suggestions__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 5px 0;
    overflow: hidden;
    width: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative; /* for qty overlay */
}

.product-suggestions__name {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 19.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    max-height: 19.5px; /* Одна строка */
    min-height: 19.5px;
    height: 19.5px;
    width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.product-suggestions__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    width: 100%;
    min-height: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* Inline quantity selector */
.product-suggestions__qty {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 8px;
    background: rgba(255,255,255,0.98);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    z-index: 2;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.product-suggestions__qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    transition: background-color .15s ease, border-color .15s ease;
}
.product-suggestions__qty-btn:hover { background: #f3f4f6; }
.product-suggestions__qty-btn:active { background: #e5e7eb; }

.product-suggestions__qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}

.product-suggestions__qty-ok {
    padding: 8px 12px;
    background: #ef233c; /* theme accent */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    transition: filter .15s ease;
}
.product-suggestions__qty-ok:hover { filter: brightness(0.95); }
.product-suggestions__qty-ok:active { filter: brightness(0.9); }

.product-suggestions__price {
    font-size: 16px;
    font-weight: 700;
    color: #ef233c;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-suggestions__btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
    background-color: #ef233c;
    border: none;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.product-suggestions__btn:hover {
    background-color: #d11a2b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

.product-suggestions__btn:active {
    transform: scale(0.95);
}

/* Стили для иконки плюса */
.product-suggestions__btn i {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.product-suggestions__btn:hover i {
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Стили для fallback плюса */
.product-suggestions__cross {
    color: white;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Manrope', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.product-suggestions__btn:hover .product-suggestions__cross {
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive for Product Suggestions - Always Single Row */
@media (max-width: 1024px) {
    .product-suggestions__arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .product-suggestions__arrow--left {
        left: -18px;
    }
    
    .product-suggestions__arrow--right {
        right: -18px;
    }
}

@media (max-width: 768px) {
    .product-suggestions {
        margin: 0 0 20px 0;
        padding: 0 0 15px 0; /* padding-top убран, так как .main уже имеет padding-top: 67px */
        position: relative;
        z-index: 1; /* Ниже хедера */
    }
    
    .product-suggestions__header {
        margin-top: 0;
    }
    
    .product-suggestions__arrow {
        display: none;
    }
    
    .product-suggestions__grid {
        gap: 10px;
    }
    
    .breadcrumb {
        margin: 0 0 30px 0;
    }
    
    .product-suggestions__card {
        min-width: 250px;
        max-width: 250px;
        width: 250px;
        height: 90px;
        max-height: 90px;
        min-height: 90px;
        padding: 8px;
        gap: 10px;
        box-sizing: border-box;
    }
    
    .product-suggestions__image {
        width: 100px;
        height: 70px;
    }
    
    .product-suggestions__name {
    font-size: 14px;
    }
    
    .product-suggestions__price {
        font-size: 15px;
    }
    
    .product-suggestions__btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
        max-width: 26px;
        min-height: 26px;
        max-height: 26px;
        border-radius: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-suggestions__btn i {
        font-size: 13px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-suggestions__cross {
        font-size: 16px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-suggestions {
        padding: 0 0 15px 0; /* padding-top убран, так как .main уже имеет padding-top: 67px */
    }
    
    .product-suggestions__grid {
        gap: 8px;
    }
    
    .product-suggestions__card {
        min-width: 220px;
        max-width: 220px;
        width: 220px;
        height: 85px;
        max-height: 85px;
        min-height: 85px;
        padding: 6px;
        gap: 8px;
        box-sizing: border-box;
    }
    
    .product-suggestions__image {
        width: 85px;
        height: 65px;
    }
    
    .product-suggestions__name {
        font-size: 13px;
        line-height: 16px;
    }
    
    .product-suggestions__price {
    font-size: 14px;
    }
    
    .product-suggestions__btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        max-width: 24px;
        min-height: 24px;
        max-height: 24px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-suggestions__btn i {
        font-size: 13px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .product-suggestions__cross {
        font-size: 16px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Исправление селектора количества на средних мобильных экранах */
    .product-suggestions__qty {
        padding: 5px 7px;
        gap: 8px;
        left: 0;
        right: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-suggestions__qty-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        max-width: 28px;
        flex-shrink: 0;
        font-size: 15px;
    }
    
    .product-suggestions__qty-value {
        min-width: 22px;
        font-size: 13px;
        flex-shrink: 0;
    }
}

/* Специальный медиа-запрос для iPhone и экранов около 326px */
@media (max-width: 400px) and (min-width: 320px) {
    .product-suggestions__btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        max-width: 24px;
        min-height: 24px;
        max-height: 24px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-suggestions__btn i {
        font-size: 13px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .product-suggestions__cross {
        font-size: 16px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 330px) {
    .product-suggestions {
        margin: 0 0 15px 0;
    padding: 0 0 10px 0;
}

    .product-suggestions__wrapper {
        gap: 5px;
    }
    
.breadcrumb {
        margin: 0 0 20px 0;
    }
    
    .product-suggestions__grid {
        gap: 6px;
        padding: 0 0 8px 0;
}

.product-suggestions__card {
        min-width: 180px;
        max-width: 180px;
        width: 180px;
        height: 75px;
        max-height: 75px;
        min-height: 75px;
        padding: 5px;
        gap: 6px;
        box-sizing: border-box;
}

.product-suggestions__image {
        width: 65px;
        height: 55px;
        flex-shrink: 0;
}

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

.product-suggestions__content {
        padding: 2px 0;
        gap: 4px;
    }
    
    .product-suggestions__name {
        font-size: 11px;
        line-height: 14px;
    }
    
    .product-suggestions__price-row {
        gap: 6px;
}

.product-suggestions__price {
        font-size: 12px;
}

.product-suggestions__btn {
        width: 22px;
        height: 22px;
        min-width: 22px;
        max-width: 22px;
        min-height: 22px;
        max-height: 22px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-suggestions__btn i {
        font-size: 12px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-suggestions__cross {
        font-size: 14px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Исправление селектора количества на маленьких экранах (330px) */
    .product-suggestions__qty {
        padding: 4px 5px;
        gap: 5px;
        left: 0;
        right: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-suggestions__qty-btn {
        width: 22px;
        height: 22px;
        min-width: 22px;
        max-width: 22px;
        flex-shrink: 0;
        font-size: 13px;
    }
    
    .product-suggestions__qty-value {
        min-width: 18px;
        font-size: 11px;
        flex-shrink: 0;
    }
}

/* Discount badge for product suggestions */
.product-suggestions__discount {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef233c;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-suggestions__image {
    position: relative;
}

/* Similar Products Link */
.similar-products__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.similar-products__link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Page */
.product-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Product Details Section */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-details__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-details__gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-details__main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
}

.product-details__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-details__img:hover {
    opacity: 0.9;
}

.product-details__thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-details__thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-details__thumb:hover {
    border-color: #ef233c;
}

.product-details__thumb.active {
    border-color: #ef233c;
}

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

.product-details__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-details__title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 0 0;
    line-height: 1.4;
    font-family: 'Manrope', sans-serif;
}

.product-details__rating-stock {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #F4F4F4;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    margin: 0;
    flex-wrap: wrap;
}

.product-details__add-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #ef233c;
    color: #ef233c;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.product-details__add-review-btn svg {
    flex-shrink: 0;
}

.product-details__add-review-btn:hover {
    background: #ef233c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 35, 60, 0.3);
}

.product-details__add-review-btn:hover svg {
    stroke: white;
}

/* Базовые стили для action-container (общий контейнер для 3 элементов) */
.product-details__action-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 0 0 20px 0;
}

/* Container 1: Price Container (красная + серая цена + скидка) */
.product-details__price-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Container 2: Quantity and Cart Row (удален - больше не нужен) */

/* Container 2a: Quantity Container (выбор количества) */
.product-details__quantity-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Container 2b: Cart Button Wrapper (обертка для кнопки) */
.product-details__cart-wrapper {
    display: flex;
    align-items: center;
}

/* Container 3: Cart Container (кнопка в корзину) */
.product-details__cart-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ef233c;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Manrope', sans-serif;
    justify-content: center;
}

.product-details__cart-container:hover {
    background: #d11a2b;
}

/* Большие экраны 1920px-1024px: цена на первой строке, количество и кнопка на второй */
@media (min-width: 1025px) {
    .product-details__action-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 15px !important;
        margin: 0 0 20px 0 !important;
    }
    
    /* Container 1: Price - на первой строке */
    .product-details__price-container {
        order: 1 !important;
    }
    
    /* Container 2: Quantity - слева на второй строке */
    .product-details__quantity-container {
        grid-row: 2 !important;
        grid-column: 1 !important;
        justify-self: start !important;
    }
    
    /* Container 3: Cart Wrapper - справа на второй строке */
    .product-details__cart-wrapper {
        grid-row: 2 !important;
        grid-column: 1 !important;
        justify-self: end !important;
    }
    
    /* Container 3: Cart - справа */
    .product-details__cart-container {
        width: fit-content !important;
    }
}

.product-details__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-details__stars {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.product-details__star {
    font-size: 20px;
    color: #ddd;
    transition: color 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.product-details__star:hover {
    color: #ef233c;
}

.product-details__star.active {
    color: #ef233c;
}

.product-details__star.hover {
    color: #ef233c;
}

/* Интерактивные звезды для выбора рейтинга в плашке */
.product-details__stars--interactive {
    display: flex;
    gap: 4px;
}

.product-details__star--selectable {
    font-size: 20px;
    color: #ddd;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.product-details__star--selectable:hover,
.product-details__star--selectable.hover {
    color: #ffc107;
    transform: scale(1.15);
}

.product-details__star--selectable.active {
    color: #ffc107;
}

/* Кликабельные ссылки "отзывы" */
.reviews-link,
.reviews-count-link {
    transition: color 0.2s ease;
}

.reviews-link:hover,
.reviews-count-link:hover {
    color: #ef233c;
}

.product-details__rating-text {
    font-size: 14px;
    color: #666;
    font-family: 'Manrope', sans-serif;
}

.product-details__divider {
    width: 1px;
    height: 20px;
    background: #ddd;
}

.product-details__stock {
    font-size: 14px;
    color: #25d366;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    display: none; /* Временно скрыто */
}

.product-details__pricing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 0 0;
}

.product-details__current-price {
    font-size: 28px;
    font-weight: 700;
    color: #EF233C;
    font-family: 'Manrope', sans-serif;
}

.product-details__current-price .price-unit {
    font-weight: 400;
    font-size: 16px;
    color: #999;
}

.product-details__old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-family: 'Manrope', sans-serif;
}

.product-details__old-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-details__discount {
    background: #ef233c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    width: fit-content;
}

.product-details__action-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-details__quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    flex-shrink: 0;
}

.product-details__qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #151923;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details__qty-btn:hover {
    background: #2a3441;
}

.product-details__qty-input {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.product-details__qty-value {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    font-family: 'Manrope', sans-serif;
}

.product-details__add-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ef233c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Manrope', sans-serif;
    flex: 1;
    justify-content: center;
}

.product-details__add-btn:hover {
    background: #d11a2b;
}

.product-details__cart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.product-details__add-text {
    font-family: 'Manrope', sans-serif;
}

/* Product Specifications */
.product-details__specs {
    margin-top: 30px;
}

.product-details__specs-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 15px 0;
    font-family: 'Manrope', sans-serif;
}

.product-details__specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.product-details__spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-details__spec-label {
    font-size: 14px;
    color: #666;
    font-family: 'Manrope', sans-serif;
}

.product-details__spec-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
}

/* Product Description */
.product-details__description {
    margin-top: 25px;
}

.product-details__description-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
    font-family: 'Manrope', sans-serif;
}

.product-details__description-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

/* Similar Products Section */
.similar-products {
    margin-top: 40px;
}

.similar-products__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.similar-products__title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    text-align: center;
}

.similar-products__divider {
    width: 40px;
    height: 2px;
    background-color: #ef233c;
    border-radius: 1px;
}

.similar-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.similar-products__grid .similar-products__card {
    width: 100%;
    min-width: 0;
}

.similar-products__card {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.similar-products__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.similar-products__image {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    overflow: hidden;
    flex-shrink: 0;
}

.similar-products__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

.similar-products__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 4px;
    flex-grow: 1;
}

.similar-products__name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    font-family: 'Manrope', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
}

.similar-products__price {
    font-size: 16px;
    font-weight: 700;
    color: #ef233c;
    font-family: 'Manrope', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.similar-products__price .old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.similar-products__price .current-price {
    color: #ef233c;
    font-weight: 700;
}

.similar-products__actions {
    display: flex;
    align-items: center;
    padding: 8px 14px 14px;
    z-index: 2;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.similar-products__btn {
    background: #ef233c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Manrope', sans-serif;
    width: 100%;
    min-height: 38px;
    z-index: 3;
    position: relative;
    text-align: center;
}

.similar-products__btn:hover {
    background: #d11a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

/* Discount badge for similar products */
.similar-products__discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef233c;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    z-index: 2;
}

/* Quantity Selector for Similar Products */
.similar-products__quantity-selector {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: white;
    border: 2px solid #ef233c;
    border-radius: 8px;
    padding: 4px 6px;
    min-height: 38px;
    box-sizing: border-box;
}

.similar-products__quantity-selector.show {
    display: flex !important;
}

.similar-products__quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #ef233c;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    min-width: 28px;
}

.similar-products__quantity-btn:hover {
    background: #d11a2b;
    transform: scale(1.1);
}

.similar-products__quantity-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.similar-products__quantity-display {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    min-width: 35px;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-description {
    max-width: 400px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-icon {
    font-size: 20px;
}

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

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ef233c;
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Contact Button (Phone Icon) */
.whatsapp-button {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    background: #ef233c !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0px 10px 30px rgba(239, 35, 60, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    transform: none !important;
    overflow: hidden !important;
    border: none !important;
    padding: 0 !important;
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0px 15px 40px rgba(239, 35, 60, 0.4) !important;
}

.whatsapp-button:active {
    transform: translateY(-1px) scale(0.98) !important;
}

.whatsapp-icon {
    width: 24px !important;
    height: 24px !important;
    fill: white !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.whatsapp-button span {
    display: none !important;
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Manrope', sans-serif;
    backdrop-filter: blur(4px);
}

.contact-modal.show {
    display: flex;
}

.contact-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-modal-header {
    background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%);
    padding: 24px;
    text-align: center;
    color: white;
    position: relative;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.contact-modal-body {
    padding: 24px;
}

.contact-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
}

.contact-action-btn:hover {
    border-color: #ef233c;
    background: #fef2f2;
    transform: translateX(4px);
    box-shadow: 0px 4px 12px rgba(239, 35, 60, 0.15);
}

.contact-action-btn:active {
    transform: translateX(2px);
}

.contact-action-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-action-btn-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
    display: block;
}

.contact-action-btn--call .contact-action-btn-icon {
    background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%);
    color: white;
}

.contact-action-btn--whatsapp .contact-action-btn-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.contact-action-btn-text {
    flex: 1;
    text-align: left;
}

.contact-action-btn-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-action-btn-subtitle {
    font-size: 13px;
    color: #64748b;
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile styles */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px !important;
        height: 56px !important;
    }
    
    .whatsapp-icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    .contact-modal-content {
        max-width: 90%;
        border-radius: 12px;
    }
    
    .contact-modal-header {
        padding: 20px;
    }
    
    .contact-modal-header h3 {
        font-size: 18px;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
    
    .contact-action-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .contact-action-btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-action-btn-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav {
        display: none;
    }
    
    .language-switcher {
        display: none;
    }
    
    .login-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        margin-left: 10px;
    }
    
    .header-actions {
        gap: 0;
        margin-left: auto;
        margin-right: 10px;
    }
    
    .cart-btn {
        margin-right: 0;
    }
    
    .element-light {
        padding-top: 67px; /* Отступ для фиксированного хедера на мобильных */
    }
    
    .main {
        padding: 24px 20px 0 20px; /* padding-top: 24px всегда */
        margin-top: 0;
    }
    
    
    .similar-products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Большие экраны 1920px-1024px: цена на первой строке, количество и кнопка на второй */
@media (min-width: 1025px) {
    .product-details__price-qty-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 0 0 20px 0;
    }
    
    .product-details__pricing {
        order: 1;
        text-align: left;
        margin: 0;
    }
    
    .product-details__quantity {
        order: 2;
        align-self: flex-start;
        margin: 0;
    }
    
    .product-details__add-btn {
        order: 3;
        align-self: flex-start;
        margin: 0;
        width: fit-content;
    }
}

/* Планшеты 1024px-769px: все в одной строке */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-details__container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-details__gallery {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }
    
    .product-details__main-image {
        flex: 1;
        min-height: 300px;
    }
    
    .product-details__thumbnails {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100px;
        flex-shrink: 0;
    }
    
    .product-details__thumb {
        width: 80px;
        height: 80px;
    }
    
    .product-details__title {
        margin: 20px 0 15px 0;
        text-align: left;
    }
    
    .product-details__rating-stock {
        margin: 0 0 20px 0;
    }
    
    /* Планшеты 1024px-768px: все в одной строке */
    .product-details__action-container {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        grid-template-rows: 1fr !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 0 0 20px 0 !important;
    }
    
    /* Container 1: Price - слева */
    .product-details__price-container {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }
    
    /* Container 2: Quantity - по центру в строке */
    .product-details__quantity-container {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
    }
    
    /* Container 3: Cart Wrapper - справа в строке */
    .product-details__cart-wrapper {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
    }
    
    /* Container 3: Cart - справа в строке */
    .product-details__cart-container {
        padding: 8px 16px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        width: auto !important;
    }
    
    .product-details__specs {
        margin: 0 0 20px 0;
    }
    
    .product-details__description {
        margin: 0 0 20px 0;
    }
    
    .similar-products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .product-details__container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .similar-products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 24px 15px 0 15px; /* padding-top: 24px для мобильных */
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .product-suggestions {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Similar Products Quantity Selector - Mobile */
    .similar-products__quantity-selector {
        padding: 3px 5px;
        gap: 5px;
        min-height: 32px;
    }
    
    .similar-products__quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .similar-products__quantity-display {
        font-size: 13px;
        min-width: 30px;
    }
    
    /* Мобильные ≤768px: цена и количество на первой строке, кнопка на второй */
    .product-details__action-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 15px !important;
        margin: 0 0 20px 0 !important;
    }
    
    /* Container 1: Price - слева на первой строке */
    .product-details__price-container {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }
    
    /* Container 2: Quantity - справа на первой строке */
    .product-details__quantity-container {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
    }
    
    /* Container 3: Cart Wrapper - на всю ширину второй строки */
    .product-details__cart-wrapper {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }
    
    /* Container 3: Cart - на всю ширину */
    .product-details__cart-container {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .product-details__price-qty-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0 0 15px 0;
    }
    
    .product-details__pricing {
        flex: 0 0 auto;
        text-align: left;
        order: 1;
    }
    
    .product-details__quantity {
        flex: 0 0 auto;
        margin: 0;
        order: 2;
    }
    
    .product-details__add-btn {
        flex: 0 0 auto;
        margin: 0;
        order: 3;
        width: fit-content;
    }
    
    /* Мобильные ≤767px: цена и количество на первой строке, кнопка на второй */
    .product-details__price-qty-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .product-details__pricing {
        order: 1;
        text-align: left;
    }
    
    .product-details__quantity {
        order: 2;
        align-self: flex-end;
    }
    
    .product-details__add-btn {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
    }
    
    .similar-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-details__rating-stock {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 10px 15px;
    }
    
    
    .product-details__title {
        font-size: 20px;
    }
    
    .product-details__current-price {
        font-size: 24px;
        color: #EF233C;
    }
    
    .product-details__old-price {
        font-size: 16px;
    }
    
    .product-details__old-price-row {
        gap: 8px;
    }
    
    .similar-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
}

/* Мобильные ≤767px: цена и количество на первой строке, кнопка на второй */
@media (max-width: 767px) {
    .product-details__price-qty-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 0 0 20px 0;
    }
    
    .product-details__pricing {
        order: 1;
        text-align: left;
        margin: 0;
    }
    
    .product-details__quantity {
        order: 2;
        align-self: flex-end;
        margin: 0;
    }
    
    .product-details__add-btn {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 24px 10px 0 10px; /* padding-top: 24px для маленьких экранов */
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    
    /* Similar Products Quantity Selector - Small Mobile */
    .similar-products__quantity-selector {
        padding: 2px 4px;
        gap: 4px;
        min-height: 30px;
    }
    
    .similar-products__quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .similar-products__quantity-display {
        font-size: 12px;
        min-width: 25px;
    }
    
    .product-details__title {
        font-size: 18px;
    }
    
    .product-details__current-price {
        font-size: 22px;
        color: #EF233C;
    }
    
    .product-details__old-price {
        font-size: 14px;
    }
    
    .product-details__old-price-row {
        gap: 6px;
    }
    
    .product-details__specs-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .product-details__specs-title {
        font-size: 16px;
    }
    
    .product-details__description-title {
        font-size: 16px;
    }
    
    .product-details__description-text {
        font-size: 14px;
    }
    
    .product-details__qty-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        background: #151923;
        color: #fff;
    }
    
    .product-details__qty-input {
        width: 50px;
        height: 35px;
    }
    
    .product-details__action-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .product-details__add-btn {
        flex: none;
        width: 100%;
    }
    
    .product-details__rating-stock {
        flex-direction: row;
        gap: 10px;
        padding: 12px 15px;
        text-align: center;
        flex-wrap: nowrap;
    }
    
    .product-details__divider {
        display: none;
    }
    
    .product-details__star {
        font-size: 18px;
    }
    
    .product-details__thumb {
        width: 60px;
        height: 60px;
    }
    
    .product-details__thumbnails {
        gap: 8px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
}

@media (max-width: 300px) {
    .main {
        margin-top: 0;
        padding: 24px 5px 0 5px; /* padding-top: 24px всегда */
    }
    
    .product-suggestions__grid {
        padding: 0 0 5px 0;
    }
    
    .product-suggestions__card {
        min-width: 160px;
        max-width: 160px;
        width: 160px;
        height: 70px;
        max-height: 70px;
        min-height: 70px;
        box-sizing: border-box;
    }
    
    .product-suggestions__image {
        width: 55px;
        height: 50px;
    }
    
    .product-suggestions__name {
        font-size: 10px;
        line-height: 13px;
    }
    
    .product-suggestions__price {
        font-size: 11px;
    }
    
    .product-suggestions__btn {
        width: 20px;
        height: 20px;
        min-width: 20px;
        max-width: 20px;
        min-height: 20px;
        max-height: 20px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-suggestions__btn i {
        font-size: 10px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-suggestions__cross {
        font-size: 12px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Исправление селектора количества на маленьких экранах */
    .product-suggestions__qty {
        padding: 4px 6px;
        gap: 6px;
        left: 0;
        right: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-suggestions__qty-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        max-width: 24px;
        flex-shrink: 0;
        font-size: 14px;
    }
    
    .product-suggestions__qty-value {
        min-width: 20px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .footer {
        padding: 20px 0 15px;
    }
    
    .footer-content {
        padding: 0 10px;
        gap: 20px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .footer-column h3 {
        font-size: 14px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
    
}

@media (max-width: 450px) {
    .main {
        padding: 24px 8px 0 8px; /* padding-top: 24px всегда */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer {
        padding: 25px 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-content {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Footer Styles from Catalog */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 60px 0 30px;
    margin-top: 80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}

.footer-description {
    font-size: 18px;
    color: #334155;
    margin: 0;
    line-height: 1.6;
    max-width: 400px;
    flex: auto;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: #ef233c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 35, 60, 0.3);
}

.social-icon {
    font-size: 18px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #64748b;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.footer-links a:hover {
    color: #ef233c;
    transform: translateX(4px);
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.map-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    padding: 0;
}

.map-btn:hover {
    color: #ef233c;
    transform: translateX(4px);
}

.footer-address {
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}

/* Footer Map Button */
.footer-map-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    line-height: 1.5;
    position: relative;
}

.footer-map-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #ef233c;
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-map-btn:hover {
    color: #ef233c;
    padding-left: 16px;
    background: linear-gradient(90deg, rgba(239, 35, 60, 0.08) 0%, rgba(239, 35, 60, 0.02) 100%);
    transform: translateX(4px);
}

.footer-map-btn:hover::before {
    opacity: 1;
    height: 60%;
}

.footer-map-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-main {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .footer-description {
        flex: auto;
        margin-right: 20px;
        font-size: 16px;
    }
    
    .social-links {
        flex-shrink: 0;
    }
    
    .footer-columns {
        justify-items: center;
    }
    
    .footer-column {
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-icon {
        font-size: 16px;
    }
    
    .footer-heading {
        font-size: 16px;
    }
    
    .footer-links a {
        font-size: 15px;
    }
    
    .footer-copyright {
        font-size: 13px;
        padding-top: 25px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        padding: 0 15px;
        gap: 30px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-main {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .footer-description {
        flex: auto;
        margin-right: 15px;
        font-size: 15px;
    }
    
    .social-links {
        flex-shrink: 0;
    }
    
    .footer-columns {
        justify-items: center;
    }
    
    .footer-column {
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 8px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-icon {
        font-size: 14px;
    }
    
    .footer-heading {
        font-size: 15px;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-copyright {
        font-size: 12px;
        padding-top: 20px;
    }
}

@media (max-width: 320px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Payment Icons Styles */
.payment-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.payment-icon {
    width: 20px;
    height: 16px;
    object-fit: contain;
}

/* Image Lightbox Modal */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.image-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

.image-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.image-lightbox__close:active {
    transform: rotate(90deg) scale(0.9);
}

@media (max-width: 768px) {
    .image-lightbox__content {
        padding: 20px;
    }
    
    .image-lightbox__close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .image-lightbox__content {
        padding: 15px;
    }
    
    .image-lightbox__close {
        top: 5px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .image-lightbox__img {
        max-height: 85vh;
    }
}

/* ===== PRODUCT REVIEWS STYLES ===== */

/* Кнопка "Показать все отзывы" */
.product-details__view-reviews-btn {
    margin-left: 12px;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid #ef233c;
    color: #ef233c;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.product-details__view-reviews-btn:hover {
    background: #ef233c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 35, 60, 0.3);
}

/* Заполненные звезды */
.product-details__star.filled {
    color: #ffc107;
}

.product-details__star.half-filled {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reviews Section */
.product-reviews {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

.product-reviews__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.product-reviews__title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.product-reviews__divider {
    width: 40px;
    height: 2px;
    background-color: #ef233c;
    border-radius: 1px;
}

/* Review Form */
.product-reviews__add-form {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-reviews__form-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0 0 24px 0;
    font-family: 'Manrope', sans-serif;
}

.review-form__group {
    margin-bottom: 20px;
}

.review-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
}

.review-form__rating {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.review-form__star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.review-form__star:hover,
.review-form__star.hover {
    color: #ffc107;
    transform: scale(1.1);
}

.review-form__star.active {
    color: #ffc107;
}

.review-form__input,
.review-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.review-form__input:focus,
.review-form__textarea:focus {
    outline: none;
    border-color: #ef233c;
    box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.1);
}

.review-form__textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Manrope', sans-serif;
}

.review-form__char-count {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    text-align: right;
    font-family: 'Manrope', sans-serif;
}

.review-form__submit {
    width: 100%;
    padding: 14px 24px;
    background: #ef233c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.review-form__submit:hover {
    background: #d11a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

.review-form__submit:active {
    transform: translateY(0);
}

.review-form__submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.review-form__message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
}

.review-form__message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.review-form__message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Reviews List */
.product-reviews__list {
    margin-bottom: 30px;
}

.reviews-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-family: 'Manrope', sans-serif;
}

.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.reviews-empty__text {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.review-item {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    background: #fff;
    transition: background 0.2s ease;
}

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

.review-item:hover {
    background: #f8f9fa;
}

.review-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-item__author {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
}

.review-item__date {
    font-size: 12px;
    color: #666;
    font-family: 'Manrope', sans-serif;
}

.review-item__rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
    font-size: 18px;
    color: #ffc107;
    letter-spacing: 2px;
}

.review-item__comment {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Отзыв на модерации */
.review-item--pending {
    opacity: 0.85;
    background: #fff9e6;
    border-left: 3px solid #ffc107;
}

.review-item__status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
}

/* Load More Button */
.product-reviews__load-more {
    text-align: center;
    margin-top: 30px;
}

.reviews-load-more-btn {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid #ef233c;
    color: #ef233c;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reviews-load-more-btn:hover {
    background: #ef233c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .product-reviews {
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .product-reviews__title {
        font-size: 24px;
    }
    
    .product-reviews__add-form {
        padding: 20px;
    }
    
    .product-details__view-reviews-btn {
        margin-left: 8px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .review-form__star {
        font-size: 28px;
    }
    
    .review-item {
        padding: 20px;
    }
    
    .review-item__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .product-reviews__add-form {
        padding: 16px;
    }
    
    .review-form__star {
        font-size: 24px;
    }
    
    .review-item {
        padding: 16px;
    }
}

/* ===== REVIEWS MODAL ===== */
.reviews-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reviews-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.reviews-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.reviews-modal__content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reviews-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.reviews-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #000;
    font-family: 'Manrope', sans-serif;
}

.reviews-modal__close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.reviews-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Tabs */
.reviews-modal__tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    padding: 0 32px;
    flex-shrink: 0;
}

.reviews-modal__tab {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: 'Manrope', sans-serif;
    position: relative;
    margin-bottom: -1px;
}

.reviews-modal__tab:hover {
    color: #ef233c;
}

.reviews-modal__tab--active {
    color: #ef233c;
    border-bottom-color: #ef233c;
    font-weight: 600;
}

/* Tab Content */
.reviews-modal__tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.reviews-modal__tab-content--active {
    display: block;
}

.reviews-modal__body {
    padding: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-modal__content {
        width: 95%;
        max-height: 95vh;
    }
    
    .reviews-modal__header {
        padding: 20px 24px;
    }
    
    .reviews-modal__title {
        font-size: 20px;
    }
    
    .reviews-modal__tabs {
        padding: 0 24px;
    }
    
    .reviews-modal__tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .reviews-modal__body {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .reviews-modal__content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .reviews-modal__header {
        padding: 16px 20px;
    }
    
    .reviews-modal__title {
        font-size: 18px;
    }
    
    .reviews-modal__tabs {
        padding: 0 20px;
    }
    
    .reviews-modal__tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .reviews-modal__body {
        padding: 20px;
    }
}


