/* ==========================================

   PICHET CORPORATE HEADER

   Responsive / Sticky / Navigation / Carousel

========================================== */

.corp-header,

.corp-header * {

    box-sizing: border-box;

}

.corp-header {

    --corp-green: #145821;

    --corp-dark: #083d22;

    --corp-border: #e4ebe5;

    --corp-soft-green: #f3f8f4;

    position: sticky;

    top: 0;

    z-index: 9999;

    width: 100%;

    background: #fff;

    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);

    font-family: "Prompt", sans-serif;

}

/* 01 CONTAINER */

.corp-header .corp-container {

    width: 100%;

    max-width: 1280px;

    margin: 0 auto;

    padding: 0 20px;

}

.corp-header .corp-header-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    min-height: 82px;

}

/* 02 LOGO */

.corp-header .corp-logo {

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

    gap: 10px;

    color: var(--corp-green);

    font-size: 24px;

    font-weight: 700;

    line-height: 1.25;

    text-decoration: none;

    white-space: nowrap;

}

.corp-header .corp-logo img {

    display: block;

    width: 52px;

    height: 52px;

    object-fit: contain;

    border-radius: 4px;

}

.corp-header .corp-logo-light {

    font-weight: 400;

}

/* 03 SEARCH */

.corp-header .corp-sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}

.corp-header .corp-header-search {

    display: flex;

    align-items: center;

    flex: 1 1 200px;

    min-width: 150px;

    max-width: 260px;

    height: 44px;

    margin: 0;

    border: 1px solid #d8e4dc;

    border-radius: 9px;

    background: #fff;

    overflow: hidden;

    transition: border-color .2s ease;

}

.corp-header .corp-header-search:focus-within {

    border-color: var(--corp-green);

}

.corp-header .corp-header-search input {

    display: block;

    flex: 1;

    width: 100%;

    min-width: 0;

    height: 100%;

    padding: 0 12px;

    border: 0;

    outline: 0;

    background: transparent;

    font-family: inherit;

    font-size: 13px;

    color: #26372b;

}

.corp-header .corp-header-search input::placeholder {

    color: #87958a;

}

.corp-header .corp-header-search button {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 44px;

    height: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--corp-green);

    cursor: pointer;

    transition: background .2s ease;

}

.corp-header .corp-header-search button:hover {

    background: #edf6ef;

}

.corp-header .corp-header-search button svg {

    display: block;

    width: 20px;

    height: 20px;

    fill: none;

    stroke: currentColor;

}

.corp-header .corp-search-desktop {

    display: flex;

}

.corp-header .corp-search-mobile {

    display: none;

}

/* 04 MAIN NAV */

.corp-header .corp-nav {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-shrink: 0;

    gap: clamp(12px, 1.5vw, 24px);

}

.corp-header .corp-nav>a {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 0;

    color: #29362d;

    font-size: 14px;

    font-weight: 500;

    line-height: 1.5;

    text-decoration: none;

    white-space: nowrap;

    transition: color .2s ease;

}

.corp-header .corp-nav>a:hover,

.corp-header .corp-nav>a.active {

    color: var(--corp-green);

}

/* Includes quotation: normal text link with the same underline */

.corp-header .corp-nav>a:not(.corp-nav-cart)::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 2px;

    width: 100%;

    height: 2px;

    background: var(--corp-green);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .2s ease;

}

.corp-header .corp-nav>a:not(.corp-nav-cart):hover::after,

.corp-header .corp-nav>a.active:not(.corp-nav-cart)::after {

    transform: scaleX(1);

}

/* 05 CART ICON — quotation deliberately has no special button style */

.corp-header .corp-nav>.corp-nav-cart {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 44px;

    width: 44px;

    height: 44px;

    padding: 0;

    border: 1px solid #d8e4dc;

    border-radius: 8px;

    background: #fff;

    color: var(--corp-green);

    transition: background .2s ease, border-color .2s ease, color .2s ease;

}

.corp-header .corp-nav>.corp-nav-cart svg {

    display: block;

    width: 22px;

    height: 22px;

    stroke: currentColor;

}

.corp-header .corp-nav>.corp-nav-cart:hover,

.corp-header .corp-nav>.corp-nav-cart.active {

    background: #edf6ef;

    border-color: var(--corp-green);

    color: var(--corp-green);

}

.corp-header .corp-nav>.corp-nav-cart::after {

    display: none !important;

}

/* CART QUANTITY BADGE */
.corp-header .corp-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* MOBILE CART: hidden on desktop */
.corp-header .corp-mobile-cart {
    display: none;
}

/* 06 MOBILE TOGGLE */

.corp-header .corp-menu-toggle {

    display: none;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 44px;

    height: 44px;

    padding: 0;

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

    border-radius: 9px;

    background: #fff;

    color: var(--corp-green);

    cursor: pointer;

}

.corp-header .corp-menu-toggle svg {

    display: block;

    width: 26px;

    height: 26px;

}

.corp-header .corp-menu-toggle .corp-close-icon {

    display: none;

}

.corp-header .corp-menu-toggle[aria-expanded="true"] .corp-menu-icon {

    display: none;

}

.corp-header .corp-menu-toggle[aria-expanded="true"] .corp-close-icon {

    display: block;

}

/* 07 PRODUCT CATEGORY CAROUSEL (inside header) */

.corp-header .corp-category-bar {

    width: 100%;

    border-top: 1px solid #e3eee6;

    border-bottom: 1px solid #dce9df;

}

.corp-header .corp-category-inner {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 54px;

}

.corp-header .corp-category-heading {

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

    gap: 9px;

    padding-right: 20px;

    margin-right: 2px;

    border-right: 1px solid #cbded0;

    color: var(--corp-green);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.5;

    white-space: nowrap;

}

.corp-header .corp-category-heading svg {

    display: block;

    flex-shrink: 0;

    color: var(--corp-green);

}

/* CATEGORY CAROUSEL */

.corp-header .corp-category-carousel {

    display: flex;

    align-items: center;

    flex: 1 1 0;

    width: 0;

    min-width: 0;

    gap: 8px;

    overflow-x: auto;

    overflow-y: hidden;

    flex-wrap: nowrap;

    scroll-behavior: smooth;

    scroll-snap-type: x proximity;

    scrollbar-width: none;

}

.corp-header .corp-category-item {

    flex: 0 0 auto;

    white-space: nowrap;

}

.corp-header .corp-category-item {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    padding: 8px 15px;

    background: #fff;

    border-radius: 6px;

    color: #222222;

    font-family: inherit;

    font-size: 12.5px;

    font-weight: 500;

    line-height: 1.5;

    text-decoration: none;

    white-space: nowrap;

    scroll-snap-align: start;

    transition: background .2s ease, border-color .2s ease, color .2s ease;

}

.corp-header .corp-category-item:hover,

.corp-header .corp-category-item.active {

    background: #f5f5f5;

    color: var(--corp-green);

}

.corp-header .corp-category-arrow {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 30px;

    width: 30px;

    height: 30px;

    padding: 0;

    background: #fff;

    border: 1px solid #cddfd2;

    border-radius: 50%;

    color: var(--corp-green);

    font-family: inherit;

    font-size: 12px;

    line-height: 1;

    cursor: pointer;

    transition: background .2s ease, border-color .2s ease, color .2s ease;

}

.corp-header .corp-category-arrow:hover {

    background: var(--corp-green);

    border-color: var(--corp-green);

    color: #fff;

}

.corp-header .corp-category-arrow:disabled {

    opacity: .3;

    cursor: default;

    pointer-events: none;

}

/* 08 SMALL DESKTOP */

@media (min-width: 901px) and (max-width: 1180px) {

    .corp-header .corp-header-inner {

        gap: 12px;

    }

    .corp-header .corp-logo {

        font-size: 20px;

        gap: 7px;

    }

    .corp-header .corp-logo img {

        width: 44px;

        height: 44px;

    }

    .corp-header .corp-header-search {

        min-width: 120px;

        max-width: 190px;

    }

    .corp-header .corp-nav {

        gap: 11px;

    }

    .corp-header .corp-nav>a {

        font-size: 12px;

    }

}

/* 09 TABLET / MOBILE: logo / search / cart / menu */
@media (max-width: 900px) {
    .corp-header .corp-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .corp-header .corp-header-inner {
        position: relative;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 42px 42px;
        align-items: center;
        column-gap: 8px;
        min-height: 66px;
    }

    .corp-header .corp-logo {
        min-width: 0;
        gap: 0;
    }

    .corp-header .corp-logo img {
        width: 44px;
        height: 44px;
    }

    .corp-header .corp-logo-text {
        display: none;
    }

    .corp-header .corp-search-desktop {
        display: none;
    }

    .corp-header .corp-search-mobile {
        display: flex;
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 42px;
    }

    .corp-header .corp-search-mobile input {
        min-width: 0;
        padding: 0 8px;
        font-size: 13px;
    }

    .corp-header .corp-search-mobile button {
        width: 34px;
    }

    .corp-header .corp-mobile-cart {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--corp-border);
        border-radius: 9px;
        background: #fff;
        color: var(--corp-green);
        text-decoration: none;
    }

    .corp-header .corp-mobile-cart svg {
        width: 22px;
        height: 22px;
    }

    .corp-header .corp-mobile-cart:hover,
    .corp-header .corp-mobile-cart.active {
        background: var(--corp-soft-green);
        border-color: var(--corp-green);
    }

    .corp-header .corp-menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        margin: 0;
    }

    .corp-header .corp-category-bar {
        display: none !important;
    }

    .corp-header .corp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-shrink: 1;
        gap: 0;
        width: 100%;
        max-height: calc(100dvh - 66px);
        padding: 16px;
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid var(--corp-border);
        box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
    }

    .corp-header .corp-nav.is-open {
        display: flex;
    }

    .corp-header .corp-nav>a:not(.corp-nav-cart) {
        display: flex;
        justify-content: flex-start;
        flex: 0 0 auto;
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid #edf0ed;
        font-size: 14px;
    }

    .corp-header .corp-nav>a:not(.corp-nav-cart)::after {
        display: none;
    }

    .corp-header .corp-nav>a.active:not(.corp-nav-cart) {
        color: var(--corp-green);
        font-weight: 600;
    }

    .corp-header .corp-nav>.corp-nav-cart {
        display: none;
    }
}

@media (max-width: 380px) {
    .corp-header .corp-header-inner {
        grid-template-columns: 40px minmax(0, 1fr) 38px 38px;
        column-gap: 6px;
    }

    .corp-header .corp-logo img {
        width: 40px;
        height: 40px;
    }

    .corp-header .corp-mobile-cart,
    .corp-header .corp-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .corp-header .corp-search-mobile input {
        font-size: 12px;
    }
}

/* 11 ACCESSIBILITY */

.corp-header a:focus-visible,

.corp-header button:focus-visible,

.corp-header input:focus-visible {

    outline: 2px solid var(--corp-green);

    outline-offset: 3px;

}

@media (prefers-reduced-motion: reduce) {

    .corp-header .corp-category-carousel {

        scroll-behavior: auto;

    }

    .corp-header *,

    .corp-header *::before,

    .corp-header *::after {

        transition-duration: .01ms !important;

    }

}