/* ============================================================================
   StoreSecured Theme  (CT Transit inspired)  -  theme.css
   External stylesheet applied site-wide via the Store HTML Template Head.
   Drop into:  store_engine/include/css/theme.css
   Load with:  <link rel="stylesheet" href="include/css/theme.css?v=1">
   Palette + type mirror cttransit.com (DIN Condensed->Oswald, Proxima Nova->Montserrat)
   ----------------------------------------------------------------------------
   Component classes are prefixed .ss-  so this file never collides with the
   legacy engine CSS (common_styles_*, bootstrap-custom, footer-v8, new-theme).
   ============================================================================ */

:root{
  --ss-navy-deep:#011c42;   /* header / hero background        */
  --ss-navy:#003e7e;        /* primary brand blue (links,btns) */
  --ss-navy-hover:#00539c;
  --ss-navy-darkest:#001123;/* footer / deepest sections       */
  --ss-blue-accent:#66c4ff;
  --ss-blue-light:#d6efff;
  --ss-yellow:#ffd900;      /* gold accent / active underline  */
  --ss-yellow-hover:#ffe23f;
  --ss-slate:#33414f;       /* body text                       */
  --ss-white:#ffffff;
  --ss-gray-50:#f7f9fc;
  --ss-gray-100:#eef2f7;
  --ss-gray-200:#dbe2ec;
  --ss-focus:#ffb800;

  /* brand names lead the stack so a licensed environment uses them,
     otherwise the free web fonts loaded in the Head take over        */
  --ss-font-display:"DIN Condensed","Oswald","Arial Narrow","Helvetica Neue",sans-serif;
  --ss-font-body:"Proxima Nova","Montserrat","Segoe UI","Helvetica Neue",Arial,sans-serif;

  --ss-wrap:1400px;
  --ss-radius:10px;
  --ss-shadow:0 4px 14px rgba(1,28,66,.10);
  --ss-shadow-lg:0 10px 30px rgba(1,28,66,.18);
  --ss-header-h:74px;
}

/* ------------------------------------------------------------------ *
 * 1. Gentle site-wide safety rules (help EVERY legacy page reflow)
 *    These are intentionally conservative so they don't break the
 *    legacy inner-page markup.
 * ------------------------------------------------------------------ */
*,*::before,*::after{box-sizing:border-box;}
img{max-width:100%;height:auto;}
/* stop fixed-width legacy widget tables from forcing horizontal scroll */
.ss-region table,.ss-footer table{max-width:100%;}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}
}

/* Keyboard focus, visible for everyone (WCAG 2.4.7) */
.ss-scope :focus-visible,
a.ss-skip:focus-visible,
.ss-header :focus-visible,
.ss-footer :focus-visible{outline:3px solid var(--ss-focus);outline-offset:2px;border-radius:4px;}

.ss-visually-hidden{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ------------------------------------------------------------------ *
 * 2. Page frame / responsive skeleton
 *    (the new Body-template markup, NOT the legacy tables)
 * ------------------------------------------------------------------ */
.ss-scope{font-family:var(--ss-font-body);color:var(--ss-slate);line-height:1.6;background:var(--ss-white);overflow-x:clip;
  /* CENTER the whole site on wide screens. The engine injects an inline
     `#Main{max-width:1900px}` (no margins), so on very wide viewports / zoomed-out
     screens everything was pinned to the left. #Main sets no margin, so this class
     rule wins and centres the capped 1900px shell. */
  margin-left:auto;margin-right:auto;}
/* content column spans the full width so widgets/footer fill 100%.
   (individual blocks — hero-inner, section-head, forms — keep their own
   max-width for readability, so text never runs edge to edge) */
.ss-container{width:100%;max-width:none;margin:0;padding:0 20px;}
/* Transactional pages (cart, before-payment, payment, receipt) get a narrower,
   centered content column so the wide invoice/form tables don't stretch edge to
   edge on big screens. theme.js adds .ss-doc-narrow to .ss-container by URL. */
.ss-container.ss-doc-narrow{max-width:1300px;margin-left:auto;margin-right:auto;}

/* ---- Checkout section headings (One Step Checkout: before_payment / payment) ----
   The engine emits <div id="divBillingAndShipping" style="...grey bar...">Billing…</div>
   etc. with an INLINE grey-strip style (background #ccc, Arial, border). We override it
   (inline styles need !important) into a clean, modern typographic heading: uppercase
   display font, navy text, a hairline rule and a short gold accent. Targeted by the
   engine's stable ids, so no ASP change is needed. */
#divBillingAndShipping,
#divShippingMethodSelection,
#divOrderDetails,
#divPaymentMethodSelection{
  display:block !important;width:auto !important;
  background:none !important;border:0 !important;
  border-bottom:1px solid var(--ss-gray-200) !important;
  padding:0 0 10px !important;margin:34px 0 20px !important;
  font-family:var(--ss-font-display) !important;font-size:1.3rem !important;font-weight:600 !important;
  line-height:1.2 !important;letter-spacing:.5px !important;text-transform:uppercase !important;
  color:var(--ss-navy-deep) !important;position:relative !important;
}
/* short gold accent segment sitting on the hairline underline */
#divBillingAndShipping::after,
#divShippingMethodSelection::after,
#divOrderDetails::after,
#divPaymentMethodSelection::after{
  content:"";position:absolute;left:0;bottom:-1px;width:48px;height:3px;
  background:var(--ss-yellow);border-radius:2px;
}
/* the engine puts a plain <hr> right before three of these headings — redundant now */
.ss-container hr:has(+ #divShippingMethodSelection),
.ss-container hr:has(+ #divOrderDetails),
.ss-container hr:has(+ #divPaymentMethodSelection){display:none !important;}
@media (max-width:600px){
  #divBillingAndShipping,
  #divShippingMethodSelection,
  #divOrderDetails,
  #divPaymentMethodSelection{font-size:1.12rem !important;margin:26px 0 15px !important;letter-spacing:.3px !important;}
}
/* full-bleed: break an element out to the full viewport width even when it sits
   inside the centered container / center column (overflow-x:clip on .ss-scope
   above absorbs the scrollbar-width so this never adds a horizontal scrollbar) */
.ss-full-bleed{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0!important;}

.ss-layout{display:grid;grid-template-columns:1fr;gap:28px;padding:28px 0;}
/* a full-bleed hero cancels the layout's 28px top padding so it sits flush
   under the sticky header (removes the white gap between nav and hero) */
.ss-hero.ss-full-bleed{margin-top:-28px;}
/* empty region divs shouldn't reserve space above the hero */
#cen_topMain:empty,#bottomMain:empty{display:none;}
.ss-layout.has-left{grid-template-columns:250px 1fr;}
.ss-layout.has-right{grid-template-columns:1fr 300px;}
.ss-layout.has-left.has-right{grid-template-columns:230px 1fr 280px;}
.ss-center{min-width:0;}            /* min-width:0 lets grid children shrink   */
.ss-left,.ss-right{min-width:0;}
@media (max-width:900px){
  .ss-layout,.ss-layout.has-left,.ss-layout.has-right,.ss-layout.has-left.has-right{grid-template-columns:1fr;}
  .ss-left,.ss-right{order:2;}      /* sidebars drop below content on mobile   */
}

/* Skip link (WCAG 2.4.1) */
a.ss-skip{
  position:absolute;left:16px;top:-60px;z-index:2000;
  background:var(--ss-navy-darkest);color:#fff;text-decoration:none;
  padding:12px 20px;border-radius:0 0 8px 8px;font-weight:600;transition:top .2s ease;
}
a.ss-skip:focus{top:0;color:#fff;}

/* ------------------------------------------------------------------ *
 * 3. Announcement bar (TOP region widget lands here)
 * ------------------------------------------------------------------ */
.ss-topbar{background:var(--ss-navy-darkest);color:#fff;text-align:center;font-size:.9rem;font-weight:500;}
.ss-topbar :where(a){color:var(--ss-yellow);}
.ss-topbar .ss-announcement{padding:9px 16px;}

/* The store's Announcement Bar is injected by the engine via
   $('#Main').prepend('<div class="announcement-bar">...'), so it lands as the
   first child of #Main (above the header). Style it to match the theme. */
.announcement-bar{
  background:var(--ss-navy-darkest);color:#fff;text-align:center;
  font-weight:600;font-size:.9rem;line-height:1.4;padding:9px 16px;
}
.announcement-bar a{color:var(--ss-yellow);text-decoration:underline;}
.announcement-bar strong,.announcement-bar b{color:var(--ss-yellow);}

/* The engine also prepends a legacy skip link (targets #cen_topMain). We keep
   our own .ss-skip, so make this one a proper offscreen-until-focus link
   instead of a second visible control. */
.skip-to-main-content-link{position:absolute!important;left:-9999px!important;top:auto!important;opacity:0;}
.skip-to-main-content-link:focus{
  left:16px!important;top:0!important;opacity:1;z-index:2000;
  background:var(--ss-navy-darkest);color:#fff!important;padding:12px 20px;border-radius:0 0 8px 8px;
}

/* ------------------------------------------------------------------ *
 * 4. Header : logo + primary nav (dropdowns) + search + cart
 * ------------------------------------------------------------------ */
.ss-header{background:var(--ss-navy-deep);color:#fff;position:sticky;top:0;z-index:1000;}
.ss-header-inner{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;
  max-width:var(--ss-wrap);margin:0 auto;padding:12px 20px;
}
/* Desktop layout is TWO rows: row1 = logo (left) + actions (right), row2 = nav.
   Orders below drive that; the mobile query re-orders for the hamburger drawer. */
.ss-logo{order:1;}
.ss-actions{order:2;margin-left:auto;}
.ss-nav-toggle{order:2;}
.ss-logo{
  display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;
  font-family:var(--ss-font-display);font-weight:700;font-size:1.7rem;
  letter-spacing:.5px;text-transform:uppercase;line-height:1;white-space:nowrap;
}
.ss-logo img{max-height:44px;width:auto;}

/* mobile toggle */
.ss-nav-toggle{
  display:none;width:46px;height:46px;padding:0;cursor:pointer;
  background:transparent;border:2px solid rgba(255,255,255,.35);border-radius:8px;color:#fff;
  align-items:center;justify-content:center;
}
.ss-nav-toggle:hover{border-color:var(--ss-yellow);}
.ss-nav-toggle svg{width:24px;height:24px;}
.ss-nav-toggle .ss-icon-close{display:none;}
.ss-nav-toggle[aria-expanded="true"] .ss-icon-open{display:none;}
.ss-nav-toggle[aria-expanded="true"] .ss-icon-close{display:block;}

/* nav sits on its own full-width second row, department links centered */
.ss-nav{order:3;flex-basis:100%;display:flex;align-items:center;justify-content:center;gap:24px;margin:8px 0 0;}
.ss-menu{display:flex;align-items:center;gap:2px 8px;list-style:none;margin:0;padding:0;flex-wrap:wrap;justify-content:center;}
.ss-menu > li{position:relative;}
/* top-level nav items never wrap (e.g. "Sr/Disabled" stays on one line) */
.ss-menu > li > a,.ss-menu > li > .ss-drop-toggle{white-space:nowrap;}
.ss-menu a,.ss-menu .ss-drop-toggle{
  display:inline-flex;align-items:center;gap:6px;
  color:#fff;background:none;border:0;cursor:pointer;
  font-family:var(--ss-font-body);font-weight:600;font-size:1rem;
  padding:10px 12px;border-radius:6px;text-decoration:none;
}
.ss-menu > li > a::after,
.ss-menu > li > .ss-drop-toggle::after{
  content:"";position:absolute;left:12px;right:12px;bottom:4px;height:3px;border-radius:2px;
  background:var(--ss-yellow);transform:scaleX(0);transform-origin:left;transition:transform .2s ease;
}
.ss-menu > li > a:hover::after,
.ss-menu > li > .ss-drop-toggle:hover::after,            /* the BUTTON itself — NOT li:hover (its submenu overlaps the hero, so Firefox li:hover fired the underline when hovering the strip below the nav) */
.ss-menu > li.ss-hi-open > .ss-drop-toggle::after,      /* stay underlined while the menu is actually open */
.ss-menu > li > .ss-drop-toggle[aria-expanded="true"]::after,
.ss-menu > li > a[aria-current="page"]::after,
.ss-menu > li > .ss-drop-toggle[aria-current="page"]::after{transform:scaleX(1);}
/* active item = gold text; works for plain links AND dept dropdown toggles */
.ss-menu a[aria-current="page"],
.ss-menu .ss-drop-toggle[aria-current="page"]{color:var(--ss-yellow);}
.ss-drop-toggle .ss-caret{transition:transform .2s ease;}

/* engine customer menu (LOGIN / SIGN UP). The engine injects an inline <style>
   AFTER theme.css with `font-weight:500 !important` and a `color:red` hover, so
   these use !important + higher specificity to win. Targets ONLY the top-level
   links (> a) so the logged-in account dropdown (.dropdown-obj-content) is safe. */
/* separated from the department menu by a left divider + margin */
.ss-header .dropdown-obj{display:flex;align-items:center;gap:6px;min-width:0;min-height:44px;justify-content:flex-start;white-space:nowrap;margin:0;padding:0;}
.ss-header .dropdown-obj > a{
  position:relative;white-space:nowrap;
  font-family:var(--ss-font-body);font-size:1rem !important;font-weight:600 !important;
  color:#fff !important;text-decoration:none !important;padding:10px 10px;
}
/* logged-in account dropdown (.dropdown-obj-content): the engine positions it at
   top:40px which left a gap once the trigger got shorter, so it vanished on
   hover. Pin it to the trigger's bottom (top:100%), right-align it, and add a
   transparent hover bridge so moving onto it keeps :hover alive. */
.ss-header .dropdown-obj-content{top:calc(100% + 14px) !important;left:auto !important;right:0 !important;margin:0 !important;
  padding:8px !important;border:1px solid var(--ss-gray-200) !important;border-radius:10px !important;
  box-shadow:var(--ss-shadow-lg) !important;min-width:220px;z-index:1300 !important;}
/* hover bridge covers the gap to the nav so moving onto it keeps :hover alive */
.ss-header .dropdown-obj-content::before{content:"";position:absolute;top:-18px;left:0;right:0;height:18px;}
/* account-menu options match the department submenu: navy text, light-blue hover,
   no red, no underline (overrides the engine's `.dropdown-obj a:hover{color:red}`) */
.ss-header .dropdown-obj-content p{margin:0;padding:0;}
.ss-header .dropdown-obj-content a{
  display:block;color:var(--ss-navy-deep) !important;text-decoration:none !important;
  font-family:var(--ss-font-body);font-size:.9rem;font-weight:500 !important;
  padding:9px 12px;border-radius:6px;
}
.ss-header .dropdown-obj-content a:hover,
.ss-header .dropdown-obj-content a:focus-visible{
  background:var(--ss-blue-light) !important;color:var(--ss-navy) !important;text-decoration:none !important;
}
.ss-header .dropdown-obj-content hr{border:0;border-top:1px solid var(--ss-gray-200);margin:6px 4px;}
/* logged-in trigger (avatar + name + caret) — align + match nav link weight/colour
   (engine sets name 15px and both icons 22px, which looked mismatched/off-centre) */
.ss-header .dropdown-obj > i,.ss-header .dropdown-obj > span{color:#fff;line-height:1;}
.ss-header .dropdown-obj > span{font-size:1rem !important;font-weight:600;}
.ss-header .dropdown-obj > i:first-of-type{font-size:1.5rem !important;}   /* avatar */
.ss-header .dropdown-obj > i:last-of-type{font-size:.85rem !important;}    /* caret  */
.ss-header .dropdown-obj > a::after{
  content:"";position:absolute;left:10px;right:10px;bottom:4px;height:3px;border-radius:2px;
  background:var(--ss-yellow);transform:scaleX(0);transform-origin:left;transition:transform .2s ease;
}
.ss-header .dropdown-obj > a:hover,
.ss-header .dropdown-obj > a:focus-visible{color:#fff !important;text-decoration:none !important;}
.ss-header .dropdown-obj > a:hover::after,
.ss-header .dropdown-obj > a:focus-visible::after{transform:scaleX(1);}
.ss-menu > li.ss-hi-open > .ss-drop-toggle .ss-caret,   /* flip up only when the menu is genuinely open (hover-intent fired), not on a bare li:hover over the hero strip */
.ss-drop-toggle[aria-expanded="true"] .ss-caret{transform:rotate(180deg);}

/* submenu */
.ss-submenu{
  position:absolute;left:0;top:calc(100% + 14px);min-width:220px;list-style:none;margin:0;padding:8px;
  background:#fff;border:1px solid var(--ss-gray-200);border-radius:10px;box-shadow:var(--ss-shadow-lg);
  opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s ease,transform .18s ease;z-index:1200;
  /* CRITICAL: a CLOSED dropdown must never capture pointer events. Firefox still
     hit-tests the hidden submenu (and its ::before bridge, which sits in the strip at
     the very top of the hero right below the nav) even though it's visibility:hidden,
     so hovering that top-of-hero strip fired the menu open. pointer-events:none makes
     the closed menu truly transparent in every browser; it's re-enabled when open. */
  pointer-events:none;
}
/* transparent hover bridge: keeps the menu alive while the pointer crosses the
   gap between the toggle and the menu (now the dropdowns sit just below the bar) */
.ss-submenu::before{content:"";position:absolute;left:0;right:0;top:-18px;height:20px;}
/* Desktop hover opens via a JS "hover-intent" class (theme.js initHoverIntent): the menu
   only drops after the pointer pauses ~220ms on a nav item, so quickly moving the mouse
   across the nav toward the hero slideshow just below no longer fires Express / Sr-Disabled.
   Click (aria-expanded) and keyboard (:focus-within) still open instantly. An open menu
   gets pointer-events back so it's interactive and the bridge keeps it alive. */
.ss-menu li.ss-hi-open > .ss-submenu,
.ss-drop-toggle[aria-expanded="true"] + .ss-submenu,
.ss-submenu:focus-within{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;}
.ss-submenu a{display:block;color:var(--ss-navy-deep);font-weight:600;font-size:0.9rem;padding:8px 12px;border-radius:6px;}
.ss-submenu a::after{display:none;}
.ss-submenu a:hover,.ss-submenu a:focus-visible{background:var(--ss-blue-light);color:var(--ss-navy);}

/* header right cluster */
.ss-actions{display:flex;align-items:center;gap:14px;}

/* search */
.ss-search{display:flex;align-items:stretch;}
.ss-search input{
  font:inherit;font-size:.95rem;min-width:0;width:170px;height:44px;padding:0 14px;
  border:2px solid transparent;border-radius:8px 0 0 8px;background:#fff;color:var(--ss-slate);
}
.ss-search input::placeholder{color:#7a8797;}
.ss-search input:focus-visible{outline:none;border-color:var(--ss-yellow);}
.ss-search button{
  height:44px;width:48px;flex:none;cursor:pointer;background:var(--ss-yellow);border:0;
  border-radius:0 8px 8px 0;color:var(--ss-navy-deep);display:inline-flex;align-items:center;justify-content:center;
}
.ss-search button:hover{background:var(--ss-yellow-hover);}
.ss-search button svg{width:20px;height:20px;}

/* ------------------------------------------------------------------ *
 * 5. Cart button + flyout popup
 * ------------------------------------------------------------------ */
.ss-cart{position:relative;}
.ss-cart-btn{
  position:relative;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;
  color:var(--ss-navy-deep);background:var(--ss-yellow);border-radius:8px;font-weight:700;text-decoration:none;
}
.ss-cart-btn:hover{background:var(--ss-yellow-hover);}
.ss-cart-btn svg{width:22px;height:22px;}
.ss-cart-count{
  position:absolute;top:-8px;right:-8px;min-width:20px;height:20px;padding:0 5px;
  background:#fff;color:var(--ss-navy-deep);border-radius:20px;font-size:.72rem;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--ss-navy);
  box-shadow:0 1px 3px rgba(0,0,0,.35);
}
.ss-cart-count[data-empty="true"]{display:none;}   /* hidden when cart is empty */
.ss-cart-popup{
  position:absolute;right:0;top:calc(100% + 12px);width:320px;max-width:88vw;padding:16px;
  background:#fff;color:var(--ss-slate);border:1px solid var(--ss-gray-200);border-radius:12px;
  box-shadow:var(--ss-shadow-lg);z-index:1350;   /* ABOVE the department flyouts (1200) — the
  cart popup drops from row 1 into the same right-side zone as the row-2 mega menus, and both
  were z-index 1200; the nav comes later in the DOM so it won covered the Checkout button. */
  opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s ease,transform .18s ease;
}
/* transparent hover bridge spans the 12px gap so the popup does NOT disappear
   while the pointer moves from the cart button down onto the popup */
.ss-cart-popup::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px;}
.ss-cart:hover .ss-cart-popup,
.ss-cart-popup.is-open,
.ss-cart:focus-within .ss-cart-popup{opacity:1;visibility:visible;transform:translateY(0);}
/* While the cart is open/hovered, suppress the department flyouts so they can't pop up over
   the popup as the pointer travels down to the Checkout button. `.ss-cart:hover` stays true the
   whole time the pointer is inside .ss-cart (the popup is a child of it). :has() drives it on
   modern browsers; the z-index above is the fallback everywhere else (Checkout stays clickable).
   Desktop only — on mobile the flyouts are the hamburger-drawer accordion (no hover overlap). */
@media (min-width:768px){
  .ss-header-inner:has(.ss-cart:hover) .ss-nav .ss-submenu,
  .ss-header-inner:has(.ss-cart-popup.is-open) .ss-nav .ss-submenu{
    opacity:0 !important;visibility:hidden !important;pointer-events:none !important;
  }
}
/* title comes from %OBJ_SMALL_CART_OBJ% as <strong> in the first row (not a heading,
   so the document heading outline still starts cleanly at the page <h1>) */
.ss-cart-popup .ss-cart-title,
.ss-cart-popup .normal strong{display:inline-block;font-family:var(--ss-font-display);text-transform:uppercase;font-size:1.15rem;color:var(--ss-navy-deep);margin:0 0 6px;}
.ss-cart-popup table{width:100%;border-collapse:collapse;font-size:.9rem;}
.ss-cart-popup td{padding:6px 4px;border-bottom:1px solid var(--ss-gray-100);vertical-align:top;}
/* scope link colour to the injected mini-cart table ONLY, so it never bleeds
   onto the CTA buttons below (that was making the Checkout label navy-on-navy) */
.ss-cart-popup table a{color:var(--ss-navy);}
.ss-cart-popup .ss-cart-empty{color:#7a8797;padding:8px 0 14px;text-align:center;}
.ss-cart-popup .ss-cart-cta{display:flex;gap:8px;margin-top:14px;}
.ss-cart-popup .ss-cart-cta .ss-btn{flex:1;justify-content:center;padding:11px 12px;font-size:.9rem;}
/* keep both CTA labels legible at rest AND on hover (the :hover variants beat
   the base rule, so the outline button turns white-on-navy instead of navy-on-navy) */
.ss-cart-popup .ss-cart-cta .ss-btn-primary,
.ss-cart-popup .ss-cart-cta .ss-btn-primary:hover{color:#fff;}
.ss-cart-popup .ss-cart-cta .ss-btn-outline{color:var(--ss-navy);}
.ss-cart-popup .ss-cart-cta .ss-btn-outline:hover{color:#fff;}

/* ------------------------------------------------------------------ *
 * 6. Buttons (reusable)
 * ------------------------------------------------------------------ */
.ss-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--ss-font-body);font-weight:700;font-size:1rem;line-height:1;text-decoration:none;
  padding:14px 24px;border-radius:8px;border:2px solid transparent;cursor:pointer;min-height:48px;
  transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
.ss-btn:hover{transform:translateY(-1px);text-decoration:none;}
.ss-btn-accent{background:var(--ss-yellow);color:var(--ss-navy-deep);}
.ss-btn-accent:hover{background:var(--ss-yellow-hover);color:var(--ss-navy-deep);}
.ss-btn-primary{background:var(--ss-navy);color:#fff;}
.ss-btn-primary:hover{background:var(--ss-navy-hover);color:#fff;}
.ss-btn-outline{background:transparent;border-color:var(--ss-navy);color:var(--ss-navy);}
.ss-btn-outline:hover{background:var(--ss-navy);color:#fff;}

/* Engine action buttons: fn_create_action_button emits bare
   <input type='submit' ... role='button'> (no class) when a merchant sets button
   TEXT, so they were unstyled. Style those + the legacy .linkButton to match the
   theme. Scoped to page content (not the header/footer chrome). */
.ss-center input[type="submit"][role="button"],
.ss-center input[type="button"][role="button"],
.ss-center button[type="submit"]:not(.ss-search *),
.linkButton,a.linkButton,button.linkButton,input.linkButton{
  display:inline-block;white-space:nowrap;cursor:pointer;vertical-align:middle;
  font-family:var(--ss-font-body);font-weight:700;font-size:1rem;line-height:1.2;
  color:#fff !important;background:var(--ss-navy);border:2px solid transparent;border-radius:8px;
  padding:12px 22px;margin:4px;text-decoration:none;text-align:center;
  transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
.ss-center input[type="submit"][role="button"]:hover,
.ss-center input[type="button"][role="button"]:hover,
.ss-center button[type="submit"]:not(.ss-search *):hover,
.linkButton:hover,a.linkButton:hover,button.linkButton:hover,input.linkButton:hover{
  background:var(--ss-navy-hover);color:#fff !important;transform:translateY(-1px);text-decoration:none;
}

/* ------------------------------------------------------------------ *
 * 7. Hero + section + cards (optional home-page blocks)
 * ------------------------------------------------------------------ */
.ss-hero{position:relative;background:var(--ss-navy-deep);color:#fff;overflow:hidden;}
.ss-hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;max-width:var(--ss-wrap);margin:0 auto;padding:56px 20px 120px;}
.ss-hero h1{font-family:var(--ss-font-display);font-weight:700;text-transform:uppercase;font-size:clamp(3rem,4vw,5.5rem);letter-spacing:-1px;margin:0 0 .1em;}
.ss-hero .ss-lede{font-size:1.15rem;color:#dbe6f5;max-width:40ch;margin:0 0 26px;}
/* media column + HARD size cap so the illustration can never balloon, even when
   the hero is dropped full-width into store.asp or the grid stacks */
.ss-hero-media{position:relative;z-index:2;min-width:0;}
.ss-hero-media img,.ss-hero-media svg{display:block;width:100%;max-width:520px;height:auto;max-height:340px;margin-left:auto;border-radius:14px;}
.ss-hero-waves{position:absolute;left:0;right:0;bottom:-1px;line-height:0;pointer-events:none;}
.ss-hero-waves svg{width:100%;height:auto;display:block;max-height:120px;}
@media (max-width:820px){.ss-hero-inner{grid-template-columns:1fr;padding:44px 20px 100px;gap:26px;}.ss-hero-media{order:-1;}.ss-hero-media img,.ss-hero-media svg{max-width:420px;margin:0 auto;}}

.ss-section{padding:60px 0;}
.ss-section-head{text-align:center;max-width:56ch;margin:0 auto 38px;}
.ss-section-head h2{font-family:var(--ss-font-display);font-weight:700;text-transform:uppercase;font-size:clamp(2rem,5vw,2.9rem);letter-spacing:-.5px;color:var(--ss-navy-deep);}
.ss-card-grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}
.ss-card{background:#fff;border:1px solid var(--ss-gray-200);border-radius:var(--ss-radius);padding:26px 22px;display:flex;flex-direction:column;box-shadow:var(--ss-shadow);transition:transform .2s ease,box-shadow .2s ease;}
.ss-card:hover{transform:translateY(-4px);box-shadow:var(--ss-shadow-lg);}
.ss-card .ss-badge{align-self:flex-start;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ss-navy);background:var(--ss-blue-light);padding:5px 10px;border-radius:20px;margin-bottom:14px;}
.ss-card h3{font-family:var(--ss-font-display);text-transform:uppercase;font-size:1.5rem;color:var(--ss-navy-deep);margin:0 0 6px;}
.ss-card .ss-price{font-size:1.9rem;font-weight:700;color:var(--ss-navy);margin:4px 0 12px;}
.ss-card .ss-price small{font-size:.85rem;font-weight:500;color:var(--ss-slate);}
.ss-card p{margin:0 0 22px;}
.ss-card .ss-btn{margin-top:auto;}

/* ------------------------------------------------------------------ *
 * 8. Footer (BOTTOM region: footer + services widgets land here)
 * ------------------------------------------------------------------ */
/* Anchor for the engine's footer widget: HEADER.ASP inserts fn_display_new_footer()
   before the LAST </tbody> in the page, so this empty table (placed at the very
   bottom of the Body template) makes the footer render here — after all page
   content, including "Recently Viewed Items". No engine change needed. */
.ss-footer-anchor{width:100%;border-collapse:collapse;margin:0;}
.ss-footer-anchor>tbody>tr>td{padding:0;}

.ss-footer{background:var(--ss-navy-darkest);color:#c7d3e4;}
.ss-footer a{color:#c7d3e4;}
.ss-footer a:hover{color:var(--ss-yellow);}
.ss-footer .ss-footer-inner{max-width:var(--ss-wrap);margin:0 auto;padding:48px 20px;}
.ss-footer-bottom{border-top:1px solid rgba(255,255,255,.12);text-align:center;padding:18px 20px;font-size:.85rem;color:#9fb0c8;}

/* ------------------------------------------------------------------ *
 * 9. Toast (added-to-cart success, and any status message)
 * ------------------------------------------------------------------ */
#ss-toast-root{position:fixed;left:0;right:0;bottom:24px;z-index:3000;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;padding:0 16px;}
.ss-toast{
  pointer-events:auto;display:flex;align-items:center;gap:12px;max-width:420px;width:auto;
  background:#0b7a3b;color:#fff;padding:14px 18px;border-radius:10px;box-shadow:var(--ss-shadow-lg);
  font-weight:600;transform:translateY(16px);opacity:0;transition:transform .25s ease,opacity .25s ease;
}
.ss-toast.is-show{transform:translateY(0);opacity:1;}
.ss-toast.ss-toast-error{background:#c0261b;}
.ss-toast svg{width:22px;height:22px;flex:none;}
.ss-toast .ss-toast-close{margin-left:6px;background:none;border:0;color:#fff;cursor:pointer;font-size:1.1rem;line-height:1;opacity:.85;}
.ss-toast .ss-toast-close:hover{opacity:1;}

/* ------------------------------------------------------------------ *
 * 10. Responsive header
 *   >=768px : TWO rows — row1: logo (left) + search/login/cart (right),
 *                        row2: department links, centered. The nav row has the
 *                        full width and wraps, so it never overflows sideways
 *                        (this is what fixes the "nav runs off screen on zoom").
 *   <=767px : hamburger — row1: logo + toggle, row2: search, row3: login + cart,
 *                        department links inside the toggle drawer
 * ------------------------------------------------------------------ */
@media (max-width:767px){
  .ss-nav-toggle{display:inline-flex;order:2;margin-left:auto;}
  /* --- customer menu + search icon + cart icon all on ONE line --- */
  .ss-actions{order:3;flex-basis:100%;margin:8px 0 0;display:flex;flex-wrap:nowrap;align-items:center;gap:10px;}
  /* customer menu (login/sign-up or account name) stays left, pushes the icons right */
  .ss-header .dropdown-obj{min-width:0;margin:0 auto 0 0;}
  /* the account menu now sits at the LEFT of the row, so open it left-anchored
     (left:0) instead of right:0 or it gets clipped off the left edge of the screen */
  .ss-header .dropdown-obj-content{left:0 !important;right:auto !important;max-width:calc(100vw - 32px);}
  /* cart: icon + badge only (hide the "Cart" text label) */
  .ss-cart{flex:none;}
  .ss-cart-btn{padding:0 12px;}
  .ss-cart-btn > span:not(.ss-cart-count){display:none;}
  /* search COLLAPSES to a round icon button; the input is hidden until tapped */
  .ss-search{flex:none;position:static;}
  .ss-search input{display:none;}
  .ss-search button{width:44px;height:44px;border-radius:8px;}
  /* tapping the icon (theme.js adds .is-open) drops a full-width search bar below the header */
  .ss-search.is-open{position:absolute;left:0;right:0;top:100%;z-index:1300;display:flex;align-items:stretch;gap:8px;padding:12px 16px;background:var(--ss-navy-deep);box-shadow:var(--ss-shadow-lg);}
  .ss-search.is-open input{display:block;flex:1 1 auto;min-width:0;width:auto;height:46px;border-radius:8px;}
  .ss-search.is-open button{flex:none;width:auto;height:46px;padding:0 16px;border-radius:8px;gap:6px;}
  .ss-search.is-open button::after{content:"Search";font-family:var(--ss-font-body);font-weight:700;font-size:.95rem;}
  /* One Step Checkout (before_payment / payment): the wide invoice + form tables were
     being clipped off-screen (the .ss-scope has overflow-x:clip for the full-bleed hero).
     Let the narrowed checkout content scroll horizontally so every column stays reachable. */
  .ss-container.ss-doc-narrow{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  /* department links become the hamburger drawer */
  .ss-nav{
    order:4;position:absolute;left:0;right:0;top:100%;flex-basis:auto;margin:0;
    flex-direction:column;align-items:stretch;gap:0;z-index:1000;
    background:var(--ss-navy-deep);border-top:1px solid rgba(255,255,255,.12);
    padding:8px 16px 18px;box-shadow:var(--ss-shadow-lg);display:none;max-height:80vh;overflow:auto;
  }
  .ss-nav.is-open{display:flex;}
  .ss-menu{flex-direction:column;align-items:stretch;gap:0;width:100%;justify-content:flex-start;}
  .ss-menu > li > a,.ss-menu > li > .ss-drop-toggle{
    width:100%;justify-content:space-between;padding:14px 8px;border-bottom:1px solid rgba(255,255,255,.08);
  }
  .ss-menu > li > a::after,.ss-menu > li > .ss-drop-toggle::after{display:none;}
  .ss-menu > li > a[aria-current="page"],
  .ss-menu > li > .ss-drop-toggle[aria-current="page"]{box-shadow:inset 3px 0 0 var(--ss-yellow);background:rgba(255,255,255,.06);}
  /* accordion submenu inside the drawer (single column) */
  .ss-submenu{position:static;opacity:1;visibility:visible;transform:none;display:none;box-shadow:none;border:0;background:rgba(255,255,255,.06);margin:0;border-radius:8px;width:auto;height:auto !important;}
  .ss-submenu.ss-submenu--mega{column-count:1 !important;}
  .ss-submenu::before{display:none;}
  .ss-drop-toggle[aria-expanded="true"] + .ss-submenu{display:block;}
  .ss-submenu a{color:#e8eef7;white-space:normal;}
  .ss-submenu a:hover,.ss-submenu a:focus-visible{background:rgba(255,255,255,.12);color:#fff;}
}
@media (max-width:520px){
  .ss-header-inner{padding:10px 16px;}
  .ss-logo{font-size:1.4rem;}
  .ss-section{padding:44px 0;}
}

/* ------------------------------------------------------------------ *
 * 11. Department mega-menu (feature: departments + their items)
 *     Reuses .ss-menu / .ss-drop-toggle. A CSS GRID (not multi-column) shows
 *     ALL items across as many columns as fit — no horizontal scroll. Only a
 *     huge list triggers a vertical scroll (grid can't overflow sideways the
 *     way `columns` + a height cap did).
 * ------------------------------------------------------------------ */
.ss-submenu.ss-submenu--mega{min-width:240px;}
.ss-submenu .ss-submenu-head{
  display:block;font-family:var(--ss-font-display);text-transform:uppercase;
  font-size:.8rem;letter-spacing:.04em;color:var(--ss-navy);padding:6px 12px 4px;opacity:.75;
}
.ss-submenu .ss-submenu-all{font-weight:700;color:var(--ss-navy);}
.ss-submenu .ss-submenu-all::after{content:" \2192";}
@media (min-width:768px){
  /* CSS multi-column (not grid): items pack down each column with NO row-height
     alignment, so a 2-line name can't leave a gap next to a shorter one.
     Default = 1 column sized to content (a short menu stays narrow, no empty 2nd
     column). theme.js adds .is-two-col ONLY when a menu is tall enough to need a
     second column; column-count (not column-width) keeps the width exact so a
     filled 2-column menu never gets a horizontal scrollbar. */
  .ss-submenu.ss-submenu--mega{
    display:block;column-count:1;column-gap:26px;column-fill:auto;
    width:max-content;max-width:min(94vw,680px);
  }
  .ss-submenu.ss-submenu--mega.is-two-col{column-count:2;height:min(78vh,460px);}
  .ss-submenu.ss-submenu--mega > li{min-width:0;break-inside:avoid;}
  .ss-submenu.ss-submenu--mega > li a{white-space:normal;}          /* long names wrap in-column */
  .ss-submenu.ss-submenu--mega > li:first-child{column-span:all;}   /* "All <Dept>" spans full width */
}

/* ------------------------------------------------------------------ *
 * 12. Item layouts  (small / featured / detail)
 *     Responsive + ADA replacements for the classic ItemList / ItemDetail
 *     markup. Prefixed .ss-item-* so they never inherit the old fixed
 *     widths / negative margins from common_styles.
 * ------------------------------------------------------------------ */
.ss-item img{max-width:100%;height:auto;}

/* --- small (list row) --- */
.ss-item-small{
  display:flex;gap:18px;align-items:flex-start;
  background:#fff;border:1px solid var(--ss-gray-200);border-radius:var(--ss-radius);
  padding:16px;margin:0 0 16px;box-shadow:var(--ss-shadow);
}
.ss-item-small .ss-item-thumb{flex:0 0 130px;max-width:130px;}
.ss-item-small .ss-item-thumb img{border-radius:8px;}
.ss-item-small .ss-item-body{min-width:0;flex:1;}
.ss-item-name{font-family:var(--ss-font-body);font-weight:700;font-size:1.15rem;color:var(--ss-navy-deep);margin:0 0 4px;}
.ss-item-name a{color:var(--ss-navy);text-decoration:none;}
.ss-item-name a:hover{text-decoration:underline;}
.ss-item-price{font-size:1.25rem;font-weight:700;color:var(--ss-navy);margin:6px 0;}
.ss-item-desc{color:var(--ss-slate);font-size:.95rem;}
@media (max-width:560px){
  .ss-item-small{flex-direction:column;}
  .ss-item-small .ss-item-thumb{flex:none;max-width:100%;align-self:center;}
}

/* --- featured (card, flows in a wrapping row) --- */
.ss-item-featured{
  display:inline-flex;flex-direction:column;vertical-align:top;text-align:center;
  width:250px;max-width:100%;margin:0 10px 20px;padding:18px;
  background:#fff;border:1px solid var(--ss-gray-200);border-radius:var(--ss-radius);
  box-shadow:var(--ss-shadow);transition:transform .2s ease,box-shadow .2s ease;
}
.ss-item-featured:hover{transform:translateY(-4px);box-shadow:var(--ss-shadow-lg);}
.ss-item-featured .ss-item-thumb{display:flex;justify-content:center;align-items:center;min-height:150px;margin-bottom:10px;}
.ss-item-featured .ss-item-thumb img{max-height:150px;}
.ss-item-featured .ss-item-name{font-size:1.05rem;}
.ss-item-featured .ss-item-desc{font-size:.9rem;}

/* --- detail --- */
.ss-item-detail{
  display:grid;gap:28px 36px;align-items:start;
  grid-template-columns:minmax(0,420px) minmax(0,1fr);
  grid-template-areas:"media info" "desc desc";
  max-width:1000px;margin:8px auto 0;
}
.ss-item-detail-media{grid-area:media;}
.ss-item-detail-media img{border-radius:12px;border:1px solid var(--ss-gray-200);}
.ss-item-detail-info{grid-area:info;min-width:0;}
.ss-item-detail-desc{grid-area:desc;min-width:0;border-top:1px solid var(--ss-gray-200);padding-top:22px;color:var(--ss-slate);line-height:1.7;}
.ss-item-detail-name{font-family:var(--ss-font-display);text-transform:uppercase;letter-spacing:-.4px;font-size:clamp(1.7rem,4vw,2.4rem);color:var(--ss-navy-deep);margin:0 0 8px;}
.ss-item-detail-name a{color:inherit;text-decoration:none;}
.ss-item-detail-price{font-size:1.8rem;font-weight:700;color:var(--ss-navy);margin:0 0 16px;}
.ss-item-detail-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0 0 16px;}
.ss-item-detail-qty label{font-weight:600;margin-right:6px;}
.ss-item-detail-field{margin:0 0 14px;}
.ss-item-detail-field label{display:block;font-weight:600;margin-bottom:4px;}
@media (max-width:760px){
  .ss-item-detail{grid-template-columns:1fr;grid-template-areas:"media" "info" "desc";}
  .ss-item-detail-media{max-width:420px;margin:0 auto;}
}

/* ------------------------------------------------------------------ *
 * 13. Services strip  (the "why buy online" widget)
 *     Use with .ss-full-bleed so the pale-blue band spans edge to edge
 *     while the inner content stays aligned. Prefixed so it never clashes
 *     with Bootstrap (.container) or the engine CSS.
 * ------------------------------------------------------------------ */
.ss-strip{background:var(--ss-blue-light);padding:56px 0;}
.ss-strip-inner{max-width:var(--ss-wrap);margin:0 auto;padding:0 20px;}
.ss-strip-grid{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.ss-strip-item{display:flex;gap:14px;align-items:flex-start;}
.ss-strip-ico{flex:none;width:46px;height:46px;border-radius:10px;background:var(--ss-navy);display:flex;align-items:center;justify-content:center;color:var(--ss-yellow);}
.ss-strip-ico svg{width:24px;height:24px;}
.ss-strip-item h3{font-size:1.15rem;color:var(--ss-navy-deep);margin:0 0 3px;font-weight:700;font-family:var(--ss-font-body);}
.ss-strip-item p{margin:0;font-size:.95rem;color:var(--ss-slate);}

/* ------------------------------------------------------------------ *
 * 14. Site footer  (rich, multi-column — the footer widget replacement)
 *     Place OUTSIDE .ss-scope (after its closing </div>) so its dark band
 *     spans the full width. All classes prefixed to avoid engine clashes.
 * ------------------------------------------------------------------ */
.ss-site-footer{background:var(--ss-navy-darkest);color:#c7d3e4;}
.ss-site-footer a{color:#c7d3e4;text-decoration:none;}
.ss-site-footer a:hover{color:var(--ss-yellow);text-decoration:underline;}
.ss-site-footer-top{display:grid;gap:36px;grid-template-columns:1.6fr 1fr 1fr;max-width:var(--ss-wrap);margin:0 auto;padding:56px 20px 40px;}
.ss-site-logo{display:inline-flex;align-items:center;gap:10px;color:#fff;font-family:var(--ss-font-display);font-weight:700;font-size:1.5rem;text-transform:uppercase;line-height:1;margin-bottom:14px;text-decoration:none;}
.ss-site-logo:hover{text-decoration:none;}
.ss-site-logo img{max-height:40px;width:auto;}
.ss-site-footer-brand p{max-width:38ch;font-size:.95rem;margin:0 0 16px;}
.ss-site-footer-col h3{color:#fff;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;margin:0 0 16px;font-weight:700;font-family:var(--ss-font-body);}
.ss-site-footer-col ul{list-style:none;margin:0;padding:0;}
.ss-site-footer-col li{margin-bottom:10px;}
.ss-site-footer-col a{font-size:.95rem;}
.ss-site-footer-social{display:flex;gap:12px;margin-top:6px;}
.ss-site-footer-social a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;color:#fff;}
.ss-site-footer-social a:hover{background:var(--ss-yellow);color:var(--ss-navy-deep);text-decoration:none;}
.ss-site-footer-social svg{width:20px;height:20px;}
.ss-site-footer-bottom{border-top:1px solid rgba(255,255,255,.12);max-width:var(--ss-wrap);margin:0 auto;padding:20px;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:.85rem;color:#9fb0c8;}
/* The footer copyright/credit line is a text block, so its links must be distinguishable
   from the surrounding text by more than colour. Underline them (fixes the Lighthouse
   "Links rely on color to be distinguishable" / WCAG 1.4.1 finding on the "Store Secured
   LLC" credit — link #c7d3e4 vs surrounding #9fb0c8 was only 1.45:1). */
.ss-site-footer-bottom a{text-decoration:underline;}
.ss-site-footer-bottom a:hover{color:var(--ss-yellow);}
@media (max-width:820px){.ss-site-footer-top{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.ss-site-footer-top{grid-template-columns:1fr;}.ss-site-footer-bottom{flex-direction:column;gap:6px;}}
