/* Only the approved default header's two shopping rows use this layout. */
.whb-default_header:has(.shop-managed-menu) {
	--wd-header-general-h: 128px;
	--wd-header-general-sm-h: 102px;
	--wd-header-general-sticky-h: 58px;
	--wd-header-bottom-h: 0px;
	--wd-header-bottom-sm-h: 0px;
}
.whb-default_header:has(.shop-managed-menu) .whb-general-header {
	background: #fff; box-shadow: 0 1px 0 #e6e1d8;
}
.whb-default_header:has(.shop-managed-menu) .whb-general-header-inner {
	position: relative; display: grid; align-items: center; direction: rtl;
	grid-template-columns: max-content minmax(210px, 520px) minmax(12px, 1fr) auto auto;
	grid-template-rows: 79px 49px; grid-template-areas: "brand search space account cart" "nav nav nav nav nav";
	column-gap: clamp(10px, 1.7vw, 28px); height: auto;
}
.whb-default_header:has(.shop-managed-menu) .whb-general-header-inner > :is(.whb-col-left,.whb-col-right),
.whb-default_header:has(.shop-managed-menu) .whb-general-header-inner .wd-header-main-nav {display: contents !important}
.whb-default_header:has(.shop-managed-menu) .whb-general-header-inner > .whb-col-center,
.whb-default_header:has(.shop-managed-menu) .whb-general-header-inner :is(.wd-header-wishlist,.wd-header-compare),
.whb-default_header:has(.shop-managed-menu) .whb-header-bottom {display:none !important}
.whb-default_header:has(.shop-managed-menu) .whb-general-header-inner .site-logo {grid-area:brand; display:flex; align-items:center; gap:10px}
.whb-default_header:has(.shop-managed-menu) .whb-col-left .site-logo::after {content:"وی‌آی‌پی‌شاپ";font-weight:700;color:#302e29;font-size:17px}
.whb-default_header:has(.shop-managed-menu) .whb-general-header .site-logo img {max-height:45px;width:auto}
.whb-default_header:has(.shop-managed-menu) .whb-col-right > .wd-header-search-form {grid-area:search; width:100%;min-width:0;margin:0}
.whb-default_header:has(.shop-managed-menu) .whb-col-right .dgwt-wcas-search-wrapp {max-width:100%; min-width:0;width:100%; margin:0}
.whb-default_header:has(.shop-managed-menu) .whb-col-right input[type=search] {border-radius:7px;background-color:#fbfaf7;border:1px solid #d9d6cc;min-height:44px}
.whb-default_header:has(.shop-managed-menu) .whb-general-header .wd-header-my-account {grid-area:account}
.whb-default_header:has(.shop-managed-menu) .whb-general-header .wd-header-cart {grid-area:cart}
.whb-default_header:has(.shop-managed-menu) .whb-general-header .wd-tools-element>a {min-width:44px;min-height:44px;justify-content:center}
.whb-default_header:has(.shop-managed-menu) .whb-col-right .wd-header-my-account>a::after {content:"حساب کاربری";font-size:14px;margin-inline-start:7px}
.whb-default_header:has(.shop-managed-menu) .whb-col-right .wd-header-cart>a::after {content:"سبد خرید";font-size:14px;margin-inline-start:9px}
.whb-default_header .wd-nav-main.shop-managed-menu {
	grid-area:nav;display:flex;align-items:center;flex-wrap:nowrap;justify-content:flex-start;align-self:stretch;
	width:100%;min-width:0;margin:0;border-top:1px solid #ebe8e1;gap:clamp(9px,1.7vw,28px)
}
.whb-default_header .wd-nav-main.shop-managed-menu>li {margin:0;background:none}
.whb-default_header .wd-nav-main.shop-managed-menu>li:last-child {margin-inline-start:auto}
.whb-default_header .wd-nav-main.shop-managed-menu>li>a {
	display:inline-flex;align-items:center;min-height:44px;padding:0 2px;gap:4px;font-size:15px;
	color:#302f2a;background:transparent;border:0;box-shadow:none;white-space:nowrap
}
.whb-default_header .wd-nav-main.shop-managed-menu>li:first-child>a {font-weight:700}
.shop-managed-menu .shop-header-perfume>a .nav-link-text::after {
	content:"جدید";display:inline-block;margin-inline-start:5px;padding:1px 5px;border-radius:4px;
	background:#faedf0;color:#8b3040;font-size:10px;font-weight:700;line-height:1.5;vertical-align:middle
}
.whb-default_header .shop-search-toggle {grid-area:find;display:none;min-width:44px;min-height:44px;align-items:center;justify-content:center;color:#302f2a}
.whb-default_header .whb-general-header :is(a,button,input):focus-visible,.shop-managed-menu a:focus-visible,#shop-header-cart-panel :focus-visible {outline:2px solid #855725;outline-offset:2px}
.shop-managed-menu.wd-nav-mobile>li>a {min-height:48px}
@media(min-width:1025px){
 .whb-default_header.whb-sticked:has(.shop-managed-menu) .whb-general-header-inner {grid-template-columns:auto minmax(0,1fr) 44px 44px 44px;grid-template-rows:58px;grid-template-areas:"brand nav find account cart";column-gap:8px}
 .whb-default_header.whb-sticked .wd-nav-main.shop-managed-menu {border:0;gap:clamp(6px,1.1vw,18px)}
 .whb-default_header.whb-sticked .wd-nav-main.shop-managed-menu>li>a {font-size:14px}
 .whb-default_header.whb-sticked .shop-search-toggle {display:flex}
 .whb-default_header.whb-sticked:has(.shop-managed-menu) .whb-col-left .site-logo::after,.whb-default_header.whb-sticked:has(.shop-managed-menu) .whb-col-right .wd-tools-element>a::after {display:none}
 .whb-default_header.whb-sticked:has(.shop-managed-menu) .whb-col-right > .wd-header-search-form {display:none}
 .whb-default_header.whb-sticked.shop-search-open .whb-col-right > .wd-header-search-form {display:block;position:absolute;z-index:5;inset-inline-end:0;top:100%;width:min(440px,90vw);background:white;padding:12px;box-shadow:0 4px 12px #29292124}
}
@media(max-width:1024px){
 .whb-default_header:has(.shop-managed-menu) .whb-general-header-inner {grid-template-columns:44px auto minmax(130px,340px) 1fr 44px;grid-template-rows:58px 44px;grid-template-areas:"menu brand search space cart" "nav nav nav nav nav";column-gap:12px}
 .whb-default_header:has(.shop-managed-menu) .whb-general-header-inner > :is(.whb-mobile-left,.whb-mobile-center,.whb-mobile-right){display:contents !important}
 .whb-default_header:has(.shop-managed-menu) .whb-general-header .whb-col-left .site-logo,.whb-default_header:has(.shop-managed-menu) .whb-col-right>.wd-tools-element,.whb-default_header:has(.shop-managed-menu) .whb-mobile-right .wd-header-my-account {display:none!important}
 .whb-default_header:has(.shop-managed-menu) .whb-mobile-left .wd-header-mobile-nav {grid-area:menu}
 .whb-default_header:has(.shop-managed-menu) .whb-mobile-center .site-logo {justify-self:center}
 .whb-default_header:has(.shop-managed-menu) .whb-general-header .site-logo img {max-height:38px}
 .whb-default_header .wd-nav-main.shop-managed-menu>li:not(.shop-header-quick){display:none!important}
 .whb-default_header .wd-nav-main.shop-managed-menu>li>a {font-size:14px}
 .whb-default_header.whb-sticked:has(.shop-managed-menu) .whb-general-header-inner {grid-template-rows:54px;grid-template-areas:"menu brand search space cart"}
 .whb-default_header.whb-sticked .wd-nav-main.shop-managed-menu {display:none!important}
}
@media(max-width:600px){
 .whb-default_header:has(.shop-managed-menu){--wd-header-general-sm-h:99px;--wd-header-general-sticky-h:54px}
 .whb-default_header:has(.shop-managed-menu) .whb-general-header-inner {grid-template-columns:44px 1fr auto 1fr 44px;grid-template-rows:55px 44px;grid-template-areas:"menu space brand find cart" "nav nav nav nav nav";column-gap:0}
 .whb-default_header.whb-sticked:has(.shop-managed-menu) .whb-general-header-inner {grid-template-areas:"menu space brand find cart";grid-template-rows:54px}
 .whb-default_header:has(.shop-managed-menu) .whb-col-right>.wd-header-search-form {display:none!important}
 .whb-default_header .shop-search-toggle{display:flex;justify-self:end}
 .whb-default_header .wd-nav-main.shop-managed-menu{gap:0;justify-content:space-between}
 .whb-default_header .wd-nav-main.shop-managed-menu>li>a{font-size:clamp(11px,3.3vw,13px);padding:0 1px}
 .whb-default_header .shop-managed-menu .shop-header-perfume>a .nav-link-text::after{margin-inline-start:2px;padding:0 3px}
 .whb-default_header.shop-search-open:has(.shop-managed-menu) .whb-header-bottom {display:block!important;visibility:visible!important;position:absolute;top:100%;inset-inline:0;height:auto!important;background:white;padding:8px 0;box-shadow:0 4px 12px #29292124}
 .whb-default_header.shop-search-open .whb-header-bottom-inner {height:auto!important;min-height:46px}
}
#shop-header-cart-panel {border:1px solid #dcd8cf;border-radius:9px;padding:18px;color:#302f2a;width:min(390px,92vw);max-height:80vh;overflow:auto;background:white}
#shop-header-cart-panel:not([open]) {display:none}
#shop-header-cart-panel::backdrop{background:rgba(35,34,28,.4)}
#shop-header-cart-panel .shop-cart-caption {display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#shop-header-cart-panel .shop-cart-caption button,#shop-header-cart-panel .shop-cart-page {min-height:44px;display:inline-flex;align-items:center}
#shop-header-cart-panel .shop-cart-page {text-decoration:underline}

#shop-header-cart-panel .shop-cart-checkout:not([hidden]) {display:inline-flex;align-items:center;min-height:44px;margin-inline-end:12px;padding:0 14px;background:#343930;color:#fff;border-radius:5px}
#shop-header-cart-panel .shop-cart-checkout[hidden] {display:none!important}
#shop-header-cart-panel .shop-cart-lines {padding:0;margin:8px 0;list-style:none}
#shop-header-cart-panel .shop-cart-lines li {display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #ebe8e1;margin:0;padding:8px 0}


/* A single home link keeps the genuine logo and its two lines together. */
.whb-default_header:has(.shop-header-brand) .whb-general-header .site-logo {display:none!important}
.whb-default_header .wd-header-main-nav > .shop-header-brand {
 grid-area:brand;display:inline-flex;align-items:center;justify-self:start;gap:10px;
 min-height:44px;color:#282925;text-decoration:none;line-height:1.35;white-space:nowrap
}
.whb-default_header .shop-header-brand img {display:block;flex:none;width:49px;height:45px;object-fit:contain}
.whb-default_header .shop-brand-copy {display:flex;flex-direction:column;gap:2px;text-align:start}
.whb-default_header .shop-brand-copy strong {color:#282925;font-size:17px;font-weight:700}
.whb-default_header .shop-brand-copy small {color:#59554b;font-size:12px;font-weight:400}
.whb-default_header.whb-sticked .shop-header-brand img {width:38px;height:36px}
.whb-default_header.whb-sticked .shop-brand-copy strong {font-size:14px}
.whb-default_header.whb-sticked .shop-brand-copy small {font-size:11px}
@media(max-width:1024px){
 .whb-default_header .wd-header-main-nav > .shop-header-brand {justify-self:center;gap:7px}
 .whb-default_header .shop-header-brand img {width:40px;height:38px}
 .whb-default_header .shop-brand-copy strong {font-size:14px}
 .whb-default_header .shop-brand-copy small {font-size:11px}
}
