/* =========================================================
   PlatterWala New Website — Header
   Step 2
========================================================= */

.pw-wh {
    --pw-orange: #ff6b00;
    --pw-black: #050505;
    --pw-white: #ffffff;
    --pw-border: #333333;

    width: 100%;
    background: var(--pw-black);
    color: var(--pw-white);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    position: relative;
    z-index: 9999;
    box-sizing: border-box;
}

.pw-wh *,
.pw-wh *::before,
.pw-wh *::after {
    box-sizing: border-box;
}

.pw-wh-inner {
    width: min(1480px, 100%);
    min-height: 96px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Logo */

.pw-wh-brand {
    flex: 0 0 285px;
    min-width: 0;
    padding-right: 20px;
    border-right: 1px solid #414141;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pw-wh-brand img {
    display: block;
    width: auto;
    max-width: 255px;
    max-height: 72px;
    object-fit: contain;
}

.pw-wh-wordmark {
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
}

.pw-wh-wordmark span {
    color: var(--pw-orange);
}

.pw-wh-tagline {
    margin-top: 7px;
    color: #eeeeee;
    font-size: 12px;
    letter-spacing: .7px;
}

/* Location */

.pw-wh-location {
    flex: 0 0 190px;
    min-height: 54px;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 11px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.pw-wh-location:hover {
    background: #171717;
}

.pw-wh-location-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pw-orange);
    color: #fff;
    font-size: 9px;
}

.pw-wh-location-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.pw-wh-location-copy small {
    color: #cfcfcf;
    font-size: 10px;
}

.pw-wh-location-copy strong {
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pw-wh-chevron {
    margin-left: auto;
    color: #ddd;
    font-size: 20px;
}

/* Search */

.pw-wh-search {
    flex: 1 1 auto;
    min-width: 280px;
    height: 54px;
    padding: 0;
    background: #fff;
    border: 4px solid #fff;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 0 0 1px #303030;
}

.pw-wh-search-icon {
    flex: 0 0 42px;
    width: 42px;
    color: #222;
    text-align: center;
    font-size: 28px;
    line-height: 1;
}

.pw-wh-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 8px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 16px;
}

.pw-wh-search input[type="search"]::placeholder {
    color: #777;
    opacity: 1;
}

.pw-wh-search button {
    flex: 0 0 105px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--pw-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.pw-wh-search button:hover {
    background: #f15f00;
}

/* Right Actions */

.pw-wh-actions {
    flex: 0 0 auto;
    min-height: 60px;
    display: flex;
    align-items: stretch;
}

.pw-wh-action {
    position: relative;
    min-width: 74px;
    min-height: 60px;
    padding: 0 11px;
    border-left: 1px solid #353535;
    color: #fff !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.pw-wh-action:hover {
    background: #101010;
    color: #fff !important;
}

.pw-wh-icon {
    font-size: 28px;
    line-height: 1;
    color: #fff;
}

.pw-wh-offer-icon {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--pw-orange);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.pw-wh-action strong {
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.pw-wh-cart {
    min-width: 102px;
    flex-direction: row;
    gap: 8px;
}

.pw-wh-cart-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
}

.pw-wh-cart-copy b {
    color: var(--pw-orange);
    font-size: 15px;
    font-weight: 800;
}

.pw-wh-cart-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--pw-orange);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

/* Tablet */

@media (max-width: 1150px) {

    .pw-wh-inner {
        gap: 10px;
        padding: 10px 14px;
    }

    .pw-wh-brand {
        flex-basis: 210px;
        padding-right: 12px;
    }

    .pw-wh-brand img {
        max-width: 190px;
    }

    .pw-wh-wordmark {
        font-size: 29px;
    }

    .pw-wh-location {
        flex-basis: 160px;
    }

    .pw-wh-action {
        min-width: 58px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .pw-wh-cart {
        min-width: 82px;
    }

    .pw-wh-icon {
        font-size: 24px;
    }
}

/* Mobile */

@media (max-width: 767px) {

    .pw-wh {
        position: sticky;
        top: 0;
    }

    .pw-wh-inner {
        min-height: 66px;
        padding: 7px 9px;
        gap: 7px;
        flex-wrap: wrap;
    }

    .pw-wh-brand {
        flex: 0 0 auto;
        width: auto;
        padding: 0;
        border: 0;
    }

    .pw-wh-brand img {
        max-width: 135px;
        max-height: 48px;
    }

    .pw-wh-wordmark {
        font-size: 23px;
    }

    .pw-wh-tagline {
        display: none;
    }

    .pw-wh-location {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 46px;
        padding: 5px 7px;
    }

    .pw-wh-location-icon {
        flex-basis: 23px;
        width: 23px;
        height: 23px;
    }

    .pw-wh-location-copy small {
        font-size: 9px;
    }

    .pw-wh-location-copy strong {
        font-size: 11px;
    }

    .pw-wh-actions {
        min-height: 46px;
    }

    .pw-wh-action {
        display: none;
    }

    .pw-wh-actions .pw-wh-cart {
        display: flex;
        min-width: 48px;
        padding: 0;
        border-left: 0;
    }

    .pw-wh-cart-copy {
        display: none;
    }

    .pw-wh-cart-badge {
        top: -1px;
        right: -1px;
    }

    .pw-wh-search {
        order: 5;
        flex: 0 0 100%;
        min-width: 100%;
        height: 44px;
        margin-top: 1px;
    }

    .pw-wh-search button {
        flex-basis: 82px;
        font-size: 14px;
    }

    .pw-wh-search input[type="search"] {
        font-size: 14px;
    }
}
