.b2b-header {
    --ink: #171716;
    --paper: #f4f0e8;
    --coral: #ed4b2f;
    --line: #cfc8bc;
    --muted: #6f6b64;
    --white: #fffdf8;
}

.b2b-header,
.b2b-header *,
.b2b-header *::before,
.b2b-header *::after {
    box-sizing: border-box;
}

.b2b-header {
    font-family: "DM Sans", sans-serif;
    line-height: normal;
}

/* =========================================================
   HEADER
========================================================= */

.b2b-header {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 99999;
}

.b2b-header .b2b-header-shell {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    overflow: visible;

    border: 1px solid var(--ink);

    background: var(--paper);

    box-shadow:
        0 18px 45px rgba(0,0,0,.18);
}


/* =========================================================
   ÜST BAR
========================================================= */

.b2b-header .b2b-utility {
    width: 100%;

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

    min-height: 40px;

    padding: 10px 32px;

    background: var(--ink);

    color: var(--paper);

    border-bottom: 1px solid #3a3935;
}

.b2b-header .b2b-utility p {
    margin: 0;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .13em;
}

.b2b-header .b2b-utility a {
    color: var(--paper);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .11em;

    text-decoration: none;

    transition: color .16s ease;
}

.b2b-header .b2b-utility a:hover {
    color: var(--coral);
}


/* =========================================================
   ANA SATIR
========================================================= */

.b2b-header .b2b-main {
    width: 100%;

    min-height: 92px;

    display: flex;
    align-items: center;

    gap: 32px;

    padding: 16px 32px;
}


/* =========================================================
   LOGO
========================================================= */

.b2b-header .b2b-logo {
    flex-shrink: 0;

    display: block;

    color: var(--ink);

    text-decoration: none;
}

.b2b-header .b2b-logo-title {
    display: block;

    font-family: "Fraunces", serif;

    font-size: 32px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -.06em;
}

.b2b-header .b2b-logo-subtitle {
    display: block;

    margin-top: 5px;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .17em;
}


/* =========================================================
   ARAMA
========================================================= */

.b2b-header .b2b-search {
    position: relative;

    width: 100%;

    max-width: 800px;

    margin: 0 auto;
}

.b2b-header .b2b-search svg {
    position: absolute;

    left: 17px;
    top: 50%;

    width: 19px;
    height: 19px;

    transform: translateY(-50%);

    color: var(--muted);

    pointer-events: none;
}

.b2b-header .b2b-search input {
    width: 100%;

    height: 52px;

    padding: 0 120px 0 50px;

    border: 1px solid #aaa397;

    border-radius: 0;

    outline: none;

    background: var(--white);

    color: var(--ink);

    font-size: 14px;

    font-family: "DM Sans", sans-serif;
}

.b2b-header .b2b-search input::placeholder {
    color: var(--muted);
}

.b2b-header .b2b-search input:focus {
    outline: 2px solid var(--coral);

    outline-offset: 2px;
}

.b2b-header .b2b-search button {
    position: absolute;

    right: 6px;

    top: 6px;

    bottom: 6px;

    padding: 0 20px;

    border: 0;

    border-radius: 0;

    background: var(--coral);

    color: #fff;

    cursor: pointer;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .1em;

    transition:
        background .16s ease,
        transform .16s ease;
}

.b2b-header .b2b-search button:hover {
    background: var(--ink);

    transform: translateY(-1px);
}


/* =========================================================
   SAĞ BUTONLAR
========================================================= */

.b2b-header .b2b-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-left: auto;

    flex-shrink: 0;
}

.b2b-header .b2b-icon-button {
    position: relative;

    width: 44px;
    height: 44px;

    min-width: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--ink);

    border-radius: 50%;

    background: transparent;

    color: var(--ink);

    cursor: pointer;

    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.b2b-header .b2b-icon-button:hover {
    background: var(--ink);

    color: var(--paper);

    transform: translateY(-1px);
}

.b2b-header .b2b-icon-button svg {
    width: 19px;
    height: 19px;

    stroke: currentColor;

    fill: none;

    stroke-width: 2;
}

.b2b-header .b2b-cart-count {
    position: absolute;

    right: -4px;
    top: -4px;

    min-width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    padding: 0 4px;

    border-radius: 50%;

    background: var(--coral);

    color: #fff;

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   NAV
========================================================= */

.b2b-header .b2b-nav-wrapper {
    position: relative;

    border-top: 1px solid var(--line);
}

.b2b-header .b2b-nav {
    width: 100%;

    min-height: 62px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 32px;
}

.b2b-header .b2b-nav-left {
    display: flex;

    align-items: center;

    gap: 4px;
}

.b2b-header .b2b-nav button,
.b2b-header .b2b-nav a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    min-height: 40px;

    padding: 8px 16px;

    border: 0;

    background: transparent;

    color: var(--ink);

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .16s ease,
        background .16s ease;
}

.b2b-header .b2b-nav a:hover,
.b2b-header .b2b-nav button:hover {
    color: var(--coral);
}

.b2b-header .b2b-category-button {
    border-right: 1px solid var(--line) !important;

    padding-right: 24px !important;

    font-weight: 700 !important;
}

.b2b-header .b2b-quote {
    font-weight: 700 !important;
}


/* =========================================================
   AÇILIR PANELLER
========================================================= */

.b2b-header .b2b-panel {
    visibility: hidden;

    opacity: 0;

    transform: translateY(-7px);

    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.b2b-header .b2b-panel.open {
    visibility: visible;

    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}


/* =========================================================
   KATEGORİ PANELİ
========================================================= */

.b2b-header .b2b-category-panel {
    position: absolute;
    left: 32px;
    width: 340px;
    max-width: calc(100% - 64px);
    top: 100%;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    max-height: var(--aviz-category-max-height, min(640px, calc(100dvh - 220px)));
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(0,0,0,.1);
}

.b2b-header .b2b-category-chevron {
    transition: transform .18s ease;
}

.b2b-header .b2b-category-button[aria-expanded="true"] {
    color: var(--coral);
}

.b2b-header .b2b-category-button[aria-expanded="true"] .b2b-category-chevron {
    transform: rotate(180deg);
}

.b2b-header .b2b-category-search {
    flex-shrink: 0;
    padding: 12px 12px 0;
}

.b2b-header .b2b-category-search[hidden] {
    display: none;
}

.b2b-header .b2b-category-search input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #aaa397;
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
}

.b2b-header .b2b-mega-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--line) var(--white);
    padding: 8px;
}

.b2b-header .b2b-mega-grid,
.b2b-header .b2b-mega-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.b2b-header .b2b-mega-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2px;
}

.b2b-header .b2b-mega-grid li {
    min-width: 0;
}

.b2b-header .b2b-mega-grid a {
    display: block;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.b2b-header .b2b-mega-grid > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.b2b-header .b2b-category-panel .b2b-category-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
}

.b2b-header .b2b-category-label,
.aviz-mobile-categories .b2b-category-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.b2b-header .b2b-category-icon,
.aviz-mobile-categories .b2b-category-icon {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.b2b-header .b2b-category-name,
.aviz-mobile-categories .b2b-category-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.b2b-header .b2b-mega-grid > li > ul {
    padding-left: 16px;
}

.b2b-header .b2b-mega-grid ul ul {
    margin: 0 0 4px 5px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.b2b-header .b2b-mega-grid a:hover,
.b2b-header .b2b-mega-grid a:focus-visible {
    color: var(--coral);
    background: var(--paper);
}

.b2b-header .b2b-mega-grid a:focus-visible,
.b2b-header .b2b-mega-footer a:focus-visible,
.b2b-header .b2b-category-search input:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: -2px;
}

.b2b-header .b2b-mega-footer {
    display: flex;
    flex-shrink: 0;
    padding: 8px;
    border-top: 1px solid var(--line);
}

.b2b-header .b2b-mega-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.b2b-header .b2b-mega-footer a:hover,
.b2b-header .b2b-mega-footer a:focus-visible {
    color: var(--coral);
    background: var(--paper);
}

.b2b-header .b2b-mega-empty {
    margin: 0;
    padding: 12px;
    color: var(--muted);
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .b2b-header .b2b-panel,
    .b2b-header .b2b-category-chevron {
        transition: none;
    }
}

.b2b-header .b2b-category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 8px;
}

.b2b-header .b2b-category-card {
    min-height: 65px;

    display: flex;

    align-items: center;

    padding: 14px;

    border: 1px solid #ded7cb;

    color: var(--ink);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .16s ease,
        color .16s ease;
}

.b2b-header .b2b-category-card:hover {
    background: var(--ink);

    color: var(--paper);
}


/* =========================================================
   HESAP PANELİ
========================================================= */

.b2b-header .b2b-account-panel {
    position: absolute;

    right: 100px;

    top: -82px;

    z-index: 999999;

    width: 300px;

    padding: 20px;

    border: 1px solid var(--ink);

    background: var(--white);

    box-shadow:
        0 20px 40px rgba(0,0,0,.18);
}


/* =========================================================
   SEPET PANELİ
========================================================= */

.b2b-header .b2b-cart-panel {
    position: absolute;

    right: 32px;

    top: -82px;

    z-index: 999999;

    width: 320px;

    padding: 20px;

    border: 1px solid var(--ink);

    background: var(--white);

    box-shadow:
        0 20px 40px rgba(0,0,0,.18);
}

.b2b-header .b2b-panel-title {
    margin: 0;

    color: var(--ink);

    font-size: 14px;

    font-weight: 700;
}

.b2b-header .b2b-panel-text {
    margin: 8px 0 0;

    color: #45423d;

    font-size: 14px;

    line-height: 1.5;
}

.b2b-header .b2b-panel-link {
    display: inline-block;

    margin-top: 16px;

    padding-bottom: 4px;

    border-bottom: 1px solid currentColor;

    color: var(--ink);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;
}

.b2b-header .b2b-cart-link {
    display: block;

    width: 100%;

    margin-top: 16px;

    padding: 13px 16px;

    text-align: center;

    background: var(--coral);

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: background .16s ease;
}

.b2b-header .b2b-cart-link:hover {
    background: var(--ink);
}


/* =========================================================
   MOBİL MENÜ BUTONU
========================================================= */

.b2b-header .b2b-mobile-button {
    display: none;
}


/* =========================================================
   MOBİL MENÜ
========================================================= */

.b2b-header .b2b-mobile-menu {
    display: none;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    border-top: 1px solid var(--line);

    transition:
        max-height .3s ease,
        opacity .2s ease;
}

.b2b-header .b2b-mobile-menu.open {
    max-height: 700px;

    opacity: 1;
}

.b2b-header .b2b-mobile-inner {
    padding: 20px;
}

.b2b-header .b2b-mobile-link {
    display: block;

    padding: 14px 0;

    border-bottom: 1px solid var(--line);

    color: var(--ink);

    font-size: 16px;

    font-weight: 700;

    text-decoration: none;
}

.b2b-header .b2b-mobile-link:hover {
    color: var(--coral);
}

.b2b-header .b2b-mobile-support {
    display: inline-block;

    margin-top: 16px;

    padding: 13px 20px;

    background: var(--coral);

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 767px) {

    .b2b-header .b2b-utility {
        padding: 9px 14px;
    }

    .b2b-header .b2b-utility p {
        font-size: 9px;
    }

    .b2b-header .b2b-utility a {
        font-size: 9px;
    }

    .b2b-header .b2b-main {
        min-height: 72px;

        gap: 10px;

        padding: 12px 14px;
    }

    .b2b-header .b2b-logo-title {
        font-size: 25px;
    }

    .b2b-header .b2b-logo-subtitle {
        font-size: 7px;
    }

    .b2b-header .b2b-search {
        display: none;
    }

    .b2b-header .b2b-actions {
        margin-left: auto;

        gap: 6px;
    }

    .b2b-header #cartButton,
    .b2b-header .b2b-actions .aviz-mobile-quote {
        display: none;
    }

    .b2b-header .b2b-icon-button {
        width: 40px;
        height: 40px;

        min-width: 40px;
    }

    .b2b-header .b2b-nav {
        display: none;
    }

    .b2b-header .b2b-mobile-button {
        display: grid;
    }

    .b2b-header .b2b-mobile-menu {
        display: block;
    }

    .b2b-header .b2b-category-panel,
    .b2b-header .b2b-account-panel,
    .b2b-header .b2b-cart-panel {
        display: none !important;
    }

    .b2b-header .b2b-category-grid {
        grid-template-columns: repeat(2,1fr);
    }

}


/* =========================================================
   ÇOK KÜÇÜK TELEFON
========================================================= */

@media (max-width: 420px) {

    .b2b-header .b2b-logo-title {
        font-size: 22px;
    }

    .b2b-header .b2b-logo-subtitle {
        display: none;
    }

    .b2b-header .b2b-icon-button {
        width: 38px;
        height: 38px;

        min-width: 38px;
    }

}

/* WordPress compatibility without changing the supplied design. */
.b2b-header a { text-decoration: none; }
.b2b-header button, .b2b-header input { font-family: "DM Sans", sans-serif; line-height: normal; }
.b2b-header :focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.b2b-category-grid > .b2b-panel-text { grid-column: 1 / -1; }
.b2b-header .b2b-mobile-menu.open { max-height: none; overflow: visible; }
.b2b-mobile-link[type="button"] { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; cursor: pointer; line-height: normal; }
.b2b-header-links, .b2b-header-links .sub-menu { list-style: none; margin: 0; padding: 0; }
.b2b-nav-left > .b2b-header-links { display: flex; align-items: center; gap: 4px; }
.b2b-header-links li { position: relative; }
.b2b-header-links .sub-menu { position: absolute; left: 0; top: 100%; min-width: 200px; border: 1px solid var(--ink); background: var(--white); visibility: hidden; opacity: 0; }
.b2b-header-links li:hover > .sub-menu, .b2b-header-links li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.b2b-header-links .sub-menu .sub-menu { left: 100%; top: 0; }
.b2b-header-links .sub-menu a { display: block; }

/* Customizable branding and menus, including long copy and additional links. */
.b2b-header .b2b-logo { min-width: 0; max-width: 260px; flex-shrink: 1; overflow-wrap: anywhere; }
.b2b-header .b2b-logo-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; }
.b2b-header .b2b-search { min-width: 0; flex: 1; }
.b2b-header .b2b-utility { flex-wrap: wrap; gap: 8px 24px; }
.b2b-header .b2b-utility p { min-width: 0; overflow-wrap: anywhere; }
.b2b-header .b2b-utility-navigation { max-width: 100%; margin-left: auto; }
.b2b-header .b2b-utility-navigation > .b2b-support-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.b2b-header .b2b-support-links a { display: inline-block; overflow-wrap: anywhere; }
.b2b-header .b2b-utility-navigation .sub-menu { left: auto; right: 0; z-index: 1; background: var(--ink); border-color: #3a3935; }
.b2b-header .b2b-utility-navigation .sub-menu .sub-menu { right: 100%; top: 0; }
.b2b-header .b2b-utility-navigation .sub-menu a { display: block; padding: 10px 14px; }
.b2b-header .b2b-nav { flex-wrap: wrap; gap: 8px 16px; }
.b2b-header .b2b-nav-left { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.b2b-header .b2b-nav-left > .b2b-header-links { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.b2b-header .b2b-nav-left a { overflow-wrap: anywhere; }
.b2b-header .b2b-category-panel { top: 100%; }
@media (max-width: 767px) {
    .b2b-header .b2b-logo-image { max-height: 52px; }
    .b2b-header .b2b-mobile-support-navigation > .b2b-support-links { margin-top: 16px; }
    .b2b-mobile-menu .b2b-header-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 700; }
    .b2b-mobile-menu .b2b-header-links a:hover { color: var(--coral); }
    .b2b-mobile-menu .b2b-header-links .sub-menu { position: static; border: 0; padding-left: 16px; visibility: visible; opacity: 1; }
    .b2b-header .b2b-cart-panel { display: block !important; top: 0; right: 14px; width: min(320px, calc(100vw - 28px)); }
}

