/* =====================================================================
   R10.18.0 — HEADER ACTIONS + CART DECISION FLOW
   Final storefront correction layer. Keeps desktop controls inside the
   header, restores account/wishlist/cart actions, and enhances add-to-cart.
   ===================================================================== */
:root{--r10180-forest:#063f34;--r10180-forest-2:#0b5948;--r10180-red:#e54a31;--r10180-gold:#f4bd38;--r10180-ink:#25201d;--r10180-muted:#756c66;--r10180-line:#eadfd5;--r10180-cream:#fffaf3}

/* Desktop: four predictable zones that cannot collide. */
@media (min-width:1261px){
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .site-header-inner{
    position:relative!important;display:grid!important;grid-template-columns:160px minmax(600px,1fr) minmax(190px,260px) max-content!important;align-items:center!important;
    width:min(1680px,calc(100% - 40px))!important;max-width:1680px!important;min-height:82px!important;margin:0 auto!important;padding:8px 0!important;gap:12px!important;
  }
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .brand{grid-column:1!important;min-width:0!important;width:160px!important;justify-self:start!important;margin:0!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .brand-logo{width:auto!important;max-width:150px!important;height:48px!important;object-fit:contain!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .mobile-menu-toggle{display:none!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header #main-navigation{
    grid-column:2!important;position:static!important;inset:auto!important;transform:none!important;justify-self:center!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:1px!important;white-space:nowrap!important;background:transparent!important;border:0!important;box-shadow:none!important;opacity:1!important;pointer-events:auto!important;
  }
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header #main-navigation a{min-height:38px!important;padding:9px 7px!important;font-size:10.5px!important;letter-spacing:.015em!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .sf-header-search{grid-column:3!important;justify-self:stretch!important;width:100%!important;min-width:0!important;max-width:260px!important;height:42px!important;margin:0!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .header-actions{grid-column:4!important;justify-self:end!important;display:flex!important;align-items:center!important;gap:6px!important;margin:0!important;min-width:max-content!important;white-space:nowrap!important}
  .theme-site-header .sf-header-location{height:42px!important;max-width:122px!important;padding:0 10px!important;background:#f7f1e8!important;border:1px solid var(--r10180-line)!important;color:var(--r10180-forest)!important}
  .theme-site-header .sf-header-location span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .theme-site-header .header-icon-link,.theme-site-header .cart-pill{display:grid!important;place-items:center!important;position:relative!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:13px!important;background:#fff!important;border:1px solid var(--r10180-line)!important;color:var(--r10180-forest)!important;box-shadow:0 7px 18px rgba(7,55,45,.055)!important}
  .theme-site-header .header-icon-link:hover{background:#fff8ef!important;border-color:#e7cfae!important;color:var(--r10180-red)!important}
  .theme-site-header .cart-pill{background:linear-gradient(135deg,var(--r10180-red),#f0603c)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 22px rgba(229,74,49,.18)!important}
  .theme-site-header .header-icon-link .site-svg-icon,.theme-site-header .cart-pill .site-svg-icon{width:18px!important;height:18px!important}
  .theme-site-header .sf-order-now{height:42px!important;padding:0 13px!important;border-radius:13px!important;font-size:10px!important}
}
@media (min-width:1261px) and (max-width:1510px){
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .site-header-inner{grid-template-columns:145px minmax(560px,1fr) 44px max-content!important;gap:9px!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .brand{width:145px!important}.theme-site-header .brand-logo{max-width:138px!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header #main-navigation a{padding-inline:6px!important;font-size:9.8px!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .sf-header-search{width:42px!important;max-width:42px!important;min-width:42px!important;padding:0!important;display:grid!important;place-items:center!important}
  .theme-site-header .sf-header-search span,.theme-site-header .sf-header-search kbd{display:none!important}
  .theme-site-header .sf-header-location{width:42px!important;max-width:42px!important;padding:0!important;justify-content:center!important}.theme-site-header .sf-header-location span,.theme-site-header .sf-header-location svg:last-child{display:none!important}
  .theme-site-header .sf-order-now{display:none!important}
}

/* Switch to the proper collapsible menu before desktop content becomes crowded. */
@media (max-width:1260px){
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .site-header-inner{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;width:min(100% - 24px,1180px)!important;min-height:74px!important;padding:8px 0!important;gap:10px!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .brand{min-width:0!important;width:auto!important}.theme-site-header .brand-logo{height:44px!important;max-width:138px!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .mobile-menu-toggle{display:inline-flex!important;justify-self:center!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header #main-navigation{position:fixed!important;top:96px!important;left:14px!important;right:14px!important;z-index:1200!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:14px!important;margin:0!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:20px!important;background:rgba(4,48,40,.985)!important;box-shadow:0 26px 60px rgba(3,35,29,.28)!important;opacity:0!important;pointer-events:none!important;transform:translateY(-10px)!important;transition:opacity .18s ease,transform .18s ease!important}
  body.nav-open:not(.admin-app-body) .theme-site-header #main-navigation{opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header #main-navigation a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;color:#fff!important;text-align:center!important}
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header #main-navigation a.active{color:#18382f!important}
  .theme-site-header .sf-header-search,.theme-site-header .sf-header-location,.theme-site-header .header-phone,.theme-site-header .sf-order-now{display:none!important}
  .theme-site-header .header-actions{display:flex!important;justify-self:end!important;align-items:center!important;gap:5px!important;margin:0!important}
  .theme-site-header .header-icon-link,.theme-site-header .cart-pill{display:grid!important;place-items:center!important;position:relative!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:12px!important;background:#fff!important;border:1px solid var(--r10180-line)!important;color:var(--r10180-forest)!important}
  .theme-site-header .cart-pill{background:var(--r10180-red)!important;color:#fff!important;border-color:var(--r10180-red)!important}
}
@media (max-width:620px){
  body:not(.admin-app-body):not(.staff-auth-body):not(.install-body) .theme-site-header .site-header-inner{width:calc(100% - 18px)!important;gap:6px!important}.theme-site-header .brand-logo{height:40px!important;max-width:112px!important}.theme-site-header .header-actions{gap:4px!important}.theme-site-header .header-icon-link,.theme-site-header .cart-pill{width:37px!important;min-width:37px!important;height:37px!important;min-height:37px!important}.theme-site-header #main-navigation{top:82px!important;grid-template-columns:1fr!important;max-height:calc(100vh - 98px)!important;overflow:auto!important}
}
.header-action-label{display:none!important}.header-action-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;background:var(--r10180-gold);color:#3b2a05;font-size:8px;font-weight:950;line-height:1}
.theme-site-header .header-wishlist-link .site-svg-icon{fill:currentColor;fill-opacity:.08}

/* Rich cart-decision popup. */
.r10180-cart-backdrop{background:rgba(8,30,25,.56)!important;backdrop-filter:blur(8px) saturate(115%)!important}
.storefront-cart-confirm.r10180-cart-confirm{width:min(620px,calc(100vw - 28px))!important;padding:24px!important;border-radius:26px!important;border:1px solid rgba(255,255,255,.7)!important;background:linear-gradient(180deg,#fffdf9,#fff9f1)!important;box-shadow:0 34px 110px rgba(4,40,33,.32)!important;color:var(--r10180-ink)!important}
.r10180-cart-confirm-head{display:grid;grid-template-columns:54px 1fr;gap:14px;align-items:start;padding-right:38px}.r10180-cart-confirm-head .storefront-cart-confirm-icon{margin:0!important;background:linear-gradient(145deg,var(--r10180-forest),var(--r10180-forest-2))!important;box-shadow:0 12px 24px rgba(6,63,52,.16)!important}.r10180-cart-confirm-head h2{margin:5px 0 5px!important;font:700 clamp(26px,4vw,35px)/1 Georgia,"Times New Roman",serif!important;letter-spacing:-.035em!important;color:var(--r10180-ink)!important}.r10180-cart-confirm-head p{margin:0!important;color:var(--r10180-muted)!important;font-size:11px;line-height:1.5}
.r10180-cart-product{display:grid;grid-template-columns:88px 1fr;gap:14px;align-items:center;margin:20px 0 14px;padding:10px;border:1px solid var(--r10180-line);border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(6,63,52,.045)}.r10180-cart-product img{width:88px;height:72px;object-fit:cover;border-radius:13px;background:#eee5da}.r10180-cart-product-copy{min-width:0}.r10180-cart-product-copy span{display:block;color:var(--r10180-red);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.11em}.r10180-cart-product-copy strong{display:block;margin:4px 0 3px;color:var(--r10180-ink);font-size:15px;line-height:1.25}.r10180-cart-product-copy small{display:block;color:#85776f;font-size:9px}
.r10180-cart-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:13px}.r10180-cart-summary>div{padding:11px 12px;border-radius:14px;background:#f6f1e9;border:1px solid #eee3d8;min-width:0}.r10180-cart-summary span,.r10180-cart-summary strong{display:block}.r10180-cart-summary span{color:#8c7f77;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.r10180-cart-summary strong{margin-top:4px;color:var(--r10180-forest);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r10180-cart-info{display:grid;gap:6px;margin:0 0 17px;padding:11px 13px;border-left:3px solid var(--r10180-gold);border-radius:0 12px 12px 0;background:#fff8e6}.r10180-cart-info span{display:flex;align-items:center;gap:7px;color:#6f6257;font-size:8.5px;line-height:1.4}.r10180-cart-info .site-svg-icon{width:13px;height:13px;flex:0 0 13px;color:var(--r10180-forest)}
.storefront-cart-confirm-actions.r10180-cart-actions{display:grid!important;grid-template-columns:.92fr 1.08fr!important;gap:9px!important}.r10180-cart-actions .btn{min-height:48px!important;border-radius:14px!important;font-size:10px!important}.r10180-cart-actions .btn .site-svg-icon{width:14px;height:14px}.r10180-view-cart{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px;padding:8px;color:var(--r10180-forest);font-size:9px;font-weight:850;text-decoration:none}.r10180-view-cart .site-svg-icon{width:14px;height:14px}.r10180-view-cart span{color:var(--r10180-red)}.r10180-view-cart:hover{text-decoration:underline}
.storefront-cart-account.r10180-cart-account{margin-top:14px!important;padding-top:14px!important}.r10180-cart-account .site-svg-icon{width:20px;height:20px;color:var(--r10180-forest)}
@media(max-width:560px){.storefront-cart-confirm.r10180-cart-confirm{padding:20px 16px!important;border-radius:22px!important}.r10180-cart-confirm-head{grid-template-columns:46px 1fr;gap:11px}.r10180-cart-confirm-head .storefront-cart-confirm-icon{width:46px!important;height:46px!important}.r10180-cart-product{grid-template-columns:74px 1fr}.r10180-cart-product img{width:74px;height:64px}.r10180-cart-summary{grid-template-columns:1fr 1fr}.storefront-cart-confirm-actions.r10180-cart-actions{grid-template-columns:1fr!important}.r10180-cart-actions [data-cart-confirm-primary]{order:-1}}
@media(prefers-reduced-motion:reduce){.storefront-cart-confirm.r10180-cart-confirm,.r10180-cart-backdrop{animation:none!important;transition:none!important}}
