/*
   Page shells of the storefront after the WiAutomation reference: header, footer,
   breadcrumb bar, and the store, account, policy, auth and checkout layouts.
*/

/* ===== Header ===== */
.site-header { position: relative; z-index: 60; background: var(--c-navy); color: var(--c-white); }
.header-top { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-top-h); font-size: 13px; font-weight: 500; }
.header-top__item { display: inline-flex; align-items: center; gap: var(--sp-2); color: #a3a8b5; }
.header-top__item .i { width: 20px; height: 20px; }
.header-top__link:hover { color: var(--c-white); }
.header-top__quote { border: 0; background: none; padding: 0; color: var(--c-teal); font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.header-top__quote:hover { color: var(--c-white); }
.header-top__email { color: var(--c-teal); font-weight: 600; }
.header-top__email:hover { color: var(--c-white); }
.header-top__phone { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-white); font-weight: 700; }
.header-top__phone .i { color: var(--c-teal); width: 16px; height: 16px; }
.header-top__phone:hover { color: var(--c-teal); }

.header-main__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-main-h); }
.header-logo img { height: 34px; width: auto; }
.header-main__menu { display: none; border: 0; background: none; color: var(--c-white); padding: 4px; }
.header-nav { display: flex; gap: 28px; }
.header-nav a { color: var(--c-white); font-weight: 700; font-size: var(--fs-base); }
.header-nav a:hover { color: var(--c-teal); }

.header-search { position: relative; flex: 1; height: 36px; margin-right: 2px; }
.header-search__box { position: absolute; left: 0; right: 0; top: 0; z-index: 70; }
.header-search.is-open .header-search__box { left: -164px; right: -35px; }
.header-search__box > input {
  width: 100%; height: 36px; padding: 0 34px 0 34px; border: 0; border-radius: var(--radius-sm);
  background: var(--c-white); color: var(--c-text); font-size: 13px;
}
.header-search__box > input::placeholder { color: var(--c-text-faint); }
.header-search__box > input::-webkit-search-cancel-button { display: none; }
.header-search__box > input:focus { outline: none; }
.header-search__icon { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--c-text-faint); pointer-events: none; }
.header-search__clear { position: absolute; right: 6px; top: 6px; display: none; width: 24px; height: 24px; border: 0; background: none; color: var(--c-text-muted); align-items: center; justify-content: center; }
.header-search.is-open .header-search__clear { display: flex; }

.header-account { display: flex; flex-direction: column; color: var(--c-white); line-height: 1.15; font-size: var(--fs-sm); }
.header-account span { font-size: 10px; color: #a3a8b5; }
.header-account strong { font-weight: 700; }
.header-account:hover { color: var(--c-teal); }
.header-cart { position: relative; display: flex; color: var(--c-white); }
.header-cart:hover { color: var(--c-teal); }
.header-cart__count { position: absolute; top: -6px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--c-teal); color: var(--c-navy); font-size: 10px; font-weight: 800; line-height: 15px; text-align: center; }

/* Mobile drawer (the reference's mobile menu) */
.mobile-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 950; width: min(325px, 86vw); overflow-y: auto;
  padding: 0 28px 28px 24px; background: var(--c-white); color: var(--c-text); box-shadow: var(--shadow-modal);
}
.mobile-drawer[hidden] { display: none; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 940; background: var(--overlay); }
body.has-drawer { overflow: hidden; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.mobile-drawer__head img { height: 32px; width: auto; }
.mobile-drawer__close { display: flex; padding: 6px; border: 0; background: none; color: var(--c-text); }
.mobile-drawer__account { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.mobile-drawer__account a { display: flex; flex-direction: column; align-items: center; padding: 6px 0; color: var(--c-text); font-size: 13px; font-weight: 700; }
.mobile-drawer__account a + a { border-left: 1px solid var(--c-border); }
.mobile-drawer__account span { color: var(--c-teal); font-size: 11px; }
.mobile-drawer__group { display: flex; flex-direction: column; margin-bottom: 22px; }
.mobile-drawer__group h2 { margin: 0 0 8px; color: var(--c-teal); font-size: 11px; font-weight: 700; }
.mobile-drawer__group a {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--c-border);
  color: var(--c-text); font-size: 13px;
}
.mobile-drawer__group a:last-child { border-bottom: 1px solid var(--c-border); }
.mobile-drawer__group a::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid #b5b8bf; border-right: 1.5px solid #b5b8bf; transform: rotate(45deg); }
.mobile-drawer__group--main a { padding: 12px 0; font-size: 16px; font-weight: 700; }
@media (min-width: 768px) { .mobile-drawer, .drawer-backdrop { display: none !important; } }

/* Header hover menus: Brands, Categories and the cart (initHeaderMenus in app.js) */
.nav-menu { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-menu > a { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-menu.is-open > a { color: var(--c-teal); }
.nav-menu.is-open > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-teal); }
@media (min-width: 768px) { .header-nav { align-self: stretch; } }
.nav-menu--cart > a { align-self: center; }
.nav-menu--cart.is-open > a::after { display: none; }
.nav-menu--cart.is-open::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; height: 3px; background: var(--c-teal); }
.menu-panel {
  position: absolute; top: 100%; left: -20px; z-index: 75; background: var(--c-white); color: var(--c-text);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-pop); font-size: 13px; font-weight: 400;
}
.menu-panel[hidden] { display: none; }
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.header-nav .menu-panel a { color: var(--c-text); font-weight: 400; font-size: 13px; }
.header-nav .menu-panel a:hover { color: var(--c-teal); }
.menu-panel--brands { width: 375px; }
.brand-menu__search { position: relative; margin: 24px 23px 10px; }
.brand-menu__search .i { position: absolute; left: 12px; top: 11px; width: 14px; height: 14px; color: var(--c-text-faint); }
.brand-menu__search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--c-border); border-radius: 2px; font-size: 13px; }
.brand-menu__letters { display: flex; flex-wrap: wrap; gap: 0 4.6px; margin: 0 23px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.brand-menu__letters button { padding: 0; border: 0; background: none; color: var(--c-teal); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.brand-menu__letters button:hover { color: var(--c-navy); }
.brand-menu__list { max-height: 225px; overflow-y: auto; padding: 4px 23px 10px; }
.brand-menu__group { display: grid; grid-template-columns: 38px 1fr; padding-top: 14px; }
.brand-menu__group[hidden], .brand-menu__group li[hidden] { display: none; }
.brand-menu__group > strong { font-size: 17px; line-height: 1.2; }
.brand-menu__group li a { display: block; padding: 3px 0 7px; }
.brand-menu__none { padding-top: 14px; color: var(--c-text-muted); }
.brand-menu__featured { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--c-border); }
.brand-menu__featured li { border-bottom: 1px solid var(--c-border); }
.brand-menu__featured li:nth-child(odd) { border-right: 1px solid var(--c-border); }
.brand-menu__featured a { display: block; padding: 6px 23px; }
.menu-panel--categories { width: 420px; padding: 12px 22px 8px; }
.category-menu__label { margin: 0 0 6px; color: var(--c-text-muted); font-size: 11px; }
.category-menu__list { max-height: 470px; overflow-y: auto; margin-right: -12px; padding-right: 12px; }
.category-menu__list li + li { border-top: 1px solid var(--c-border); }
.category-menu__list a { display: flex; align-items: center; gap: 16px; padding: 9px 0; }
.category-menu__list a > span:nth-child(2) { flex: 1; }
.category-menu__list .cat-ico { --s: 32px; }
.category-menu__list .i { width: 14px; height: 14px; color: var(--c-text-muted); }
.menu-panel--cart { left: auto; right: -20px; width: 356px; padding: 16px 24px 18px; }
/* An unseen bridge from the cart icon down to the panel, so a pointer moving on a slant to
   "Go to checkout" does not leave the menu and close it. */
.menu-panel--cart::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 18px; clip-path: polygon(calc(100% - 60px) 0, 100% 0, 100% 100%, 0 100%); }
.cart-menu__head { margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
.cart-menu__empty { margin: 4px 0; color: var(--c-text-muted); }
.cart-menu__lines { max-height: 300px; overflow-y: auto; }
.cart-menu__lines li { position: relative; display: flex; gap: 18px; padding: 14px 22px 14px 0; border-bottom: 1px solid var(--c-border); }
.cart-menu__lines li.is-busy { opacity: .5; pointer-events: none; }
.cart-menu__img { flex: none; display: flex; align-items: center; justify-content: center; width: 80px; height: 48px; }
.cart-menu__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-menu__info { flex: 1; min-width: 0; }
.cart-menu__info a { display: block; overflow: hidden; color: var(--c-text); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.cart-menu__qty { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.cart-menu__qty button { display: inline-flex; padding: 2px; border: 0; background: none; color: var(--c-text); cursor: pointer; }
.cart-menu__qty button:disabled { opacity: .35; cursor: default; }
.cart-menu__qty .i { width: 12px; height: 12px; }
.cart-menu__price { color: var(--c-teal); font-size: 12px; }
.cart-menu__remove { position: absolute; top: 14px; right: 0; display: inline-flex; padding: 2px; border: 0; background: none; color: var(--c-text-faint); cursor: pointer; }
.cart-menu__remove .i { width: 10px; height: 10px; }
.cart-menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; }
.cart-menu__foot span { display: inline-flex; align-items: center; gap: 8px; }
.cart-menu__foot .i { width: 16px; height: 16px; color: var(--c-text-faint); }
.cart-menu__foot .btn { min-height: 37px; padding: 0 28px; font-size: 13px; }
@media (max-width: 767px) { .menu-panel { display: none; } }

/* Search overlay */
.search-backdrop { position: fixed; inset: 0; z-index: 50; background: var(--overlay); }
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 70; display: grid; grid-template-columns: 216px 1fr;
  height: min(560px, 72vh); background: var(--c-white); color: var(--c-text); box-shadow: var(--shadow-pop);
}
.search-panel[hidden] { display: none; }
.search-panel__brands { display: flex; flex-direction: column; min-height: 0; padding: 14px 14px 0 18px; border-right: 1px solid var(--c-border); }
.search-panel__brands-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.search-panel__brands h3 { margin: 0; font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; }
.search-panel__reset { padding: 0; border: 0; background: none; color: var(--c-teal); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.search-panel__reset[hidden] { display: none; }
.search-panel__no-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: auto 0; padding: 30px 10px; color: var(--c-text-muted); font-size: var(--fs-xs); text-align: center; }
.search-panel__no-brand[hidden] { display: none; }
.search-panel__no-brand .i { width: 34px; height: 34px; color: #cfd2d8; }
.search-panel__filter { height: 28px; margin-bottom: 8px; padding: 0 8px 0 26px; border: 0; border-bottom: 1px solid var(--c-border); font-size: var(--fs-sm); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a9adb6' stroke-width='1.6'%3E%3Ccircle cx='5' cy='5' r='4'/%3E%3Cpath d='M8 8l3 3'/%3E%3C/svg%3E") no-repeat 6px center; }
.search-panel__filter:focus { outline: none; border-bottom-color: var(--c-teal); }
.search-panel__brand-list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.search-panel__brand-list label { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: var(--fs-xs); cursor: pointer; }
.search-panel__brand-list input { accent-color: var(--c-teal); }
.search-panel__results { min-height: 0; overflow-y: auto; padding: 14px 18px; }
.search-panel__total { margin-bottom: 10px; font-size: var(--fs-xs); color: var(--c-text-2); }
.search-panel__item { display: flex; align-items: center; gap: 28px; padding: 6px 0; color: var(--c-text); }
.search-panel__item:hover, .search-panel__item.is-active { color: var(--c-teal); }
.search-panel__thumb { flex: none; display: flex; align-items: center; justify-content: center; width: 76px; height: 70px; padding: 6px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-white); }
.search-panel__thumb img { max-height: 100%; width: auto; object-fit: contain; }
.search-panel__meta small { display: block; color: var(--c-text-muted); font-size: var(--fs-xs); }
.search-panel__meta span { font-size: var(--fs-sm); text-transform: uppercase; }
.search-panel__empty { padding: var(--sp-6) 0; color: var(--c-text-muted); font-size: 13px; }

/* ===== Footer ===== */
.site-footer { background: var(--c-navy); color: #c9ccd4; padding: 40px 0 24px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 196px repeat(3, 1fr) 160px; gap: var(--sp-6); }
.footer-logo img { height: 34px; width: auto; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { margin-bottom: 4px; color: var(--c-white); font-size: var(--fs-base); font-weight: 700; }
.footer-col__toggle { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.footer-col a { color: #c9ccd4; }
.footer-col a:hover { color: var(--c-teal); }
.footer-boxes { display: flex; gap: 16px; margin-top: 44px; }
.footer-boxes > * { flex: 1; }
.footer-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 86px; padding: 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); color: #c9ccd4; text-align: center; font-size: var(--fs-xs); }
.footer-box .i { margin-bottom: 6px; color: var(--c-teal); }
.footer-box strong { color: var(--c-white); font-size: var(--fs-sm); }
.footer-box:hover { border-color: var(--c-teal); color: var(--c-white); }
.footer-note { max-width: 690px; margin: 28px auto 0; text-align: center; font-size: var(--fs-xs); color: #7f8594; }
.footer-bottom { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-6); margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); font-weight: 600; color: #a3a8b5; }
.footer-bottom__address { display: inline-flex; align-items: center; gap: 6px; }

/* Chat bubble → WhatsApp */
.chat-bubble { position: fixed; left: 24px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; color: var(--c-text); }
.chat-bubble__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: var(--c-white); box-shadow: var(--shadow-pop); }
.chat-bubble__icon .i { width: 30px; height: 30px; stroke-width: 1.8; }
.chat-bubble:hover .chat-bubble__icon { background: #1ebe5b; }
.footer-box .footer-box__whatsapp { color: #25d366; }
.chat-bubble__label { padding: 8px 14px; border-radius: 10px; background: var(--c-white); box-shadow: var(--shadow-pop); font-size: 13px; font-weight: 500; }
.chat-bubble:hover { color: var(--c-teal); }

/* ===== Breadcrumb bar with tabs (catalog pages): 102 px, pale with diagonal shapes ===== */
.crumb-bar { position: relative; overflow: hidden; background: #ecf4e8; }
.crumb-bar .band-shape { top: 0; height: 102px; }
.crumb-bar__s1 { left: calc(50% - 944px); width: 200px; background: var(--c-teal-pale); }
.crumb-bar__s2 { left: calc(50% - 203px); width: 202px; background: #dcf6f6; }
.crumb-bar__s3 { left: calc(50% + 581px); width: 314px; background: #ececec; }
.crumb-bar__s4 { left: calc(50% + 899px); width: 60px; background: var(--c-teal-pale); }
.crumb-bar .container { position: relative; }
.crumb-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-top: 20px; min-height: 66px; align-items: flex-start; }
.crumb-bar__inner[hidden] { display: flex; visibility: hidden; }
.crumb-bar__home { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: var(--fs-xs); color: var(--c-text-muted); }
.crumb-bar__home:hover { color: var(--c-teal); }
.crumb-bar__tabs { display: flex; gap: 12px; width: 393px; max-width: 100%; margin: 0 auto; }
.crumb-bar__tabs > * { flex: 1; }
.crumb-bar__tab { display: flex; align-items: center; justify-content: center; gap: 4px; height: 36px; background: var(--c-white); border-radius: var(--radius) var(--radius) 0 0; color: var(--c-teal); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.crumb-bar__tab::-webkit-details-marker { display: none; }
.crumb-bar__tab::after { content: ""; margin-left: 4px; border: 4.5px solid transparent; border-top: 5px solid currentColor; border-bottom: 0; }
.crumb-bar__tab:hover { color: var(--c-teal-dark); }
.crumb-bar__menu { position: relative; }
.crumb-bar__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; padding: 8px 0; background: var(--c-white); box-shadow: var(--shadow-pop); }
.crumb-bar__panel a, .crumb-bar__panel span { padding: 7px 16px; font-size: var(--fs-sm); color: var(--c-text); }
.crumb-bar__panel a:hover { color: var(--c-teal); background: var(--c-bg); }
.crumb-bar--plain { background: none; }
.crumb-bar--plain .crumb-bar__inner { min-height: 0; padding-bottom: 14px; }

/* ===== Shells ===== */
.page { padding-block: var(--sp-8) var(--sp-16); }
.page--grey { background: var(--c-bg); }
.page--alt { background: var(--c-bg-alt); }

/* Account: "Hi, Mostafa!", side menu, card */
.account { background: var(--c-bg); padding: 28px 0 var(--sp-20); min-height: 520px; }
.account__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.account__head h1 { font-size: var(--fs-md); }
.account__exit { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: 600; }
.account__exit:hover { color: var(--c-teal); }
.account__grid { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; }
.account-menu { display: flex; flex-direction: column; gap: 2px; }
.account-menu a { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 12px; color: var(--c-text-muted); font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.account-menu a:hover { color: var(--c-text); }
.account-menu a[aria-current] { background: var(--c-white); color: var(--c-text); font-weight: 700; }
.account-menu a[aria-current] .i { color: var(--c-teal); }
.account-menu .i { width: 16px; height: 16px; }
.account-menu hr { margin: 8px 12px; }


/* Sign-in pages: card over a world map, no header or footer */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px var(--gutter) 110px; background: #f2f2f2 url("../img/store/world-map.webp") no-repeat center / min(1180px, 96vw) auto; }
.auth__logo img { height: 52px; width: auto; margin: 0 auto 26px; }
.auth__card { width: 100%; max-width: 356px; padding: 26px 36px 28px; background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.auth__card--wide { max-width: 412px; }
.auth__card h1 { margin-bottom: 4px; font-size: var(--fs-md); }
.auth__card > p { margin-bottom: 20px; font-size: var(--fs-sm); color: var(--c-text-2); }
.auth__alt { margin-top: 22px; font-size: var(--fs-sm); color: var(--c-text-2); }
.auth__alt a { font-weight: 600; }
.auth__line { margin: 0; font-size: var(--fs-sm); color: var(--c-text-2); }
.auth__actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.auth__actions .btn { min-width: 90px; }
.auth__card .toggle { font-size: var(--fs-sm); color: var(--c-text-2); }
.auth .notice-dialog { position: fixed; }

/* Checkout: own header with steps */
.checkout-header { background: var(--c-navy); color: var(--c-white); }
.checkout-header__inner { display: flex; align-items: center; gap: 30px; min-height: 52px; }
.checkout-header img { height: 30px; width: auto; }
.checkout-steps { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-xs); font-weight: 600; color: #7f8594; }
.checkout-steps li + li::before { content: "\203A"; margin-right: 10px; }
.checkout-steps [aria-current] { color: var(--c-white); }
.checkout-header__aside { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: var(--fs-xs); font-weight: 700; }
.checkout-header__aside span, .checkout-header__aside a { display: inline-flex; align-items: center; gap: 6px; color: var(--c-white); }
.checkout-header__aside .i { color: var(--c-teal); width: 16px; height: 16px; }
.checkout-page { background: var(--c-bg); padding: 26px 0 var(--sp-12); min-height: calc(100vh - 52px); }

/* ===== Responsive (proposal; docs/wiautomation-reference/14-responsive-behavior.md) ===== */
.header-top__inner > *, .checkout-header__aside a, .checkout-header__aside span { white-space: nowrap; }
@media (max-width: 1063px) {
  .header-top__item { display: none; }
  .header-main__inner { gap: 18px; }
  .header-nav { gap: 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .header-top__item, .header-top__email { display: none; }
  .header-top__inner { justify-content: space-between; }
  .header-main__inner { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .header-main__menu { display: flex; }
  .header-nav { display: none; }
  .header-account { display: none; }
  .header-cart { margin-left: auto; }
  .header-search, .header-search.is-open { order: 5; flex-basis: 100%; max-width: none; }
  .header-search.is-open .header-search__box { left: 0; right: 0; }
  .search-panel { grid-template-columns: 1fr; height: auto; max-height: 70vh; }
  .search-panel__brands { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-boxes { flex-direction: column; }
  .chat-bubble__label { display: none; }
  .chat-bubble { left: 16px; bottom: 16px; }
  .account__grid, .policy__grid { grid-template-columns: 1fr; }
  .account-menu { flex-direction: row; flex-wrap: wrap; }
  .checkout-steps { display: none; }
}

/* Footer: social links and the payment and courier logos (09-2026-10-29) */
.footer-social { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 50%; color: rgba(255, 255, 255, .7); }
.footer-social a:hover { border-color: var(--c-teal); color: var(--c-teal); }
.footer-social .i { width: 15px; height: 15px; }
.footer-box__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-white); }
.footer-box__logos img { flex: none; width: auto; max-width: 52px; height: auto; max-height: 26px; object-fit: contain; }
.footer-box__logos--cards { flex-wrap: nowrap; gap: 9px; }
.footer-box__logos--cards img { max-height: 20px; }
.footer-box__award { display: flex; align-items: center; gap: 10px; text-align: left; }
.footer-box__award img { width: 34px; height: 38px; object-fit: contain; }
.footer-box__award strong { max-width: 120px; font-size: var(--fs-xs); line-height: 1.3; }


/* ===== Phones, after the reference's mobile screenshots (design/wiautomation-reference/11-2026-10-30-chat/19–26) ===== */
@media (max-width: 767px) {
  /* Header: the email alone on top; the menu, the logo in the middle and the cart; the search below. */
  .header-top__quote, .header-top__phone { display: none; }
  .header-top__inner { justify-content: center; min-height: 26px; }
  .header-top__email { display: inline; font-size: 13px; }
  .header-main__inner { position: relative; justify-content: space-between; }
  .header-logo { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); }
  .header-cart { margin-left: auto; }

  /* Footer: the logo in the middle, the groups as accordions, the boxes two by two. */
  .footer-cols { grid-template-columns: 1fr; gap: 0; }
  .footer-logo { justify-self: center; margin-bottom: 24px; }
  .footer-logo img { height: 44px; }
  .footer-col { gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .footer-col:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .footer-col h2 { margin: 0; }
  .footer-col__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 0; cursor: pointer; }
  .footer-col__toggle::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
  .footer-col.is-open .footer-col__toggle::after { transform: rotate(-135deg); }
  .footer-col a { display: none; padding: 5px 0; }
  .footer-col.is-open a { display: block; }
  .footer-col.is-open { padding-bottom: 10px; }
  .footer-social { justify-content: flex-end; margin-top: 20px; }
  .footer-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
  .footer-box { min-height: 76px; }
  .footer-box__logos--cards { flex-wrap: wrap; gap: 6px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 6px; text-align: center; }

  /* Account and order pages: their tabs in a bar under the header. */
  .account { padding-top: 0; }
  .account > .container { display: flex; flex-direction: column; }
  .account__grid { display: contents; }
  .account-menu { order: -1; flex-direction: row; flex-wrap: nowrap; justify-content: space-around; margin: 0 calc(var(--gutter) * -1) 22px; padding: 6px var(--gutter); background: var(--c-white); box-shadow: 0 1px 0 var(--c-border); }
  .account-menu a[aria-current] { background: none; }
  .account-menu hr { display: none; }
  .account__head { margin-top: 0; }
}
