/* Дополнительные стили */

/* ========== НОВЫЕ СТИЛИ v38.0 ========== */

/* Промокод в checkout */
.promo-input-wrapper {
    display: flex;
    gap: 8px;
}

.promo-input-wrapper .form-input {
    flex: 1;
}

.btn-apply-promo {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-apply-promo:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-apply-promo:active {
    transform: translateY(0);
}

/* Чекбокс для баланса */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

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

.checkbox-label span {
    font-size: 14px;
}

/* Payment Proof Modal */
.payment-proof-modal .modal-content {
    max-width: 500px;
}

.payment-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.payment-info-box h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
}

.payment-instruction {
    margin: 0 0 16px 0;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
}

.payment-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.payment-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.payment-detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-amount {
    font-size: 24px;
    color: #ffd700;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}

.form-input-file {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.form-input-file:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.screenshot-preview {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.screenshot-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== КОНЕЦ НОВЫХ СТИЛЕЙ ========== */

/* Поиск */
.search-page {
    padding: 16px;
}

.search-page .search-input-wrapper {
    margin-bottom: 16px;
}

.search-results-section {
    margin-bottom: 24px;
}

.recommendations-section {
    border-top: 2px solid var(--border);
    padding-top: 16px;
    margin-top: 24px;
}

.recommendations-section .section-header h2 {
    font-size: 16px;
    opacity: 0.8;
}

/* Кнопки в модальном окне продукта */
.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.btn-icon-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-icon-large:hover {
    background: var(--background);
}

.btn-icon-large.favorite {
    position: relative;
    overflow: visible;
}

.btn-icon-large.favorite i {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: block;
}

.btn-icon-large.favorite.active i {
    color: #ff1744 !important;
}

.btn-icon-large.favorite.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: heartGlow 1.5s ease-in-out infinite;
    pointer-events: none;
}

.add-to-cart-detail {
    flex: 1;
}

/* Кнопка сохранения телефона */
.phone-input-wrapper button {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
}

/* Кнопка подтверждения заказа */
#submitOrderBtn {
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 18px 24px !important;
    min-height: 60px;
}

/* Поисковые рекомендации */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-suggestions.hidden {
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

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

.suggestion-item:hover {
    background: var(--hover-bg);
}

.suggestion-item:active {
    background: var(--active-bg);
}

.suggestion-item i {
    font-size: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.suggestion-item span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

/* Цветовые переменные для темной темы */
[data-theme="dark"] .search-suggestions {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .suggestion-item {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .suggestion-item:hover {
    background: #333333;
}

[data-theme="dark"] .suggestion-item:active {
    background: #3a3a3a;
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.offline-indicator i {
    font-size: 18px;
}

/* Telegram WebApp Body Class */
body.telegram-webapp {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Улучшенная анимация загрузчика */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loader i {
    font-size: 48px;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

.loader p {
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Улучшенные модальные окна */
.modal-content {
    animation: modalSlideUp 0.3s ease-out;
}

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

/* Улучшенные тосты */
.toast {
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Остатки товара */
.product-stock {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-stock.low-stock {
    color: var(--error);
    font-weight: 600;
}

.product-stock i {
    font-size: 12px;
}

/* Расширенный профиль */
.profile-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.profile-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title i {
    font-size: 18px;
    color: var(--primary);
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.promo-input-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.promo-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--text-primary);
    font-size: 14px;
}

.btn-apply-promo {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-promo:hover {
    background: var(--primary-dark);
}

.btn-contact-manager {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact-manager:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-contact-manager i {
    font-size: 20px;
}

/* Модальное окно деталей товара */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.product-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.product-detail-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-content {
    background: var(--surface);
    border-radius: var(--radius);
    animation: modalSlideUp 0.3s ease-out;
}

.product-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--background);
}

.product-detail-body {
    padding: 20px;
}

.product-detail-header {
    margin-bottom: 16px;
}

.product-detail-brand {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.product-detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 16px 0;
    padding: 8px 12px;
    background: var(--background);
    border-radius: var(--radius-sm);
}

.product-detail-description strong {
    color: var(--text-primary);
    font-size: 15px;
    display: block;
    margin-bottom: 8px;
}

/* Характеристики товара */
.product-characteristics {
    margin: 20px 0;
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius-sm);
}

.characteristics-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.characteristics-title i {
    font-size: 18px;
    color: var(--primary);
}

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.characteristic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.characteristic-item i {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.char-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.char-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2px;
}

.flavors-section {
    margin: 20px 0;
}

.flavors-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.flavor-option {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 70px;
}

.flavor-option:hover {
    border-color: var(--primary);
    background: var(--background);
}

.flavor-option.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
}

.flavor-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background);
}

.flavor-option .flavor-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.flavor-option .flavor-stock {
    font-size: 13px;
}

.flavor-stock {
    font-size: 11px;
    color: var(--text-secondary);
}

.flavor-stock.low {
    color: var(--error);
    font-weight: 600;
}

.flavor-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-add-to-cart-detail {
    flex: 1;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-to-cart-detail:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-add-to-cart-detail:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
}

/* Кнопка быстрого добавления */
.product-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon-small:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.btn-icon-small:active {
    transform: scale(0.95);
}

.btn-quick-add {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 107, 0, 0);
    }
}

/* Быстрое добавление - информация о товаре */
.quick-add-product-info {
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}

.quick-add-brand {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.quick-add-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* ========== БАННЕРЫ ========== */

.banners-slider {
    position: relative;
    margin: 0 16px 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.banners-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banners-container::-webkit-scrollbar {
    display: none;
}

.banner-slide {
    flex: 0 0 100%;
    min-height: 120px;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
}

.banner-slide:active {
    opacity: 0.95;
}

.banner-slide.image-only {
    min-height: 140px;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.banner-content {
    text-align: center;
    max-width: 85%;
}

.banner-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.banner-subtitle {
    font-size: 15px;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-weight: 500;
}

.banners-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banners-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.banners-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Градиентные стили для баннеров без изображения */
.banner-slide:not(.image-only) .banner-overlay {
    background: transparent;
}

/* ========== ОТЗЫВЫ ========== */

/* Рейтинг в карточке товара */
.product-rating {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 3px 8px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 12px !important;
    z-index: 5 !important;
}

.product-rating .rating-star {
    font-size: 11px !important;
    line-height: 1 !important;
}

.product-rating .rating-value {
    font-weight: 700 !important;
    color: #fff !important;
    font-size: 11px !important;
}

.product-rating .rating-count {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 9px !important;
    font-weight: 500 !important;
}

/* Модальное окно отзыва */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.review-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    animation: reviewSlideUp 0.3s ease;
}

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

.review-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--background);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.2s;
}

.review-close-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.review-product-info {
    margin-bottom: 16px;
}

.review-product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

.review-product-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: var(--text-secondary);
}

.review-product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.review-product-brand {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.review-stars .star {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

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

.review-stars .star.active i {
    color: #ffc107;
}

.review-comment-section {
    margin-top: 16px;
}

.review-comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    margin-bottom: 12px;
}

.review-comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

.review-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.review-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ========== ОТЗЫВЫ В КАРТОЧКЕ ТОВАРА ========== */

.product-reviews-section {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.reviews-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.reviews-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.reviews-title i {
    color: #ff9800;
    font-size: 18px;
}

.reviews-badge {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.reviews-badge-empty {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
}

.reviews-toggle-icon {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.reviews-toggle-icon.expanded {
    transform: rotate(180deg);
}

.reviews-content {
    padding: 16px 0;
}

.reviews-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.reviews-loading i {
    animation: spin 1s linear infinite;
}

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

.reviews-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
}

.reviews-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.reviews-empty p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.reviews-empty span {
    font-size: 13px;
}

.reviews-summary {
    text-align: center;
    padding: 16px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.reviews-avg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.avg-number {
    font-size: 36px;
    font-weight: 700;
    color: #ff9800;
}

.avg-stars {
    font-size: 20px;
}

.avg-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px;
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.review-author i {
    font-size: 20px;
    color: var(--text-secondary);
}

.review-rating {
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.reviews-more {
    text-align: center;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ========== УЛУЧШЕННЫЙ ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ v39 ========== */

/* Улучшенные карточки товаров */
.product-card {
    background: var(--surface) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff8c00, var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-card:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 107, 0, 0.3) !important;
}

/* Улучшенное изображение товара */
.product-image {
    height: 130px !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(0,0,0,0.1)) !important;
    margin-bottom: 10px !important;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.product-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

/* Улучшенный бренд */
.product-brand {
    font-size: 10px !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    opacity: 0.9;
}

/* Улучшенное название */
.product-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    min-height: 34px !important;
}

/* Улучшенные спеки */
.product-specs {
    gap: 6px !important;
    margin-bottom: 10px !important;
}

.product-specs .spec-item {
    background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,107,0,0.05)) !important;
    border: 1px solid rgba(255, 107, 0, 0.15);
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.product-specs .spec-item:hover {
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,107,0,0.1)) !important;
    border-color: rgba(255, 107, 0, 0.3);
}

.product-specs .spec-item i {
    font-size: 12px !important;
    color: var(--primary) !important;
}

/* Улучшенная цена */
.product-price {
    font-size: 16px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

/* Старая цена */
.product-old-price,
.old-price {
    font-size: 13px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    opacity: 0.8 !important;
    font-weight: 600 !important;
    display: inline-block !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #999 !important;
}

[data-theme="dark"] .old-price {
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
}

/* Текущая цена с градиентом */
.product-price .current-price {
    background: linear-gradient(135deg, #4caf50, #66bb6a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
}

/* Цена со скидкой - тот же зеленый градиент */
.product-price .current-price.discounted {
    background: linear-gradient(135deg, #4caf50, #66bb6a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Улучшенный бейдж кэшбэка */
.product-badge {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%) !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(255, 107, 0, 0.6); }
}

/* Улучшенный бейдж скидки */
.discount-badge {
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%) !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.5) !important;
}

/* Улучшенный рейтинг */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ffc107;
    margin-bottom: 6px;
}

.product-rating .rating-count {
    color: var(--text-secondary);
    font-size: 10px;
}

/* Улучшенные кнопки действий */
.product-actions {
    gap: 8px !important;
    margin-top: auto;
}

.product-actions .btn-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
}

.product-actions .btn-icon:hover {
    background: rgba(255, 107, 0, 0.15) !important;
    border-color: rgba(255, 107, 0, 0.3) !important;
    transform: scale(1.1);
}

.product-actions .btn-icon.active,
.product-actions .btn-icon.is-favorite {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 107, 0, 0.1)) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Кнопка добавления в корзину */
.product-actions .btn-add-cart,
.product-actions .btn-icon.btn-cart {
    background: linear-gradient(135deg, var(--primary), #ff8c00) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.product-actions .btn-add-cart:hover,
.product-actions .btn-icon.btn-cart:hover {
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.5) !important;
    transform: scale(1.1);
}

/* Улучшенный заголовок секции */
.section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.3), transparent);
    border-radius: 1px;
}

/* Улучшенная сетка товаров */
.products-grid {
    gap: 12px !important;
}

/* Наличие товара */
.product-stock {
    font-size: 10px !important;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.1);
}

.product-stock.low {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800 !important;
}

/* Анимация появления карточек */
/* Анимация появления карточек - ОТКЛЮЧЕНА */
/* @keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: cardAppear 0.4s ease-out forwards;
}

.products-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.3s; } */

/* Темная тема - дополнительные улучшения */
[data-theme="dark"] .product-card {
    background: linear-gradient(165deg, #1e1e2e 0%, #181825 100%) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .product-card:hover {
    background: linear-gradient(165deg, #252535 0%, #1e1e2e 100%) !important;
}

[data-theme="dark"] .product-image {
    background: linear-gradient(145deg, #252535, #1a1a25) !important;
}

/* Избранное - сердечко */
.btn-favorite {
    position: relative;
}

.btn-favorite.active i,
.btn-favorite.is-favorite i {
    color: #ff4757 !important;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Улучшенный футер карточки */
.product-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

