/*
 * 965 Toys - RC4 design corrections.
 * Source: Figma "965 toys" → 01 — Home → Home — Premium (75:875), values read from the Properties panel on 2026-11-18
 * (view-only, exact numbers): Utility bar 75:876, Main bar, Search, Search btn, Nav.
 * Desktop only (≥ 1025 px): Figma has no tablet frame and the mobile header has its own frame.
 */

:root {
	--t965-yellow: #fdb935;        /* Figma "Search btn" fill (was #fcb837, sampled from a screenshot) */
	--t965-yellow-dark: #eba51c;   /* hover, derived */
	--t965-line: #eadfd0;          /* Figma "Search" border (was #f0e3d3, sampled) */
	--t965-search-ph: #5a4e73;     /* Figma search placeholder text (--t965-muted #8a83a0 of P2 stays as it is) */
	--t965-header-h: 92px;         /* Figma "Main bar": 18 + 55 + 18 + 1 */
	--t965-nav-h: 56px;            /* Figma "Nav" */
}

@media (min-width: 1025px) {
	/* Main bar 92 px, no divider under it (Figma puts the 1 px line under the Nav). */
	.whb-header:not(.whb-sticked) .whb-general-header-inner {
		height: var(--t965-header-h);
		max-height: var(--t965-header-h);
	}
	.whb-general-header {
		border-bottom: 0 !important;
	}

	/* Nav 56 px with a 1 px bottom line; 40 px between items. */
	.whb-header:not(.whb-sticked) .whb-header-bottom-inner {
		height: var(--t965-nav-h);
		max-height: var(--t965-nav-h);
	}
	.whb-header-bottom {
		border-bottom: 1px solid var(--t965-line) !important;
	}
	.whb-header-bottom .wd-nav.wd-nav-main {
		gap: 0 20px;
	}
	.whb-header-bottom .wd-nav.wd-nav-main > li > a {
		padding-inline: 10px;
	}

	/* Search: 420 × 56 white pill, 1 px border, padding 6 / 20 / 6 / 6, yellow 44 px button at the left end. */
	.whb-general-header .wd-search-form {
		/* 420 px from ~1280 px; narrower desktops keep room for the centred logo (WoodMart sets width 100 %). */
		max-width: clamp(300px, 33vw, 420px);
	}
	.whb-general-header .wd-search-form .searchform {
		width: 100%;
		max-width: none;
		height: 56px;
		border: 1px solid var(--t965-line);
		box-sizing: border-box;
	}
	.whb-general-header .wd-search-form .searchform .s {
		height: 54px;
		border: 0 !important;
		padding-inline-start: 20px !important;
		padding-inline-end: 56px !important;
		font-size: 17px;
		color: var(--t965-navy);
		background: transparent;
	}
	.whb-general-header .wd-search-form .searchform .s::placeholder {
		color: var(--t965-search-ph);
		opacity: 1;
	}
	.whb-general-header .wd-search-form .searchsubmit {
		width: 44px !important;
		height: 44px !important;
		margin-inline-end: 5px;
		border-radius: 22px;
	}

	/* Actions: icon above a label (Figma "Actions": vertical, gap 4; labels Zain 700 14 px #1B0B47; 28 px between items). */
	.whb-general-header .wd-header-cart > a,
	.whb-general-header .wd-header-wishlist > a,
	.whb-general-header .wd-header-my-account > a {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding-inline: 14px;
	}
	.whb-general-header .wd-header-cart > a::after,
	.whb-general-header .wd-header-wishlist > a::after,
	.whb-general-header .wd-header-my-account > a::after {
		font-family: var(--t965-font);
		font-size: 14px;
		font-weight: 700;
		line-height: 1.2;
		color: #1b0b47;
		white-space: nowrap;
	}
	.whb-general-header .wd-header-cart > a::after { content: "السلة"; }
	.whb-general-header .wd-header-wishlist > a::after { content: "المفضلة"; }
	.whb-general-header .wd-header-my-account > a::after { content: "حسابي"; }
}
