/* Initial-viewport header, navigation, logo, and mobile header styles. */
:root {
--radius-sm: 6px;
    --padding-x-mobile: 16px;
    --drawer-width: 320px;
}

* {
margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-header {
position: relative;
    z-index: 9999;
}

.desktop-header {
display: none;
}

@media (min-width: 769px) {
.desktop-header {
display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
        padding: 12px 24px;
        min-height: 72px;
        background: #000000;
        width: 100%;
}

.desktop-header-left {
display: flex;
        align-items: center;
        gap: 20px;
        flex-shrink: 0;
}

.desktop-header-center {
flex: 1;
        min-width: 200px;
}

.desktop-header-right {
display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
}

.mobile-header {
display: none;
}
}

.site-branding a {
color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    font-size: 1.6rem;
    white-space: nowrap;
}

.custom-logo {
max-height: 40px;
    width: auto;
}

.header-delivery {
color: #ffffff;
    font-size: 0.7rem;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.header-delivery:hover {
background: rgba(255, 255, 255, 0.08);
}

.header-delivery span:first-of-type {
font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.65);
}

.header-delivery strong {
font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.back-button {
background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.back-button:hover {
background: rgba(255, 255, 255, 0.12);
}

.back-button svg {
width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
}








/* Search */
.header-search{width:100%;}

.header-search form{
    display:flex;
    align-items:center;
    height:42px;
    overflow:hidden;
    background:#f5f5f7;
    border:1px solid rgba(255,255,255,.14);
    border-radius:50px;
}

.search-category-select{
    flex:0 0 30%;
    min-width:0;
    height:100%;
    padding:0 12px;
    border:0;
    border-right:1px solid #e5e7eb;
    background:#f5f5f7;
    color:#111827;
    font-size:14px;
    font-weight:500;
    text-align:center;
    cursor:pointer;
}

.header-search input[type="search"]{
    flex:1;
    min-width:0;
    height:100%;
    padding:0 12px;
    border:0;
    outline:none;
    background:#f5f5f7;
    color:#111827;
    font-size:16px;
    line-height:42px;
}

.header-search input[type="search"]::placeholder{
    color:#6b7280;
    opacity:1;
}

.header-search .search-submit{
    min-width:56px;
    height:100%;
    padding:0 18px;
    border:0;
    background:#111;
    color:#fff;
    cursor:pointer;
}

.header-search .search-submit:hover{
    background:#222;
}

.header-search .search-submit svg {
width: 18px;
    height: 18px;
}










.header-action-link {
text-decoration: none;
    color: #ffffff;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
}

.header-action-link:hover {
background: rgba(255, 255, 255, 0.08);
}

.header-action-link .label {
font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.65);
}

.cart-link {
display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #ffffff;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cart-link:hover {
background: rgba(255, 255, 255, 0.08);
}

.cart-icon {
position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-icon svg {
width: 34px;
    height: 34px;
}

.cart-count {
position: absolute;
    top: -8px;
    right: -8px;
    background: #ffffff;
    color: #000000;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-link span:last-child {
font-size: 0.75rem;
}

.toggle-menu-btn {
background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 5px 10px;
}

.toggle-menu-btn:hover {
background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

@media (max-width: 768px) {
.desktop-header {
display: none;
}

.mobile-header {
display: block;
}

.mobile-top-row {
display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px var(--padding-x-mobile);
        gap: 10px;
        background: #0f0f0f;
}

.mobile-bottom-row {
display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px var(--padding-x-mobile);
        background: #000000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-top-left {
display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
}

.mobile-top-right {
display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
}

.site-branding a {
font-size: 1.3rem;
}

.mobile-bottom-row .back-button {
width: 36px;
        height: 36px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.08);
}

.mobile-bottom-row .back-button svg {
width: 20px;
        height: 20px;
}

.mobile-bottom-row .header-search {
flex: 1;
        min-width: 0;
}

.mobile-bottom-row .header-search form {
height: 38px;
}

.mobile-bottom-row .search-category-select {
max-width: 70px;
        font-size: 0.65rem;
        padding: 0 16px 0 8px;
        min-width: 50px;
}

.mobile-bottom-row .header-search input[type="search"] {
padding: 0 8px;
        font-size: 0.8rem;
        min-width: 80px;
}

.mobile-bottom-row .search-submit {
padding: 0 12px;
}

.mobile-bottom-row .toggle-menu-btn {
flex-shrink: 0;
}

.cart-link {
display: flex;
}

.header-delivery strong {
font-size: 0.65rem;
}

.header-delivery span:first-of-type {
font-size: 0.55rem;
}

.header-action-link .label {
font-size: 0.55rem;
}

.header-action-link span:last-child {
font-size: 0.7rem;
}
}

@media (min-width: 769px) and (max-width: 1024px) {
.desktop-header-left {
gap: 12px;
}

.desktop-header-right {
gap: 8px;
}

.header-action-link span:last-child {
font-size: 0.7rem;
}

.toggle-menu-btn {
font-size: 0.7rem;
        padding: 4px 8px;
}

.cart-link span:last-child {
font-size: 0.7rem;
}
}

@media (min-width: 1025px) {
:root {
--desktop-header-height: 0px;
}

.desktop-header {
position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        z-index: 999999 !important;
}

body {
padding-top: var(--desktop-header-height) !important;
}
}



.site-header {
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-header {
min-height: 68px;
    padding: 10px clamp(18px, 3vw, 42px);
}

.site-branding a {
font-weight: 650;
    letter-spacing: -0.8px;
}

.header-search form {
height: 42px;
    border-color: rgba(255, 255, 255, 0.14);
    background: #f5f5f7;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-search input[type="search"],
.search-category-select {
background-color: #f5f5f7;
}

.header-search .search-submit {
min-width: 56px;
    padding: 0 18px;
    border-left: 0;
    background: #111111;
}

.header-action-link,
.cart-link,
.header-delivery,
.back-button,
.toggle-menu-btn {
border-radius: 10px;
}

.header-action-link:hover,
.cart-link:hover,
.header-delivery:hover,
.back-button:hover,
.toggle-menu-btn:hover {
background: rgba(255, 255, 255, 0.12);
}

.toggle-menu-btn {
min-height: 38px;
    padding: 7px 12px;
    border-color: rgba(255, 255, 255, 0.25);
}

.cart-count {
top: -6px;
    right: -7px;
    border: 2px solid #000000;
}

@media (min-width: 1025px) {
.desktop-header {
max-width: none;
        box-shadow: 0 1px 18px rgba(0, 0, 0, 0.16);
}
}

@media (max-width: 768px) {
.mobile-top-row,
    .mobile-bottom-row {
padding-right: 12px;
        padding-left: 12px;
}

.mobile-bottom-row {
border-top-color: rgba(255, 255, 255, 0.12);
}

.mobile-bottom-row .header-search form {
height: 40px;
}
}
