/* Стили для аутентификации */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

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

.form-group {
    margin-bottom: 0;
}

.form-label {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-text {
    font-family: 'Poiret One', cursive;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn-primary {
    background: #333;
    color: white;
}

.auth-btn-primary:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    color: #666;
}

.auth-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}


.favorites-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: 'Poiret One', cursive;
}

/* Стили для профиля */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.profile-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

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

.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s;
}

.profile-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.profile-info-card {
    grid-column: span 1;
}

.profile-stats-card {
    grid-column: span 1;
}

.profile-orders-card {
    grid-column: span 2;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.profile-btn-edit {
    background: none;
    border: none;
    color: #ff6b6b;
    font-family: 'Poiret One', cursive;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-btn-edit:hover {
    color: #ff5252;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.profile-info-label {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #666;
    width: 100px;
}

.profile-info-value {
    font-family: 'Poiret One', cursive;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.profile-stat-item {
    text-align: center;
}

.profile-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.profile-stat-label {
    font-family: 'Poiret One', cursive;
    font-size: 14px;
    color: #666;
}

.profile-empty {
    text-align: center;
    padding: 40px 0;
}

.profile-empty p {
    font-family: 'Poiret One', cursive;
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.profile-btn-primary {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.profile-btn-primary:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.profile-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.profile-alert-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-edit-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.profile-edit-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.profile-btn-back {
    color: #666;
    text-decoration: none;
    font-family: 'Poiret One', cursive;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-btn-back:hover {
    color: #ff6b6b;
}

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

.profile-divider {
    margin: 30px 0;
    border: none;
    border-top: 2px solid #eee;
}

.profile-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.profile-btn-secondary {
    background: none;
    border: 2px solid #333;
    color: #333;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.profile-btn-secondary:hover {
    background: #333;
    color: white;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-card,
    .profile-stats-card,
    .profile-orders-card {
        grid-column: span 1;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .profile-edit-card {
        padding: 30px 20px;
    }
}


/* Стили для выпадающего меню пользователя */
.icon-user {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    display: none;
    z-index: 4000;
    margin-top: 10px;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-family: 'Poiret One', cursive;
    transition: background 0.3s;
    border-bottom: 1px solid #eee;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: #ff6b6b;
}


/* Стили для счетчика категорий в сайдбаре */
.sidebar-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-family: 'Poiret One', cursive;
}

#sidebar.collapsed .category-count {
    display: none;
}
