
/* =========================================
   HEADER — MISHKIN BANT
========================================= */

.header {
    position: relative;
    z-index: 20;
    height: 112px;
    background: #faf5ed;
    border-bottom: 1px solid #ead9c9;
}

/* Main layout */

.header-inner {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left navigation */

.header-left {
    display: flex;
    align-items: center;
    gap: 42px;
    height: 100%;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.navigation a {
    color: #382b27;
    font-family: var(--font-heading);
    font-size: 15px;
    white-space: nowrap;
    transition: color .2s;
}

.navigation a:hover {
    color: #8c2025;
}

/* Hamburger */

.mobile-menu {
    width: 28px;
    height: 30px;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 1.5px;
    background: #382b27;
}

/* Center logo */

.header-logo {
    position: absolute;
    z-index: 3;
    top: 5px;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translateX(-50%);
    display: block;
}

.header-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(70, 35, 25, .12));
}

/* Right actions */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 27px;
    min-width: 150px;
}

.header-action {
    position: relative;
    width: 32px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #382b27;
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}

.header-action:hover {
    color: #8c2025;
}

.search-button {
    font-size: 32px;
}

.profile-button {
    font-size: 30px;
}

.cart-button {
    font-size: 29px;
}

.cart-count {
    position: absolute;
    top: -3px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #8c2025;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
}

/* Decorative scalloped bottom */

.header::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 13px;
    pointer-events: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M-12 1 Q0 13 12 1 T36 1 T60 1' fill='none' stroke='%23faf5ed' stroke-width='9'/%3E%3Cpath d='M-12 1 Q0 13 12 1 T36 1 T60 1' fill='none' stroke='%23a52a2d' stroke-width='1.2' stroke-dasharray='3 3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: top left;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {
    .header-inner {
        padding: 0 22px;
    }

    .header-left {
        gap: 22px;
    }

    .navigation {
        gap: 20px;
    }

    .navigation a {
        font-size: 13px;
    }

    .header-logo {
        width: 125px;
        height: 125px;
        top: 10px;
    }

    .header-actions {
        gap: 17px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 76px;
    }

    .header-inner {
        padding: 0 18px;
    }

    .header-left {
        gap: 0;
    }

    .navigation {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .header-logo {
        top: 4px;
        width: 100px;
        height: 100px;
    }

    .header-actions {
        min-width: 0;
        gap: 13px;
    }

    .header-action {
        width: 27px;
        font-size: 23px;
    }

    .search-button {
        font-size: 27px;
    }

    .profile-button {
        display: none;
    }

    .cart-button {
        font-size: 25px;
    }

    .cart-count {
        top: 0;
        right: -5px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
}

/* HEADER ICONS — UNIFIED STYLE */

.header-action svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-button,
.profile-button {
    color: #a99b90;
    opacity: .75;
}

.search-button:hover,
.profile-button:hover {
    color: #a99b90;
    opacity: 1;
}

.search-button,
.profile-button {
    font-size: 0;
}

/* ================= MOBILE BURGER MENU ================= */

.mobile-menu {
    position: relative;
    z-index: 110;
}

.mobile-menu span {
    transition: transform .25s ease, opacity .2s ease;
}

/* Бургер превращается в крестик */
.mobile-menu.is-active span:first-child {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.is-active span:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Выпадающее меню */
@media (max-width: 768px) {
    .navigation {
        display: flex;
        position: absolute;
        z-index: 100;
        top: 76px;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 12px 24px 22px;
        background: #F7F1E8;
        border-top: 1px solid rgba(56, 43, 39, .08);
        box-shadow: 0 12px 24px rgba(56, 43, 39, .10);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .25s ease,
                    transform .25s ease,
                    visibility .25s ease;
    }

    .navigation.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navigation a {
        display: block;
        padding: 15px 4px;
        font-size: 16px;
        border-bottom: 1px solid rgba(56, 43, 39, .10);
    }

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

/* Desktop: hide burger, show navigation */
@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }

    .navigation {
        display: flex;
    }
}