@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================================
   modern.css  —  POC modernization layer for BVStore
   ----------------------------------------------------------------------------
   Loaded LAST so it wins the cascade. It restyles the EXISTING markup via the
   stable selectors the platform already emits (#header, ul.menuUL, .ui-button,
   #crdouble, #footer, ...). No markup changes required.

   Per-store identity lives ENTIRELY in the :root tokens below. To rebrand a
   store, only these variables change — the rest of the file is shared.
   ========================================================================== */

:root {
    /* Brand identity — the only per-store customization point */
    --brand-primary:   #2563eb;   /* CTAs, links, accents            */
    --brand-primary-d: #1d4ed8;   /* hover / pressed                 */
    --brand-primary-rgb: 37, 99, 235;  /* same as --brand-primary, for focus-ring rgba() */
    --brand-ink:       #0f172a;   /* near-black for nav/header text  */

    /* Neutral system */
    --c-text:    #1f2937;
    --c-muted:   #6b7280;
    --c-line:    #e5e7eb;
    --c-bg:      #ffffff;
    --c-bg-soft: #f7f8fa;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Shape & depth */
    --radius:    10px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
    --shadow-md: 0 4px 6px -1px rgba(16,24,40,.08), 0 2px 4px -2px rgba(16,24,40,.06);
    --shadow-lg: 0 12px 24px -8px rgba(16,24,40,.18);

    /* Rhythm */
    --space:     20px;
    --maxw:      1200px;
}

/* ----------------------------------------------------------------------------
   1. Base & typography
   -------------------------------------------------------------------------- */
body {
    font-family: var(--font-sans) !important;
    /* color + background inherit from the store's base theme (not imposed) */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    /* heading color inherits from the store's base theme */
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    border-bottom: 0;   /* theme puts a red underline on headings — remove it (structure) */
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* links: keep the smooth transition (behavior) but inherit the store's link color */
a, a:link, a:visited { transition: color .15s ease; }
/* The base theme draws a focus outline on every link (a:focus { outline: ... }), which
   shows an ugly black box around a link after a MOUSE click — most obvious on the wide
   logo link. Suppress it for pointer focus but KEEP it for keyboard users (:focus-visible)
   so keyboard accessibility is preserved. */
a:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) { outline: none !important; }

/* Center the page content and give it breathing room */
#mainWrapper   { max-width: 100%; }
#contentWrapper,
#col2Wrapper   { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
#contentWrapper { padding: 22px 16px 0; }   /* clear the header/nav drop shadow so it doesn't smudge the first content */

/* Home page: keep the platform's ORIGINAL 1024px content width (not the modern
   1200). The home hero, promo banner, and product grid are all built for 1024 and
   center within it; the wider modern column left-aligned the hero against its
   centered siblings, which read as "off". Scoped via :has(#homePrContent) so only
   the home page is narrowed — every other page keeps the modern 1200 width.
   (If a browser lacks :has support it simply keeps 1200 — no breakage.) */
#contentWrapper:has(#homePrContent) { max-width: 1024px; }

/* ----------------------------------------------------------------------------
   2. Header & branding
   -------------------------------------------------------------------------- */
#header,
#BrandingArea {
    border: 0;   /* background inherits from the store's base theme */
}
#BrandingArea {
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
}
/* Top utility bar — keep the STRUCTURE fix (let it grow to contain its rows) but
   inherit the store's own bar background. */
.SiteMenuWrap {
    height: auto !important;   /* logged-in adds buttons + account info; don't clip to 54px */
    min-height: 0 !important;
}

#Logo { padding: 10px 16px; }
/* Logo: cap by height and ALWAYS preserve aspect ratio. Some themes set
   `div#BrandingArea div#Logo img { width:100% }` (a 2-ID selector that outranks
   a plain #Logo img), which stretches a normal-sized logo to fill the banner and,
   combined with our max-height, smears it. !important here keeps the logo crisp
   and proportional on any store, never wider than its container. */
#Logo img, #LogoImage {
    max-height: 64px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Search / account row alignment (well-known platform quirks) */
/* Take the search chain out of float so the dark bar grows to contain its rows
   (floated children don't expand the bar, so wrapped content was spilling onto white). */
.SiteMenuWrapLeft, #SiteMenu, #searchContainer { float: none !important; }
/* Some themes paint #SiteMenu (the inner content box) with their OWN bar color and
   size it narrow; modern's full-width layout would then let that box cover the real
   bar band. Keep the inner content transparent so the store's actual utility-bar
   color (on .SiteMenuWrap) shows through — store-agnostic, no palette imposed. */
#SiteMenu, .SiteMenuSqueeze, #searchContainer, #buttonsContainer { background: transparent !important; }
/* Use the FULL width instead of a 1024px centered column, so the utility content
   spreads out (search left / account right) on one row instead of stacking tall. */
.SiteMenuSqueeze { max-width: none !important; margin: 0 !important; padding: 5px 28px !important; }
/* Account buttons now live in the person menu, so the bar only holds search +
   dropdowns + 2 icons — keep it all on ONE row (no wrap) for a short bar. */
#searchContainer  { display: flex !important; align-items: center; flex-wrap: nowrap; gap: 8px; }
/* The Shop By Brand/Price dropdowns are ~333px each (way wider than needed),
   which forces the account group onto a second row. Compact them so the whole
   utility bar fits on one balanced row. */
#shopByBrandControl select, #shopByPriceControl select { width: 180px !important; min-width: 0 !important; }
/* shrink the dropdown CONTAINERS to fit their select (they're ~262px with trailing
   empty space, which makes the gaps between Search/Brand/Price look uneven) */
#shopByBrandControl, #shopByPriceControl { width: auto !important; }

/* Icon-style account control: person icon in the bar, account actions in a dropdown */
.modern-acct { position: relative; display: inline-flex; align-items: center; }
.modern-acct-toggle {
    background: none; border: 0; cursor: pointer;
    font-size: 20px; line-height: 1; padding: 6px 10px;   /* color set by modern.js from the bar's own text color */
}
.modern-acct-toggle:hover { opacity: .75; }
.modern-acct-menu {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    flex-direction: column; gap: 2px;
    min-width: 210px; padding: 8px;
    background: #fff; color: var(--c-text);
    border: 1px solid var(--c-line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 100000;   /* above the nav band so it can't paint over the menu */
    text-align: left;
}
.modern-acct.open .modern-acct-menu { display: flex; }

/* "My Stores" control (multi-store users): a store icon between the points chip and the
   account icon, opening a dropdown of the stores the user can reach. Mirrors the account
   menu. Built by modern.js (initOtherStores) only when the server emits accessible stores. */
.modern-stores { position: relative; display: inline-flex; align-items: center; }
.modern-stores-toggle {
    background: none; border: 0; cursor: pointer;
    font-size: 20px; line-height: 1; padding: 6px 10px;   /* color set by modern.js from the bar's own text color */
}
.modern-stores-toggle:hover { opacity: .75; }
.modern-stores-menu {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    flex-direction: column; gap: 2px;
    min-width: 210px; padding: 8px;
    background: #fff; color: var(--c-text);
    border: 1px solid var(--c-line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 100000;   /* above the nav band */
    text-align: left;
}
.modern-stores.open .modern-stores-menu { display: flex; }
.modern-stores-head {
    display: block; color: var(--c-muted); font-weight: 600;
    padding: 4px 10px 8px; border-bottom: 1px solid var(--c-line); margin-bottom: 4px;
}
.modern-stores-menu a {
    display: block; width: 100%;
    background: transparent !important; color: var(--c-text) !important;
    border: 0 !important; box-shadow: none !important;
    text-align: left !important; padding: 9px 10px !important;
    border-radius: var(--radius-sm); font-weight: 500; text-decoration: none !important;
}
/* match the account menu hover exactly (!important beats the theme's dark a:hover) */
.modern-stores-menu a:hover { background: var(--c-bg-soft) !important; color: var(--brand-ink) !important; text-decoration: none !important; }
.modern-acct-menu > span { display: block !important; text-align: left !important; }
/* turn the loose blue buttons into clean left-aligned menu rows */
.modern-acct-menu .ui-button, .modern-acct-menu .btnTop {
    display: block; width: 100%;
    background: transparent !important; color: var(--c-text) !important;
    border: 0 !important; box-shadow: none !important;
    text-align: left !important; padding: 9px 10px !important;
    border-radius: var(--radius-sm); font-weight: 500;
}
.modern-acct-menu .ui-button:hover, .modern-acct-menu .btnTop:hover {
    background: var(--c-bg-soft) !important; color: var(--brand-ink) !important;
}
/* greeting as a menu header */
.modern-acct-menu [id$="LoggedInUser"] {
    display: block !important; color: var(--c-muted) !important;
    font-weight: 600; padding: 4px 10px 8px;
    border-bottom: 1px solid var(--c-line); margin-bottom: 4px;
}
#buttonsContainer { display: flex !important; align-items: center; flex-wrap: wrap !important; justify-content: flex-end; gap: 8px; padding: 4px 16px !important; margin-left: auto; }
/* Language toggle buttons (multilingual stores). modern.js (initLanguageButtons) moves
   #flagButtons into the bar to the right of the cart; here we turn the chunky jQuery-UI
   buttons into compact pills. Text/border color is set to the bar's contrast color by
   initHeaderIconColor (so they read on any bar), hence border:1px solid currentColor. */
#flagButtons.modern-lang {
    display: inline-flex; align-items: center; align-self: center; gap: 6px;
    float: none !important; position: static !important;
    /* !important on margin: the theme gives #flagButtons a margin-top (~13px) for its .SiteMenuWrap
       spot, which pushed the pills below the icons even with align-self:center. */
    margin: 0 2px 0 12px !important; padding: 0 !important; width: auto !important; min-width: 0 !important;
}
#flagButtons.modern-lang .btnFlags {
    background: transparent !important;
    border: 1px solid currentColor !important;
    color: inherit !important;
    border-radius: 999px !important;
    padding: 4px 12px !important; margin: 0 !important;
    width: auto !important; min-width: 0 !important; height: auto !important;
    font: 600 12px/1 var(--font-sans, sans-serif) !important;
    box-shadow: none !important; text-shadow: none !important;
    vertical-align: middle !important;
    opacity: .7; cursor: pointer;
    transition: opacity .15s ease, background .15s ease;
}
#flagButtons.modern-lang .btnFlags:hover { opacity: 1; }
.search-button    { margin-left: 0; }
/* Logged-in: cart + account info (Cart Total / Reward Points / Payroll Balance)
   readable on the dark bar, and no one-word-per-line wrapping. */
#navShop { white-space: nowrap; position: relative; display: inline-flex !important; align-items: center; }
/* cart icon/text color is set by modern.js to the bar's own text color (the
   inherit chain hits a transparent ancestor on some themes). The mini-cart
   popup keeps its own dark text below since it sits on a white card. */
/* Align the cart icon with the person icon: the base sizes it larger (~22.5px)
   and adds padding + baseline alignment, dropping its center ~5px below the
   person icon. Normalize size, padding, and centering to match. */
#navShop i, #lnkCart2 i {
    font-size: 20px !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}
/* Cart count as a small circular badge on the icon (instead of "(3)") */
/* Drop any theme background box painted on the cart link so the icon sits cleanly
   on the bar (some themes give #lnkCart2 a solid colored square). */
/* inline-flex + center so the cart glyph lines up with the person/store icons (it otherwise sat ~2px high) */
#lnkCart2 { position: relative; display: inline-flex !important; align-items: center; background: transparent !important; }
.modern-cart-badge {
    position: absolute; top: -5px; right: -10px;
    min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box;
    background: var(--brand-primary); color: #fff !important;
    font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
    border-radius: 999px;
}
/* ...but the mini-cart dropdown lives inside #navShop on a white background, so
   restore dark, readable text there (buttons stay white via .ui-button) + modernize it. */
/* Flash fix: keep the cart popup invisible until modern.js positions + reveals it.
   Class-based (theme can't wipe it) and gated by html.modern-cart-gated so the cart
   still works if modern.js never runs. transition:none kills any theme slide/fade. */
html.modern-cart-gated #MiniCartTotal { visibility: hidden !important; }
html.modern-cart-gated #MiniCartTotal.modern-cart-ready { visibility: visible !important; }
#MiniCartTotal {
    border: 1px solid var(--c-line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: none !important;
    padding: 16px 16px 12px !important;
    /* Position fully in CSS (!important beats the theme's inline) so the popup is
       never at the wrong spot — no JS move, no flash. Anchored to #navShop (relative),
       8px below it = same level the person menu opens at. */
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: auto !important;
    right: 0 !important;
    bottom: auto !important;
    width: 264px !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    z-index: 100000 !important;   /* above the nav band so it can't paint over the popup */
}
#MiniCartTotal td, #MiniCartTotal span, #MiniCartTotal a,
#MiniCartTotal b, #MiniCartTotal p, #MiniCartTotal div {
    color: var(--c-text) !important;
    white-space: normal;
}
#MiniCartTotal input[type="text"] {
    border: 1px solid var(--c-line) !important;
    border-radius: var(--radius-sm) !important;
    height: 35px !important;       /* match the Go button height exactly */
    padding: 0 10px !important;
    width: 150px;
    box-sizing: border-box !important;
    vertical-align: middle;
}
#MiniCartTotal .search-button, #MiniCartTotal .ui-button { vertical-align: middle; }
/* Clean white card like the person menu: drop the gray header strip, the leftover
   cart icon, and the INNER table border so it's one box, not a box-in-a-box. */
#MiniCartTotal .ShoppingCartHeader { background: transparent !important; border: 0 !important; }
#MiniCartTotal img[alt="Cart"] { display: none !important; }
#MiniCartTotal .miniCartTbl { border: 0 !important; box-shadow: none !important; width: 100% !important; max-width: none !important; }
#MiniCartTotal .miniCartTbl tr,
#MiniCartTotal .miniCartTbl td { border: 0 !important; box-shadow: none !important; }
/* trim trailing space at the bottom of the gift-card section */
#MiniCartTotal .GiftCardSearchCont { margin-bottom: 0 !important; padding-bottom: 0 !important; }
#MiniCartTotal h5:empty, #MiniCartTotal span:empty { display: none !important; }
/* keep intentionally-hidden buttons hidden */
#buttonsContainer > span[style*="display: none"] { display: none !important; }

/* Search input */
#KeywordField,
input[id$="KeywordField"] {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);   /* round LEFT only — it sits flush against the go button (which rounds the right) */
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#KeywordField:focus,
input[id$="KeywordField"]:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .18);
}

/* ----------------------------------------------------------------------------
   3. Navigation menu (ul.menuUL)
   -------------------------------------------------------------------------- */
/* Full-bleed navy nav band: put the background on the full-width #menuContainer
   so the bar spans edge-to-edge, while the links stay in the centered #horMenu
   content column (links don't move). The top-level menuUL goes transparent; the
   dropdown submenu (ul.menuUL ul.menuUL, below) keeps its own navy background. */
/* Full-bleed nav band: the band must span edge-to-edge, but the COLOR comes from
   the store's own nav. modern.js reads the base nav background and applies it to
   the full-width #menuContainer (and sets the matching text color), so this works
   on any store without imposing a palette. CSS here only does structure. */
#menuContainer {
    box-shadow: var(--shadow-sm);
}
ul.menuUL {
    border-radius: 0;   /* background/color inherit from the base nav */
}
ul.menuUL li a {
    font-family: var(--font-sans);
    font-size: 14px !important;
    font-weight: 500;
    padding: 12px 18px;
    letter-spacing: .01em;
    transition: background .15s ease, color .15s ease;   /* base provides the colors */
}
ul.menuUL ul.menuUL {
    border-radius: 0;                         /* square: reads as attached to the nav, not a floating pill */
    box-shadow: 0 2px 4px rgba(16,24,40,.12); /* soft, subtle */
    padding: 6px 0;                           /* dropdown bg/hover inherit from the base */
}

/* Left-anchor the masthead: pull the logo and the nav links out of the centered
   1024 column so they sit at the utility bar's left edge. The nav BAND stays
   full-bleed via #menuContainer; only the links move. Page content stays in its
   centered column. The nav's FIRST item hugs the left edge (small gap) rather than
   carrying the same indent as the rest — a store whose logo is centered (a wide
   logo-in-canvas image) otherwise left the first menu item looking orphaned. */
#Logo {
    max-width: none !important;
    margin: 10px 0 0 0 !important;
    padding-left: 18px !important;
    text-align: left !important;
}
#horMenu {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}
/* First top-level item flush to the left edge (keeps normal spacing between the rest). */
ul.menuUL > li:first-child > a { padding-left: 12px !important; }
/* Dropdown submenu items: (1) they inherit the top nav's centered text-align, so
   different-length labels ("Ladies' Apparel" vs "Men's Apparel") get different left
   edges; force LEFT so every item shares one left edge and lines up under the parent
   label. (2) A submenu is ALSO a ul.menuUL, so the first-child rule above leaks into
   the first item's padding; pin all items to the normal left padding. */
ul.menuUL ul.menuUL li a { text-align: left !important; padding-left: 18px !important; }

/* ----------------------------------------------------------------------------
   Condensing sticky header (size/spacing only — NO color change).
   #header is position:fixed (theme) and body has padding-top to clear it.
   On scroll, modern.js adds html.modern-condensed; we shrink the logo + its
   row AND the body's top offset together, so the bar gets compact with no gap.
   The logo <img> is a replaced element with a fixed aspect ratio, so animating
   height with width:auto scales it proportionally and smoothly.
   -------------------------------------------------------------------------- */
/* NOTE: the logo is an SVG <img> whose intrinsic HEIGHT can't be overridden by
   CSS here (width works, height doesn't, even with inline !important) — so we
   scale it with transform (which does work) and reclaim the row height via the
   #Logo container + the body offset. */
/* Scale the logo down with transform (height can't be set on this SVG <img>,
   and a height-crop would cut off logos that fill their canvas). transform
   scales the artwork proportionally — never crops. Scaling is visual only, so
   we ALSO reclaim the leftover box space with a negative margin-bottom on #Logo
   (which pulls the nav up), making the footprint genuinely smaller. */
/* Target #Logo img (not a per-page id like #Header1_LogoImage, which is
   #Header_LogoImage on other pages) so it matches the logo on every page; and
   transform:scale works for ANY format (PNG/JPG/SVG), unlike height-crop. */
#Logo img { transform-origin: left top; transition: transform .2s ease; }
#Logo { transition: padding .2s ease, margin .2s ease; }
body { transition: padding-top .2s ease; }

html.modern-condensed #Logo img { transform: scale(0.6); }
html.modern-condensed #Logo {
    margin-top: 4px !important;
    margin-bottom: -22px !important;   /* reclaim the empty bottom of the 50px img box */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
html.modern-condensed body { padding-top: 170px !important; }  /* tuned below to condensed header height */

/* ----------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
/* Buttons: modern SHAPE/spacing/weight/depth only — colors come from the store's
   base theme (its own button background, text, and border). */
input.ui-button, a.ui-button, .btnTop {
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    line-height: normal;
    text-transform: none;
    box-shadow: var(--shadow-sm);
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
    cursor: pointer;
}
input.ui-button:hover, a.ui-button:hover, .btnTop:hover {
    box-shadow: var(--shadow-md);   /* lift on hover; base provides the color shift */
}
input.ui-button:active, a.ui-button:active, .btnTop:active { transform: translateY(1px); }

/* ----------------------------------------------------------------------------
   5. Home page — original graphics & layout kept; interaction-only polish.
   The hero art, feature images, and 2-up grid are the store's own (the earlier
   restyle was removed because the original reads better). We add ONLY
   non-destructive interaction here: a framed hover on the feature cards and a
   gentle scroll-reveal. The rotator crossfade is handled in modern.js
   (Camera fx -> simpleFade), not here.
   -------------------------------------------------------------------------- */
/* Feature cards: clip + round so the hover zoom stays inside a clean frame. */
.HomePageBottomImage {
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.HomePageBottomImage:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.HomePageBottomImage .bottomImageImgLink img {
    vertical-align: top;               /* kill the inline baseline gap under the image */
    transition: transform .45s ease;
    transform-origin: center;
}
.HomePageBottomImage:hover .bottomImageImgLink img {
    transform: scale(1.05);            /* subtle in-frame zoom; art itself is untouched */
}

/* Featured cards reveal one at a time as they scroll in: a directional slide + scale,
   lightly staggered, alternating sides. Classes are added by modern.js (so nothing is
   ever left hidden if JS/IntersectionObserver is unavailable) and stripped once the
   entrance finishes so the hover-lift takes back over. prefers-reduced-motion honored
   by the JS guard, which never adds the classes. */
.HomePageBottomImage.modern-reveal {
    opacity: 0;
    transition: opacity .65s cubic-bezier(.2, .6, .2, 1), transform .65s cubic-bezier(.2, .6, .2, 1);
    will-change: opacity, transform;
}
.HomePageBottomImage.modern-reveal.rev-left  { transform: translate3d(-46px, 20px, 0) scale(.95); }
.HomePageBottomImage.modern-reveal.rev-right { transform: translate3d( 46px, 20px, 0) scale(.95); }
.HomePageBottomImage.modern-reveal.modern-reveal-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
/* Footer: let the base own its full-width footer (layout + colors). Some stores
   put the footer background on #footer itself, so constraining its width clipped
   the full-bleed background into a centered strip with white sides. */
#footerBottomNav ul { padding: 0; }
#footermenu a, #footerMenuLinks a, #footerBottomNav a {
    font-family: var(--font-sans);
    font-size: 14px;
}
#copyright, #poweredby {
    font-size: 12px;
    margin-top: 12px;
}

/* ----------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hpbi-wrapper { flex: 1 1 100%; }
    h1 { font-size: 1.6rem; }
    /* Mobile header: drop the Shop By Brand / Price convenience dropdowns so the
       cramped utility bar is just search + account + cart (no overlap). Filtering
       is still reachable via the menu / category pages. */
    #shopByBrandControl, #shopByPriceControl { display: none !important; }
    /* Mobile header: the theme HIDES the desktop search (#searchControl inside
       #searchContainer) and shows a SEPARATE mobile search (#searchContainer2);
       #searchContainer is then just the icons. Both are block siblings of
       #SiteMenu, so they stack (icons on top, search below). Make #SiteMenu a
       flex row: mobile search LEFT (grows/shrinks), icons RIGHT, one short row. */
    #SiteMenu { display: flex !important; flex-direction: row !important; align-items: center !important; flex-wrap: nowrap !important; gap: 10px; }
    #Header1_searchContainer2 { order: 1; flex: 1 1 auto !important; min-width: 0 !important; align-self: center !important; top: 0 !important; }  /* theme sets top:-24px which clips it out of the bar */
    #Header1_searchContainer2 #searchControl, #Header1_searchContainer2 .input-group {
        width: 100% !important; min-width: 0 !important; margin: 0 !important;   /* kill mb-3 margins that overflow the bar */
    }
    #searchContainer { order: 2; flex: 0 0 auto !important; width: auto !important; min-width: max-content !important; }
    /* size to BOTH icons so they don't overflow the left edge (which hid the
       account icon behind the search button); flex-end keeps them right-aligned. */
    #buttonsContainer { flex: 0 0 auto !important; flex-wrap: nowrap !important; width: auto !important; min-width: max-content !important; justify-content: flex-end !important; gap: 10px; margin: 0 !important; }
    /* (mobile hero override is at the END of the file so it beats the desktop
       hero rules, which come later in source order) */
}

/* ============================================================================
   8. Category / product-listing page (PLP)   —  lululemon-inspired
   Existing markup: #filterMainDiv (filters) + .SingleProductDisplay tiles
   (.SingleProductDisplayImage > a>img, .SingleProductDisplayName, ...Price)
   ========================================================================== */

/* Category heading + breadcrumb */
#divCategoryName { border-bottom: 1px solid var(--c-line) !important; padding-bottom: 8px; }
#divCategoryName h1 { font-size: 1.9rem; letter-spacing: -.02em; margin: 8px 0; }
#BreadCrumbs, #BreadCrumbs a { color: var(--c-muted); font-size: 13px; }

/* Search results heading — match the category title (dark, not red) */
.ContentHeader { border-bottom: 1px solid var(--c-line); padding-bottom: 10px; margin-bottom: 12px; }
[id$="TitleLabel"] {
    color: var(--brand-ink) !important;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

/* ---- Login page: clean centered card, no gray band, modern inputs ---- */
#loginHeader {
    background: transparent !important;
    border-bottom: 1px solid var(--c-line);
    padding: 0 0 10px !important;
    margin-bottom: 28px;
    color: var(--brand-ink) !important;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
}
/* Drop the outer page box (#maincontent) — keep just the single card */
#maincontent { border: 0 !important; }
#divCurrentUsers {
    max-width: 420px;
    margin: 36px auto 44px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}
[id$="inUsername"], [id$="inPassword"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    margin-bottom: 12px;
}
[id$="inUsername"]:focus, [id$="inPassword"]:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .18);
}
#divCurrentUsers .ui-button { width: 100%; margin-top: 6px; }

/* Product tile — borderless, grey square image backdrop, hover image zoom */
.SingleProductDisplay {
    height: auto !important;
    padding: 6px;
    margin-bottom: 24px;
    text-align: center;
}
.SingleProductDisplayImage > a:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;      /* no gray backdrop behind the image */
    padding: 8px;
    aspect-ratio: 1 / 1;          /* uniform image areas (keeps rows even) */
    overflow: hidden;
    margin-bottom: 12px;
}
.SingleProductDisplayImage > a:first-of-type img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    transition: transform .3s ease;
}
.SingleProductDisplay:hover .SingleProductDisplayImage > a:first-of-type img { transform: scale(1.05); }
/* Hover/alternate image (.spdHoverImg) is absolutely positioned to fill the square and
   center via object-fit. Our width/height:auto rule above would collapse it to top-left,
   so restore fill here (more specific + !important to beat it). */
.SingleProductDisplayImage > a:first-of-type img.spdHoverImg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Product name — bold dark, NOT the old blue underline */
.SingleProductDisplayName a {
    color: var(--brand-ink) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    line-height: 1.35;
}
.SingleProductDisplayName a:hover { text-decoration: underline !important; }
.SingleProductDisplayName a.brandName { color: var(--c-muted) !important; font-weight: 500; font-size: 12px; }

/* Modern category grid — only present when the server emits it (UseModernCategoryPageLayout=1).
   A real responsive CSS grid replacing the legacy <table>, on a wider page, with product images
   uncapped to their native size (~320px; width:auto means no upscaling = still crisp). Inert on
   legacy stores (the .modern-product-grid class never appears). */
#contentWrapper:has(.modern-product-grid),
#col2Wrapper:has(.modern-product-grid) { max-width: 1400px; }
#productsList:has(.modern-product-grid) { float: none !important; width: 100% !important; min-width: 0 !important; }
.modern-product-grid {
    display: grid;
    width: 100%;                    /* fill the column — Favorites (no filter panel) otherwise collapsed the grid to 0-width, pushing the item off to the right */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px 18px;
}
/* The whole CELL is the white card, so the color-swatch row (emitted server-side as a sibling AFTER
   .SingleProductDisplay) sits INSIDE the card instead of orphaned below it. The card look (white bg +
   shadow + radius) is moved off the inner .SingleProductDisplay — where the theme normally puts it —
   onto the cell. */
.modern-product-grid .modern-product-cell {
    min-width: 0;
    background: #fff;
    box-shadow: 0 0 16px rgba(0,0,0,.1);
    border-radius: 6px;
    padding: 6px 6px 14px;
    text-align: center;
}
.modern-product-grid .SingleProductDisplay {
    width: auto !important;
    max-width: none !important;        /* fill the grid cell (not the legacy 240px) */
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;       /* card spacing now comes from the cell padding */
}
/* Swatch row: small gap below the price; the anchors already carry inline circle styling. */
.modern-product-grid .modern-product-cell > div:not(.SingleProductDisplay) { margin-top: 8px; }
.modern-product-grid .SingleProductDisplayImage > a:first-of-type { aspect-ratio: 4 / 5; }            /* portrait well matches product photos so they show large */
.modern-product-grid .SingleProductDisplayImage > a:first-of-type img { max-width: 100% !important; max-height: 100% !important; }
.SingleProductDisplayPrice a {
    color: var(--c-text) !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
}

/* Subcategory tiles — same card treatment as product tiles */
.SingleCategoryDisplay {
    height: auto !important;
    max-width: none !important;
    padding: 6px;
    margin-bottom: 24px;
    text-align: center;
}
.SingleCategoryDisplayImage > a:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;      /* no gray backdrop behind the image */
    padding: 8px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 12px;
}
.SingleCategoryDisplayImage > a:first-of-type img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    transition: transform .3s ease;
}
.SingleCategoryDisplay:hover .SingleCategoryDisplayImage > a:first-of-type img { transform: scale(1.05); }
.SingleCategoryDisplayName a {
    color: var(--brand-ink) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    line-height: 1.35;
}
.SingleCategoryDisplayName a:hover { text-decoration: underline !important; }

/* Filter rail content */
#filterMainDiv h4 {
    color: var(--brand-ink);
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 6px !important;
    letter-spacing: .01em;
}
#filterMainDiv label { font-size: 13px; }
#filterMainDiv input[type="checkbox"] { width: 15px; height: 15px; }
/* Color-family filter swatches: the base renders them as 35px teardrops
   (inline border-radius:0 14px 14px 14px + padding). Make them clean round
   swatches showing the color-family image. */
#divColor label span[style*="background-image"], #chkColors label span[style*="background-image"] {
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    border: 1px solid var(--c-line) !important;
    display: inline-block !important;
    float: none !important;
    vertical-align: middle;
}

/* ---- Collapsible filters: hidden by default, open as a left slide-in drawer ---- */
.modern-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--brand-ink);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin: 4px 0 16px;
}
.modern-filter-toggle:hover { background: var(--c-bg-soft); }
.modern-filter-toggle i { color: var(--brand-primary); }

/* Prominent state: shown on dense categories (multi-page + has facets) so the filter is easy to
   find. Brand-filled primary treatment + a bit larger; label becomes "Narrow N results". */
.modern-filter-toggle--prominent {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    font-size: 15px;
    padding: 11px 22px;
}
.modern-filter-toggle--prominent:hover { background: var(--brand-primary-d); border-color: var(--brand-primary-d); }
.modern-filter-toggle--prominent i { color: #fff; }

/* One-time attention pulse (added by modern.js once per session). Rings out twice, then stops. */
@keyframes modernFilterPulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--brand-primary-rgb), .55); }
    70%  { box-shadow: 0 0 0 14px rgba(var(--brand-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--brand-primary-rgb), 0); }
}
.modern-filter-pulse { animation: modernFilterPulse 1.5s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .modern-filter-pulse { animation: none; } }

/* The panel becomes an off-canvas drawer (overrides inline float/width) */
[id$="FilterPnl"] {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px !important;
    max-width: 85vw;
    float: none !important;
    background: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 100000 !important;   /* above the fixed/sticky header so the nav can't paint over the drawer */
    overflow-y: auto;
    padding: 60px 22px 24px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .25s ease;
}
[id$="FilterPnl"] #filterMainDiv { width: auto !important; }
body.filters-open [id$="FilterPnl"] { transform: translateX(0); visibility: visible; }

#modernFilterBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .35);
    z-index: 99990 !important;   /* dimming scrim sits above the header too */
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}
body.filters-open #modernFilterBackdrop { opacity: 1; visibility: visible; }

#modernFilterClose {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--c-muted);
    cursor: pointer;
}

/* "Copy link" control — subtle link icon in the drawer header, left of the × close */
#modernFilterShare {
    position: absolute;
    top: 18px;
    right: 48px;
    background: none;
    border: 0;
    font-size: 16px;
    line-height: 1;
    color: var(--c-muted);
    cursor: pointer;
    padding: 2px;
}
#modernFilterShare:hover { color: var(--brand-primary); }

/* Facet "More" expanders (#brandMore / #sizeMore / #colorMore) are injected by legacy
   category.js to reveal brands/sizes/colors past the first 5. The store theme's styles.css
   paints every link white (a, a:link ...), so in the white filter drawer these were white-on-
   white and invisible — shoppers saw only 5 brands with no apparent way to expand. Give them
   the store accent + spacing so the "More" control reads as a clear, tappable link. */
#brandMore, #sizeMore, #colorMore {
    display: inline-block;
    margin: 8px 0 2px;
    color: var(--brand-primary) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
#brandMore:hover, #sizeMore:hover, #colorMore:hover { text-decoration: underline; }

/* Transient confirmation toast (e.g. "Link copied") */
.modern-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--brand-ink, #0f172a);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.modern-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Drill-down facets: grey out dead-end (zero-count) options instead of hiding them ---- */
.modern-facet-zero { opacity: .38; }
.modern-facet-zero,
.modern-facet-zero label,
.modern-facet-zero input[type="checkbox"] { cursor: not-allowed; }

/* "No products match your filters" message shown when a selection empties the grid */
.modern-no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--c-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* ---- Collapsible filter sections (INNO-148 req 8): headers toggle, collapsed by default ---- */
.modern-facet-head {
    cursor: pointer;
    position: relative;
    padding-right: 20px !important;
    user-select: none;
}
.modern-facet-head::after {
    content: '\25B8';           /* ▸ right-pointing when collapsed */
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--c-muted);
}
.modern-facet-head.open::after {
    content: '\25BE';           /* ▾ down-pointing when expanded */
}

/* ---- Wider, responsive product grid (overrides the fixed 3-column <table>) ---- */
/* Theme pins the product list to float:right; width:800px (and auto-centers it)
   for the old filters-left layout. With filters now in a drawer, reclaim full
   width and left-align. Category uses #productsList; Search uses #Records.
   Higher-specificity selectors needed to beat the theme's !important width. */
#productsList, #Records,
#DivRecords #productsList, #DivRecords #Records {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
}
/* Legacy table grid-ification (scoped to table#tblProducts so it does NOT fight the new
   server-rendered div grid used when UseModernCategoryPageLayout is on). */
table#tblProducts,
table#tblProducts > tbody { display: block; }
table#tblProducts > tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    width: 100%;   /* subcategory-only pages collapse the tbody otherwise */
}
table#tblProducts tr { display: contents; }   /* let every <td> flow into the grid */
table#tblProducts td {
    display: block;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
}
/* Card box on the CELL (product cells only) so the server-emitted "New" badge + color-swatch
   row — siblings rendered AFTER .SingleProductDisplay — sit INSIDE the card instead of orphaned
   below it. Mirrors the modern-grid treatment above, for stores still on the legacy table
   (UseModernCategoryPageLayout off). Scoped via :has() so subcategory tiles are untouched. */
table#tblProducts td:has(.SingleProductDisplay) {
    background: #fff;
    box-shadow: 0 0 16px rgba(0,0,0,.1);
    border-radius: 6px;
    padding: 6px 6px 14px;
    text-align: center;
}
table#tblProducts td:has(.SingleProductDisplay) .SingleProductDisplay {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    width: auto !important;
    margin-bottom: 0 !important;
}
table#tblProducts td:has(.SingleProductDisplay) > div:not(.SingleProductDisplay) { margin-top: 8px; }

/* Category banner (per-category BannerImageURL, set in admin): scale it to the content
   width so it isn't left-aligned/oversized in the wider modern layout, and round the
   corners to match the modern cards. Only applies where a banner is present. */
#CategoryBanner { text-align: center; margin: 0 0 18px; }
#CategoryBanner img, [id$="imgBanner"] img, img[id$="imgBanner"] {
    max-width: 100% !important; height: auto !important; border-radius: 8px;
}

/* Sort dropdown */
#Sorter select, .Sorter select, [id$="lstSort"], [id$="lstSort2"] {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    background: #fff;
}

/* ============================================================================
   9. Product-detail page (PDP)   —  lululemon-inspired
   Existing markup: #ProductPageContainerLeft (image) / ...Right (info)
   .ProductInfoWrap (h1#lblName, #lblBrand, #ProductSKU, #ProductDescription)
   #ProductControls > #Prices (Color/Size <select>) + #btnAddButton
   ========================================================================== */

/* NOTE: do NOT widen #ProductImageContainer or add a backdrop here. The xzoom
   gallery positions the thumbnail strip in the same area; a wider centered
   container overlaps the thumbnails and blocks their clicks. Left at theme default. */

/* Drop the box around the whole product page; leave a subtle bottom divider */
#ProductPageContainerContainer {
    border: 0 !important;
    border-bottom: 1px solid var(--c-line) !important;
    padding-bottom: 24px;
}

/* (Right info column was sticky, but it overlapped the Customer Reviews block
   below it — the reviews share its containing block — so it now scrolls normally.) */

/* Clean green in-stock indicator (borrowed from the reference design) */
#lblQtyInStock { color: #16a34a !important; font-weight: 600 !important; }
#lblQtyInStock::before { content: "\25CF  "; }

/* Subtle "+N more" photos tile under the 5th thumbnail */
.modern-more-photos {
    display: block;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 9px 4px;
    margin-top: 6px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-primary);
    background: var(--c-bg-soft);
    cursor: pointer;
}
.modern-more-photos:hover { background: #eef2f7; color: var(--brand-primary-d); }

/* Modernize the Spry detail tabs (Logo Methods / Logo Positions / General Info) */
.TabbedPanelsTabGroup {
    display: flex; gap: 2px; padding: 0 !important; margin: 0 0 2px !important;
    background: transparent !important; border-bottom: 1px solid var(--c-line) !important;
}
.TabbedPanelsTab {
    list-style: none !important; background: transparent !important; border: 0 !important;
    margin: 0 0 -1px 0 !important; padding: 10px 16px !important; top: 0 !important;
    font-family: var(--font-sans) !important; font-weight: 600 !important; font-size: 14px !important;
    color: var(--c-muted) !important; cursor: pointer;
}
.TabbedPanelsTab:hover { color: var(--brand-ink) !important; }
.TabbedPanelsTabSelected { color: var(--brand-ink) !important; border-bottom: 2px solid var(--brand-primary) !important; }
.TabbedPanelsContentGroup { border: 0 !important; background: transparent !important; }
.TabbedPanelsContent { padding: 16px 2px !important; }

/* Title / brand / sku / description */
.ProductInfoWrap h1, #lblName { font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 8px; }
#lblBrand, #lblBrand a { color: var(--c-muted); font-weight: 500; }
#ProductSKU, #ProductSKU span { color: var(--c-muted); font-size: 13px; }
#ProductDescription { color: var(--c-text); line-height: 1.6; max-width: 60ch; margin: 12px 0; }

/* Price: drop the "Your Price" label, show the price big and left-aligned */
#trSitePrice td:first-child { display: none !important; }   /* "Your Price" label cell */
#trSitePrice td:last-child { display: block; padding: 0; }
#lblSitePrice {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-ink);
    margin: 4px 0 14px;
}

/* Option choices (Color / Size / Logo & Location):
   flatten the dated gray header bars and bordered boxes into a clean
   lululemon-style "bold label + control + whitespace" treatment. */
.choice_Header,
.choice_PrimaryLogo {
    background: transparent !important;
    border: 0 !important;
    color: var(--brand-ink) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: .01em;
    padding: 0 0 6px !important;
}
/* Single-color products: color name shown as static text instead of a dropdown */
.modern-single-color { font-size: 14px; font-weight: 500; color: var(--c-text); padding: 2px 0; }

/* Multi-color: real color circles built from the swatch images */
.modern-color-name { font-size: 13px; font-weight: 500; color: var(--c-muted); margin-bottom: 8px; }
.modern-color-dots { display: flex; flex-wrap: wrap; gap: 10px; }
.modern-color-dot {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--c-line);
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .15s ease;
}
.modern-color-dot:hover { transform: scale(1.08); }
.modern-color-dot.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-primary); }

/* Fallback: rounded color-name chips when a swatch image is missing */
.modern-color-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 380px; }
.modern-color-chip {
    border: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-text);
    border-radius: 999px;
    padding: 7px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.modern-color-chip:hover { border-color: var(--brand-ink); }
.modern-color-chip.active { border-color: var(--brand-primary); background: var(--brand-primary); color: #fff; }

/* Quantity label: match the Color/Size labels (tagged by modern.js) */
.modern-qty-label {
    display: block;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--brand-ink) !important;
    margin-bottom: 6px;
}
td.ProductProperty {
    background: transparent !important;
    border: 0 !important;
    padding: 0 0 6px !important;
}
tr.optionSpacer td { padding: 10px 0 !important; }   /* breathing room between options */
.logoPicker b { color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.ProductPropertyLabel { font-weight: 600; color: var(--brand-ink); }

/* The select controls themselves — sleek, full-width */
select.ProductChoiceField,
select.logoPosition,
select.logoddl,
#Prices select {
    border: 1px solid var(--c-line) !important;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    background: #fff;
    width: 100%;
    max-width: 360px;
}
select.ProductChoiceField:focus,
select.logoPosition:focus,
select.logoddl:focus,
#Prices select:focus {
    border-color: var(--brand-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .18);
}

/* Add to cart — full-width, prominent primary CTA */
#btnAddButton {
    display: block;
    width: 100%;
    max-width: 380px;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

/* ---- Volume / tier pricing: flat mini-card ----
   (BVC DataGrid #dgVolumeDiscounts; gray header + borders by default) */
#pnlVolumeDiscounts { margin: 2px 0 6px !important; }
#tblMinQty { margin: 0 !important; }            /* collapse empty Min-Qty/In-Stock gap above */
#ProductDescription { margin-bottom: 4px !important; }   /* tighten gap above the tier card */
#ProductDescription br:last-child { display: none; }     /* drop trailing blank line */
/* drop the "Quantity / Price" column headers (rows are self-explanatory) */
#dgVolumeDiscounts tr.VolumePricingHeader { display: none !important; }
#dgVolumeDiscounts {
    border-collapse: collapse !important;
    border: 0 !important;
    width: auto !important;
    min-width: 240px;
    max-width: 320px;
    font-family: var(--font-sans);
}
#dgVolumeDiscounts td,
#dgVolumeDiscounts th {
    border: 0 !important;
    background: transparent !important;
    padding: 7px 0 !important;
    font-size: 13px;
}
/* header row -> muted small labels with a thin underline */
#dgVolumeDiscounts tr:first-child td,
#dgVolumeDiscounts tr:first-child th {
    color: var(--c-muted) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    border-bottom: 1px solid var(--c-line) !important;
}
/* data rows: quantity left, price right + semibold; thin separators */
#dgVolumeDiscounts tr td:first-child { color: var(--c-text); }
#dgVolumeDiscounts tr td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--brand-ink);
    padding-left: 32px !important;
}
#dgVolumeDiscounts tr + tr td { border-top: 1px solid #f1f5f9 !important; }
/* no separator above the first data row (the header above it is hidden) */
#dgVolumeDiscounts tr.VolumePricingHeader + tr td { border-top: 0 !important; }

/* ---- Multi-quantity size grid (qty box per size) ----
   :has scopes this to the size grid so other .FormLabel/.imessage are untouched */
#tblMinQty { margin: 0 !important; }
td.ProductProperty:has(input.MultiQty) table { border-collapse: collapse; width: auto; }
td.ProductProperty:has(input.MultiQty) td {
    padding: 9px 0 !important;
    vertical-align: middle;
    border-bottom: 1px solid #eef1f4 !important;   /* subtle row dividers */
}
td.ProductProperty:has(input.MultiQty) tr:last-child td { border-bottom: 0 !important; }
td.ProductProperty:has(input.MultiQty) .FormLabel {
    display: inline-block;
    min-width: 120px;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-ink);
}
input.MultiQty.qtyfield {
    width: 56px !important;
    height: 34px !important;
    border: 1px solid var(--c-line) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0 8px !important;
    font-family: var(--font-sans);
    font-size: 14px;
    text-align: center;
    background: #fff;
    margin-right: 12px;
}
input.MultiQty.qtyfield:focus {
    border-color: var(--brand-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .18);
}
/* "Limited Stock" -> subtle amber badge (scoped to the size grid) */
td:has(input.MultiQty) span.imessage {
    display: inline-block !important;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    padding: 2px 8px;
    margin: 0;
    white-space: nowrap;
}

/* Home hero rotator (Camera slideshow): no modern overrides — see section 5.
   The store's original slideshow styling is used as-is. */

/* ============================================================================
   Home edge-to-edge prototype: full-bleed hero + "What's New" tiles.
   Built by modern.js (initHomeEdgeToEdge). Home only.
   ========================================================================== */
/* Full-bleed: break out of the (centered, max-width) content wrapper. */
html, body { overflow-x: hidden; }                 /* contain the 100vw bleed (no h-scrollbar) */
/* Edge-to-edge home sections. Width is a FIXED px (--home-bleed-width = current window width,
   capped at the hero image's native width) set by modern.js. At 100% it spans the window; under
   Ctrl+zoom the fixed px scales, so the whole hero (image + logo + CTA) shrinks/grows together
   instead of the image re-filling while the text shrinks. Recomputed only on a real window resize
   (not on zoom). Falls back to 100vw until JS runs. */
.modern-hero, .modern-row, .modern-band, .modern-otherstore-banner {
    width: var(--home-bleed-width, 100vw);
    margin-left: calc(50% - var(--home-bleed-width, 100vw) / 2);
}
/* Butt the hero against the nav — drop the content wrapper's top padding on this page. */
/* Match both the client prototype (#modernHome wrapper) and the server-rendered sections
   (pnlSections) by keying off the section markup itself, which exists inside the wrapper in both. */
#contentWrapper:has(.modern-hero),
#contentWrapper:has(.modern-row),
#contentWrapper:has(.modern-band),
#contentWrapper:has(.modern-otherstore-banner) { padding-top: 0; }

/* ---- Other-store banner: full-bleed conditional partner-store image (server-rendered only) --------
   Emitted by HomePageContent's RenderOtherStoreBanner ONLY for a logged-in user who also has an account
   in the partner store; links to that store's auto-login. A plain <div> wrapper is used for the
   no-account fallback image. Full-bleed clickable image, no cropping (height auto). */
.modern-otherstore-banner { display: block; overflow: hidden; }
.modern-otherstore-img { display: block; width: 100%; height: auto; }

/* ---- Hero ---- */
/* Hero caption placement (see KB 5371). Set per hero with "textPos" in home-sections.json.
   Desktop anchors the caption to any of nine positions; the default (omitted or unrecognized
   value) is bottom-right, matching the base .modern-hero-caption rule below. On mobile every
   caption centers regardless (see the max-width:768px block further down). */
@media (min-width: 769px){
  .modern-hero[data-text-pos="top-left"]      .modern-hero-caption { top: 8%;  bottom: auto; left: 5%;  right: auto; transform: none;                  text-align: left;   }
  .modern-hero[data-text-pos="top-center"]    .modern-hero-caption { top: 8%;  bottom: auto; left: 50%; right: auto; transform: translateX(-50%);      text-align: center; }
  .modern-hero[data-text-pos="top-right"]     .modern-hero-caption { top: 8%;  bottom: auto; right: 5%; left: auto;  transform: none;                  text-align: left;   }
  .modern-hero[data-text-pos="center-left"]   .modern-hero-caption { top: 50%; bottom: auto; left: 5%;  right: auto; transform: translateY(-50%);      text-align: left;   }
  .modern-hero[data-text-pos="center"]        .modern-hero-caption { top: 50%; bottom: auto; left: 50%; right: auto; transform: translate(-50%,-50%);  text-align: center; }
  .modern-hero[data-text-pos="center-right"]  .modern-hero-caption { top: 50%; bottom: auto; right: 5%; left: auto;  transform: translateY(-50%);      text-align: left;   }
  .modern-hero[data-text-pos="bottom-left"]   .modern-hero-caption { bottom: 8%; top: auto;  left: 5%;  right: auto; transform: none;                  text-align: left;   }
  .modern-hero[data-text-pos="bottom-center"] .modern-hero-caption { bottom: 8%; top: auto;  left: 50%; right: auto; transform: translateX(-50%);      text-align: center; }
  .modern-hero[data-text-pos="bottom-right"]  .modern-hero-caption { bottom: 8%; top: auto;  right: 5%; left: auto;  transform: none;                  text-align: left;   }

  /* Horizontally-centered variants widen the block and center the subtitle + CTA row. */
  .modern-hero[data-text-pos="top-center"]    .modern-hero-caption,
  .modern-hero[data-text-pos="center"]        .modern-hero-caption,
  .modern-hero[data-text-pos="bottom-center"] .modern-hero-caption { max-width: 80%; }
  .modern-hero[data-text-pos="top-center"]    .modern-hero-sub,
  .modern-hero[data-text-pos="center"]        .modern-hero-sub,
  .modern-hero[data-text-pos="bottom-center"] .modern-hero-sub { margin-left: auto; margin-right: auto; }
  .modern-hero[data-text-pos="top-center"]    .modern-hero-ctas,
  .modern-hero[data-text-pos="center"]        .modern-hero-ctas,
  .modern-hero[data-text-pos="bottom-center"] .modern-hero-ctas { justify-content: center; }
}
.modern-hero { position: relative; overflow: hidden; background: #efece6; }
.modern-hero-img {
    display: block; width: 100%;
    height: min(72vh, 720px);
    object-fit: cover; object-position: center top;   /* keep heads; crop off the bottom */
}
.modern-hero-caption {
    position: absolute; bottom: 8%; right: 5%;
    max-width: 40%; text-align: left; text-decoration: none; display: block;   /* whole block left-aligned (consistent) */
}
/* dark theme = dark text + light halo (over light backgrounds) */
.modern-hero[data-text-theme="dark"] .modern-hero-headline,
.modern-hero[data-text-theme="dark"] .modern-hero-sub { color: #111; text-shadow: 0 2px 22px rgba(255, 255, 255, .55); }
/* light theme = white text + soft dark shadow (legible over both the dark sweater and the light yellow) */
.modern-hero[data-text-theme="light"] .modern-hero-headline,
.modern-hero[data-text-theme="light"] .modern-hero-sub { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.modern-hero-headline {
    font-family: var(--font-sans, sans-serif);
    font-weight: 600; font-size: clamp(30px, 4.4vw, 66px);   /* semibold — more refined, lululemon feel */
    line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 12px;
}
.modern-hero-sub {
    font-family: var(--font-sans, sans-serif);
    font-size: clamp(14px, 1.3vw, 19px); line-height: 1.4; margin: 0 0 20px 0; max-width: 32ch;
    text-wrap: balance;                              /* avoid an orphaned last word like "does." */
}
.modern-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }   /* supports 1–2 CTAs, left under "Built" */
.modern-hero-cta {
    display: inline-block;
    background: #e8c020; color: #1a1a1a;                       /* artist's gold pill, dark text */
    border: 2px solid #111;                                    /* thin black outline */
    font-family: var(--font-sans, sans-serif); font-weight: 700; font-size: 17px;
    padding: 15px 38px; border-radius: 999px; transition: transform .15s ease, background .15s ease;
}
.modern-hero-cta:hover { transform: translateY(-1px); background: #d8a008; }

/* ============================================================================
   Hero PROTOTYPE - live tagline + aspect-fit. Opt-in: modern.js adds .modern-hero--fit
   to any hero whose headline uses an *emphasis* marker. Width/edge-to-edge behavior comes
   from the shared --home-bleed-width rule above (edge-to-edge at 100%, fixed-width zoom).
   This class adds: (1) show the WHOLE image (aspect-preserving, no object-fit:cover crop),
   so nothing re-crops on zoom; (2) size the caption in container units so image + tagline
   + CTA scale as ONE unit; (3) the live tagline never overlaps the button.
   NOTE: author source images at the desired banner aspect ratio (e.g. 3:1) since the whole
   image is shown -- a 2:1 image renders as a tall banner. */
.modern-hero--fit { container-type: inline-size; }   /* caption text scales with the hero box */
.modern-hero--fit .modern-hero-img {
    /* Banner: height via aspect-ratio (default 5:2) tied to the fixed-px width, so it scales
       uniformly under zoom and the crop ratio never changes. Per-store tunable via CSS vars
       --hero-aspect (shape) and --hero-pos (which part of the photo is kept). */
    height: auto;
    aspect-ratio: var(--hero-aspect, 5 / 2);
    object-fit: cover; object-position: var(--hero-pos, center top);
}
.modern-hero--fit .modern-hero-headline { font-size: clamp(24px, 7.4cqi, 96px); }
.modern-hero--fit .modern-hero-sub      { font-size: clamp(13px, 1.9cqi, 24px); }
/* CTA is brand-neutral: the store's own accent by default, overridable per store with
   --hero-cta-bg / --hero-cta-fg. background is intentionally NOT !important so a store's own
   theme styles.css (e.g. `.modern-hero-cta { background:#00965e !important }`) stays authoritative
   and wins -- modern.css only supplies the agnostic default. (-webkit-text-fill-color IS kept
   !important: some store themes force link color dark with !important, and text-fill wins the glyph.) */
.modern-hero--fit .modern-hero-cta {
    font-size: clamp(13px, 1.5cqi, 20px); padding: 0.8em 2em; font-weight: 700;
    border: none !important;
    background: var(--hero-cta-bg, var(--brand-primary));
    color: var(--hero-cta-fg, #fff) !important;
    -webkit-text-fill-color: var(--hero-cta-fg, #fff) !important;
}
.modern-hero--fit .modern-hero-cta:hover { filter: brightness(0.92); transform: translateY(-1px); }

/* Emphasized tagline word (e.g. "every") in a system brush script. */
.modern-hero-em {
    font-family: 'Brush Script MT', 'Segoe Script', 'Bradley Hand', cursive;
    font-style: normal; font-weight: 400;
    font-size: 1.12em;               /* script faces read smaller; nudge up */
    padding: 0 .03em;
}

/* SVG logo tagline (headline "svg:..."). Exact vector art -> crisp at any size, no pixelation.
   Sized relative to the hero width (container units, since .modern-hero--fit sets container-type),
   so it scales with the hero; placed by textPos. Tune the 42cqi / max-width to taste. */
.modern-hero-svg {
    display: block;
    /* Container units (share of hero width), NOT fixed px, so the logo scales WITH the hero under
       zoom (fixed px would shrink the logo while the image stayed full). Per-store tunable. */
    width: var(--hero-svg-width, 22cqi);
    height: auto;
    margin-bottom: 2.6cqi;   /* gap below the logo before the CTA (scales with the hero) */
}

/* staggered text reveal (class added on load by modern.js). The hidden start state is
   gated behind html.modern-anim (added by JS immediately) so that if JS is off/fails,
   the server-rendered text stays visible — no FOUC, no hidden hero. */
html.modern-anim .modern-hero-headline,
html.modern-anim .modern-hero-sub,
html.modern-anim .modern-hero-cta { opacity: 0; transform: translateY(14px); }
.modern-hero-caption.text-in .modern-hero-headline { transition: opacity .6s ease,        transform .6s ease;        opacity: 1; transform: none; }
.modern-hero-caption.text-in .modern-hero-sub      { transition: opacity .6s ease .12s,   transform .6s ease .12s;   opacity: 1; transform: none; }
.modern-hero-caption.text-in .modern-hero-cta      { transition: opacity .6s ease .24s,   transform .6s ease .24s;   opacity: 1; transform: none; }

/* ---- row: curated image grid (What's New 4-up, Shop by Colour 6-up, two-up promo) ---- */
.modern-row { padding: 34px 0 10px; }
.modern-row-heading {
    font-family: var(--font-sans, sans-serif);
    font-weight: 700; font-size: clamp(24px, 3vw, 46px);
    letter-spacing: -0.02em; color: #1a1a1a; margin: 0 0 20px; padding: 0 26px;
}
.modern-row-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 0; }
.modern-row-item { display: block; text-decoration: none; overflow: hidden; }
.modern-row-img {
    display: block; width: 100%; aspect-ratio: 4 / 5;
    background-size: cover; background-position: center;
    transition: transform .55s ease; will-change: transform;
}
.modern-row-item:hover .modern-row-img { transform: scale(1.06); }   /* slight zoom on hover */
.modern-row-label {
    display: block; text-align: center;
    font-family: var(--font-sans, sans-serif); font-weight: 500; color: var(--brand-ink);
    /* Size defaults to 20px; a row can override per-store via the JSON "labelFontSize" field,
       which the server/JS emits as --label-size on the row grid. */
    font-size: var(--label-size, 20px);
    letter-spacing: normal; padding: 14px 8px 24px;
}
/* promo caption (e.g. two-up): headline + sub + CTA below the image */
.modern-row[data-caption="promo"] .modern-row-img { aspect-ratio: 3 / 2; }
.modern-row-promo { padding: 18px 26px 28px; }
.modern-row-headline { font-family: var(--font-sans, sans-serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em; color: #1a1a1a; margin: 0 0 8px; }
.modern-row-sub { font-family: var(--font-sans, sans-serif); font-size: 15px; color: #444; margin: 0 0 14px; }
.modern-row-cta { display: inline-block; background: #1a1a1a; color: #fff; font-family: var(--font-sans, sans-serif); font-weight: 700; font-size: 14px; padding: 11px 26px; border-radius: 999px; }

/* ---- band: solid/gradient color + centered big text + CTA (no image) ---- */
.modern-band {
    padding: clamp(48px, 9vw, 120px) 24px; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.modern-band[data-text-theme="light"] .modern-band-headline,
.modern-band[data-text-theme="light"] .modern-band-sub { color: #fff; }
.modern-band[data-text-theme="dark"] .modern-band-headline,
.modern-band[data-text-theme="dark"] .modern-band-sub { color: #111; }
.modern-band-headline { font-family: var(--font-sans, sans-serif); font-weight: 600; font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 14px; max-width: 20ch; }
.modern-band-sub { font-family: var(--font-sans, sans-serif); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; margin: 0 0 26px; max-width: 48ch; opacity: .92; }
.modern-band-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.modern-band-cta { display: inline-block; background: #e8c020; color: #1a1a1a; border: 2px solid transparent; font-family: var(--font-sans, sans-serif); font-weight: 700; font-size: 16px; padding: 14px 34px; border-radius: 999px; transition: transform .15s ease; }
.modern-band-cta:hover { transform: translateY(-1px); }

/* ---- multi-column band: one solid strip split into N text cells (no per-tile images) ---------
   A band with a "cells" array. Keeps the single bg + theme; the cells lay out as a responsive grid
   (--band-cols set inline by the server/JS) with subtle theme-aware dividers between them. Each cell
   reuses the .modern-band-headline/sub/ctas styles above (headline sized down a touch for N-up). */
.modern-band.modern-band-cols {
    display: grid; grid-template-columns: repeat(var(--band-cols, 3), 1fr);
    align-items: stretch; gap: 0; text-align: center;
    padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 56px);
}
.modern-band-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 8px clamp(16px, 2.4vw, 40px);
}
.modern-band-cell + .modern-band-cell { border-left: 1px solid rgba(255, 255, 255, .18); }
.modern-band[data-text-theme="dark"] .modern-band-cell + .modern-band-cell { border-left-color: rgba(0, 0, 0, .14); }
/* In an N-up band the headline is a column heading, not a hero line — scale it down and let text wrap. */
.modern-band-cols .modern-band-headline { font-size: clamp(20px, 2vw, 30px); margin: 0 0 12px; max-width: none; }
.modern-band-cols .modern-band-sub { font-size: clamp(14px, 1.1vw, 16px); margin: 0 0 20px; max-width: 34ch; }
.modern-band-cols .modern-band-ctas { margin-top: auto; }   /* buttons align along a common baseline */

/* Mobile: stack the cells into a single column; dividers become horizontal rules between them. */
@media (max-width: 768px) {
    .modern-band.modern-band-cols { grid-template-columns: 1fr; padding: clamp(32px, 8vw, 56px) 22px; }
    .modern-band-cell + .modern-band-cell { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 26px; margin-top: 6px; }
    .modern-band[data-text-theme="dark"] .modern-band-cell + .modern-band-cell { border-top-color: rgba(0, 0, 0, .14); }
}

/* ---- rotator: auto-advancing slideshow within one hero/band slot ----------------
   A hero/band with a "slides" array renders as .modern-rotator wrapping N normal
   .modern-hero / .modern-band slides, so each slide keeps its own text-pos / theme / bg
   and all the per-slide rules above apply unchanged. The container owns the stacking,
   the transition (fade | slide | none), and the dots/arrows. modern.js runs the timer.
   The first slide carries .is-active in the markup, so with JS off slide 1 still shows. */
.modern-rotator { position: relative; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); }
/* the slides are already full-bleed via the container — cancel their own full-bleed math */
.modern-rotator .modern-hero, .modern-rotator .modern-band { width: 100%; margin-left: 0; }
.modern-rotator-track { position: relative; }

/* fade / none: slides are stacked. The active slide is in flow (defines the height) and sits
   on top; the OUTGOING slide is held fully opaque underneath (.is-prev) while the incoming fades
   in over it, so the page background never shows through mid-transition. (That background gap —
   caused by the outgoing slide snapping away via visibility:hidden — was the "jarring" flash.)
   No visibility toggle: opacity + z-index do the work; pointer-events keeps hidden slides inert. */
.modern-rotator[data-rotate-transition="fade"] .modern-rotator-slide,
.modern-rotator[data-rotate-transition="none"] .modern-rotator-slide {
    position: absolute; top: 0; left: 0; width: 100%; opacity: 0; z-index: 0; pointer-events: none;
}
.modern-rotator[data-rotate-transition="fade"] .modern-rotator-slide.is-active,
.modern-rotator[data-rotate-transition="none"] .modern-rotator-slide.is-active {
    position: relative; opacity: 1; z-index: 2; pointer-events: auto;   /* in flow, on top */
}
.modern-rotator[data-rotate-transition="fade"] .modern-rotator-slide.is-prev,
.modern-rotator[data-rotate-transition="none"] .modern-rotator-slide.is-prev {
    opacity: 1; z-index: 1;   /* held opaque beneath the incoming until it's fully covered */
}
.modern-rotator[data-rotate-transition="fade"] .modern-rotator-slide.is-active { transition: opacity .9s ease-in-out; }

/* slide: horizontal track that modern.js translates by -index*100% */
.modern-rotator[data-rotate-transition="slide"] .modern-rotator-track {
    display: flex; flex-wrap: nowrap; transition: transform .6s ease;
}
.modern-rotator[data-rotate-transition="slide"] .modern-rotator-slide { flex: 0 0 100%; width: 100%; }

/* dots */
.modern-rotator-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; gap: 9px; justify-content: center; }
.modern-rotator-dot {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
    transition: background .2s ease, transform .2s ease;
}
.modern-rotator-dot.is-active { background: #fff; transform: scale(1.25); }

/* prev/next arrows */
.modern-rotator-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(0, 0, 0, .32); color: #fff; font-size: 24px; line-height: 44px; text-align: center;
    transition: background .2s ease;
}
.modern-rotator-arrow:hover { background: rgba(0, 0, 0, .5); }
.modern-rotator-prev { left: 16px; }
.modern-rotator-next { right: 16px; }
@media (max-width: 768px) {
    .modern-rotator-arrow { width: 36px; height: 36px; line-height: 36px; font-size: 19px; }
}

/* reduced motion: kill the crossfade/slide transition (modern.js also disables auto-advance) */
@media (prefers-reduced-motion: reduce) {
    .modern-rotator[data-rotate-transition="fade"] .modern-rotator-slide.is-active,
    .modern-rotator[data-rotate-transition="slide"] .modern-rotator-track { transition: none; }
}

/* Mobile: shorter hero, centered caption, rows 2-up (promo stacks) */
@media (max-width: 768px) {
    .modern-hero-img { height: 78vh; }
    .modern-hero-caption { right: 50%; transform: translateX(50%); bottom: 7%; max-width: 88%; text-align: center; }
    .modern-hero-ctas { justify-content: center; }                       /* center the pill(s) on mobile */
    .modern-row-grid { grid-template-columns: repeat(2, 1fr); }
    .modern-row[data-caption="promo"] .modern-row-grid { grid-template-columns: 1fr; }   /* two-up promo stacks */
    .modern-row-heading { font-size: 28px; padding: 0 18px; }
}

/* ============================================================================
   9. Product page — larger main image + full-screen zoom dialog (lululemon-style)
   Wired by modern.js initProductZoom(): the xZoom hover lens is disabled and a
   click-to-open overlay shows every product image stacked at full size. The full-res
   sources (1200px) already exist in the .sideImages thumbnails — no server change.
   ========================================================================== */
/* The "Roll over image to zoom in" caption is obsolete now the hover lens is gone. */
#pnlRollOverToZoom { display: none !important; }

/* Bigger main image. The thumbnail strip is a ~70px float on the LEFT; the main image sits
   in the space beside it. The theme hard-caps #ProductImageContainer + #MainImage at 400px;
   freeing them lets the image fill the rest of the column. overflow:hidden makes the container
   a block-formatting context so it sits NEXT TO the thumbnail float (filling the remaining
   ~510px) instead of dropping below it. Native source ~1200, so it stays crisp. */
#ProductImageContainer {
    overflow: hidden;
    width: auto !important;
    max-width: none !important;
}
#ProductImageContainer #MainImage,
.modern-mainimg-wrap #MainImage {
    width: 100% !important;
    height: auto !important;
    max-width: 620px !important;
    cursor: zoom-in;
}
.modern-mainimg-wrap { position: relative; display: block; width: 100%; max-width: 620px; line-height: 0; }

/* Zoom button hugging the main image's lower-right corner */
.modern-zoom-btn {
    position: absolute; right: 12px; bottom: 12px;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92); border: 1px solid #d4d4d4; color: #1a1a1a;
    font-size: 17px; cursor: pointer; z-index: 5; line-height: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .16); transition: background .15s ease, transform .15s ease;
}
.modern-zoom-btn:hover { background: #fff; transform: translateY(-1px); }

/* The full-screen dialog */
.modern-zoom-overlay {
    position: fixed; inset: 0; z-index: 2147483000;
    background: #fff; display: flex; flex-direction: column;
}
.modern-zoom-head {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 22px; background: #fff; border-bottom: 1px solid #e6e6e6;
}
.modern-zoom-title {
    flex: 1 1 auto; text-align: center; font-family: var(--font-sans, sans-serif);
    font-weight: 700; font-size: 17px; color: #1a1a1a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modern-zoom-back, .modern-zoom-x {
    flex: 0 0 auto; background: none; border: none; cursor: pointer;
    color: #1a1a1a; font-family: var(--font-sans, sans-serif);
}
.modern-zoom-back { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; text-decoration: underline; }
.modern-zoom-back span { font-size: 20px; text-decoration: none; }
.modern-zoom-x { font-size: 30px; line-height: 1; padding: 0 4px; }
.modern-zoom-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; position: relative; -webkit-overflow-scrolling: touch; }
.modern-zoom-fig { display: flex; justify-content: center; background: #fff; }
.modern-zoom-fig img { width: 100%; max-width: 1100px; height: auto; display: block; cursor: zoom-out; }

@media (max-width: 768px) {
    .modern-zoom-title { font-size: 14px; }
    .modern-zoom-back { font-size: 0; gap: 0; }                /* chevron-only on phones */
    .modern-zoom-back span { font-size: 24px; }
}

/* ============================================================================
   10. Product page — logo picker: ultra-compact single line
   modern.js initLogoPicker() moves each logo block above color, tags it .lp-modern,
   and packs Location + Logo + preview + "All" into a .lp-row. All controls are the
   original server nodes (moved, not recreated), so behavior is unchanged.
   ========================================================================== */
.logoPicker.lp-modern { max-width: 460px; }
.logoPicker.lp-modern .choice_PrimaryLogo {
    font-size: 13px; font-weight: 600; color: var(--brand-ink); margin: 0 0 5px;
}
/* Drop the tall stacked field captions (the <br>s and bold "Location"/"Logo" labels);
   the selects' own "Select Location… / Select Logo…" placeholders carry the meaning. */
.logoPicker.lp-modern > br,
.logoPicker.lp-modern b { display: none; }

.logoPicker.lp-modern .lp-row {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
}
.logoPicker.lp-modern .lp-row select {
    width: auto !important; min-width: 0; max-width: 168px !important; margin: 0 !important;
    flex: 0 1 160px;                                  /* location keeps its size; the image select grows */
}
.logoPicker.lp-modern .SingleLogoPostionText { margin: 0; font-size: 13px; color: var(--brand-ink); }
.logoPicker.lp-modern .msgAddCustom:empty { display: none; }   /* drop the empty custom-logo message gap */

/* --- Custom logo image dropdown (replaces native select + preview + "All" button) --- */
.lp-imgselect { position: relative; flex: 1 1 auto; min-width: 150px; max-width: 240px; }
.lp-imgselect.open { z-index: 1000; }
/* The product option <td>s carry the theme's position:relative; z-index:905. Sibling cells at
   equal z paint in DOM order, so the (later) color cell covers the (earlier, reordered) logo
   cell and traps the dropdown panel inside it — a z-index on the widget can't escape its own
   <td>. While the dropdown is open, lift the whole logo cell above its sibling cells. */
td.ProductProperty_logo:has(.lp-imgselect.open) { z-index: 1001 !important; }
.lp-imgselect-toggle {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px;
    background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 5px 10px;
    cursor: pointer; font: inherit; text-align: left;
}
.lp-imgselect-toggle img { max-height: 40px; max-width: 180px; object-fit: contain; display: block; }
.lp-imgselect-toggle .lp-ph { color: var(--c-muted); font-size: 14px; }
.lp-imgselect-toggle .lp-caret { margin-left: auto; color: var(--c-muted); font-size: 12px; }
.lp-imgselect-panel {
    position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: 320px;
    max-height: 300px; overflow-y: auto; background: #fff;
    border: 1px solid var(--c-line); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); display: none;
}
.lp-imgselect.open .lp-imgselect-panel { display: block; }
.lp-imgselect-opt {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f1f2f4;
}
.lp-imgselect-opt:last-child { border-bottom: none; }
.lp-imgselect-opt:hover { background: #f6f7f9; }
.lp-imgselect-opt.selected { background: #eef2ff; }
/* Unavailable for the selected color: gray the logo but keep the reason readable. */
.lp-imgselect-opt.disabled { pointer-events: none; cursor: default; }
.lp-imgselect-opt.disabled img { opacity: .35; filter: grayscale(100%); }
.lp-imgselect-opt.disabled .lp-optname { opacity: .5; }
.lp-imgselect-opt img { max-height: 68px; max-width: 200px; object-fit: contain; display: block; cursor: zoom-in; }
.lp-imgselect-opt .lp-optname { font-size: 13px; color: var(--brand-ink); }
.lp-imgselect-unavail { font-size: 11px; line-height: 1.2; color: var(--c-muted); margin-left: 2px; }

/* Preview thumbnail + "All" button share the line (the server wraps them in <center>). */
.logoPicker.lp-modern center { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.logoPicker.lp-modern center br { display: none; }
.logoPicker.lp-modern .logoimage {
    max-width: 88px !important; max-height: 60px !important; margin: 0 !important;
    border: 1px solid var(--c-line); border-radius: 4px; padding: 1px; cursor: zoom-in;
}
/* The "No Logo Selected" placeholder is hidden until a logo is chosen — handled in
   modern.js (the control's inline display:block !important can't be beaten from CSS). */

/* Locked/single logo: the applied logo's thumbnail shown next to its label (STAB-316). */
.logoPicker.lp-modern .lp-locked-logo {
    max-width: 88px; max-height: 60px; object-fit: contain;
    border: 1px solid var(--c-line); border-radius: 4px; padding: 1px; vertical-align: middle; cursor: zoom-in;
}

/* Hover-magnify: a shared floating preview shown by modern.js when the cursor is over any compact
   logo thumbnail (locked preview, the image-dropdown toggle, or a dropdown option) so shoppers can
   read the mark without permanently enlarging the compact picker. Desktop hover only (JS skips touch).
   pointer-events:none so it never intercepts the hover it's responding to. */
.lp-logo-zoom {
    position: fixed; z-index: 2000; display: none; pointer-events: none;
    background: #fff; border: 1px solid var(--c-line); border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18); padding: 10px;
}
.lp-logo-zoom img { display: block; max-width: 240px; max-height: 240px; object-fit: contain; }

/* Strip the jQuery-UI button chrome → sleek text button. Keep id/class/handler intact. */
.logoPicker.lp-modern .logoPopupButton {
    background: none !important; border: none !important; box-shadow: none !important;
    padding: 0 2px !important; min-height: 0 !important; width: auto !important;
    color: var(--brand-primary) !important; font-weight: 700; font-size: 13px; line-height: 1.2;
    text-decoration: none !important; cursor: pointer;
}
.logoPicker.lp-modern .logoPopupButton:hover { text-decoration: underline !important; }

/* Optional panels (file-upload art, custom SKU) drop full-width below the line when shown. */
.logoPicker.lp-modern .logoArtDiv,
.logoPicker.lp-modern .pnlCustomLogo { flex-basis: 100%; margin-top: 6px; }

/* On phones the single line can wrap to keep things readable. */
@media (max-width: 768px) {
    .logoPicker.lp-modern .lp-row { flex-wrap: wrap; }
}

/* ============================================================================
   11. Site polish (Webstore Review follow-up) — login, footer
   ========================================================================== */
/* Login: primary submit as a clean modern CTA (was theme gray w/ black border). */
#LoginControl1_btnDoLogin {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px 24px !important;
    transition: background .15s ease;
}
#LoginControl1_btnDoLogin:hover { background: var(--brand-primary-d) !important; }

/* Footer: keep modern's spacing/typography/layout, but INHERIT the store's own
   footer colors (background + text). Each store themes its footer differently, so
   imposing a color here fought the brand; letting it inherit keeps every store's
   original footer look while still tidying the link row. */
#footer {
    font-family: var(--font-sans, sans-serif);
    padding: 22px 20px 28px;
}
#footer a { color: inherit; text-decoration: none; opacity: .9; }
#footer a:hover { opacity: 1; text-decoration: underline; }
/* Some themes set the footer account/login nav container to color:transparent
   (it relied on its own explicit link color). Since modern lets footer text
   inherit the store's footer color, that transparent hid the "Your Account" /
   "Sign Out" labels — force it back to inherit so they take the footer's color. */
#footerBottomNav { background: transparent !important; border: 0 !important; color: inherit !important; }
#footer #footerBottomNav a, #footer #footerBottomNav span { color: inherit !important; }
#footerBottomNav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 0; }
#footerBottomNav li { list-style: none; }
#footer .shipdate { color: inherit; font-size: 13px; }

/* Reward-points balance chip in the header (always visible when logged in with a balance). */
.modern-points {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-sans, sans-serif); font-size: 13px; font-weight: 600;
    color: var(--brand-ink); white-space: nowrap; margin-right: 12px;
}
.modern-points-label { color: var(--c-muted); font-weight: 500; }
.modern-points-val { color: var(--brand-ink); }

/* "Clear filters" control in the filter drawer (only present when a filter is applied). */
.modern-filter-clear {
    display: block; margin: 2px 0 14px; padding: 8px 0;
    background: none; border: none; cursor: pointer;
    color: var(--brand-primary); font-family: var(--font-sans, sans-serif); font-weight: 600; font-size: 14px;
    text-decoration: underline;
}
.modern-filter-clear:hover { color: var(--brand-primary-d); }

/* Mini cart: hide the misleading "Freight: $0.00" line; the note (added by modern.js) explains
   that shipping & tax are calculated at checkout. */
#MiniCartTotal tr:has([id$="lblFreight"]) { display: none !important; }
.modern-cart-note td { padding: 8px 0 2px !important; color: var(--c-muted); font-size: 12px; font-style: italic; }

/* ---- My Account section — modern left nav + light page polish ---- */
#MyAccountMenu1_lstMyAccountMenu { list-style: none; margin: 0; padding: 0; }
#MyAccountMenu1_lstMyAccountMenu li { margin: 0; }
#MyAccountMenu1_lstMyAccountMenu li a {
    display: block; padding: 10px 14px; margin-bottom: 2px; border-radius: 8px;
    color: var(--brand-ink); text-decoration: none; font-family: var(--font-sans, sans-serif);
    font-size: 14px; font-weight: 500; transition: background .12s ease, color .12s ease;
}
#MyAccountMenu1_lstMyAccountMenu li a:hover { background: var(--c-bg-soft, #f6f7f9); color: var(--brand-primary); }
#MyAccountMenu1_TitleLabel {
    display: block; margin-bottom: 8px; font-family: var(--font-sans, sans-serif);
    font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700;
}

/* Cart/checkout drop-ship indicator — a clear text badge (replaces the ambiguous parachute icon).
   Rendered by checkout.js for items whose DropShipMode != 'ShipFromSite'; tooltip via the title attr. */
.modern-dropship-badge {
    display: inline-block; padding: 2px 9px; margin: 0 4px; vertical-align: middle;
    background: #fff3cd; color: #7a5b00; border: 1px solid #f0dca0; border-radius: 999px;
    font-family: var(--font-sans, sans-serif); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: help;
}

/* ---- Personalization popup (jQuery UI dialog, content #dialogPersonalization) — modern look ---- */
.ui-dialog:has(#dialogPersonalization) {
    border: none !important; border-radius: 12px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25) !important; padding: 0 !important; overflow: hidden;
}
.ui-dialog:has(#dialogPersonalization) .ui-resizable-handle { display: none !important; }
.ui-dialog:has(#dialogPersonalization) .ui-dialog-titlebar {
    background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--c-line) !important;
    border-radius: 0 !important; padding: 14px 18px !important;
}
.ui-dialog:has(#dialogPersonalization) .ui-dialog-title {
    font-family: var(--font-sans, sans-serif); font-weight: 700; font-size: 16px; color: var(--brand-ink);
}
#dialogPersonalization { font-family: var(--font-sans, sans-serif); padding: 18px 24px 20px; box-sizing: border-box; }
#dialogPersonalization input[type="text"] {
    width: 100%; box-sizing: border-box; padding: 9px 11px; margin: 3px 0;
    border: 1px solid var(--c-line); border-radius: 8px; font-size: 14px; font-family: inherit;
}
#dialogPersonalization input[type="text"]:focus {
    border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .18);
}
#dialogPersonalization select {
    padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
}
#btnSavePers {
    background: var(--brand-primary) !important; color: #fff !important; border: none !important;
    border-radius: 8px !important; font-weight: 700 !important; font-size: 14px !important; padding: 11px 20px !important;
    transition: background .15s ease;
}
#btnSavePers:hover { background: var(--brand-primary-d) !important; }
#btnCancelPers {
    background: #fff !important; color: var(--brand-ink) !important; border: 1px solid var(--c-line) !important;
    border-radius: 8px !important; font-weight: 600 !important; font-size: 14px !important; padding: 11px 20px !important;
    margin-left: 8px !important;
}
