/* Minimalist Design System - ReviewSystem */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.15s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container-modern {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-modular {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.main-wrapper {
    min-height: 100vh;
    background: var(--gray-50);
}

.navbar-minimal {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: none;
}

    .navbar-minimal .container-modern {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
    }

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .logo i {
        color: var(--primary);
        font-size: 1.25rem;
    }

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link-minimal {
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

    .nav-link-minimal:hover {
        background: var(--gray-100);
        color: var(--gray-900);
    }

    .nav-link-minimal i {
        margin-right: 0.5rem;
        font-size: 0.875rem;
    }

.card-minimal {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

    .card-minimal:hover {
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

.card-header-minimal {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.card-body-minimal {
    padding: 1.5rem;
}

.products-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card-minimal {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

    .product-card-minimal:hover {
        box-shadow: var(--shadow-md);
    }

.product-content {
    padding: 1.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.btn-minimal {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

    .btn-secondary:hover {
        background: var(--gray-50);
        border-color: var(--gray-400);
    }

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

    .btn-outline:hover {
        background: var(--gray-50);
    }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.form-minimal {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control-minimal {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: white;
}

    .form-control-minimal:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.filters-minimal {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

    .filter-item select,
    .filter-item input {
        width: 100%;
    }

.rating-stars-minimal {
    display: inline-flex;
    gap: 0.125rem;
    color: var(--warning);
    font-size: 0.875rem;
}

.rating-value-minimal {
    font-weight: 600;
    color: var(--gray-900);
}

.alert-minimal {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease-out;
}

.alert-success-minimal {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error-minimal {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-info-minimal {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-minimal .btn-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    width: auto;
    height: auto;
}

    .alert-minimal .btn-close:hover {
        opacity: 1;
    }

.badge-minimal {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-green {
    background: #f0fdf4;
    color: #166534;
}

.badge-red {
    background: #fef2f2;
    color: #991b1b;
}

.badge-blue {
    background: #eff6ff;
    color: #1e40af;
}

.stats-grid-minimal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card-minimal {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s;
}

    .stat-card-minimal:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.stat-value-minimal {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label-minimal {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-card-minimal {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.review-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.review-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.spinner-minimal {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Dropdown иконки */
.dropdown-item i {
    margin-right: 0.5rem;
    width: 1.25rem;
}

/* Модальное окно */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-header .btn-close {
    background: transparent;
    opacity: 0.5;
    transition: opacity 0.2s;
}

    .modal-header .btn-close:hover {
        opacity: 1;
    }

/* Стили для карточек товаров в деталях */
.product-detail-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .product-detail-card .card-header {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid var(--gray-200);
        background: white;
    }

    .product-detail-card .card-body {
        padding: 1.5rem;
    }

/* Комментарии */
.comment-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.comment-author {
    font-weight: 600;
    color: var(--gray-700);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.comment-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Кнопка лайка */
.like-btn {
    transition: all 0.2s;
}

    .like-btn:hover {
        transform: scale(1.05);
    }

    .like-btn:active {
        transform: scale(0.95);
    }

/* Прогресс бар рейтинга */
.progress {
    background-color: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ms-auto {
    margin-left: auto;
}

.p-4 {
    padding: 1.5rem;
}

.p-3 {
    padding: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

@media (max-width: 768px) {
    .container-modern {
        padding: 0 1rem;
    }

    .container-modular {
        padding: 1rem;
    }

    .navbar-minimal .container-modern {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 1rem;
    }

    .nav-links {
        margin-top: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .products-grid-minimal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid-minimal {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-item {
        width: 100%;
    }

    .stat-card-minimal {
        padding: 1rem;
    }

    .stat-value-minimal {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Alert стили */
    .alert-minimal {
        padding: 1rem;
        border-radius: 12px;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .alert-success-minimal {
        background: var(--success-light, #d4edda);
        color: var(--success, #155724);
        border: 1px solid var(--success, #155724);
    }

    .alert-error-minimal {
        background: var(--danger-light, #f8d7da);
        color: var(--danger, #721c24);
        border: 1px solid var(--danger, #721c24);
    }

    .alert-info-minimal {
        background: var(--info-light, #d1ecf1);
        color: var(--info, #0c5460);
        border: 1px solid var(--info, #0c5460);
    }

    .form-control-minimal {
        width: 100%;
        padding: 0.625rem 0.875rem;
        border: 1px solid var(--gray-300);
        border-radius: 8px;
        font-size: 0.875rem;
        transition: all 0.2s;
    }

        .form-control-minimal:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        font-size: 0.875rem;
        color: var(--gray-700);
    }
}