:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F9F7F4;
    --accent-beige: #F5F1EB;
    --accent-terracotta: #C76B5D;
    --accent-blue: #5D7C9E;
    --accent-olive: #8A9B6E;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-light: #E8E2D9;
    --success: #4CAF50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-terracotta);
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 16px;
    background-color: var(--secondary-bg);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 0 2px rgba(199, 107, 93, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.action-btn:hover {
    color: var(--accent-terracotta);
}

.action-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-terracotta);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bottom {
    padding: 15px 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-terracotta);
}

.nav-links a.active {
    color: var(--accent-terracotta);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-terracotta);
}

.promo-bar {
    background-color: var(--accent-olive);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 20px 0;
    background-color: var(--secondary-bg);
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumbs-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs-item a:hover {
    color: var(--accent-terracotta);
}

.breadcrumbs-item:last-child a {
    color: var(--accent-terracotta);
    font-weight: 500;
}

/* Основной контейнер корзины */
.cart-page {
    padding: 40px 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 32px;
    margin: 0;
}

.cart-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.items-count {
    color: var(--text-gray);
    font-size: 14px;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

/* Контент корзины */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 60px;
}

/* Список товаров */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.cart-item:hover {
    border-color: var(--accent-terracotta);
    box-shadow: var(--shadow);
}

.item-image {
    width: 100px;
    height: 100px;
    background-color: var(--accent-beige);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.item-category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.item-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.item-price .old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: var(--secondary-bg);
}

.quantity {
    padding: 0 15px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 16px;
}

.remove-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Боковая панель с итогами */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-summary {
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.discount {
    color: var(--success);
    font-weight: 600;
}

.free-shipping {
    color: var(--success);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.total-amount {
    color: var(--accent-terracotta);
    font-size: 24px;
}

.promo-code {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.promo-code input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
}

.promo-code input:focus {
    outline: none;
    border-color: var(--accent-terracotta);
}

.apply-promo {
    padding: 12px 20px;
    background: none;
    border: 1px solid var(--accent-terracotta);
    border-radius: 8px;
    color: var(--accent-terracotta);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.apply-promo:hover {
    background-color: var(--accent-terracotta);
    color: white;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--accent-terracotta);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

.checkout-btn:hover {
    background-color: #b55a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 107, 93, 0.3);
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}

.security-icon {
    font-size: 14px;
}

.shipping-info,
.return-info {
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
}

.shipping-info h4,
.return-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.shipping-info p,
.return-info p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* Рекомендуемые товары */
.recommended-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-terracotta);
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background-color: var(--primary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 200px;
    background-color: var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 48px;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #FFC107;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.add-to-cart {
    background-color: var(--accent-terracotta);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    margin-right: 10px;
}

.add-to-cart:hover {
    background-color: #b55a4d;
}

.wishlist-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    border-color: var(--accent-terracotta);
    color: var(--accent-terracotta);
}

/* Футер */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

.footer-desc {
    color: #CCCCCC;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--accent-terracotta);
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-terracotta);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .order-summary {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 0;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .action-btn span:last-child {
        display: none;
    }
    
    .nav-links {
        gap: 15px;
        justify-content: center;
    }
    
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-stats {
        align-items: flex-start;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .item-controls {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo-code {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    
    .cart-item {
        padding: 20px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .item-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .security-notice {
        text-align: left;
        justify-content: flex-start;
    }
}





/* Стили для ссылок действий в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px;
    border-radius: 8px;
}

.action-link:hover {
    color: var(--accent-terracotta);
    background-color: var(--accent-beige);
}

.action-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-terracotta);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для ссылок на товары в карточках */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-link:hover {
    color: inherit;
    text-decoration: none;
}

.product-card .product-info {
    padding: 20px;
}

/* Медиа-запросы для ссылок */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }
    
    .action-link {
        padding: 6px;
        font-size: 11px;
    }
    
    .action-icon {
        font-size: 18px;
        margin-bottom: 3px;
    }
}

@media (max-width: 360px) {
    .header-actions .action-link span:last-child {
        display: none;
    }
    
    .header-actions .action-link {
        padding: 8px;
    }
}