/* === Section: Header Main === */
.header-main .container{
    margin: 0 auto;
    padding: 1.6rem 1rem;
    display: flex;
    justify-content: center;
}

.header-main .block-search {
    position: absolute;
    width: 300px;;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
}

.header-main .block-actions {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}
.header-main .block-actions .banners-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header-main .block-actions .banner-item {
    position: relative;
}
.header-main .block-actions .banner-item:first-child {
    min-height: 38px;
}
.header-main .block-actions .banner-link {
    display: flex;
    align-items: start;
    gap: .5rem;
    color: var(--color-red);
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1.15;
}
.header-main .block-actions .banner-item:first-child .banner-link {
    align-items: flex-start;
    gap: .5rem;
    line-height: 1;
}
.header-main .block-actions .banner-item:first-child .banner-link img {
    margin-top: 4px;
}
.header-main .block-actions .banner-item:first-child .banner-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap;
}
.header-main .block-actions .banner-item:nth-child(2) .banner-link {
    align-items: center;
    min-height: 38px;
}
.header-main .block-actions .banner-item:nth-child(2) .banner-title {
    font-weight: 600 !important;
    line-height: 1 !important;
}
.header-main .block-actions .banner-link img {
    width: 30px;
    height: 30px;
    filter: brightness(0) saturate(100%) invert(17%) sepia(96%) saturate(4335%) hue-rotate(346deg) brightness(99%) contrast(104%);
}
.header-main .block-actions .banner-caption {
    position: absolute;
    left: calc(30px + .5rem);
    right: auto;
    bottom: 1px;
    font-size: 14px;
    line-height: 1;
    font-weight: 400 !important;
    letter-spacing: .6px;
    white-space: nowrap;
}
.header-main .block-actions .banner-caption p {
    margin: 0;
}
.header-main .block-brand img {
    max-width: 190px;
}

.header-search {
    grid-area: search;
    display: flex;
    align-items: center;
    width: min(420px, 100%);
    height: 44px;
    padding: 0 16px;
    background: #e6e6e6;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-search input {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: #111;
    font-size: 16px;
    font-weight: 500;
}

.header-search input::placeholder {
    color: #666;
    font-weight: 500;
}
@media (max-width: 640px) {
    .header-search {
        height: 42px;
    }
    .header-search input {
        text-align: center;
    }
}

.header-search__btn {
    border: none;
    background: none;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-search__btn svg {
    width: 24px;
    height: 24px;
}

.header-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 6px;
    text-decoration: none;
    color: #0a0e18;
}

.header-brand__name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-brand__name span {
    color: var(--header-gold);
}

.header-brand__tagline {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 500;
}

.header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.header-hotline {
    display: inline-flex;
    align-items: center;
    padding-right: 0;
    border-right: none;
}

.header-hotline__icon {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: transparent;
    color: #e60012;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.header-hotline__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.header-hotline__number {
    font-weight: 700;
    font-size: 16px;
}

.header-hotline__sub {
    font-size: 14px;
    color: #666;
}

.header-cart {
    display: inline-flex;
    align-items: center;
    color: #e60012;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    border-left: 1px solid var(--color-gray-300);
    padding-left: 14px;
    margin-left: 6px;
}

.header-cart__icon {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: transparent;
    color: #e60012;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.header-cart__label {
    font-size: 14px;
    color: #444;
}
@media (max-width: 1200px) {
    .header-main .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 1rem;
        row-gap: 0.75rem;
    }
    .header-main .block-search {
        position: static;
        transform: none;
        display: block;
        width: 100%;
        order: 3;
        grid-column: 1 / -1;
    }
    .header-main .block-brand {
        order: 1;
        grid-column: 2;
        display: flex;
        justify-content: center;
        position: static;
        transform: none;
    }
    .header-main .block-actions {
        position: static;
        transform: none;
        order: 2;
        grid-column: 3;
        justify-self: end;
    }
    .header-search {
        width: 100%;
        max-width: 100%;
    }
    .header-main .block-brand img {
        max-width: 150px;
    }
    .header-main .block-actions .banner-item:not(:last-child) {
        display: none;
    }
    .header-main .block-actions .banner-link span,
    .header-main .block-actions .banner-caption {
        display: none;
    }
}
@media (max-width: 992px) {
    .header-main .block-actions .banner-link span,
    .header-main .block-actions .banner-caption {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-main .container {
        grid-template-columns: 56px minmax(120px, 1fr) 44px;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 12px;
        align-items: center;
        padding: 16px 16px 14px;
    }

    .header-main .block-brand {
        grid-column: 2;
        justify-self: center;
    }

    .header-main .block-brand img {
        max-width: 132px;
    }

    .header-main .block-actions {
        grid-column: 3;
        justify-self: end;
        width: 44px;
    }

    .header-main .block-actions .banners-list {
        justify-content: flex-end;
        gap: 0;
    }

    .header-main .block-actions .banner-item:first-child {
        display: none;
    }

    .header-main .block-actions .banner-item:nth-child(2) {
        display: block;
    }

    .header-main .block-actions .banner-link {
        align-items: center;
        gap: 6px;
        color: #000;
        text-transform: none;
        letter-spacing: 0;
    }

    .header-main .block-actions .banner-link img {
        width: 36px;
        height: 36px;
    }

    .header-main .block-actions .banner-link span {
        display: none;
        color: #000;
        font-size: 14px;
        line-height: 1.05;
        font-weight: 700;
        white-space: nowrap;
    }

    .header-main .block-actions .banner-caption {
        position: static;
        display: none;
        margin-left: 44px;
        margin-top: -7px;
        color: #000;
        font-size: 14px;
        line-height: 1.1;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .header-main .block-search {
        grid-column: 1 / -1;
    }

    .header-search {
        position: relative;
        height: 42px;
        padding: 0 16px 0 52px;
        background: #e6e7e9;
        border: 0;
        border-radius: 999px;
        box-shadow: none;
    }

    .header-search::before {
        content: '';
        position: absolute;
        left: 16px;
        top: 50%;
        width: 26px;
        height: 26px;
        transform: translateY(-50%);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 3a6.5 6.5 0 0 1 5.17 10.44l5.44 5.45a1 1 0 0 1-1.42 1.41l-5.44-5.44A6.5 6.5 0 1 1 9.5 3Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E");
    }

    .header-search input {
        text-align: left;
        color: #555;
        font-size: 16px;
        line-height: 1.25;
        font-weight: 400;
    }

    .header-search input::placeholder {
        color: #666;
        font-weight: 400;
    }
}
