* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f6f8;
    color: #333;
    padding-top: 70px;
}

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

.header {
    background-color: #233142;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #b0b8c4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff;
}

.header-cart {
    background-color: #f38120;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.header-cart:hover {
    background-color: #d96f14;
}

.hero {
    position: relative;
    height: 450px;
    background-image: url('https://images.unsplash.com/photo-1442512595331-e89e73853f31?auto=format&fit=crop&w=1800&q=85');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    color: #e0e0e0;
}

.badge {
    background-color: #f38120;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
    display: inline-block;
}

.menu-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    height: 40px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.price-val {
    color: #2ecc71;
    font-weight: bold;
    font-size: 18px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.btn-buy {
    width: 100%;
    background-color: #f38120;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: #d96f14;
}

.btn-buy:focus-visible,
.btn-remove:focus-visible,
.nav-link:focus-visible,
.header-cart:focus-visible {
    outline: 3px solid #233142;
    outline-offset: 3px;
}

.cart-section {
    padding: 20px 0 40px 0;
}

.cart-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cart-title {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f4f6f8;
    padding-bottom: 10px;
}

.cart-empty {
    color: #888;
    font-style: italic;
    padding: 10px 0;
}

.cart-items-list {
    list-style: none;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-name {
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
}

.cart-total {
    margin-top: 20px;
    text-align: right;
    font-size: 20px;
    font-weight: bold;
}

#cart-total-sum {
    color: #233142;
}

.contacts-section {
    padding: 40px 0;
}

.contacts-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contacts-wrapper h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.contacts-wrapper p {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer {
    background-color: #233142;
    color: #b0b8c4;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    margin-top: 40px;
}

@media (max-width: 760px) {
    body {
        padding-top: 112px;
    }

    .header-container {
        height: auto;
        min-height: 112px;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 21px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .header-cart {
        padding: 8px 12px;
    }

    .hero {
        height: 360px;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    .cart-wrapper,
    .contacts-wrapper {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 10px;
        font-size: 14px;
    }

    .hero {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cart-item {
        align-items: flex-start;
        gap: 10px;
    }

    .cart-item-controls {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
}

/* Оновлений інтерфейс */
body { font-family: 'Manrope', 'Segoe UI', sans-serif; }
* { font-family: inherit; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; }
.icon-sprite symbol, .icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.logo { text-decoration: none; }
.logo-mark { display: inline-flex; padding: 6px; border-radius: 8px; background: #f38120; color: #fff; }
.header-cart { display: inline-flex; align-items: center; gap: 8px; }
.cart-count { background: #fff; color: #f38120; border-radius: 999px; min-width: 22px; padding: 0 6px; text-align: center; font-size: 13px; line-height: 22px; }
.hero { height: 520px; text-align: left; }
.hero-content p { max-width: 560px; margin-bottom: 28px; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background-color .3s; }
.btn-primary { background: #f38120; color: #fff; }
.btn-primary:hover { background: #d96f14; }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.features { margin-top: -50px; position: relative; z-index: 2; }
.features-grid, .contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature, .contact-item { display: flex; gap: 14px; align-items: center; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.feature h3, .contact-item h3 { font-size: 16px; margin-bottom: 2px; }
.feature p, .contact-item p { color: #666; font-size: 14px; margin: 0 !important; }
.contact-item a { color: inherit; }
.feature-icon { display: inline-flex; padding: 12px; border-radius: 10px; background: #fdeedf; color: #f38120; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-title { margin-bottom: 8px; }
.section-subtitle { color: #666; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn { border: 1px solid #d6dbe1; background: #fff; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: #233142; }
.filter-btn[aria-pressed="true"] { background: #233142; border-color: #233142; color: #fff; }
.menu-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; }
.product-media { position: relative; }
.product-img { height: 180px; display: block; }
.product-tag { position: absolute; top: 12px; left: 12px; background: rgba(35,49,66,.85); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-desc { height: auto; flex: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-price { margin: 0; }
.btn-buy { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 14px; }
.cart-section .cart-wrapper, #cart-section { position: sticky; top: 90px; }
.cart-title { display: flex; align-items: center; gap: 8px; }
.cart-empty { text-align: center; font-style: normal; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 0; }
.cart-empty-icon { color: #b0b8c4; }
.cart-empty-icon .icon { width: 40px; height: 40px; }
.cart-empty span:last-child { font-size: 13px; }
.btn-remove { display: inline-flex; padding: 6px; border-radius: 6px; }
.btn-remove:hover { background: #fdecea; }
.cart-total { display: flex; justify-content: space-between; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) {
    .menu-layout { grid-template-columns: 1fr; }
    #cart-section { position: static; }
}
@media (max-width: 480px) {
    .header-cart-label { display: none; }
    .features { margin-top: 20px; }
}
