/* Header layout from the November 2026 desktop/mobile artwork. */
.kp-header > header {
    background: url("../image/svg/header_bg.svg") bottom 10px center/cover no-repeat,
                url("../image/header_pattern.png") bottom center/cover no-repeat #460041;
}
.kp-header .header_opt {
    visibility: visible;
    padding-left: 11px;
    position: relative;
    z-index: 10;
}
.kp-header__discount {
    position: relative;
    width: 168px;
    max-width: 100%;
    color: #fff;
    text-align: left;
}
.kp-header__discount > summary {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    border: 2px solid #fff;
    border-radius: 22px;
    background: #ab0060;
    color: #fff;
    font: 700 11px/18px Montserrat, sans-serif;
    list-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.kp-header__discount > summary::-webkit-details-marker { display: none; }
.kp-header__discount > summary::marker { content: ""; }
.kp-header__discount > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}
.kp-header__discount > summary svg {
    flex: 0 0 12px;
    transition: transform .15s ease;
}
.kp-header__discount[open] > summary svg { transform: rotate(180deg); }
.kp-header__discount-menu {
    position: absolute;
    top: calc(100% - 18px);
    left: 0;
    z-index: 0;
    width: 100%;
    margin: 0;
    padding: 25px 9px 10px;
    border-radius: 0 0 18px 18px;
    list-style: none;
    background: linear-gradient(110deg, #f00080, #a60065);
    box-shadow: 0 5px 10px rgba(86, 0, 62, .08);
    font: 400 10px/18px Montserrat, sans-serif;
    white-space: nowrap;
}
.kp-header .header_messenger { padding-left: 22px; }
.kp-header .header_messenger > .header_messenger_link {
    margin-left: -22px;
    gap: 6px;
    line-height: 1;
}
.kp-header .header_messenger_link a {
    display: inline-flex;
    margin: 0;
    flex: 0 0 21px;
}
.kp-header .header_messenger_link a svg { width: 21px; height: 21px; }
.kp-header .header_messenger_link span { margin-left: 18px; }
.kp-header .header_cart_icon svg { visibility: hidden; }
.kp-header .header_cart_icon::after {
    position: absolute;
    width: 23px;
    height: 26px;
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l1.5 16a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2L5 8Z'/%3E%3Cpath d='M8 10V6a4 4 0 0 1 8 0v4M9 17l2 2 4-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (min-width: 769px) and (max-width: 1217px) {
    .kp-header .header {
        grid-template-columns: minmax(140px, 1fr) 110px 168px 190px 85px;
        gap: 20px;
        padding: 20px 0;
    }
    .kp-header .header > div {
        grid-column: auto;
        grid-row: 1;
        padding-top: 0;
        margin-top: 0;
    }
    .kp-header .header > .kp-header__slogan { display: none; }
    .kp-header .header > .header_opt { padding-left: 0; }
    .kp-header .header_logo img { width: 110px; height: auto; }
    .kp-header .header_messenger > .icon-phone { white-space: nowrap; font-size: 14px; }
    .kp-header .header_messenger_link span { display: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
    .kp-header .header {
        grid-template-columns: minmax(110px, 1fr) 92px 150px 164px 70px;
        column-gap: 12px;
    }
    .kp-header .header_logo img { width: 92px; }
    .kp-header__discount > summary { padding-inline: 8px; font-size: 10px; }
    .kp-header__discount-menu { padding-inline: 8px; font-size: 9px; }
}
@media (max-width: 768px) {
    .kp-header > header { padding-bottom: 10px; }
    .kp-header .header {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 48px 56px auto;
        gap: 0;
        align-items: start;
        padding: 20px 0 4px;
    }
    .kp-header .header > .header_opt {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding: 6px 8px 0 0;
        margin: 0;
    }
    .kp-header__discount { width: 162px; }
    .kp-header__discount > summary {
        min-height: 34px;
        padding: 6px 8px;
        gap: 8px;
        font-size: 11px;
        line-height: 18px;
    }
    .kp-header__discount-menu {
        padding: 25px 10px 10px;
        font-size: 9px;
        line-height: 14px;
    }
    .kp-header .header > .header_messenger {
        grid-column: 2;
        grid-row: 1;
        padding: 0 10px 0 20px;
        margin: 0;
        min-width: 0;
        text-align: right;
    }
    .kp-header .header_messenger > .icon-phone {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }
    .kp-header .header_messenger .icon-phone::before { top: 3px; }
    .kp-header .header_messenger > .header_messenger_link {
        justify-content: flex-end;
        margin-left: 0;
        height: 21px;
    }
    .kp-header .header > .kp-header__search {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        padding-top: 7px;
        margin: 0 0 10px;
    }
    .kp-header .header > .header_logo {
        grid-column: 1 / -1;
        grid-row: 3;
        line-height: 0;
        padding: 0;
        margin: 0;
    }
    .kp-header .header_logo img { width: 92px; height: auto; }
    .kp-header .header > .kp-header__slogan,
    .kp-header .header > #cart,
    .kp-header .header_messenger_link span,
    .kp-header .topline_links { display: none; }
}
@media (max-width: 359px) {
    .kp-header .header > .header_messenger { padding-right: 0; }
    .kp-header .header_messenger > .icon-phone { font-size: 12px; }
    .kp-header__discount > summary { font-size: 10px; gap: 5px; padding-inline: 5px; }
    .kp-header__discount-menu { padding-inline: 7px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .kp-header__discount > summary svg { transition: none; }
}
