/* Header 1.1.1: only header rules. Existing page and product styles stay intact. */
.frs-header{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid var(--line)}
.frs-header .header-top{display:grid;grid-template-columns:auto minmax(200px,1fr) auto;align-items:center;gap:42px;min-height:100px;padding-block:18px;position:relative}
.frs-header .brand{grid-column:1;grid-row:1;justify-content:flex-start;text-align:left;white-space:nowrap;font-size:31px;margin:0;letter-spacing:-1.1px;line-height:1.2}
.frs-header .brand img{display:block;max-width:190px;max-height:58px;object-fit:contain}
.frs-header .header-search{grid-column:2;grid-row:1;min-width:0;padding:0;margin:0}
.frs-header .product-search{display:flex;align-items:center;width:100%;max-width:680px;margin:0 auto;background:#f4f3f1;border:1px solid transparent;border-radius:28px;overflow:hidden;min-height:50px}
.frs-header .product-search:focus-within{border-color:var(--accent);background:#fff}
.frs-header .product-search input{width:100%;min-width:0;padding:14px 0 14px 22px;background:transparent;border:0;border-radius:0;font:400 13px/1.5 Comfortaa,sans-serif;color:var(--ink);outline-offset:-4px}
.frs-header .product-search input::placeholder{color:#6c6965;opacity:1}
.frs-header .product-search button{display:flex;align-items:center;justify-content:center;min-width:52px;min-height:48px;padding:10px 15px;border:0;background:transparent;color:var(--ink);cursor:pointer}
.frs-header .product-search button svg{width:23px;height:23px}
.frs-header .header-actions{grid-column:3;grid-row:1;display:flex;justify-content:flex-end;align-items:center;gap:24px}
.frs-header .icon-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:50px;padding:3px 0;color:var(--ink);text-decoration:none;line-height:1}
.frs-header .icon-button:hover{color:var(--accent)}
.frs-header .icon-button svg{width:25px;height:25px;stroke-width:1.45}
.frs-header .frs-icon-wrap{display:block;position:relative;height:25px}
.frs-header .frs-action-label{font-size:10px;white-space:nowrap;font-weight:400;line-height:1.2}
.frs-header .frs-favorite-count,.frs-header .frs-cart-count{right:-9px;top:-7px;min-width:17px;width:auto;padding:0 4px;background:var(--accent);font-family:system-ui,sans-serif}
.frs-header .menu-toggle{display:none}
.frs-header .frs-nav-row{border-top:1px solid #f0edeb;background:#fff}
.frs-header .primary-nav{display:block;position:static;padding-block:0;border:0;background:#fff;max-height:none}
.frs-header .primary-nav>.menu,.frs-header .primary-nav>ul,.frs-header .primary-nav>div>ul{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0 32px;list-style:none;margin:0;padding:0}
.frs-header .primary-nav li{position:relative}
.frs-header .primary-nav a{font:400 13px/1.5 Comfortaa,sans-serif;padding:16px 0;white-space:nowrap}
.frs-header .primary-nav a:hover{color:var(--accent)}
.frs-header .primary-nav>ul>li>a:after,.frs-header .primary-nav>div>ul>li>a:after{content:'';position:absolute;left:0;right:0;bottom:10px;height:1px;background:currentColor;transform:scaleX(0);transition:transform .15s ease}
.frs-header .primary-nav>ul>li>a:hover:after,.frs-header .primary-nav>div>ul>li>a:hover:after{transform:scaleX(1)}
.frs-header .primary-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:230px;max-width:350px;z-index:65;background:#fff;padding:12px 22px;border:1px solid var(--line);box-shadow:0 12px 24px #0000000d;list-style:none}
.frs-header .primary-nav .sub-menu a{white-space:normal;padding:11px 0;display:block}
.frs-header .primary-nav .sub-menu .sub-menu{left:100%;top:0}
.frs-header .primary-nav li:hover>.sub-menu,.frs-header .primary-nav li:focus-within>.sub-menu{display:block}
body.admin-bar .frs-header{top:32px}
@media(max-width:1100px) and (min-width:1051px){.frs-header .header-top{gap:25px}.frs-header .header-actions{gap:17px}.frs-header .brand{font-size:28px}}
@media(max-width:1050px){
 .frs-header .header-top{grid-template-columns:44px minmax(0,1fr) auto;gap:10px 18px;padding-block:13px;min-height:0}
 .frs-header .menu-toggle{display:flex;grid-column:1;grid-row:1;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;background:transparent;color:var(--ink)}
 .frs-header .menu-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
 .frs-header .brand{grid-column:2;grid-row:1;font-size:27px;justify-content:flex-start;min-width:0;white-space:normal}
 .frs-header .header-actions{grid-column:3;gap:17px}
 .frs-header .frs-action-label{display:none}
 .frs-header .header-search{grid-column:1/-1;grid-row:2;width:100%}
 .frs-header .product-search{max-width:none;min-height:46px}
 .frs-header .product-search input{font-size:14px;padding-block:12px}
 .frs-header .product-search button{min-height:44px}
 .frs-header .frs-nav-row{border:0}
 .frs-header .primary-nav{display:none;position:absolute;top:100%;left:0;right:0;max-height:65dvh;overflow:auto;overscroll-behavior:contain;padding:14px 24px 24px;border-bottom:1px solid var(--line);box-shadow:0 10px 18px #0001}
 .frs-header .primary-nav.is-open{display:block}
 .frs-header .primary-nav>ul,.frs-header .primary-nav>div>ul{display:block}
 .frs-header .primary-nav a{font-size:15px;padding:14px 0;white-space:normal}
 .frs-header .primary-nav li{border-bottom:1px solid #f0edeb}
 .frs-header .primary-nav .sub-menu{display:block;position:static;min-width:0;max-width:none;padding:0 0 8px 18px;border:0;box-shadow:none}
 .frs-header .primary-nav .sub-menu li{border:0}
 .frs-header .primary-nav .sub-menu a{font-size:13px}
}
@media(max-width:782px){body.admin-bar .frs-header{top:46px}}
@media(max-width:600px){
 .frs-header .header-top{padding-inline:16px;gap:9px 8px;padding-block:9px}
 .frs-header .brand{font-size:23px;letter-spacing:-.8px}
 .frs-header .brand img{max-width:145px;max-height:45px}
 .frs-header .header-actions{gap:7px}
 .frs-header .header-actions .account-link{display:none}
 .frs-header .icon-button{min-width:38px;min-height:44px}
 .frs-header .icon-button svg{width:23px;height:23px}
 .frs-header .product-search input{font-size:12px;padding-left:17px}
 body.admin-bar .frs-header{top:0}
}
@media(prefers-reduced-motion:reduce){.frs-header .primary-nav a:after{transition:none}}

/* Orange header: color sampled from the supplied Flying Rugs logo. */
.frs-header{--frs-header-orange:#e6830e;background:#fff;border-bottom-color:var(--line)}
.frs-header .frs-main-row{background:var(--frs-header-orange)}
.frs-header .header-top{background:var(--frs-header-orange);grid-template-columns:minmax(200px,280px) minmax(200px,1fr) auto;gap:32px}
.frs-header .brand{color:#251b12}
.frs-header .brand .frs-orange-logo{display:block;width:100%;max-width:280px;height:auto;max-height:none}
.frs-header .icon-button,.frs-header .menu-toggle{color:#251b12}
.frs-header .icon-button:hover{color:#000}
.frs-header .frs-favorite-count,.frs-header .frs-cart-count{background:#fff;color:#3b220c}
.frs-header .product-search{background:#fffaf3;border-color:#fff6}
.frs-header .product-search:focus-within{border-color:#62350a;background:#fff}
.frs-header .frs-nav-row{background:#fff;border-top-color:var(--line)}
.frs-header .primary-nav{background:#fff;color:#251b12}
.frs-header .primary-nav a:hover{color:#000}
.frs-header .primary-nav .sub-menu{background:#fff;color:#251b12}
.frs-header a:focus-visible,.frs-header button:focus-visible{outline-color:#442303}
@media(max-width:1100px) and (min-width:1051px){.frs-header .header-top{grid-template-columns:230px minmax(180px,1fr) auto;gap:23px}}
@media(max-width:1050px){.frs-header .header-top{grid-template-columns:44px minmax(0,1fr) auto;gap:10px 18px}.frs-header .brand .frs-orange-logo{width:260px;max-width:100%}.frs-header .primary-nav{background:#fff}.frs-header .primary-nav .sub-menu{background:transparent}}
@media(max-width:600px){.frs-header .header-top{gap:9px 8px}.frs-header .brand .frs-orange-logo{width:210px;max-width:100%;max-height:none}}


/* 1.1.9: white menu, favorites and cart icons on the orange middle row. */
body.frs-header-test>.announcement{background:#6f2436;color:#fffaf6}
.frs-header .header-top .menu-toggle,
.frs-header .header-top .icon-button,
.frs-header .header-top .icon-button:hover,
.frs-header .header-top .icon-button:focus-visible{color:#fff}
.frs-header .header-top .menu-toggle svg,
.frs-header .header-top .icon-button svg{stroke:currentColor}
.frs-header .header-top .frs-action-label{color:inherit}

/* 1.1.10: mobile reference layout; original logo and orange retained. */
.frs-header .search-toggle{display:none;border:0;background:transparent;cursor:pointer;font:inherit}
@media(max-width:1050px){
 .frs-header .header-top{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;min-height:90px;padding:18px 16px}
 .frs-header .menu-toggle{width:34px;height:44px;min-width:0;padding:7px 6px 7px 0}
 .frs-header .menu-toggle svg{width:25px;height:25px}
 .frs-header .brand{border-left:1px solid #ffffff99;padding-left:10px;min-height:40px;display:flex;align-items:center}
 .frs-header .brand .frs-orange-logo{width:260px;max-width:100%;height:auto}
 .frs-header .header-actions{gap:6px}
 .frs-header .icon-button,.frs-header .search-toggle{display:flex;min-width:34px;width:34px;min-height:44px;padding:0;gap:0}
 .frs-header .icon-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6}
 .frs-header .frs-icon-wrap{height:25px}
 .frs-header .frs-action-label{display:none}
 .frs-header .frs-favorite-count,.frs-header .frs-cart-count{top:-8px;right:-6px;min-width:17px;height:17px;font-size:10px;line-height:17px}
 .frs-header .header-search{grid-column:1/-1;grid-row:2;padding-top:10px}
 .frs-header .header-search[hidden]{display:none!important}
 .frs-header .search-toggle{display:none}
 .frs-header.frs-enhanced .search-toggle{display:flex}
 .frs-header .primary-nav{padding-top:12px}
 .frs-header .frs-nav-row{border-top:0}
}
@media(max-width:360px){
 .frs-header .header-top{padding-inline:10px;gap:5px}
 .frs-header .header-actions{gap:2px}
 .frs-header .brand{padding-left:7px}
 .frs-header .icon-button{width:32px;min-width:32px}
}

/* 1.1.13: white icons without dark outlines or shadows. */
.frs-header .header-top .menu-toggle,
.frs-header .header-top .icon-button,
.frs-header .header-top .icon-button:hover,
.frs-header .header-top .icon-button:focus-visible{color:#fff}
.frs-header .header-top .menu-toggle svg,
.frs-header .header-top .icon-button svg{
 filter:none;fill:none;stroke:currentColor;stroke-width:1.8;
 stroke-linecap:round;stroke-linejoin:round;
}

/* 1.1.14: dropdown navigation and a mobile side drawer. */
.frs-header .frs-drawer-heading,.frs-header .frs-menu-backdrop{display:none}
.frs-header .primary-nav{display:flex;justify-content:center;flex-wrap:wrap;align-items:center;gap:0 24px}
.frs-header .primary-nav>.menu{gap:0 24px}
.frs-header .primary-nav .frs-has-submenu{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center}
.frs-header .primary-nav .frs-has-submenu>a{padding-right:4px}
.frs-header .frs-submenu-toggle{display:flex;align-items:center;justify-content:center;width:32px;min-height:44px;padding:6px;border:0;background:transparent;color:#251b12;cursor:pointer}
.frs-header .frs-submenu-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;transition:transform .18s}
.frs-header .frs-submenu-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.frs-header .primary-nav .sub-menu{grid-column:1/-1;max-height:65vh;overflow-y:auto;min-width:260px;border-radius:0 0 8px 8px}
.frs-header .primary-nav .is-expanded>.sub-menu{display:block}
@media(min-width:1051px){
 .frs-header .primary-nav>.menu>li:last-child>.sub-menu{left:auto;right:0}
 .frs-header .primary-nav .sub-menu .sub-menu{position:static;min-width:0;max-width:none;box-shadow:none;border:0;padding:0 0 0 14px}
}
@media(max-width:1050px){
 body.frs-menu-open{overflow:hidden}
 .frs-header .primary-nav{display:none}
 .frs-header.frs-enhanced .frs-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0007;z-index:70;cursor:pointer}
 .frs-header.frs-enhanced .primary-nav{
  display:block;position:fixed;inset:0 auto 0 0;top:0;width:min(400px,90vw);height:100dvh;max-height:none;
  padding:0 22px 30px;margin:0;background:#fff;color:#251b12;border:0;z-index:80;overflow-y:auto;
  box-shadow:8px 0 30px #0002;transform:translateX(-105%);visibility:hidden;transition:transform .22s ease;
 }
 .frs-header.frs-enhanced .primary-nav.is-open{transform:translateX(0);visibility:visible}
 .frs-header.frs-enhanced .frs-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line);padding:17px 0;margin-bottom:8px;font:600 18px/1.4 Comfortaa,sans-serif}
 .frs-header .frs-menu-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:transparent;color:#251b12;cursor:pointer;padding:10px}
 .frs-header .frs-menu-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
 .frs-header .primary-nav>.menu,.frs-header .primary-nav>ul{display:block;width:100%}
 .frs-header .primary-nav li{border-bottom:1px solid #eee7df}
 .frs-header .primary-nav a{font-size:15px;line-height:1.5;padding:17px 0;white-space:normal}
 .frs-header .primary-nav .frs-has-submenu{grid-template-columns:minmax(0,1fr) 44px}
 .frs-header .frs-submenu-toggle{width:44px;min-height:52px}
 .frs-header.frs-enhanced .primary-nav .sub-menu,
 .frs-header.frs-enhanced .primary-nav li:hover>.sub-menu,
 .frs-header.frs-enhanced .primary-nav li:focus-within>.sub-menu{display:none;position:static;min-width:0;width:100%;max-width:none;max-height:none;padding:0 0 10px 14px;border:0;border-radius:0;box-shadow:none;overflow:visible}
 .frs-header.frs-enhanced .primary-nav li.is-expanded>.sub-menu{display:block}
 .frs-header .primary-nav .sub-menu a{font-size:13px;padding:12px 0}
 body.admin-bar .frs-header.frs-enhanced .primary-nav{top:32px;height:calc(100dvh - 32px)}
}
@media(max-width:782px){body.admin-bar .frs-header.frs-enhanced .primary-nav{top:46px;height:calc(100dvh - 46px)}}
@media(prefers-reduced-motion:reduce){.frs-header.frs-enhanced .primary-nav,.frs-header .frs-submenu-toggle svg{transition:none}}

/* 1.1.15: explicit white icon strokes; no outlines, shadows or SVG filters. */
body.frs-header-test .frs-header .header-top .menu-toggle,
body.frs-header-test .frs-header .header-top .icon-button{color:#fff!important;border:0!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
body.frs-header-test .frs-header .header-top .menu-toggle svg,
body.frs-header-test .frs-header .header-top .icon-button svg,
body.frs-header-test .frs-header .header-top .menu-toggle svg *,
body.frs-header-test .frs-header .header-top .icon-button svg *{
 stroke:#fff!important;fill:none!important;filter:none!important;box-shadow:none!important;text-shadow:none!important;
 paint-order:normal;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.frs-header .frs-all-rugs>li>a{display:flex;align-items:center;justify-content:space-between;gap:24px}
@media(min-width:1051px){.frs-header .frs-all-rugs>li>a>span{display:none}}
@media(max-width:1050px){
 .frs-header.frs-enhanced .primary-nav{width:100%;max-width:none;padding:0 28px 36px;box-shadow:none}
 .frs-header.frs-enhanced .frs-drawer-heading{border-bottom:0;padding:20px 0 22px;margin-bottom:18px;min-height:87px;font-size:26px;font-weight:600;letter-spacing:.02em;color:#6f2436}
 .frs-header .frs-menu-close{color:#222;width:44px;height:44px;padding:9px}
 .frs-header .frs-menu-close svg{width:26px;height:26px;stroke-width:1.6}
 .frs-header .primary-nav li{border-bottom:1px solid #ececec}
 .frs-header .primary-nav a{font:400 21px/1.45 Comfortaa,sans-serif;padding:24px 0;min-height:78px;display:flex;align-items:center;color:#222}
 .frs-header .primary-nav .frs-has-submenu>a{padding-right:12px}
 .frs-header .frs-submenu-toggle{min-height:78px;color:#222}
 .frs-header .frs-submenu-toggle svg{width:21px;height:21px;transform:rotate(-90deg);stroke-width:2}
 .frs-header .frs-submenu-toggle[aria-expanded=true] svg{transform:rotate(0)}
 .frs-header .primary-nav .sub-menu a{font-size:16px;min-height:56px;padding:16px 0}
 .frs-header .primary-nav .sub-menu .frs-submenu-toggle{min-height:56px}
 .frs-header .frs-all-rugs>li>a>span{font:400 26px/1 system-ui,sans-serif}
}

/* 1.1.16: keep the mobile close target above all menu rows. */
.frs-header .frs-drawer-heading{isolation:isolate}
.frs-header .frs-menu-close{position:relative;z-index:3;flex-shrink:0;pointer-events:auto;touch-action:manipulation}
.frs-header .frs-menu-close svg,.frs-header .frs-menu-close svg *{pointer-events:none}
@media(max-width:1050px){.frs-header.frs-enhanced .frs-drawer-heading{z-index:5}}

/* 1.1.18: mobile announcement text is hidden; keep the language selector. */
@media(max-width:767px){
 body.frs-header-test>.announcement .frs-announcement-text{display:none}
 body.frs-header-test>.announcement:not(:has(.frl-switcher)){display:none}
}
