/* ========== RESET И БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #fef5f7, #fce4ec);
    font-family: 'Times New Roman', Times, serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

/* Прижимаем футер к низу */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.cart-container {
    flex: 1;
}

footer {
    margin-top: auto;
}

* ========== ПРИЖАТИЕ ФУТЕРА К НИЗУ СТРАНИЦЫ ========== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Основной контент - занимает всё свободное пространство */
main, 
.admin-main,
.catalog-container,
.profile-container,
.cart-container,
.contacts-container,
.orders-container,
.messages-container,
.checkout-container,
.about-container,
.reviews-container {
    flex: 1 0 auto;
}

/* Футер - прижимается вниз */
footer {
    flex-shrink: 0;
    margin-top: 0;
}

/* Для пустых страниц, чтобы футер не поднимался */
.empty-cart,
.empty-orders,
.empty-messages,
.empty-reviews {
    margin-bottom: 0;
}

/* Для главной страницы */
.home-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-page .catalog-section {
    flex: 1;
}

/* ========== ЕДИНАЯ ШАПКА ========== */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 100;
    width: 100%;
    position: relative;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 110px;
    height: auto;
    display: block;
}

.left-menu {
    display: flex;
    gap: 35px;
    margin: 0 auto;
}

.left-menu a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.left-menu a:hover,
.left-menu a.active {
    color: #d4a0c0;
}

.left-menu a.active {
    border-bottom: 2px solid #d4a0c0;
}

.right-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.right-menu a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.right-menu a:hover {
    color: #d4a0c0;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon {
    width: 28px;
    height: 28px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.profile-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ========== ГЛАВНАЯ СТРАНИЦА ========== */
.home-page {
    min-height: 100vh;
    background-image: url('image/main-bg.png');
    background-size: 70% auto;
    background-position: 85% 15%;
    background-repeat: no-repeat;
    background-color: #ffffff;
    flex: 1;
}

.hero-section-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 5% 100px;
    min-height: 85vh;
}

.hero-content {
    max-width: 550px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 30px 40px;
    border-radius: 30px;
}

.hero-title {
    font-size: 68px;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-title span {
    display: block;
    font-size: 68px;
    letter-spacing: 3px;
    margin-top: 5px;
}

.hero-tagline {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    font-style: italic;
}

.btn-primary {
    background: #d4a0c0;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #c48bb0;
}

.catalog-section {
    background: linear-gradient(135deg, #fff8fa, #fff0f5);
    padding: 70px 5% 60px;
    border-radius: 40px 40px 0 0;
}

.catalog-title {
    text-align: center;
    font-size: 52px;
    color: #4a2c5a;
    margin-bottom: 15px;
}

.catalog-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #d4a0c0;
    margin: 15px auto 0;
    border-radius: 3px;
}

.catalog-subtitle {
    text-align: center;
    color: #a07a8a;
    font-size: 20px;
    margin-bottom: 50px;
    font-style: italic;
}

/* ========== КАРТОЧКИ ТОВАРОВ ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s;
}

.product-image:hover {
    transform: scale(1.02);
}

.product-info {
    padding: 18px 15px 20px;
    text-align: center;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #4a2c5a;
    margin-bottom: 8px;
    min-height: 50px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #d4a0c0;
    margin-bottom: 15px;
}

.product-price:after {
    content: " ₽";
    font-size: 14px;
    color: #888;
}

.add-to-cart {
    background: #d4a0c0;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

.login-to-cart {
    display: block;
    background: #f8f9fa;
    color: #d4a0c0;
    text-decoration: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #d4a0c0;
    text-align: center;
}

.login-to-cart:hover {
    background: #d4a0c0;
    color: white;
}

.catalog-footer {
    text-align: center;
}

.catalog-footer a {
    background: #d4a0c0;
    color: white;
    text-decoration: none;
    padding: 14px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.catalog-footer a:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

/* ========== СКИДКИ НА ТОВАРЫ ========== */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.product-price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 16px;
    color: #aaa;
    text-decoration: line-through;
}

.product-price.discount-price {
    font-size: 24px;
    font-weight: 800;
    color: #ff4444;
}

.product-price.discount-price:after {
    color: #ff4444;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 25px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.modal-close:hover {
    color: #4a2c5a;
}

.modal-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 24px;
    color: #4a2c5a;
    margin-bottom: 10px;
}

.modal-composition {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.modal-price {
    font-size: 22px;
    font-weight: bold;
    color: #d4a0c0;
    margin-top: 15px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 1001;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== АВТОРИЗАЦИЯ И РЕГИСТРАЦИЯ ========== */
.auth-container,
.register-container {
    max-width: 480px;
    width: 100%;
    margin: 40px auto;
    padding: 40px 35px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.auth-title,
.register-title {
    text-align: center;
    font-size: 32px;
    color: #4a2c5a;
    margin-bottom: 10px;
}

.auth-title:after,
.register-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d4a0c0;
    margin: 15px auto 25px;
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a0c0;
}

.auth-btn,
.register-btn {
    background: #d4a0c0;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.auth-btn:hover,
.register-btn:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.message {
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #888;
}

.auth-link a {
    color: #d4a0c0;
    text-decoration: none;
}

.password-requirements {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* ========== ЛИЧНЫЙ КАБИНЕТ ========== */
.profile-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

.page-title {
    text-align: center;
    font-size: 38px;
    color: #4a2c5a;
    margin-bottom: 15px;
}

.page-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #d4a0c0;
    margin: 15px auto 0;
    border-radius: 3px;
}

.welcome-section {
    background: linear-gradient(135deg, #d4a0c0, #c48bb0);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '🌸';
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 70px;
    opacity: 0.15;
}

.welcome-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.user-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.profile-card {
    background: white;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.profile-card:hover {
    transform: translateY(-3px);
}

.card-title {
    font-size: 22px;
    color: #4a2c5a;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a0c0;
}

.info-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: #888;
    width: 100px;
}

.info-value {
    color: #333;
    word-break: break-word;
}

.btn-update {
    background: #d4a0c0;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-update:hover {
    background: #c48bb0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.action-btn.primary {
    background: #d4a0c0;
    color: white;
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #4a2c5a;
    border: 1px solid #d4a0c0;
}

.action-btn.danger {
    background: #ff6b6b;
    color: white;
}

.action-btn:hover {
    transform: scale(1.02);
}

/* ========== КАТАЛОГ ========== */
.catalog-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

.catalog-sections {
    margin: 25px 0 35px;
}

.sections-title {
    text-align: center;
    font-size: 22px;
    color: #4a2c5a;
    margin-bottom: 20px;
}

.sections-title span {
    background: rgba(212, 160, 192, 0.2);
    padding: 5px 18px;
    border-radius: 40px;
    display: inline-block;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: white;
    color: #4a2c5a;
    text-decoration: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0d5e5;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(212, 160, 192, 0.3);
    border-color: #d4a0c0;
    background: #fef5f7;
}

.category-btn.active {
    background: linear-gradient(135deg, #d4a0c0, #c48bb0);
    color: white;
    border-color: #d4a0c0;
}

.category-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 11px;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination .arrow {
    background: white;
    color: #4a2c5a;
    border: 1px solid #d4a0c0;
    font-size: 16px;
}

.pagination .arrow:hover:not(.disabled) {
    background: #d4a0c0;
    color: white;
}

.pagination .arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination a:not(.arrow) {
    background: white;
    color: #4a2c5a;
    border: 1px solid #d4a0c0;
}

.pagination a:not(.arrow):hover {
    background: #d4a0c0;
    color: white;
}

.pagination .active-page {
    background: #d4a0c0;
    color: white;
    border: none;
}

/* ========== КОРЗИНА ========== */
.cart-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.cart-container .page-title {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.cart-items {
    flex: 2;
    background: white;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    background: #fef5f7;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    color: #4a2c5a;
    margin-bottom: 15px;
}

.cart-header div:first-child {
    text-align: left;
}

.cart-header div:nth-child(2),
.cart-header div:nth-child(3),
.cart-header div:nth-child(4) {
    text-align: center;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.cart-item:hover {
    background: #fef5f7;
    border-radius: 12px;
}

.product-info-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-info-cart .product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.product-details h3 {
    font-size: 18px;
    color: #4a2c5a;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 600;
}

.item-price {
    font-weight: bold;
    color: #d4a0c0;
    font-size: 18px;
    text-align: center;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d4a0c0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #d4a0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #d4a0c0;
    color: white;
    transform: scale(1.05);
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.item-total {
    font-weight: bold;
    color: #4a2c5a;
    font-size: 18px;
    text-align: center;
}

.remove-item {
    justify-self: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #ff6b6b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-item:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.cart-actions {
    margin-top: 25px;
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.clear-cart-btn {
    display: inline-block;
    background: #fff0f0;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 30px;
    transition: 0.3s;
}

.clear-cart-btn:hover {
    background: #ff6b6b;
    color: white;
}

.cart-summary {
    flex: 1;
    background: white;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    align-self: flex-start;
}

.summary-title {
    font-size: 22px;
    color: #4a2c5a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4a0c0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row.delivery {
    color: #4CAF50;
}

.summary-row.total {
    border-top: 2px solid #d4a0c0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #4a2c5a;
    border-bottom: none;
}

.checkout-btn {
    background: #d4a0c0;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #c48bb0;
}

.payment-info {
    margin-top: 20px;
    text-align: center;
}

.payment-info p {
    margin: 8px 0;
    font-size: 13px;
    color: #888;
}

.empty-cart {
    background: white;
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    width: 100%;
}

.empty-cart-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 28px;
    color: #4a2c5a;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #888;
    margin-bottom: 25px;
}

.continue-shopping {
    background: #d4a0c0;
    color: white;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 50px;
    display: inline-block;
    transition: 0.3s;
}

.continue-shopping:hover {
    background: #c48bb0;
}

/* ========== КОНТАКТЫ ========== */
.contacts-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.info-section,
.map-section {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.info-section:hover,
.map-section:hover {
    transform: translateY(-3px);
}

.info-title,
.map-title,
.form-title {
    font-size: 26px;
    color: #4a2c5a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #d4a0c0;
    padding-bottom: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.contact-item:hover {
    background: #fef5f7;
    padding-left: 10px;
    border-radius: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 160, 192, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
}

.contact-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.contact-value a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value a:hover {
    color: #d4a0c0;
}

.work-hours {
    background: rgba(212, 160, 192, 0.1);
    border-radius: 20px;
    padding: 18px;
    margin-top: 20px;
}

.work-hours-title {
    font-size: 17px;
    font-weight: bold;
    color: #4a2c5a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-day {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    height: 280px;
    border: 0;
}

.address-text {
    text-align: center;
    padding: 12px;
    background: rgba(212, 160, 192, 0.1);
    border-radius: 15px;
    color: #555;
    font-size: 14px;
}

.address-text strong {
    color: #4a2c5a;
}

.form-section {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    transition: 0.3s;
}

.form-section:hover {
    transform: translateY(-3px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.submit-btn {
    background: #d4a0c0;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

/* ========== ОТЗЫВЫ ========== */
.rating-summary {
    background: white;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.rating-summary h3 {
    font-size: 22px;
    color: #4a2c5a;
    margin-bottom: 12px;
}

.rating-stars-big {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars-big span {
    font-size: 42px;
    color: #ffc107;
}

.rating-number {
    font-size: 32px;
    font-weight: bold;
    color: #d4a0c0;
}

.rating-count {
    color: #888;
    margin-top: 5px;
    font-size: 14px;
}

.review-form-section {
    background: white;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.rating-input {
    display: flex;
    gap: 10px;
    font-size: 36px;
    cursor: pointer;
    justify-content: center;
    margin-bottom: 10px;
}

.rating-input span {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
}

.rating-input span:hover,
.rating-input span.active {
    color: #ffc107;
    transform: scale(1.05);
}

.btn-submit {
    background: #d4a0c0;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.reviews-title {
    font-size: 26px;
    color: #4a2c5a;
}

.reviews-count {
    color: #888;
    font-size: 14px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e6ef;
}

.reviewer-name {
    font-size: 17px;
    font-weight: bold;
    color: #4a2c5a;
}

.review-rating {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
}

.review-date {
    font-size: 11px;
    color: #999;
}

.review-text {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    white-space: pre-wrap;
}

.empty-reviews {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 25px;
    color: #888;
}

/* ========== АДМИН ПАНЕЛЬ ========== */
.admin-main {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.admin-title {
    text-align: center;
    font-size: 38px;
    color: #4a2c5a;
    margin-bottom: 25px;
}

.admin-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #d4a0c0;
    margin: 15px auto 0;
    border-radius: 3px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #d4a0c0;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    background: white;
    padding: 8px 15px 0;
    border-radius: 18px 18px 0 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 18px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: 0.3s;
}

.tab-btn.active {
    color: #d4a0c0;
    border-bottom: 3px solid #d4a0c0;
    background: rgba(218, 157, 194, 0.1);
}

.tab-content {
    display: none;
    background: white;
    border-radius: 18px;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.section-title {
    font-size: 20px;
    color: #4a2c5a;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0e6ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

th {
    background: #faf5f8;
    color: #4a2c5a;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.processing {
    background: #cce5ff;
    color: #004085;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.read {
    background: #d4edda;
    color: #155724;
}

.status-badge.unread {
    background: #ffc107;
    color: #333;
}

.btn {
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    margin: 2px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: #d4a0c0;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-disabled {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
    cursor: not-allowed;
}

.role-admin {
    background: #d4edda;
    color: #155724;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.role-user {
    background: #e2e3e5;
    color: #383d41;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.empty-row td {
    text-align: center;
    padding: 30px;
    color: #999;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* ========== О НАС ========== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.about-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-3px);
}

.about-card h2 {
    font-size: 26px;
    color: #4a2c5a;
    margin-bottom: 18px;
}

.about-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.about-image-card {
    background: linear-gradient(135deg, #fce4ec, #f8d0e0);
    border-radius: 25px;
    overflow: hidden;
    transition: 0.3s;
}

.about-image-card:hover {
    transform: translateY(-3px);
}

.about-image-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.features-section {
    background: linear-gradient(135deg, rgba(218, 157, 194, 0.15), rgba(200, 130, 175, 0.1));
    border-radius: 30px;
    padding: 40px 35px;
    margin-top: 35px;
}

.features-title {
    text-align: center;
    font-size: 32px;
    color: #4a2c5a;
    margin-bottom: 35px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 15px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    color: #4a2c5a;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 14px;
    color: #555;
}

.faq-section {
    background: white;
    border-radius: 30px;
    padding: 40px 35px;
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.faq-title {
    text-align: center;
    font-size: 32px;
    color: #4a2c5a;
    margin-bottom: 12px;
}

.faq-subtitle {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 35px;
}

.faq-item {
    border-bottom: 1px solid #e0d5e5;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    color: #4a2c5a;
}

.faq-arrow {
    font-size: 22px;
    color: #d4a0c0;
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 18px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
}

.team-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.team-title {
    text-align: center;
    font-size: 32px;
    color: #4a2c5a;
    margin-bottom: 35px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: 0.3s;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: 3px solid rgba(218, 157, 194, 0.5);
}

.team-name {
    font-size: 22px;
    font-weight: bold;
    color: #4a2c5a;
    margin-bottom: 8px;
}

.team-role {
    font-size: 16px;
    color: #d4a0c0;
    margin-bottom: 12px;
}

.team-desc {
    font-size: 14px;
    color: #555;
}

/* ========== ЗАКАЗЫ ========== */
.orders-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.order-card:hover {
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: #fef5f7;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 22px 22px 0 0;
}

.order-id {
    font-size: 16px;
    font-weight: bold;
    color: #4a2c5a;
}

.order-id span {
    color: #d4a0c0;
    font-size: 18px;
}

.order-date {
    font-size: 13px;
    color: #888;
}

.order-status {
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.order-total {
    font-size: 17px;
    font-weight: bold;
    color: #d4a0c0;
}

.order-body {
    padding: 18px 22px;
}

.order-address {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #666;
}

.order-address strong {
    color: #4a2c5a;
}

.order-comment {
    margin-top: 8px;
    padding: 8px;
    background: #fef5f7;
    border-radius: 10px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.empty-orders {
    background: white;
    border-radius: 30px;
    padding: 50px 35px;
    text-align: center;
}

.empty-icon {
    font-size: 70px;
    margin-bottom: 18px;
}

.empty-title {
    font-size: 26px;
    color: #4a2c5a;
    margin-bottom: 12px;
}

.btn-catalog {
    background: #d4a0c0;
    color: white;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 50px;
    display: inline-block;
    transition: 0.3s;
}

.btn-catalog:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

/* ========== СООБЩЕНИЯ ========== */
.messages-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.message-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fef5f7;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 8px;
}

.message-subject {
    font-size: 16px;
    font-weight: bold;
    color: #4a2c5a;
}

.message-date {
    font-size: 11px;
    color: #999;
}

.message-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.message-status.status-answered {
    background: #d4edda;
    color: #155724;
}

.message-status.status-waiting {
    background: #fff3cd;
    color: #856404;
}

.message-body {
    padding: 18px;
}

.message-question {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.message-question p {
    color: #555;
    line-height: 1.5;
    white-space: pre-wrap;
    font-size: 14px;
}

.message-answer {
    background: #d4edda;
    padding: 12px;
    border-radius: 12px;
    border-left: 3px solid #28a745;
}

.message-answer p {
    color: #155724;
    line-height: 1.5;
    white-space: pre-wrap;
    font-size: 14px;
}

.no-answer {
    color: #ff9800;
    font-style: italic;
    padding: 8px 0;
    font-size: 13px;
}

.empty-messages {
    background: white;
    border-radius: 30px;
    padding: 50px 35px;
    text-align: center;
}

.btn-write {
    background: #d4a0c0;
    color: white;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 50px;
    display: inline-block;
    transition: 0.3s;
}

.btn-write:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

/* ========== УСПЕШНЫЙ ЗАКАЗ ========== */
.success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 40px 20px;
    flex: 1;
}

.success-card {
    background: white;
    border-radius: 28px;
    padding: 35px;
    text-align: center;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.order-number {
    background: linear-gradient(135deg, #fef5f7, #fce4ec);
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #4a2c5a;
    font-weight: bold;
    border: 1px solid #d4a0c0;
}

.order-number span {
    font-size: 26px;
    color: #d4a0c0;
}

.success-info p {
    font-size: 16px;
    color: #666;
    margin: 8px 0;
}

.order-details {
    background: #fef5f7;
    border-radius: 18px;
    padding: 18px;
    margin: 20px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0e6ef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span {
    color: #888;
    font-size: 13px;
}

.detail-item strong {
    color: #4a2c5a;
    font-size: 14px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-main {
    background: #d4a0c0;
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-main:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

.btn-secondary {
    background: #f8f9fa;
    color: #4a2c5a;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d4a0c0;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #d4a0c0;
    color: white;
    transform: scale(1.02);
}

/* ========== КРАСИВОЕ ОФОРМЛЕНИЕ ЦЕН СО СКИДКОЙ В КОРЗИНЕ ========== */
.cart-item .price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.cart-item .old-price-cart {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

.cart-item .current-price-cart {
    font-size: 18px;
    font-weight: 800;
    color: #e53935;
}

.cart-item .discount-save {
    background: #4CAF50;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ========== ОФОРМЛЕНИЕ ЗАКАЗА ========== */
.checkout-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.checkout-form,
.order-summary {
    background: white;
    border-radius: 25px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.order-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.payment-methods {
    margin: 18px 0;
}

.payment-title {
    font-size: 17px;
    color: #4a2c5a;
    margin-bottom: 12px;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #d4a0c0;
    background: #fef5f7;
}

.payment-option.active {
    border-color: #d4a0c0;
    background: #fef5f7;
}

.payment-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d4a0c0;
}

.payment-icon {
    font-size: 26px;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.payment-desc {
    font-size: 11px;
    color: #999;
}

.card-form {
    margin-top: 18px;
    padding: 18px;
    background: #fef5f7;
    border-radius: 18px;
    display: none;
}

.card-form.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card-input-group {
    margin-bottom: 12px;
}

.card-input-group label {
    font-size: 11px;
    margin-bottom: 4px;
    display: block;
    color: #666;
}

.card-input-group input {
    padding: 10px;
    font-size: 14px;
    width: 100%;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
}

.card-icons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.card-icons span {
    font-size: 28px;
    opacity: 0.6;
}

.order-items {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 18px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-name {
    color: #555;
    font-size: 14px;
}

.order-item-price {
    font-weight: bold;
    color: #d4a0c0;
    font-size: 14px;
}

.delivery-info {
    background: #fef5f7;
    border-radius: 15px;
    padding: 12px;
    margin: 12px 0;
}

.delivery-info p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid #d4a0c0;
    font-size: 20px;
    font-weight: bold;
    color: #4a2c5a;
}

.confirm-btn {
    background: #d4a0c0;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 18px;
    transition: all 0.3s;
}

.confirm-btn:hover {
    background: #c48bb0;
    transform: scale(1.02);
}

.back-btn {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #d4a0c0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.back-btn:hover {
    color: #c48bb0;
    text-decoration: underline;
}

/* ========== ПОДВАЛ ========== */
footer {
    background: #2c2c2c;
    color: #ddd;
    padding: 35px 5% 20px;
    margin-top: 50px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-section {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.footer-section h4 {
    color: #d4a0c0;
    margin-bottom: 12px;
    font-size: 17px;
}

.footer-section p {
    margin-bottom: 6px;
    font-size: 13px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #d4a0c0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    width: 34px;
    height: 34px;
    background: rgba(212, 160, 192, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #d4a0c0;
    color: #2c2c2c;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #888;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 12px 4%;
        gap: 12px;
    }
    
    .logo img {
        width: 70px;
    }
    
    .left-menu {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        margin: 5px 0;
    }
    
    .left-menu a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .right-menu {
        gap: 20px;
        justify-content: center;
    }
    
    .right-menu a {
        font-size: 12px;
    }
    
    .hero-section-main {
        justify-content: center;
        text-align: center;
        padding: 30px 4% 50px !important;
        min-height: auto;
    }
    
    .hero-content {
        padding: 20px !important;
        margin: 0 !important;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 32px !important;
    }
    
    .hero-title span {
        font-size: 32px !important;
    }
    
    .hero-tagline {
        font-size: 14px !important;
    }
    
    .btn-primary {
        padding: 8px 20px !important;
        font-size: 14px !important;
    }
    
    .catalog-section {
        padding: 35px 4% 35px;
    }
    
    .catalog-title {
        font-size: 28px;
    }
    
    .catalog-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-name {
        font-size: 15px;
        min-height: auto;
    }
    
    .product-price,
    .product-price.discount-price {
        font-size: 18px;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .page-title,
    .admin-title {
        font-size: 28px;
    }
    
    .profile-container,
    .catalog-container,
    .cart-container,
    .contacts-container,
    .orders-container,
    .messages-container,
    .checkout-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .profile-grid,
    .contacts-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .profile-card,
    .info-section,
    .map-section,
    .about-card,
    .review-form-section {
        padding: 18px;
    }
    
    .card-title,
    .info-title,
    .map-title,
    .form-title,
    .reviews-title {
        font-size: 20px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .info-label {
        width: auto;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .tabs {
        justify-content: center;
        padding: 6px 10px 0;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 15px;
        overflow-x: auto;
    }
    
    .section-title {
        font-size: 17px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    table {
        font-size: 12px;
        min-width: 550px;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .btn {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .about-card h2 {
        font-size: 22px;
    }
    
    .about-card p {
        font-size: 14px;
    }
    
    .about-image-card img {
        height: 220px;
    }
    
    .features-section {
        padding: 25px 20px;
    }
    
    .features-title,
    .faq-title,
    .team-title {
        font-size: 26px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 20px;
    }
    
    .faq-section {
        padding: 25px 20px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    /* Корзина */
    .cart-header {
        display: none;
    }
    
    .cart-item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        position: relative;
        padding: 15px;
    }
    
    .cart-items {
        padding: 15px;
    }
    
    .product-info-cart {
        flex-direction: column;
        text-align: center;
    }
    
    .product-info-cart .product-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .item-price,
    .item-total {
        text-align: center;
        font-size: 16px;
    }
    
    .item-quantity {
        justify-content: center;
    }
    
    .remove-item {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .cart-summary {
        padding: 18px;
    }
    
    .summary-title {
        font-size: 20px;
    }
    
    /* Формы */
    .auth-container,
    .register-container {
        margin: 25px 15px;
        padding: 25px 20px;
    }
    
    .auth-title,
    .register-title {
        font-size: 26px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    /* Отзывы */
    .rating-summary {
        padding: 18px;
    }
    
    .rating-stars-big span {
        font-size: 28px;
    }
    
    .rating-number {
        font-size: 26px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .rating-input {
        gap: 6px;
        font-size: 28px;
    }
    
    /* Заказы и сообщения */
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 18px;
    }
    
    .order-body {
        padding: 15px 18px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Успешный заказ */
    .success-card {
        padding: 25px;
        margin: 0 15px;
    }
    
    .order-number span {
        font-size: 22px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn-main,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 4px;
    }
    
    /* Оформление заказа */
    .checkout-form,
    .order-summary {
        padding: 18px;
    }
    
    .payment-option {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .payment-icon {
        font-size: 22px;
    }
    
    .card-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Модальное окно */
    .modal-content {
        width: 92% !important;
        padding: 18px !important;
        margin: 0 10px;
    }
    
    .modal-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-composition {
        font-size: 13px;
    }
    
    /* Уведомления */
    .notification {
        top: auto !important;
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
        max-width: calc(100% - 30px);
        font-size: 12px;
        padding: 8px 18px;
    }
    
    /* Футер */
    footer {
        padding: 25px 20px 15px;
        margin-top: 35px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title,
    .hero-title span {
        font-size: 26px !important;
    }
    
    .catalog-title {
        font-size: 24px;
    }
    
    .page-title,
    .admin-title {
        font-size: 24px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .left-menu {
        gap: 8px;
    }
    
    .left-menu a {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .right-menu {
        gap: 15px;
    }
    
    .right-menu a {
        font-size: 11px;
    }
    
    .cart-icon {
        width: 22px;
        height: 22px;
    }
    
    .profile-icon {
        font-size: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .work-day {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .category-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 40px;
        padding: 6px;
        font-size: 14px;
    }
}