/*
Theme Name:   BDM Cricket
Theme URI:    https://www.meeronx.com
Description:  BDM Cricket storefront — dark navy, BDM red and English-willow cream, built as a child theme of Storefront. Restyles the shop, product, cart and checkout pages.
Author:       Meeronx
Version:      1.6.0
Template:     storefront
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  bdm-cricket
*/

/* ===================================================================
   Palette
   =================================================================== */
:root{
  --bdm-ink:#050C1C;
  --bdm-navy:#0A1730;
  --bdm-navy-2:#101F3C;
  --bdm-line:rgba(234,223,196,.14);
  --bdm-line-2:rgba(234,223,196,.28);
  --bdm-willow:#EADFC4;
  --bdm-chalk:#F6F4EF;
  --bdm-red:#E11B22;
  --bdm-red-hot:#FF3B33;
  --bdm-amber:#F0821F;
  --bdm-mute:#8FA0BC;
}

/* ===================================================================
   Base
   =================================================================== */
body,
body.woocommerce-page,
.site,
.site-content{
  background:var(--bdm-ink);
  color:var(--bdm-chalk);
  font-family:'Barlow',system-ui,-apple-system,'Segoe UI',sans-serif;
}
body{font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}

h1,h2,h3,h4,
.page-title,
.entry-title,
.product_title,
.woocommerce-loop-product__title,
.section-title{
  font-family:'Big Shoulders Display',Impact,sans-serif;
  font-weight:900;
  text-transform:uppercase;
  line-height:.92;
  letter-spacing:-.005em;
  color:var(--bdm-chalk);
}
h1,.page-title,.product_title{font-size:clamp(38px,6.4vw,68px)}
h2{font-size:clamp(28px,4vw,44px)}
h3{font-size:24px}

a{color:var(--bdm-willow)}
a:hover{color:var(--bdm-amber)}
:focus-visible{outline:3px solid var(--bdm-amber);outline-offset:2px}

p,li,td,th,label,.woocommerce-breadcrumb{color:var(--bdm-chalk)}
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a{
  font-family:'Space Mono',ui-monospace,monospace;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--bdm-mute);
}

/* ===================================================================
   Ticker strip (added by functions.php)
   =================================================================== */
.bdm-ticker{background:var(--bdm-red);color:#fff;overflow:hidden}
.bdm-ticker__track{display:flex;width:max-content;animation:bdm-slide 42s linear infinite}
.bdm-ticker span{
  font-family:'Space Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.22em;
  text-transform:uppercase;padding:7px 26px;white-space:nowrap;position:relative;
}
.bdm-ticker span::after{
  content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:4px;height:4px;background:rgba(255,255,255,.6);border-radius:50%;
}
@keyframes bdm-slide{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .bdm-ticker__track{animation:none}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* ===================================================================
   Header
   =================================================================== */
.site-header{
  background:var(--bdm-ink)!important;
  border-bottom:1px solid var(--bdm-line);
  padding-top:1em;padding-bottom:1em;
}
.site-header .site-branding .site-title a,
.site-header .beta.site-title a{
  font-family:'Big Shoulders Display',Impact,sans-serif;
  font-weight:900;font-size:34px;letter-spacing:.02em;text-transform:uppercase;
  color:var(--bdm-chalk);
}
.site-header .site-description{
  font-family:'Space Mono',ui-monospace,monospace;font-size:10px;
  letter-spacing:.2em;text-transform:uppercase;color:var(--bdm-mute);
}
.storefront-primary-navigation,
.main-navigation ul.menu,
.main-navigation ul.nav-menu{background:transparent}
.main-navigation ul li a,
.secondary-navigation ul li a{
  font-family:'Big Shoulders Display',Impact,sans-serif;
  font-weight:700;font-size:19px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--bdm-chalk);
}
.main-navigation ul li a:hover,
.main-navigation ul li:hover>a{color:var(--bdm-amber)}
.main-navigation ul.menu ul.sub-menu,
.main-navigation ul.nav-menu ul.children{background:var(--bdm-navy);border:1px solid var(--bdm-line)}
.site-header-cart .cart-contents{color:var(--bdm-chalk)}
.site-header-cart .cart-contents .count{
  font-family:'Space Mono',ui-monospace,monospace;color:var(--bdm-amber);
}
.site-header-cart .widget_shopping_cart{background:var(--bdm-navy);border:1px solid var(--bdm-line-2)}
.menu-toggle{
  background:transparent;border:1px solid var(--bdm-line);color:var(--bdm-chalk);
}
.menu-toggle:hover{background:var(--bdm-navy);color:var(--bdm-chalk)}

/* search box in header */
.site-search .widget_product_search form input[type="search"],
.widget_product_search input[type="search"],
.widget_search input[type="search"]{
  background:var(--bdm-navy);border:1px solid var(--bdm-line);color:var(--bdm-chalk);
}

/* ===================================================================
   Home hero (added by functions.php)
   =================================================================== */
.bdm-hero{
  position:relative;isolation:isolate;overflow:hidden;
  margin-bottom:2.5em;border-bottom:1px solid var(--bdm-line);
}
.bdm-hero__bg{position:absolute;inset:0;z-index:-2}
.bdm-hero__bg img{width:100%;height:100%;object-fit:cover;filter:grayscale(.55) contrast(1.1) brightness(.44)}
.bdm-hero__bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(105deg,var(--bdm-ink) 8%,rgba(5,12,28,.82) 46%,rgba(5,12,28,.32) 100%);
}
.bdm-hero__inner{padding:clamp(44px,8vw,96px) 5% clamp(34px,5vw,60px);max-width:1320px;margin:0 auto}
.bdm-hero__eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-family:'Space Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.26em;
  text-transform:uppercase;color:var(--bdm-amber);margin-bottom:18px;
}
.bdm-hero__eyebrow::before{content:"";width:34px;height:2px;background:var(--bdm-red)}
.bdm-hero h1{
  margin:0;font-size:clamp(50px,11vw,140px);line-height:.86;
  font-family:'Big Shoulders Display',Impact,sans-serif;font-weight:900;text-transform:uppercase;
}
.bdm-hero h1 .stroke{color:transparent;-webkit-text-stroke:2px var(--bdm-red)}
.bdm-hero h1 em{font-style:normal;display:block;color:var(--bdm-willow)}
.bdm-hero p{max-width:47ch;margin:20px 0 26px;color:#C9D4E6;font-size:clamp(15px,1.6vw,18px)}
.bdm-hero .button{margin-right:10px}

.bdm-board{
  margin-top:clamp(28px,4vw,48px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--bdm-line-2);background:rgba(3,8,18,.72);border-radius:5px;overflow:hidden;
}
.bdm-board div{padding:15px 14px;border-right:1px solid var(--bdm-line)}
.bdm-board div:last-child{border-right:0}
.bdm-board b{
  display:block;font-family:'Space Mono',ui-monospace,monospace;font-weight:700;
  font-size:clamp(19px,3.2vw,30px);color:var(--bdm-amber);
  text-shadow:0 0 22px rgba(240,130,31,.35);
}
.bdm-board small{
  display:block;margin-top:4px;font-family:'Space Mono',ui-monospace,monospace;
  font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--bdm-mute);
}
@media(max-width:600px){
  .bdm-board{grid-template-columns:repeat(2,1fr)}
  .bdm-board div:nth-child(2){border-right:0}
  .bdm-board div:nth-child(-n+2){border-bottom:1px solid var(--bdm-line)}
}

/* ===================================================================
   Product grid
   =================================================================== */
ul.products li.product{
  background:var(--bdm-navy);
  border:1px solid var(--bdm-line);
  border-radius:6px;
  padding:0 0 14px;
  overflow:hidden;
  position:relative;
  transition:border-color .2s,transform .2s,box-shadow .2s;
}
ul.products li.product:hover{
  border-color:var(--bdm-line-2);
  transform:translateY(-4px);
  box-shadow:0 24px 60px rgba(0,0,0,.55);
}
/* red seam corner on hover */
ul.products li.product::after{
  content:"";position:absolute;top:0;right:0;width:0;height:0;border-style:solid;
  border-width:0 46px 46px 0;border-color:transparent var(--bdm-red) transparent transparent;
  opacity:0;transition:opacity .2s;pointer-events:none;z-index:2;
}
ul.products li.product:hover::after{opacity:1}

ul.products li.product a img{
  margin:0 0 12px;border-radius:0;background:#000;
  aspect-ratio:1/1;object-fit:cover;transition:transform .5s;
}
ul.products li.product:hover a img{transform:scale(1.04)}
ul.products li.product .woocommerce-loop-product__title{
  font-size:23px;line-height:.98;padding:0 13px;margin:0 0 8px;color:var(--bdm-chalk);
}
ul.products li.product .price{
  display:inline-block;padding:0 13px;
  font-family:'Space Mono',ui-monospace,monospace;font-weight:700;font-size:16px;
  color:var(--bdm-amber);
}
ul.products li.product .price del{color:var(--bdm-mute);opacity:.7}
ul.products li.product .button{margin:10px 13px 0}
ul.products li.product .onsale{
  background:var(--bdm-red);color:#fff;border-radius:2px;
  font-family:'Space Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.1em;
  text-transform:uppercase;padding:5px 9px;min-height:0;min-width:0;line-height:1.2;
  top:10px;left:10px;right:auto;margin:0;
}
.storefront-sorting,
.woocommerce-result-count,
.woocommerce-ordering select{
  font-family:'Space Mono',ui-monospace,monospace;font-size:12px;color:var(--bdm-mute);
}
.woocommerce-ordering select,
select,
.select2-container--default .select2-selection--single{
  background:var(--bdm-navy);border:1px solid var(--bdm-line);color:var(--bdm-chalk);border-radius:3px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--bdm-chalk)}
.select2-dropdown{background:var(--bdm-navy);border-color:var(--bdm-line-2);color:var(--bdm-chalk)}

/* ===================================================================
   Buttons
   =================================================================== */
.button,
button,
input[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-button__link{
  background:var(--bdm-red);
  color:#fff;
  font-family:'Big Shoulders Display',Impact,sans-serif;
  font-weight:800;font-size:19px;letter-spacing:.05em;text-transform:uppercase;
  border-radius:3px;padding:.72em 1.35em;border:0;
  transition:background .18s,transform .15s;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover{
  background:var(--bdm-red-hot);color:#fff;
}
.button:active{transform:translateY(1px)}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt{background:var(--bdm-red);color:#fff}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover{background:var(--bdm-red-hot)}
.button.bdm-ghost{
  background:transparent;border:1px solid var(--bdm-line-2);color:var(--bdm-chalk);
}
.button.bdm-ghost:hover{background:var(--bdm-willow);color:var(--bdm-ink)}
.added_to_cart{
  display:inline-block;margin-left:13px;font-size:13px;color:var(--bdm-amber);
}

/* ===================================================================
   Single product
   =================================================================== */
.single-product div.product .product_title{margin-bottom:.2em}
.single-product div.product .summary .price,
.single-product div.product p.price{
  font-family:'Space Mono',ui-monospace,monospace;font-weight:700;
  font-size:32px;color:var(--bdm-amber);
}
.single-product div.product .woocommerce-product-details__short-description{color:#C3CEE0}
.single-product .woocommerce-tabs ul.tabs{border-bottom:1px solid var(--bdm-line)}
.single-product .woocommerce-tabs ul.tabs li{
  background:transparent;border:0;border-bottom:2px solid transparent;
}
.single-product .woocommerce-tabs ul.tabs li a{
  font-family:'Big Shoulders Display',Impact,sans-serif;font-weight:800;font-size:20px;
  text-transform:uppercase;color:var(--bdm-mute);
}
.single-product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--bdm-red)}
.single-product .woocommerce-tabs ul.tabs li.active a{color:var(--bdm-chalk)}
.single-product .woocommerce-tabs .panel{background:transparent;color:#C3CEE0}
.single-product .woocommerce-tabs .panel h2{font-size:28px;color:var(--bdm-willow)}
.single-product .woocommerce-tabs .panel ul li{color:var(--bdm-mute)}

.single-product div.product .images img{background:#000;border-radius:6px}
.stock.in-stock{
  font-family:'Space Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:#3DBE73;
}
.stock.out-of-stock{color:var(--bdm-red-hot)}
.product_meta{
  font-family:'Space Mono',ui-monospace,monospace;font-size:11px;
  color:var(--bdm-mute);border-top:1px solid var(--bdm-line);padding-top:14px;
}
.product_meta a{color:var(--bdm-willow)}

/* variation dropdowns */
.woocommerce div.product form.cart .variations label{
  font-family:'Space Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--bdm-mute);
}
.woocommerce div.product form.cart .variations td{background:transparent}
.woocommerce div.product form.cart .reset_variations{font-size:12px;color:var(--bdm-mute)}

.quantity .qty,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea{
  background:var(--bdm-navy);border:1px solid var(--bdm-line);color:var(--bdm-chalk);
  border-radius:3px;box-shadow:none;
}
input::placeholder,textarea::placeholder{color:var(--bdm-mute)}

.related.products>h2,
.upsells.products>h2,
.cross-sells>h2{color:var(--bdm-chalk)}

/* ===================================================================
   Cart, checkout, account
   =================================================================== */
.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table,
table.woocommerce-checkout-review-order-table{
  background:transparent;border-color:var(--bdm-line);color:var(--bdm-chalk);
}
.woocommerce table.shop_table thead th{
  font-family:'Space Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--bdm-mute);
}
.woocommerce table.shop_table td.product-name a{color:var(--bdm-chalk)}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-payment,
.woocommerce-checkout #payment{
  background:var(--bdm-navy)!important;border:1px solid var(--bdm-line-2);border-radius:6px;padding:20px;
}
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3{
  font-family:'Big Shoulders Display',Impact,sans-serif;font-weight:900;
  font-size:28px;text-transform:uppercase;color:var(--bdm-chalk);
}
.woocommerce .order-total .amount,
.woocommerce .cart_totals .amount,
.woocommerce-Price-amount{
  font-family:'Space Mono',ui-monospace,monospace;color:var(--bdm-amber);
}
.woocommerce-checkout #payment div.payment_box{
  background:var(--bdm-navy-2);color:var(--bdm-chalk);border:1px solid var(--bdm-line);
}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--bdm-navy-2)}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--bdm-line)}
.woocommerce form .form-row label{color:var(--bdm-chalk);font-size:14px}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments{
  background:var(--bdm-navy);color:var(--bdm-chalk);border-top-color:var(--bdm-amber);
}
.woocommerce-message{border-top-color:#3DBE73}
.woocommerce-error{border-top-color:var(--bdm-red)}
.woocommerce-info a,.woocommerce-message a{color:var(--bdm-amber)}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer{
  background:var(--bdm-ink)!important;color:var(--bdm-mute);
  border-top:1px solid var(--bdm-line);
}
.site-footer a{color:var(--bdm-willow)}
.site-footer a:hover{color:var(--bdm-amber)}
.site-footer .widget-title,
.site-footer h3{
  font-family:'Space Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--bdm-amber);
}
.site-info{border-top:1px solid var(--bdm-line);font-family:'Space Mono',ui-monospace,monospace;font-size:11px}

/* widgets */
.widget{color:var(--bdm-mute)}
.widget .widget-title{color:var(--bdm-amber)}
.widget ul li a{color:var(--bdm-willow)}

/* ===================================================================
   Category tiles shortcode  [bdm_categories]
   =================================================================== */
.bdm-cats{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:12px;margin:0 0 2.5em;
  list-style:none;padding:0;
}
.bdm-cats li{margin:0}
.bdm-cats a{
  position:relative;display:block;overflow:hidden;border:1px solid var(--bdm-line);
  border-radius:5px;background:var(--bdm-navy-2);aspect-ratio:4/5;
  transition:border-color .2s,transform .2s;
}
.bdm-cats a:hover{border-color:var(--bdm-red);transform:translateY(-3px)}
.bdm-cats img{width:100%;height:100%;object-fit:cover;opacity:.6;transition:opacity .3s,transform .5s}
.bdm-cats a:hover img{opacity:.85;transform:scale(1.05)}
.bdm-cats .bdm-cats__label{
  position:absolute;left:0;right:0;bottom:0;padding:34px 14px 13px;
  background:linear-gradient(180deg,transparent,rgba(5,12,28,.94) 62%);
}
.bdm-cats strong{
  display:block;font-family:'Big Shoulders Display',Impact,sans-serif;font-weight:800;
  font-size:23px;text-transform:uppercase;line-height:.95;color:var(--bdm-chalk);
}
.bdm-cats small{font-family:'Space Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.14em;color:var(--bdm-amber)}

/* ===================================================================
   Small screens
   =================================================================== */
@media(max-width:768px){
  ul.products li.product .woocommerce-loop-product__title{font-size:20px}
  .bdm-hero__inner{padding-left:5%;padding-right:5%}
}

/* ===================================================================
   Layout corrections (v1.1)
   =================================================================== */

/* Pull the hero flush against the header — Storefront's content padding
   was leaving an empty navy band above it. */
.bdm-has-hero .site-content{padding-top:0}
.bdm-has-hero .content-area{margin-top:0}
.bdm-has-hero .bdm-hero{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  width:100vw;
}
.bdm-has-hero .col-full{padding-top:0}

/* Storefront wraps the hero in the content column; let it run full width. */
.bdm-hero__inner{width:min(1320px,100%)}

/* Shop and archive page titles: less dead space, left aligned like the rest. */
.woocommerce-products-header{padding:1.2em 0 .4em;margin-bottom:0}
.woocommerce-products-header__title,
.page-template-default .entry-header .entry-title{
  text-align:left;
  margin:0 0 .25em;
  font-size:clamp(36px,6vw,64px);
}
.woocommerce-products-header .term-description{color:var(--bdm-mute);max-width:60ch}
.storefront-breadcrumb{padding:1em 0 0;margin-bottom:0}

/* Empty-shop notice shouldn't sit in a huge void. */
.woocommerce-info{margin-top:1em}

/* Footer needs a little breathing room when no widgets are set. */
.site-footer{padding-top:2.4em}

/* Search field in the header. */
.site-search{margin-bottom:0}
.widget_product_search input[type="search"]::placeholder{color:var(--bdm-mute)}

/* ===================================================================
   v1.2 — navigation, category tiles
   =================================================================== */

/* Long category names were wrapping the menu onto a second row.
   Tighten the spacing so six or seven items fit on one line. */
.main-navigation ul li a{
  font-size:18px;
  padding-left:9px;
  padding-right:9px;
  letter-spacing:.03em;
}
@media(min-width:1024px){
  .main-navigation ul.menu>li,
  .main-navigation ul.nav-menu>li{margin-right:0}
}
@media(max-width:1200px){
  .main-navigation ul li a{font-size:16px;padding-left:7px;padding-right:7px}
}

/* Category tile with no image yet — keep the shape and label visible. */
.bdm-cats__blank{
  display:block;width:100%;height:100%;
  background:
    repeating-linear-gradient(135deg,rgba(234,223,196,.05) 0 10px,transparent 10px 20px),
    var(--bdm-navy-2);
}
.bdm-cats__notice{
  border:1px dashed var(--bdm-line-2);border-radius:5px;padding:16px 18px;
  color:var(--bdm-mute);font-size:14px;
}
.bdm-cats a{display:flex}
.bdm-cats a>img,
.bdm-cats a>.bdm-cats__blank{flex:1 1 auto;min-height:0}

/* Front page: the hero is the headline, so the entry header collapses. */
.home .entry-header:empty,
.page.home .entry-title:empty{display:none}
.home .entry-header{margin-bottom:0}

/* ===================================================================
   v1.3 — match the original HTML design
   =================================================================== */

/* ---------- brand mark ---------- */
.bdm-mark{display:inline-flex;gap:3px;height:34px;vertical-align:middle;margin-right:11px;float:left}
.bdm-mark i{width:6px;background:var(--bdm-red);display:block}
.bdm-mark i:nth-child(2){background:var(--bdm-navy-2);border:1px solid var(--bdm-line-2)}
.site-header .site-branding{display:inline-block}
.site-header .site-branding .site-title{margin-bottom:0}

/* Cart: icon only, like the original. */
.site-header-cart .cart-contents .amount,
.site-header-cart .cart-contents .count{display:none}
.site-header-cart .cart-contents{
  display:inline-grid;place-items:center;width:44px;height:44px;
  border:1px solid var(--bdm-line);border-radius:4px;
}
.site-header-cart .cart-contents:hover{border-color:var(--bdm-line-2);background:var(--bdm-navy)}
.site-header-cart li{padding:0}

/* Header search took up a lot of room; hide it and rely on the nav.
   Delete this rule if you want the search box back. */
.site-header .site-search{display:none}

/* ---------- product card ---------- */
ul.products li.product{padding-bottom:0}
.bdm-card__badge{
  position:absolute;left:9px;top:9px;z-index:3;
  font-family:'Space Mono',ui-monospace,monospace;font-size:9px;letter-spacing:.1em;
  text-transform:uppercase;background:rgba(5,12,28,.86);border:1px solid var(--bdm-line);
  padding:4px 7px;border-radius:2px;color:var(--bdm-willow);
  max-width:calc(100% - 18px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
ul.products li.product .woocommerce-loop-product__title{
  font-size:24px;padding:0 13px;margin:12px 0 0;
}
.bdm-card__foot{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:12px 13px 14px;margin-top:auto;
}
.bdm-card__foot .price{
  padding:5px 9px;margin:0;
  background:rgba(0,0,0,.42);border:1px solid rgba(240,130,31,.3);border-radius:3px;
  font-size:15px;
}
.bdm-card__foot .price del{font-size:13px}
.bdm-card__foot .button{
  margin:0;padding:8px 15px;font-size:17px;white-space:nowrap;
}
.bdm-card__foot .added_to_cart{display:none}
/* card fills its cell so the footers line up across a row */
ul.products li.product{display:flex;flex-direction:column}
ul.products li.product>a:first-of-type{display:block}

/* ---------- category tiles: match the original proportions ---------- */
.bdm-cats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.bdm-cats a{aspect-ratio:3/4}

/* ---------- Why BDM band ---------- */
.bdm-why{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:clamp(20px,3vw,42px);margin:0 0 2em;
}
.bdm-why h3{
  font-family:'Big Shoulders Display',Impact,sans-serif;font-weight:800;font-size:26px;
  text-transform:uppercase;margin:0 0 8px;color:var(--bdm-chalk);
}
.bdm-why h3::before{
  content:"";display:block;width:30px;height:3px;background:var(--bdm-red);margin-bottom:14px;
}
.bdm-why p{margin:0;color:var(--bdm-mute);font-size:15px}

/* ---------- footer columns ---------- */
.bdm-footer{
  display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:clamp(20px,3vw,44px);
  padding-bottom:2em;
}
@media(max-width:900px){.bdm-footer{grid-template-columns:1fr 1fr}.bdm-footer>div:first-child{grid-column:1/-1}}
@media(max-width:520px){.bdm-footer{grid-template-columns:1fr}}
.bdm-footer__brand{
  font-family:'Big Shoulders Display',Impact,sans-serif;font-weight:900;font-size:44px;
  line-height:.8;display:block;margin-bottom:12px;color:var(--bdm-chalk);
}
.bdm-footer h2{
  font-family:'Space Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--bdm-amber);margin:0 0 14px;
}
.bdm-footer p,.bdm-footer li{color:var(--bdm-mute);font-size:14.5px;margin:0 0 7px}
.bdm-footer ul{list-style:none;padding:0;margin:0}
.bdm-footer a{color:var(--bdm-mute)}
.bdm-footer a:hover{color:var(--bdm-willow)}

/* ---------- section headings on the home page ---------- */
.home .entry-content h2{
  font-size:clamp(38px,6.4vw,68px);margin:1.4em 0 .5em;
}
.home .entry-content h2 em{font-style:normal;color:var(--bdm-red)}

/* ===================================================================
   v1.4 — header layout, hero gap
   =================================================================== */

/* ---------- brand mark, drawn on the title ---------- */
.bdm-mark{display:none}
.site-header .site-title a::before{
  content:"";
  display:inline-block;
  width:25px;height:30px;
  margin-right:12px;
  vertical-align:-3px;
  background:linear-gradient(90deg,
    var(--bdm-red) 0 6px,
    transparent 6px 9px,
    var(--bdm-navy-2) 9px 16px,
    transparent 16px 19px,
    var(--bdm-red) 19px 25px);
  box-shadow:inset 0 0 0 1px rgba(234,223,196,.18);
}

/* ---------- header rows: flex instead of Storefront's float widths ----------
   The floats capped the nav at two thirds of the width, which is what pushed
   "Keeping Gloves" onto a second line while space sat empty to the right. */
@media(min-width:768px){
  .site-header .col-full{
    display:flex;align-items:center;justify-content:space-between;gap:24px;
  }
  .site-header .site-branding{width:auto;float:none;margin:0;padding:0}

  .storefront-primary-navigation .col-full{
    display:flex;align-items:center;justify-content:space-between;gap:24px;
  }
  .main-navigation{width:auto;float:none;flex:1 1 auto;margin:0}
  .main-navigation ul.menu,
  .main-navigation ul.nav-menu{display:flex;flex-wrap:wrap;align-items:center}
  .site-header-cart{width:auto;float:none;flex:0 0 auto;margin:0}
  .site-header-cart .cart-contents{margin:0}
}

/* ---------- close the gap between header and hero ---------- */
.storefront-primary-navigation{padding-bottom:0}
.bdm-has-hero .site-content{padding-top:0!important;margin-top:0}
.bdm-has-hero .site-content .col-full{padding-top:0}
.bdm-has-hero .content-area,
.bdm-has-hero .site-main{padding-top:0;margin-top:0}
.bdm-has-hero .entry-header{padding-top:0;margin-top:0}
.bdm-has-hero .hentry{margin-top:0}
.bdm-has-hero .bdm-hero{margin-top:0}

/* Give the page copy that follows the hero some room back. */
.bdm-has-hero .entry-content{padding-top:2.2em}

/* ---------- tidy ---------- */
.home .post-edit-link,
.home .edit-link{display:none}

/* ===================================================================
   v1.5 — section headings, tighter grid
   =================================================================== */

/* Heading left, subtitle right — as in the original. */
.bdm-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:24px;flex-wrap:wrap;margin:0 0 clamp(20px,3vw,34px);
}
.bdm-head h2{
  font-family:'Big Shoulders Display',Impact,sans-serif;font-weight:900;
  font-size:clamp(38px,6.4vw,74px);line-height:.86;text-transform:uppercase;
  margin:0;color:var(--bdm-chalk);
}
.bdm-head h2 span{color:var(--bdm-red)}
.bdm-head p{margin:0 0 .4em;color:var(--bdm-mute);max-width:34ch;font-size:15px;text-align:left}
@media(min-width:900px){.bdm-head p{text-align:right}}

/* Home page sections need air between them. */
.home .entry-content .bdm-head{margin-top:clamp(40px,5vw,72px)}
.home .entry-content>ul.products{margin-bottom:clamp(30px,4vw,54px)}

/* Five across, matching the original spacing. */
@media(min-width:768px){
  ul.products.columns-5 li.product{width:18.4%;margin-right:2%}
  ul.products.columns-5 li.product:nth-child(5n){margin-right:0}
  ul.products.columns-5 li.product:nth-child(5n+1){clear:both}
}
ul.products li.product .woocommerce-loop-product__title{font-size:22px}
.bdm-card__badge{font-size:8.5px;letter-spacing:.09em}

/* Category tiles: six across like the original. */
.bdm-cats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}

/* ===================================================================
   v1.6 — brand lockup
   Title and tagline stack together to the right of the bars, the way
   the BDM mark does. The indent matches the mark width (25px) + gap (12px).
   =================================================================== */
.site-header .site-branding{line-height:1}
.site-header .site-title{margin:0;line-height:.85}
.site-header .site-title a{display:inline-block}
.site-header .site-description{
  margin:3px 0 0 37px;
  font-family:'Space Mono',ui-monospace,monospace;
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--bdm-mute);
  line-height:1.2;
  max-width:34ch;
}

/* Short brand names sit better a touch larger. */
.site-header .site-title a{font-size:38px}
@media(max-width:600px){
  .site-header .site-title a{font-size:30px}
  .site-header .site-title a::before{width:20px;height:24px;margin-right:9px;vertical-align:-2px}
  .site-header .site-description{margin-left:29px;font-size:9px}
}
