.zhh-header,
.zhh-desktop-trust,
.zhh-mobile {
    --zhh-navy: #002147;
    --zhh-blue: #0e4f82;
    --zhh-gold: #cdb125;
    --zhh-muted: #6f7887;
    --zhh-line: #e6e9ed;
}

.zhh-desktop-trust { position: relative; z-index: 11; background: var(--zhh-navy); color: #fff; }
.zhh-trustbar { min-height: 34px; border: 0 !important; padding-inline: 48px !important; background: var(--zhh-navy); color: #fff; }
.zhh-trustbar > * { min-width: 130px; }
.zhh-trustbar [role="button"] { padding-block: 6px !important; font-size: 11px; }
.zhh-trust-message { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 6px !important; color: #fff; white-space: nowrap; }
.zhh-trust-message span[aria-hidden] { color: var(--zhh-gold); }

.zhh-header { z-index: 40 !important; border-bottom: 1px solid var(--zhh-line); box-shadow: 0 7px 25px rgba(0, 33, 71, .06) !important; }
.zhh-desktop-shell { grid-template-columns: 180px minmax(340px, 690px) minmax(190px, 1fr) !important; grid-template-rows: 76px 48px; column-gap: 30px; min-height: 124px !important; padding-inline: 48px !important; border: 0 !important; background: #fff; }
.zhh-logo { grid-column: 1; grid-row: 1; justify-content: flex-start !important; }
.zhh-logo a { display: inline-flex; align-items: center; gap: 10px; }
.zhh-logo a::after { content: 'سرای ژووژ'; color: var(--zhh-navy); font-size: 15px; font-weight: 800; white-space: nowrap; }
.zhh-logo img { width: auto !important; height: 60px !important; max-height: 60px !important; }
.zhh-utility { grid-column: 2 / 4; grid-row: 1; display: grid !important; grid-template-columns: minmax(300px, 1fr) auto; gap: 24px !important; }
.zhh-search { width: 100%; max-width: 720px; justify-self: center; }
.zhh-search form { max-width: none !important; }
.zhh-search input { min-height: 45px; border: 1px solid transparent !important; border-radius: 12px !important; background: #f5f6f8 !important; }
.zhh-search input:focus { border-color: rgba(205, 177, 37, .75) !important; box-shadow: 0 0 0 3px rgba(205, 177, 37, .10); outline: none; }
.zhh-actions { align-items: center; gap: 8px !important; margin-top: 0 !important; }
.zhh-actions > a,
.zhh-actions > div,
.zhh-actions [role="button"] { color: var(--zhh-navy); }
.zhh-actions > a,
.zhh-actions > div > [role="button"] { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--zhh-line); border-radius: 50%; transition: .2s ease; }
.zhh-actions > a:hover,
.zhh-actions > div > [role="button"]:hover { border-color: var(--zhh-gold); background: #fffdf5; transform: translateY(-1px); }
.zhh-category-row { grid-column: 1 / 4; grid-row: 2; width: 100%; border-top: 1px solid var(--zhh-line); justify-content: center !important; }
.zhh-category-row > * { width: 100%; }
.zhh-category-row > * > div { justify-content: center; }
.zhh-category-row .group { height: 48px !important; border-bottom-width: 2px !important; }
.zhh-category-row .group:hover { border-bottom-color: var(--zhh-gold) !important; }
.zhh-category-row a { color: #263449; font-size: 13px; }
.zhh-category-row .group > span > a { padding-inline: 19px !important; }
.zhh-category-row .group > div { top: 48px !important; border-top: 2px solid var(--zhh-gold) !important; border-radius: 0 0 14px 14px; box-shadow: 0 18px 35px rgba(0, 33, 71, .13) !important; }

.zhh-mobile { border-bottom: 1px solid var(--zhh-line); background: #fff; }
.zhh-mobile > div:first-child img { width: auto; height: 43px; object-fit: contain; }
.zhh-mobile input[name="query"] { background: #f5f6f8; border-color: transparent !important; }
.zhh-mobile input[name="query"]:focus { border-color: var(--zhh-gold) !important; outline: none; }

@media (max-width: 1180px) {
    .zhh-desktop-shell { grid-template-columns: 150px minmax(280px, 1fr) auto !important; padding-inline: 28px !important; column-gap: 18px; }
    .zhh-logo a::after { display: none; }
    .zhh-logo img { height: 54px !important; }
    .zhh-category-row .group > span > a { padding-inline: 11px !important; font-size: 12px; }
}

@media (max-width: 1024px) {
    .zhh-desktop-trust { display: none; }
    .zhh-header { position: sticky; top: 0; }
    .zhh-mobile { padding-top: 12px !important; }
}

.zhh-trust-message a {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

.zhh-trust-message a:hover {
    color: var(--zhh-gold);
}

.zhh-trust-message .zhh-sell-link {
    border: 1px solid rgba(205, 177, 37, .75);
    border-radius: 6px;
    padding: 4px 10px;
    color: #ffffff;
}

.zhh-trust-message .zhh-sell-link:hover {
    border-color: var(--zhh-gold);
    color: var(--zhh-navy);
    background: var(--zhh-gold);
}

/* ZHUUZH header cleanup: temporarily hide locale and currency controls. */
.zhh-trustbar > :first-child,
.zhh-trustbar > :last-child {
    display: none !important;
}

.zhh-trustbar {
    justify-content: center !important;
}

.zhh-trust-message {
    width: 100%;
    min-width: 0;
}

/* Remove the separator between the logo row and category navigation. */
.zhh-category-row {
    border-top: 0 !important;
}

/*
|--------------------------------------------------------------------------
| ZHUUZH Header alignment v2
|--------------------------------------------------------------------------
*/

/* Hide every top-bar item except the central commercial navigation. */
.zhh-trustbar > *:not(.zhh-trust-message) {
    display: none !important;
}

.zhh-trustbar {
    display: flex !important;
    justify-content: center !important;
    padding-inline: 20px !important;
}

.zhh-trust-message {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    margin-inline: auto !important;
}

/* Move the brand into the visual centre of the complete white header. */
.zhh-logo {
    z-index: 2;
    align-self: center !important;
    transform: translateY(21px);
}

.zhh-logo img {
    height: 67px !important;
    max-height: 67px !important;
}

.zhh-logo a::after {
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.2;
}

/* Visually centre the account/cart tools in the white header. */
.zhh-actions {
    transform: translateY(21px);
}

/* Keep search in the upper section and categories in the lower section. */
.zhh-search {
    transform: translateY(0);
}

/*
|--------------------------------------------------------------------------
| Exact physical centering for Zhuuzh search
|--------------------------------------------------------------------------
*/

.zhh-desktop-shell {
    position: relative !important;
}

.zhh-search {
    position: absolute !important;
    top: 15px !important;
    left: 50% !important;
    right: auto !important;
    width: min(38vw, 720px) !important;
    max-width: 720px !important;
    transform: translateX(-50%) !important;
    z-index: 3;
}

.zhh-search form {
    width: 100% !important;
    max-width: none !important;
}

.zhh-utility {
    position: static !important;
}

@media (max-width: 1180px) {
    .zhh-search {
        width: min(42vw, 620px) !important;
    }
}

/* Remove the decorative circle around only the compare icon. */
.zhh-actions > a[href*="/compare"],
.zhh-actions > a[href*="compare"] {
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.zhh-actions > a[href*="/compare"]:hover,
.zhh-actions > a[href*="compare"]:hover {
    border: 0 !important;
    background: transparent !important;
    color: var(--zhh-gold) !important;
    transform: none !important;
}

/*
|--------------------------------------------------------------------------
| Header tools and search alignment v3
|--------------------------------------------------------------------------
*/

/* Keep account, cart and compare tools on the physical left side. */
.zhh-actions {
    position: absolute !important;
    top: 27px !important;
    left: 44px !important;
    right: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 5;
}

/* Slightly reduce the search-box width. */
.zhh-search {
    top: 15px !important;
    width: clamp(430px, 34vw, 650px) !important;
    max-width: 650px !important;
}

/* Keep both search and camera icons vertically centred. */
.zhh-search .icon-search,
.zhh-search .icon-camera,
.zhh-search [class*="icon-camera"],
.zhh-search [class*="icon-image"] {
    top: 50% !important;
    bottom: auto !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
}

/* Normalise icon button geometry inside the search field. */
.zhh-search button:not([type="submit"]),
.zhh-search [role="button"] {
    top: 50% !important;
    bottom: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
}

/* The hidden form submit must remain hidden. */
.zhh-search button[type="submit"].hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .zhh-actions {
        left: 27px !important;
        gap: 9px !important;
    }

    .zhh-search {
        width: clamp(380px, 37vw, 560px) !important;
    }
}

/*
|--------------------------------------------------------------------------
| Full-width utility positioning context
|--------------------------------------------------------------------------
*/

.zhh-utility {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 76px !important;
    display: block !important;
    pointer-events: none;
    z-index: 3;
}

.zhh-utility .zhh-search,
.zhh-utility .zhh-actions,
.zhh-utility .zhh-actions * {
    pointer-events: auto;
}

.zhh-utility .zhh-search {
    position: absolute !important;
    top: 15px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.zhh-utility .zhh-actions {
    position: absolute !important;
    top: 27px !important;
    left: 44px !important;
    right: auto !important;
    transform: none !important;
}

/*
|--------------------------------------------------------------------------
| Search and navigation shared centre axis
|--------------------------------------------------------------------------
*/

.zhh-utility {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
}

.zhh-utility .zhh-search {
    left: 50% !important;
    right: auto !important;
    width: clamp(430px, 34vw, 650px) !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
}

.zhh-category-row {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
}

.zhh-category-row > * > div {
    justify-content: center !important;
}
