* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B7355;
    --primary-dark: #6d5c46;
    --secondary-color: #333;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Palatino', 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    color: var(--text-dark);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    min-height: 44px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-height: 36px;
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero.jpg') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
    text-align: center;
}

.hero-title .brand-name {
    display: block;
    font-size: 3.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-title .brand-subtitle {
    display: block;
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

/* Удаляем старые стили Hero, которые могут конфликтовать */
.hero {
    display: none; /* Скрываем старый стиль Hero */
}

/* Мобильная адаптация для Hero в магазине */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh !important;
        min-height: 500px !important;
        margin-top: 60px !important;
    }
    
    .hero-content {
        padding: 25px 20px !important;
        margin: 0 15px !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-title .brand-name {
        font-size: 2.8rem !important;
    }
    
    .hero-title .brand-subtitle {
        font-size: 1.4rem !important;
        padding-top: 0.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh !important;
        min-height: 400px !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-title .brand-name {
        font-size: 2.2rem !important;
    }
    
    .hero-title .brand-subtitle {
        font-size: 1.2rem !important;
        padding-top: 0.5rem !important;
    }
    
    .hero-content {
        padding: 20px 15px !important;
        margin: 0 10px !important;
    }
}

/* Для динамической загрузки фона */
.hero-background {
    transition: background-image 0.5s ease;
}

/* Фолбэк если фон не загрузился */
.hero-background:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* Обновленные стили для заголовка каталога */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Каталог и фильтры */
.catalog {
    padding: 80px 0;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffd700;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* Убираем быстрый осмотр */
.product-actions .btn-outline {
    display: none;
}

.btn-wishlist {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: #e74c3c;
}

/* Обновленные стили для бейджей */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.product-badge.hit {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

.product-badge.new {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    animation: badgePulse 3s ease-in-out infinite;
}

.product-badge.sale {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.product-badge.exclusive {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.product-badge.premium {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-card:hover .product-badge {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Анимация для бейджей */
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Эффект свечения для премиум бейджей */
.product-badge.premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Ссылка на всю карточку */
.product-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.page-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--white);
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-images {
    position: relative;
}

.modal-image {
    display: none;
}

.modal-image.active {
    display: block;
}

.modal-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-info h2 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features,
.product-specifications {
    margin-bottom: 1.5rem;
}

.product-features h4,
.product-specifications h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-key {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
    padding: 1rem 1.5rem;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1400;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #27ae60;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification.success .notification-content i {
    color: #27ae60;
}

.notification.error .notification-content i {
    color: #e74c3c;
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: #f8f8f8;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    text-align: left;
}

.footer-section p {
    line-height: 1.6;
    text-align: left;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    text-align: left;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
    justify-content: flex-start;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    line-height: 1;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 1rem 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .catalog-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .modal-image img {
        height: 300px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        width: 100%;
    }
    
    .main-nav.active ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Новые стили для корзины */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-overlay.active .cart-sidebar {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--white);
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
    opacity: 0.5;
}

.cart-empty h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.cart-empty p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.cart-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border-radius: 25px;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.quantity-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-size: 0.8rem;
}

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

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-btn:disabled:hover {
    background: none;
    color: var(--text-light);
    transform: none;
}

.quantity-input {
    width: 40px;
    border: none;
    text-align: center;
    background: none;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: auto;
    font-size: 0.9rem;
}

.remove-item:hover {
    background: #e74c3c;
    color: var(--white);
    transform: scale(1.1);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--white);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.5rem 0;
}

.cart-total-amount {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-checkout {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-continue {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-continue:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Обновленные стили для иконки корзины в шапке */
.cart-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    width: 44px;
    height: 44px;
}

.cart-icon:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-icon i {
    font-size: 1.3rem;
    transition: var(--transition);
}

.cart-icon:hover i {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-count.show {
    display: flex;
}

/* Альтернативный вариант с более современным дизайном */
.cart-icon.modern {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.cart-icon.modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.05);
}

.cart-icon.modern .cart-count {
    background: #e74c3c;
    border: 2px solid var(--primary-color);
}

/* Еще один вариант - минималистичный */
.cart-icon.minimal {
    background: transparent;
    border: 2px solid var(--border-color);
    position: relative;
    padding: 10px;
}

.cart-icon.minimal:hover {
    border-color: var(--primary-color);
    background: transparent;
    transform: translateY(-2px);
}

.cart-icon.minimal .cart-count {
    background: var(--primary-color);
    border: 2px solid var(--white);
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

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

/* Анимация добавления в корзину */
@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-icon.animate i {
    animation: cartBounce 0.5s ease;
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-sidebar {
        max-width: 100%;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }
    
    .cart-item-actions {
        justify-content: center;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: 1rem;
    }
    
    .cart-title {
        font-size: 1.3rem;
    }
    
    .cart-items {
        padding: 0.5rem;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
    
    .cart-footer {
        padding: 1rem;
    }
    
    .cart-total {
        font-size: 1.2rem;
    }
    
    .cart-total-amount {
        font-size: 1.3rem;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border-radius: 25px;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.quantity-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-input {
    width: 30px;
    border: none;
    text-align: center;
    background: none;
    font-weight: 600;
    color: var(--text-dark);
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: auto;
}

.remove-item:hover {
    background: #e74c3c;
    color: var(--white);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-total-amount {
    color: var(--primary-color);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-checkout {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-continue-shopping {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-continue-shopping:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Адаптивность для корзины */
@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    .cart-item-actions {
        justify-content: center;
    }
}

/* Анимация добавления в корзину */
@keyframes addToCart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.cart-icon.animate {
    animation: addToCart 0.3s ease-in-out;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Стили для модального окна оформления заказа */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.checkout-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.checkout-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.checkout-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.checkout-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.checkout-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.checkout-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.checkout-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

/* Стили формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input:required:invalid {
    border-color: #ff6b6b;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Сводка заказа */
.order-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.order-summary h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.checkout-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.item-name {
    flex: 1;
    font-size: 0.9rem;
}

.item-quantity {
    margin: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.item-price {
    font-weight: 600;
    color: #333;
}

.order-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    text-align: right;
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .checkout-modal.active {
        padding: 1rem 0.5rem;
        align-items: stretch;
    }
    
    .checkout-modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .checkout-modal-header,
    .checkout-modal-body,
    .checkout-modal-footer {
        padding: 1rem;
    }
    
    .checkout-modal-footer {
        flex-direction: column-reverse;
    }
    
    .checkout-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .item-quantity {
        margin: 0;
    }
}

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.brand-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .catalog-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .catalog-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .catalog-filters::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 100% !important;
        height: 120px !important;
        margin-bottom: 1rem;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
    
    .quantity-controls {
        margin-right: auto;
    }
    
    /* Мобильные формы */
    .checkout-modal-content {
        max-width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }
    
    .checkout-modal-body {
        max-height: 70vh !important;
        padding: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px !important; /* Предотвращает масштабирование в iOS */
    }
}

/* Исправление для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .btn, 
    .filter-btn, 
    .page-btn,
    .cart-icon,
    .quantity-btn {
        min-height: 44px !important; /* Минимальный размер для касания пальцем */
        min-width: 44px !important;
    }
    
    .main-nav a,
    .footer-section a {
        padding: 12px 0 !important;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 20px !important;
        margin-top: 40px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h3, 
    .footer-section h4,
    .footer-section p {
        text-align: center !important;
    }
}