/* Siyal Mobile V4 — shared responsive ecommerce header, staging child theme. */
/* Restore Storefront header on homepage; V3 homepage CSS previously hid it. */
body.home:has(#siyal-v3) .site-header{display:block!important}
body .site-header{background:#fff!important;border:0!important;padding:0!important;margin:0!important}
body .site-header>.col-full{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
.smh-v4,.smh-v4 *{box-sizing:border-box}
.smh-v4{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#112747;background:#fff;font-size:14px;line-height:1.4}
.smh-v4 .smh-wrap{width:min(1280px,calc(100% - 48px));margin:0 auto;max-width:1280px}
.smh-v4 a{text-decoration:none!important;box-shadow:none!important}
.smh-top{background:#0a1426;color:#d8e4f7;font-size:11px;letter-spacing:.035em}
.smh-top .smh-wrap{display:flex;justify-content:space-between;gap:16px;padding:9px 0}
.smh-main{background:#f3f6fb}
.smh-main-inner{display:flex;align-items:center;gap:24px;min-height:118px;padding:22px 0}
.smh-brand{flex:none;color:#0b2143!important;font-size:26px;font-weight:900;letter-spacing:-.065em;line-height:1.05;white-space:nowrap}
.smh-brand span{color:#1859df}.smh-brand small{display:block;color:#61718c;font-size:9px;font-weight:700;letter-spacing:.12em;margin-top:8px}
.smh-search{display:flex;flex:1;min-width:0;margin:0!important;background:#fff;border:2px solid #1859df;border-radius:11px;overflow:hidden;box-shadow:0 6px 20px rgba(14,43,91,.05)}
.smh-search input[type=search]{flex:1;min-width:0;min-height:51px;padding:12px 16px!important;margin:0!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#112747!important;font-size:14px!important}
.smh-search button{flex:none;min-height:51px;padding:0 24px!important;margin:0!important;background:#1859df!important;border:0!important;border-radius:0!important;color:#fff!important;font-size:13px!important;font-weight:800!important;cursor:pointer}
.smh-search button:hover{background:#0e46bc!important}
.smh-actions{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:12px;font-weight:750}
.smh-actions a{color:#102747!important;display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:10px 12px;border-radius:10px}
.smh-actions a:hover{background:#e8efff}
.smh-actions .smh-cart{background:#e7eeff;color:#1045b4!important}
.smh-cart b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:#1859df;color:#fff;font-size:11px}
.smh-nav{background:#fff;border-bottom:1px solid #e8edf5}
.smh-nav-inner{display:flex;align-items:center;gap:30px;min-height:49px}
.smh-nav a,.smh-categories summary{display:inline-flex;align-items:center;gap:7px;color:#142945!important;font-size:13px;font-weight:800;cursor:pointer;padding:13px 0;white-space:nowrap}
.smh-nav a:hover,.smh-categories summary:hover{color:#1859df!important}
.smh-categories{position:relative;margin:0!important;padding:0!important}
.smh-categories summary{list-style:none}.smh-categories summary::-webkit-details-marker{display:none}
.smh-dropdown{position:absolute;left:0;top:100%;z-index:10000;min-width:245px;max-height:65vh;overflow-y:auto;padding:9px;background:#fff;border:1px solid #e3eaf5;border-radius:12px;box-shadow:0 16px 40px rgba(12,31,66,.17)}
.smh-dropdown a{display:block;padding:10px 12px;border-radius:7px;white-space:normal;font-size:12px}
.smh-dropdown a:hover{background:#edf3ff}
.smh-promo{background:#e6efff;color:#144bb6;font-size:12px;font-weight:750;text-align:center;padding:11px 12px}
.smh-promo span{color:#ff7924;padding:0 5px}
.smh-v4 a:focus-visible,.smh-v4 summary:focus-visible,.smh-v4 button:focus-visible,.smh-v4 input:focus-visible{outline:3px solid #ff7924;outline-offset:2px}
@media(max-width:1000px){.smh-main-inner{gap:15px;flex-wrap:wrap;min-height:0}.smh-search{order:3;flex-basis:100%}.smh-actions{margin-left:auto}.smh-nav-inner{gap:22px}}
@media(max-width:767px){
 .smh-v4 .smh-wrap{width:calc(100% - 24px)}
 .smh-top .smh-wrap span:last-child{display:none}
 .smh-top .smh-wrap{padding:7px 0}
 .smh-main-inner{padding:14px 0;gap:12px}
 .smh-brand{font-size:22px}.smh-brand small{font-size:8px}
 .smh-actions{gap:4px;font-size:11px}
 .smh-actions a{padding:8px 7px;min-height:36px}
 .smh-actions .smh-account span{display:none}
 .smh-search input[type=search]{min-height:45px;font-size:13px!important}
 .smh-search button{min-height:45px;padding:0 15px!important}
 .smh-nav-inner{gap:22px;overflow-x:auto;overflow-y:visible;scrollbar-width:thin;min-height:46px}
 .smh-nav a,.smh-categories summary{font-size:12px;padding:13px 0}
 .smh-promo{font-size:11px;padding:9px 12px}
 .smh-dropdown{position:fixed;top:auto;left:12px;right:12px;max-height:45vh;min-width:0;z-index:10000}
}
@media(max-width:380px){.smh-brand{font-size:19px}.smh-actions .smh-account{font-size:0}.smh-actions .smh-account:before{content:'Account';font-size:11px}.smh-actions .smh-cart{font-size:11px}}

/* V5 — responsive multi-column WooCommerce category mega menus */
.smh-v4 .smh-nav{position:relative;z-index:150}
.smh-v4 .smh-nav-inner{position:relative;gap:clamp(12px,1.7vw,26px);flex-wrap:wrap}
.smh-v4 .smh-mega-item{position:static;display:flex;align-items:center}
.smh-v4 .smh-mega-trigger{appearance:none;border:0;background:transparent!important;box-shadow:none!important;display:inline-flex;align-items:center;gap:7px;padding:13px 0!important;color:#142945!important;font:800 13px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;white-space:nowrap;cursor:pointer}
.smh-v4 .smh-mega-trigger:hover,.smh-v4 .smh-mega-item.smh-open>.smh-mega-trigger{color:#1859df!important}
.smh-v4 .smh-mega-panel{display:none;position:absolute;left:0;right:0;top:100%;z-index:200;background:#fff;border:1px solid #dce5f3;border-top:3px solid #1859df;border-radius:0 0 15px 15px;box-shadow:0 18px 35px rgba(8,30,68,.17);padding:20px 24px 24px}
.smh-v4 .smh-mega-heading{display:flex;align-items:baseline;gap:14px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #edf1f8}
.smh-v4 .smh-mega-heading strong{font-size:16px;color:#102b50}
.smh-v4 .smh-mega-heading span{font-size:12px;color:#697b96}
.smh-v4 .smh-mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 12px;max-height:55vh;overflow:auto}
.smh-v4 .smh-mega-grid a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px!important;background:#f4f7fd;border:1px solid #e8eef7;border-radius:9px;white-space:normal!important;font-size:13px!important;font-weight:700!important;color:#1b3455!important}
.smh-v4 .smh-mega-grid a:hover,.smh-v4 .smh-mega-grid a:focus-visible{background:#e7efff;color:#1557ed!important;border-color:#bdd0fb}
.smh-v4 .smh-mega-grid a span{color:#1859df}
.smh-v4 .smh-mega-item.smh-open>.smh-mega-panel{display:block}
@media(hover:hover) and (pointer:fine){.smh-v4 .smh-mega-item:hover>.smh-mega-panel,.smh-v4 .smh-mega-item:focus-within>.smh-mega-panel{display:block}}
@media(max-width:1000px){.smh-v4 .smh-mega-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){
 .smh-v4 .smh-nav{overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
 .smh-v4 .smh-nav::-webkit-scrollbar{display:none}
 .smh-v4 .smh-nav-inner{display:flex;flex-wrap:nowrap!important;gap:8px;overflow-x:auto!important;overflow-y:visible;min-height:46px;padding:6px 2px;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
 .smh-v4 .smh-nav-inner::-webkit-scrollbar{display:none}
 .smh-v4 .smh-nav-inner>a,.smh-v4 .smh-mega-trigger{display:inline-flex;align-items:center;padding:7px 13px!important;font-size:12.5px!important;font-weight:700!important;white-space:nowrap!important;flex-shrink:0;background:#f3f6fc;border-radius:20px;border:1px solid #e1e9f5;color:#102b50!important}
 .smh-v4 .smh-nav-inner>a:hover,.smh-v4 .smh-mega-trigger:hover,.smh-v4 .smh-mega-item.smh-open>.smh-mega-trigger{background:#e7f0ff;border-color:#b9d2fd;color:#1859df!important}
 .smh-v4 .smh-mega-item{position:static;flex-shrink:0}
 .smh-v4 .smh-mega-panel{position:absolute;top:100%;left:0;right:0;padding:15px 12px;border-radius:0 0 12px 12px;max-height:65vh;overflow-y:auto}
 .smh-v4 .smh-mega-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:8px}
 .smh-v4 .smh-mega-grid a{font-size:12px!important;padding:11px 9px!important}
 .smh-v4 .smh-mega-heading{display:block}.smh-v4 .smh-mega-heading span{display:block;margin-top:4px}
}
@media(max-width:390px){.smh-v4 .smh-nav-inner{gap:6px}.smh-v4 .smh-mega-grid{grid-template-columns:1fr}}

/* V6: real WooCommerce hierarchy, parent category first, children below. */
.smh-v4 .smh-hierarchy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:15px;max-height:60vh;overflow-y:auto;overscroll-behavior:contain;padding:2px 3px 8px}
.smh-v4 .smh-category-column{min-width:0;border:1px solid #e3eaf5;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 4px 12px rgba(13,37,72,.035)}
.smh-v4 .smh-hierarchy-grid .smh-category-title{display:flex;align-items:center;justify-content:space-between;background:#edf3ff;color:#102b50!important;font-size:14px!important;font-weight:850!important;padding:13px 14px!important;border:0;border-radius:0;line-height:1.4}
.smh-v4 .smh-hierarchy-grid .smh-category-title:hover{background:#dce9ff;color:#1557ed!important}
.smh-v4 .smh-category-children,.smh-v4 .smh-category-grandchildren{margin:0!important;padding:7px 10px 11px!important;list-style:none!important}
.smh-v4 .smh-category-children li,.smh-v4 .smh-category-grandchildren li{list-style:none!important;margin:0!important;padding:0!important}
.smh-v4 .smh-hierarchy-grid .smh-category-children a{display:block!important;background:transparent!important;border:0!important;border-radius:7px!important;padding:8px 7px!important;font-size:12px!important;font-weight:650!important;color:#344a66!important;line-height:1.45;white-space:normal!important}
.smh-v4 .smh-hierarchy-grid .smh-category-children a:hover{background:#f0f5ff!important;color:#1557ed!important}
.smh-v4 .smh-category-grandchildren{padding:0 0 5px 13px!important;border-left:2px solid #e3ecfc;margin-left:8px!important}
.smh-v4 .smh-hierarchy-grid .smh-category-grandchildren a{font-size:11px!important;font-weight:500!important;color:#60738e!important;padding:5px 7px!important}
.smh-v4 .smh-empty-categories{grid-column:1/-1;color:#65758b;font-size:13px;margin:0}
@media(max-width:1050px){.smh-v4 .smh-hierarchy-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.smh-v4 .smh-hierarchy-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:10px}.smh-v4 .smh-mega-panel{max-height:68vh;overflow-y:auto}.smh-v4 .smh-hierarchy-grid .smh-category-title{font-size:12px!important;padding:11px 10px!important}.smh-v4 .smh-category-children{padding:5px 6px 8px!important}}
@media(max-width:420px){.smh-v4 .smh-hierarchy-grid{grid-template-columns:1fr}}

/* V6.1 — five desktop columns, three tablet, two mobile, one narrow phone */
@media (min-width: 1200px) {
 .smh-v4 .smh-hierarchy-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
}
@media (min-width: 768px) and (max-width:1199px) {
 .smh-v4 .smh-hierarchy-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (min-width: 421px) and (max-width:767px) {
 .smh-v4 .smh-hierarchy-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:420px) {
 .smh-v4 .smh-hierarchy-grid { grid-template-columns:1fr; }
}

/* V6.2: refined category mega-menu, aligned five-column card rows */
@media (min-width:1200px){
 .smh-v4 .smh-hierarchy-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
}
.smh-v4 .smh-hierarchy-grid{align-items:stretch;grid-auto-flow:row;max-height:min(68vh,740px);padding:4px 8px 16px 4px;scrollbar-gutter:stable;}
.smh-v4 .smh-category-column{display:flex;flex-direction:column;min-height:100%;border:1px solid #dfe8f7;border-radius:13px;box-shadow:0 5px 15px rgba(10,31,62,.045);transition:box-shadow .2s,border-color .2s;}
.smh-v4 .smh-category-column:hover{border-color:#bfd1f5;box-shadow:0 9px 22px rgba(10,31,62,.09);}
.smh-v4 .smh-hierarchy-grid .smh-category-title{min-height:54px;align-items:center;line-height:1.35;padding:13px 14px!important;}
.smh-v4 .smh-category-children{flex:1;padding:9px 10px 12px!important;}
.smh-v4 .smh-hierarchy-grid .smh-category-children a{min-height:34px;display:flex!important;align-items:center;}
.smh-v4 .smh-mega-heading{flex-wrap:wrap;}
@media(max-width:767px){
 .smh-v4 .smh-hierarchy-grid{max-height:none;overflow:visible;padding:2px 0 8px;scrollbar-gutter:auto;}
 .smh-v4 .smh-mega-panel{max-height:min(72vh,640px);overflow-y:auto;}
 .smh-v4 .smh-hierarchy-grid .smh-category-title{min-height:48px;}
 .smh-v4 .smh-category-children{padding:6px 8px 10px!important;}
}
@media(prefers-reduced-motion:reduce){.smh-v4 .smh-category-column{transition:none;}}

/* V6.3: balanced category cards, five columns on wide desktop */
@media(min-width:1100px){.smh-v4 .smh-hierarchy-grid{grid-template-columns:repeat(5,minmax(0,1fr));}}
.smh-v4 .smh-hierarchy-grid{align-items:stretch;grid-auto-rows:auto;gap:14px;max-height:min(72vh,800px);overflow-y:auto;}
.smh-v4 .smh-category-column{height:100%;min-width:0;}
.smh-v4 .smh-category-title{overflow-wrap:anywhere;}
@media(min-width:768px) and (max-width:1099px){.smh-v4 .smh-hierarchy-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:767px){.smh-v4 .smh-hierarchy-grid{max-height:none;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr));}.smh-v4 .smh-mega-panel{max-height:75vh;overflow-y:auto;}}
@media(max-width:420px){.smh-v4 .smh-hierarchy-grid{grid-template-columns:1fr;}}

/* V6.4 — Single-row horizontal swipe category rail, both mega menus.
   Parent categories remain visible; every child/grandchild gets its own rectangular border. */
.smh-v4 .smh-mega-panel{
  padding:18px 18px 20px;
  overflow:hidden;
  max-height:min(78vh,750px);
}
.smh-v4 .smh-mega-heading{display:none!important}
.smh-v4 .smh-mega-grid.smh-hierarchy-grid{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:12px!important;
  width:100%;
  max-height:min(69vh,660px)!important;
  overflow-x:auto!important;
  overflow-y:auto!important;
  scroll-snap-type:x proximity;
  scroll-padding-inline:4px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding:3px 4px 15px!important;
}
.smh-v4 .smh-hierarchy-grid .smh-category-column{
  flex:0 0 calc((100% - 48px) / 5)!important;
  min-width:195px;
  max-width:none;
  height:auto!important;
  min-height:0!important;
  align-self:stretch;
  scroll-snap-align:start;
  border:1px solid #dce6f5;
  border-radius:12px;
  background:#fff;
}
.smh-v4 .smh-hierarchy-grid .smh-category-title{
  min-height:54px;
  padding:12px!important;
  border-bottom:1px solid #dce6f5!important;
}
.smh-v4 .smh-hierarchy-grid .smh-category-children{
  padding:10px!important;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.smh-v4 .smh-hierarchy-grid .smh-category-children>li{
  padding:0!important;
  margin:0!important;
}
.smh-v4 .smh-hierarchy-grid .smh-category-children>li>a,
.smh-v4 .smh-hierarchy-grid .smh-category-grandchildren>li>a{
  display:flex!important;
  align-items:center;
  min-height:37px!important;
  padding:8px 10px!important;
  background:#f8faff!important;
  border:1px solid #dce6f5!important;
  border-radius:7px!important;
  color:#203a60!important;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.smh-v4 .smh-hierarchy-grid .smh-category-children a:hover,
.smh-v4 .smh-hierarchy-grid .smh-category-children a:focus-visible,
.smh-v4 .smh-hierarchy-grid .smh-category-grandchildren a:hover{
  background:#e9f1ff!important;
  border-color:#a9c4fb!important;
  color:#1557ed!important;
}
.smh-v4 .smh-hierarchy-grid .smh-category-grandchildren{
  margin:7px 0 0 8px!important;
  padding:0 0 0 9px!important;
  border-left:2px solid #dce6f5;
  display:flex;
  flex-direction:column;
  gap:6px;
}
@media(min-width:768px) and (max-width:1100px){
 .smh-v4 .smh-hierarchy-grid .smh-category-column{flex-basis:230px!important;}
}
@media(max-width:767px){
 .smh-v4 .smh-mega-panel{padding:12px 9px 15px;max-height:75vh;overflow:hidden;}
 .smh-v4 .smh-mega-grid.smh-hierarchy-grid{max-height:65vh!important;overflow-x:auto!important;overflow-y:auto!important;}
 .smh-v4 .smh-hierarchy-grid .smh-category-column{flex-basis:min(76vw,265px)!important;min-width:0;}
}


/* Siyal Mobile V6.5 — compact, readable horizontal category cards.
   Append to END of staging siyal-header-v4.css (after V6.4 rules). */
@media (min-width:1101px) {
  .smh-v4 .smh-mega-grid.smh-hierarchy-grid { gap:10px!important; }
  .smh-v4 .smh-hierarchy-grid .smh-category-column {
    flex:0 0 calc((100% - 50px) / 6)!important;
    min-width:0!important;
  }
  .smh-v4 .smh-hierarchy-grid .smh-category-title {
    padding:11px 10px!important;
    min-height:52px;
    font-size:14px;
    line-height:1.35;
  }
  .smh-v4 .smh-hierarchy-grid .smh-category-children { padding:8px!important;gap:6px; }
  .smh-v4 .smh-hierarchy-grid .smh-category-children>li>a,
  .smh-v4 .smh-hierarchy-grid .smh-category-grandchildren>li>a {
    min-height:34px!important;
    padding:7px 9px!important;
    font-size:12px;
  }
}
@media (min-width:768px) and (max-width:1100px) {
  .smh-v4 .smh-hierarchy-grid .smh-category-column { flex-basis:205px!important; }
}
/* Preserve touch-friendly targets and swipe behavior on phones. */
@media (max-width:767px) {
  .smh-v4 .smh-hierarchy-grid .smh-category-column { flex-basis:min(74vw,245px)!important; }
  .smh-v4 .smh-hierarchy-grid .smh-category-children>li>a,
  .smh-v4 .smh-hierarchy-grid .smh-category-grandchildren>li>a { min-height:40px!important; }
}
