/* Circle Star online store. Loads only on store pages, after WooCommerce's own CSS. */

/* Page frame */
.store-wrap { background: var(--fog); padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.page-top-slim { padding-bottom: 18px; }
.store-sandbox { margin: 0 0 18px; }
.store-h2 { font-size: 1.5rem; margin: 8px 0 18px; }

/* Shop home: categories */
.store-cats { margin-bottom: 40px; }
.store-cats h2 { font-size: 1.5rem; margin-bottom: 16px; }
.cat-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-cards li { display: flex; }
.cat-cards a { position: relative; display: flex; flex-direction: column; width: 100%; padding: 20px 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cat-cards a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--blaze); border-radius: var(--radius) var(--radius) 0 0; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.cat-cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-cards a:hover::before { transform: scaleX(1); }
.cc-name { font: 700 1.25rem/1.2 var(--head); margin-bottom: 6px; }
.cc-desc { color: var(--gunmetal); font-size: .98rem; flex: 1; }
.cc-go { align-self: flex-end; margin-top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--steel); color: var(--white); display: grid; place-items: center; transition: background .2s ease; }
.cat-cards a:hover .cc-go { background: var(--blaze); }

/* Category chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cat-chips a { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 .95rem var(--body); }
.cat-chips a:hover { border-color: var(--ink); }
.cat-chips a[aria-current="page"] { background: var(--steel); border-color: var(--steel); color: var(--white); }

/* Product grid (CSS grid instead of WooCommerce floats) */
.woocommerce .woocommerce-result-count { color: var(--gunmetal); margin: 0 0 16px; }
.woocommerce .woocommerce-ordering { margin: 0 0 16px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font: inherit; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 32px; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { float: none !important; width: auto !important; margin: 0 !important; clear: none !important; }
.woocommerce ul.products li.product { padding: 0 0 18px; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.woocommerce ul.products li.product a img { margin: 0 0 14px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 10px; box-sizing: border-box; border-radius: 6px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 600 1.12rem/1.3 var(--head); padding: 0 18px; margin: 0 0 8px; color: var(--ink); }
.woocommerce ul.products li.product .price { padding: 0 18px; margin: 0 0 14px; color: var(--ink); font: 600 1.15rem var(--cond); }
.woocommerce ul.products li.product .button { margin: auto 18px 0; text-align: center; }
.woocommerce ul.products li.product .added_to_cart { margin: 8px 18px 0; text-align: center; }

/* Buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 4px; background: var(--ink); color: var(--white); font: 600 1rem/1 var(--body); border: 0; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--steel-3); color: var(--white); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce .single_add_to_cart_button, .woocommerce a.checkout-button, .woocommerce #place_order { background: var(--blaze); color: var(--ink); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce .single_add_to_cart_button:hover, .woocommerce a.checkout-button:hover, .woocommerce #place_order:hover { background: #F47E3A; color: var(--ink); } /* ink text keeps 6.5:1 on hover (2026-10-31) */
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: .5; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 4px; background: var(--white); color: var(--ink); font-weight: 600; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--steel); color: var(--white); }

/* Category intro under the grid */
.store-intro { max-width: 760px; margin: 8px 0 0; padding: 22px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.store-intro p:last-child { margin-bottom: 0; }

/* Product page */
.woocommerce div.product { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(18px, 3.5vw, 40px); }
.woocommerce div.product div.images img { border-radius: 6px; background: var(--plate); }
.woocommerce div.product .product_title { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--head); margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font: 600 1.7rem var(--cond); margin-bottom: 14px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--gunmetal); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 18px 0 20px; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce .quantity .qty { width: 76px; min-height: 48px; border: 1px solid var(--line); border-radius: 4px; font: 600 1.05rem var(--cond); }
.woocommerce div.product form.cart .button { float: none; min-width: 200px; }
.pickup-box { margin: 18px 0; padding: 16px 18px; background: var(--fog); border-left: 4px solid var(--blaze); border-radius: 0 var(--radius) var(--radius) 0; }
.pb-head { font: 700 1.15rem var(--head); margin: 0 0 8px; }
.pickup-box ul { margin: 0 0 8px 18px; padding: 0; }
.pickup-box li { margin: 4px 0; }
.pb-note { margin: 6px 0 0; color: var(--gunmetal); font-size: .97rem; }
.pb-call { margin: 12px 0 0; } /* out of stock: a Call button where Add to cart would be (2026-10-31) */
.pickup-box.is-out p { margin: 0; }
.pickup-box.is-out .pb-call { margin-top: 12px; }
.trust-list { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.trust-list li { position: relative; padding-left: 26px; color: var(--gunmetal); }
.trust-list li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 3px solid var(--blaze); border-bottom: 3px solid var(--blaze); transform: rotate(-45deg); }
.woocommerce div.product .product_meta { margin-top: 16px; color: var(--gunmetal); font-size: .95rem; }
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 18px; display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; font: 600 1.05rem var(--body); color: var(--gunmetal); border-bottom: 3px solid transparent; display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--blaze); }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 1.3rem; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font-style: normal; background: none; }
.woocommerce table.shop_attributes th { width: 34%; color: var(--gunmetal); font-weight: 600; text-align: left; }
.woocommerce table.shop_attributes td p { margin: 0; }
.woocommerce .related.products, .woocommerce .up-sells { clear: both; padding-top: 32px; }
.woocommerce .related.products > h2 { font-size: 1.5rem; margin-bottom: 16px; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top: 3px solid var(--blaze); background: var(--white); color: var(--ink); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-sm); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--blaze); }
.woocommerce-error { border-top-color: #B42318; }
.woocommerce-error::before { color: #B42318; }
.store-note { margin: 0 0 22px; padding: 14px 18px; background: var(--white); border-left: 4px solid var(--blaze); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.store-note p { margin: 0 0 6px; }
.store-note p:last-child { margin: 0; }

/* Cart, checkout, account (inside page.php's .prose) */
.prose .woocommerce table.shop_table { background: var(--white); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-collapse: separate; }
.prose .woocommerce table.shop_table th, .prose .woocommerce table.shop_table td { border-top: 1px solid var(--line); padding: 12px 14px; }
.prose .woocommerce table.shop_table img { width: 64px; background: var(--plate); border-radius: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .coupon input.input-text { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font: inherit; color: var(--ink); }
.woocommerce form .form-row label { font-weight: 600; }
.woocommerce form .form-row .required { color: #B42318; text-decoration: none; }
.woocommerce-checkout #payment { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.woocommerce-checkout #payment div.payment_box { background: var(--fog); color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--fog); }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: 1.35rem; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Shop home: how pickup works */
.store-steps { background: var(--white); padding: clamp(40px, 6vw, 72px) 0; }
.store-steps-in { max-width: 820px; }
.store-steps h2 { font-size: 1.7rem; margin-bottom: 12px; }
.store-steps .steps { background: var(--fog); box-shadow: none; }
.store-steps-more { margin: 0; }

@media (max-width: 900px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; }
}
@media (max-width: 420px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

/* ===== Sales navigation ===== */

/* Store bar under the header */
.store-bar { background: var(--steel-2); border-top: 1px solid rgba(255,255,255,.08); }
.store-bar-in { display: flex; align-items: center; gap: 14px; min-height: 52px; position: relative; }
.sb-menu { flex: 0 0 auto; min-width: 0; gap: 2px; }
/* Quick links: one row; links that don't fit wrap out of sight (overflow) and shop.js takes them out of the tab order */
.sb-tops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; height: 44px; overflow: hidden; }
.sb-btn { font-weight: 600; color: var(--white); padding-left: 0; }
.sb-btn::before { content: ""; width: 16px; height: 2px; margin-right: 10px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.store-bar .sb-panel { width: min(1100px, calc(100vw - 2 * var(--gutter))); top: calc(100% + 6px); padding: 18px 22px 16px; z-index: 60; }
.sb-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; }
.sb-head { display: block; padding: 4px 0 6px; font: 600 1.08rem var(--head); color: var(--white); text-decoration: none; }
a.sb-head:hover { color: var(--blaze); background: none; }
.store-bar .sb-panel ul a { padding: 5px 0; color: rgba(255,255,255,.82); }
.store-bar .sb-panel ul a:hover { background: none; color: var(--blaze); }
.sb-all-link { display: inline-block; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-weight: 600; color: var(--white); }
.sb-top a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: rgba(255,255,255,.85); text-decoration: none; font: 500 .98rem var(--body); white-space: nowrap; border-bottom: 2px solid transparent; }
.sb-top a:hover { color: var(--blaze); }
.sb-top a[aria-current="page"] { color: var(--white); border-bottom-color: var(--blaze); }
.sb-search { display: flex; flex: 0 0 330px; min-width: 0; } /* keeps its width; the quick links give way instead (2026-10-31) */
.sb-search input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 0; border-radius: 4px 0 0 4px; font: inherit; font-size: .98rem; color: var(--ink); background: var(--white); }
.sb-search button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 0 4px 4px 0; background: var(--blaze); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.sb-search button:hover { background: #F47E3A; }
/* Search suggestions (shop.js): under the search box, full width on phones */
.sug { position: absolute; top: calc(100% + 4px); right: 0; z-index: 70; width: min(560px, 100%); max-height: min(70vh, 640px); overflow: auto; padding: 6px 0; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.sug[hidden] { display: none; }
.sug-head { margin: 0; padding: 8px 14px 4px; font: 600 .78rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--gunmetal); }
.sug a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 14px; color: var(--ink); text-decoration: none; }
.sug a:hover, .sug a[aria-selected="true"] { background: var(--fog); }
.sug a[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--blaze); }
.sug-l { flex: 1 1 auto; min-width: 0; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sug-t, .sug-p { flex: 0 0 auto; font-size: .86rem; color: var(--gunmetal); white-space: nowrap; }
.sug-p { font-weight: 600; color: var(--ink); }
.sug-img { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.sug-img img { width: 100%; height: 100%; object-fit: contain; }
.sug-all { margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; }

/* Compact store header so products come first */
.page-top-store .store-hero { padding-top: 10px; padding-bottom: clamp(22px, 3vw, 34px); }
.store-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--white); margin-bottom: 6px; }
.store-hero .ph-lead { margin-bottom: 6px; }
.store-hero-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.store-hero-links a { color: var(--white); font-weight: 600; text-decoration-color: var(--blaze); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cc-kids { color: var(--gunmetal); font-size: .95rem; flex: 1; }

/* Shop by caliber */
.store-cal { margin-bottom: 36px; }
.store-cal h2, .store-season h2 { font-size: 1.5rem; margin-bottom: 14px; }
.cal-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cal-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 1rem var(--cond); }
.cal-chips a:hover { border-color: var(--blaze); color: var(--ink); }

/* Season picks */
.store-season { margin-bottom: 40px; }
.season-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.season-cards li { background: var(--steel) url(img/topo-light.svg) center / cover no-repeat; color: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.sc-t { font: 700 1.3rem/1.2 var(--head); margin: 0 0 6px; }
.sc-d { color: var(--on-dark-muted); margin: 0 0 16px; flex: 1; }
.sc-l { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.season-cards .btn-ink { background: var(--blaze); color: var(--ink); }
.season-cards .btn-ink:hover { background: var(--blaze-dark); color: var(--ink); }
.season-cards .text-link { color: var(--white); }

/* Filters beside the grid */
.store-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.store-filters { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sf-summary { list-style: none; cursor: pointer; padding: 14px 18px; font: 700 1.05rem var(--body); display: flex; justify-content: space-between; align-items: center; }
.sf-summary::-webkit-details-marker { display: none; }
.sf-summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.store-filters[open] .sf-summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sf-body { padding: 0 18px 8px; }
.sf-block { padding: 12px 0; border-top: 1px solid var(--line); }
.sf-active:empty, .sf-active:not(:has(li)):not(:has(.sf-chip)) { display: none; }
.sf-title, .sf-widget .sf-title { font: 700 .98rem var(--body); margin: 0 0 6px; color: var(--ink); }
.sf-list, .sf-widget ul { list-style: none; margin: 0; padding: 0; }
.sf-list a, .sf-widget ul li a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 0; color: var(--ink); text-decoration: none; }
.sf-list a:hover, .sf-widget ul li a:hover { color: var(--blaze-dark); }
.sf-list a[aria-current] { font-weight: 700; }
.sf-n, .sf-widget .count { margin-left: auto; color: var(--gunmetal); font-size: .9rem; }
.sf-widget .woocommerce-widget-layered-nav-list__item { display: flex; align-items: center; }
.sf-widget .woocommerce-widget-layered-nav-list__item a { flex: 1; }
.sf-widget .woocommerce-widget-layered-nav-list__item a::before { content: ""; width: 18px; height: 18px; flex: none; border: 2px solid #6B7680; border-radius: 4px; background: var(--white); } /* 4.6:1, was 1.4:1 (2026-10-31) */
.sf-widget .woocommerce-widget-layered-nav-list__item--chosen a::before { background: var(--blaze); border-color: var(--blaze); box-shadow: inset 0 0 0 3px var(--white); }
.sf-active ul { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-active ul li a, .sf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--steel); color: var(--white) !important; font-size: .9rem; text-decoration: none; }
.sf-active ul li a::after { content: "\00d7"; font-size: 1.1rem; }
.sf-active ul li a::before { display: none !important; }
.sf-chip-row { margin: 6px 0 0; }
.sf-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sf-switch { width: 40px; height: 22px; border-radius: 11px; background: #6B7680; position: relative; flex: none; transition: background .2s ease; }
.sf-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: left .2s ease; }
.sf-toggle.is-on .sf-switch { background: var(--blaze); } /* state as a class: the link says "(on)" or "(off)" in words, not role="switch" (2026-10-31) */
.sf-toggle.is-on .sf-switch::after { left: 21px; }
.store-results { min-width: 0; }
.store-results .woocommerce-result-count { margin-top: 10px; }
.store-results .woocommerce-info { margin-top: 0; }

/* Cards: badge, specs, stock line */
.woocommerce ul.products li.product { position: relative; }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--steel); color: var(--white); font: 600 .82rem var(--cond); letter-spacing: .02em; }
.card-specs { padding: 0 18px; margin: -2px 0 10px; color: var(--gunmetal); font-size: .92rem; line-height: 1.4; }
.card-stock { padding: 0 18px; margin: 0 0 10px; color: #B42318; font-size: .9rem; }

/* Product page: key specs */
.key-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 0 16px; padding: 12px 14px; background: var(--fog); border-radius: 6px; }
.key-specs dt { font-size: .85rem; color: var(--gunmetal); }
.key-specs dd { margin: 0; font: 600 1.05rem var(--cond); }

/* Phone buy bar (replaces the call bar on product pages) */
.buy-bar { display: none; }

@media (max-width: 1060px) {
  .sb-tops, .sb-top { display: none; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .store-grid { grid-template-columns: 1fr; gap: 16px; }
  .sb-search { flex: 1 1 auto; }
  .sug { left: 0; width: auto; border-radius: 0 0 var(--radius) var(--radius); }
  .sug-t { white-space: normal; max-width: 42%; text-align: right; font-size: .8rem; }
  .sb-all { position: static; }
  .store-bar .sb-panel { position: absolute; left: 0; right: 0; width: auto; top: 100%; max-height: 70vh; overflow: auto; margin: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--steel-2); border-left: 0; }
  .sb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-btn { min-width: 44px; justify-content: center; } /* a visible "Categories" label instead of a second bare menu icon (2026-10-31) */
  .sb-btn-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sb-btn::after { display: none; }
  .sf-list a, .sf-widget ul li a { min-height: 44px; }
}
@media (max-width: 960px) { /* was 900px: matches the call bar (2026-10-31) */
  .buy-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 12px; background: var(--steel); border-top: 3px solid var(--blaze); color: var(--white); }
  .bb-call { color: var(--white); font-weight: 600; padding: 0 6px; min-height: 44px; display: flex; align-items: center; }
  .bb-price, .bb-price .amount { color: var(--white); font: 600 1.15rem var(--cond); }
  .bb-price del { opacity: .7; }
  .bb-add { min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--blaze); color: var(--ink); font: 600 1rem var(--body); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
}
@media (max-width: 560px) {
  .sb-cols { grid-template-columns: 1fr; }
  .key-specs { grid-template-columns: 1fr 1fr; }
}

/* Fixes after the first visual pass */
.store-sandbox mark { white-space: normal; display: inline; line-height: 1.6; }
.woocommerce ul.products li.product .button { display: flex !important; align-items: center; justify-content: center; line-height: 1.2; padding: 0 16px; }
.sf-widget .woocommerce-widget-layered-nav-list__item--chosen a::before { content: "" !important; font-family: inherit !important; color: transparent !important; margin: 0 !important; }
.woocommerce-widget-layered-nav-list__item a::before { margin-right: 0; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { display: none !important; }

/* ===== Icons and the scroll feed ===== */
/* Icons are flat one-color silhouettes in a 2:1 box; color comes from the link */
.cat-ico, .tile-ico, .row-ico, .sb-ico, .sb-ico-s, .rail-ico { flex: none; display: inline-block; vertical-align: middle; fill: currentColor; }

/* Shop by category: icon tiles */
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.cat-tiles li { display: flex; }
.cat-tiles a { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; padding: 22px 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); color: var(--steel); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; will-change: transform; }
.cat-tiles a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--blaze); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.cat-tiles a::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0)); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.cat-tiles a:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-4px); }
.cat-tiles a:hover::before { transform: scaleX(1); }
.cat-tiles a:hover::after { animation: cs-sheen .7s ease forwards; }
.cat-tiles a:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; }
.tile-ico { width: 112px; height: 56px; margin-bottom: 12px; color: var(--steel); transition: color .2s ease; }
.cat-tiles a:hover .tile-ico { color: var(--blaze); }
.ct-name { font: 700 1.12rem/1.2 var(--head); color: var(--ink); }
.ct-kids { margin-top: 6px; color: var(--gunmetal); font-size: .86rem; line-height: 1.35; }
/* 3.8.6: at most three lines of types per tile, so a row of tiles stays even */
.ct-kids { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Store bar mega panel icons: same 48px column for every row so the names line up */
.sb-head { display: flex; align-items: center; gap: 10px; }
.store-bar .sb-panel { color: var(--white); }
.store-bar .sb-panel ul a { display: flex; align-items: center; gap: 10px; }
.sb-ico { width: 48px; height: 24px; color: var(--white); transition: color .15s ease; }
.sb-ico-s { width: 48px; height: 20px; color: #AEB8C2; transition: color .15s ease; }
.store-bar .sb-panel .sb-cal a { padding-left: 58px; }
a.sb-head:hover .sb-ico, .store-bar .sb-panel ul a:hover .sb-ico-s, a.sb-head:focus-visible .sb-ico, .store-bar .sb-panel ul a:focus-visible .sb-ico-s { color: var(--blaze); }

/* Drill-down rail on category pages */
.sub-rail { margin: 0 0 22px; }
.sub-rail ul { list-style: none; margin: 0; padding: 4px 2px 10px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sub-rail li { flex: none; scroll-snap-align: start; }
.sub-rail a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; padding: 12px 8px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--steel); text-decoration: none; font: 600 .92rem/1.2 var(--body); text-align: center; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.sub-rail a:hover { border-color: var(--blaze); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.sub-rail a span { color: var(--ink); }
.rail-ico { width: 60px; height: 30px; color: var(--steel); }
.sub-rail a:hover .rail-ico, .sub-rail a[aria-current="page"] .rail-ico { color: var(--blaze); }
.sub-rail a[aria-current="page"] { border: 2px solid var(--blaze); box-shadow: var(--shadow-sm); }

/* Product rows */
.prod-row { margin: 0 0 38px; }
.row-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.row-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; margin: 0; }
.row-ico { width: 52px; height: 26px; color: var(--steel); }
.row-more { margin-left: auto; font-weight: 600; white-space: nowrap; }
.row-nav { display: flex; gap: 6px; }
.row-more + .row-nav { margin-left: 4px; }
.row-head h2 + .row-nav { margin-left: auto; }
.row-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.row-btn:hover:not(:disabled) { background: var(--steel); color: var(--white); }
.row-btn:disabled { opacity: .35; cursor: default; }
.row-fits .row-nav { display: none; }
.row-track { list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 2px; scrollbar-width: thin; }
.row-card { scroll-snap-align: start; display: flex; }
.row-card a { display: flex; flex-direction: column; width: 100%; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; color: var(--ink); text-decoration: none; padding-bottom: 14px; transition: box-shadow .2s ease, transform .2s ease; }
.row-card a:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
/* 3.8.4: product photos are on white, so the photo box is white with a little air; tall photos can no longer stretch the card */
.rc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; margin-bottom: 10px; overflow: hidden; border-bottom: 1px solid var(--line); }
.rc-img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; object-fit: contain; display: block; }
.rc-name { padding: 0 14px; font: 600 1rem/1.3 var(--head); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-spec { padding: 0 14px; color: var(--gunmetal); font-size: .86rem; line-height: 1.35; margin-bottom: 6px; }
.rc-price { padding: 0 14px; margin-top: auto; font: 600 1.1rem var(--cond); }
.rc-price del { color: var(--gunmetal); font-weight: 400; }
.rc-stock { padding: 2px 14px 0; color: #B42318; font-size: .86rem; }
.product-rows { margin-top: 36px; }

/* Endless loading */
.js-endless .store-results .woocommerce-pagination { display: none; }
.endless-foot { text-align: center; padding: 6px 0 12px; }
.endless-status { color: var(--gunmetal); margin: 0 0 10px; min-height: 1.4em; }
.endless-end { margin: 6px 0 0; color: var(--gunmetal); }
.woocommerce ul.products li.product.just-in { animation: cs-fade .45s ease; }
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }

/* Reveal on scroll: sections only (cards keep their own hover), opacity and a short lift */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: 20px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; background: var(--steel); color: var(--white); display: grid; place-items: center; font-size: 1.25rem; text-decoration: none; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--blaze); color: var(--ink); }
.to-top.show.is-off { opacity: 0; pointer-events: none; transform: translateY(10px); } /* hidden while the orange band or the footer is on screen (shop.js) */

@media (max-width: 960px) { .to-top { bottom: 76px; } }
@media (max-width: 900px) {
  .to-top { width: 40px; height: 40px; right: 8px; } /* smaller and tucked in on phones (2026-10-31) */
  .row-nav { display: none; }
  .row-track { grid-auto-columns: minmax(160px, 44vw); gap: 12px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-ico { width: 96px; height: 48px; }
  .ct-kids { display: none; }
  .sub-rail a { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-tiles a, .tile-ico, .sb-ico, .sb-ico-s, .rail-ico, .row-card a, .sub-rail a, .to-top { transition: none; }
  .cat-tiles a:hover::after { animation: none; }
  .woocommerce ul.products li.product.just-in { animation: none; }
}

/* For you */
.foryou-row { background: var(--white); border-radius: 12px; padding: 18px 18px 6px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--blaze); }
.foryou-row .row-head { margin-bottom: 4px; }
.fy-why { margin: 0 0 12px; color: var(--gunmetal); font-size: .95rem; }
.fy-clear { background: none; border: 0; padding: 0; color: var(--ink); font: 600 .95rem var(--body); text-decoration: underline; text-decoration-color: var(--blaze); text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.foryou-row .row-card a { box-shadow: none; border: 1px solid var(--line); }

/* ===== Category photos (3.5.2): real product photos on white, icons stay as the fallback ===== */
.cat-photo { flex: none; display: inline-flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.cat-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cat-photo-tile { width: 100%; aspect-ratio: 2 / 1; margin-bottom: 12px; border-radius: 8px; }
.cat-photo-tile img { transition: transform .3s ease; }
.cat-tiles a:hover .cat-photo-tile img { transform: scale(1.05); }
.cat-tiles a { padding-top: 14px; }
.cat-photo-nav { width: 56px; height: 28px; border-radius: 5px; padding: 1px 3px; }
.store-bar .sb-panel .sb-cal a { padding-left: 66px; }
.cat-photo-rail { width: 96px; height: 48px; border-radius: 6px; }
.photo-credits { margin: 8px 0 26px; color: var(--gunmetal); font-size: .86rem; }
.photo-credits summary { cursor: pointer; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.photo-credits ul { margin: 6px 0 0; padding-left: 18px; }
.photo-credits a { color: var(--ink); }
.photo-credits-link { margin: 0 0 20px; font-size: .86rem; }
.photo-credits-link a { color: var(--gunmetal); }
@media (max-width: 900px) { .cat-photo-rail { width: 84px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .cat-photo-tile img { transition: none; } }


/* Caliber and brand pages: the "Good to know" links under the products */
.landing-links { max-width: 760px; margin: 28px 0 0; }
.landing-links h2 { font-size: 1.25rem; margin: 0 0 12px; }
.store-sec-lead { max-width: 680px; margin: -4px 0 14px; color: var(--gunmetal); }

/* 3.8.0 (launch audit 2026-10-13) */
/* Form fields at 3:1 contrast against white (WCAG 1.4.11), where the money is taken */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .coupon input.input-text, .woocommerce .quantity .qty, .woocommerce .woocommerce-ordering select, .sb-search input[type="search"] { border-color: #6B7680; }
.cart-top-checkout { margin: 0 0 16px; }
.cart-top-checkout .btn { width: 100%; max-width: 360px; justify-content: center; }
.cs3-age { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #6B7680; border-radius: 4px; background: var(--white); }
.cs3-age label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.cs3-age input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.next-steps { margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--blaze); border-radius: var(--radius); background: var(--white); }
.next-steps h2 { font-size: 1.3rem; margin: 0 0 8px; }
.next-steps ul { margin: 0; padding-left: 20px; }
.bb-add.bb-in { background: var(--steel); }
.bb-add[disabled] { opacity: .7; }

/* 3.8.0: listing pages run without WooCommerce's own stylesheets, so the theme covers what they used to */
.woocommerce ul.products { padding: 0; list-style: none; }
.woocommerce span.onsale { position: absolute; top: 12px; right: 12px; left: auto; z-index: 1; min-width: 0; min-height: 0; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--blaze); color: var(--ink); font: 600 .82rem/1.2 var(--cond); letter-spacing: .02em; }
.woocommerce .price del { color: var(--gunmetal); font-weight: 400; opacity: .8; margin-right: 6px; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; }
.cs3-lite .woocommerce-info, .cs3-lite .woocommerce-message, .cs3-lite .woocommerce-error { padding: 14px 18px; margin: 0 0 24px; }
.cs3-lite .woocommerce-message .button { float: right; min-height: 40px; margin-left: 12px; }
.woocommerce ul.products li.product .star-rating { display: none; }
.woocommerce a.button, .woocommerce a.added_to_cart { text-decoration: none; }
.woocommerce ul.products li.product .button.loading { opacity: .6; pointer-events: none; }
.woocommerce ul.products li.product .button.added::after { content: " \2713"; margin-left: 6px; }
/* 3.8.4: FFL Cockpit tags every feed product "Online Only"; the store doesn't use tags, and in the store the word misleads */
.product_meta .tagged_as { display: none; }
/* 3.8.7: FFL Cockpit's product names run long, so the product heading scales down instead of filling the screen */
/* 3.8.33: the selector now matches the product page's own rule, so long names really do scale down (2026-10-31) */
.woocommerce div.product .product_title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
/* 3.8.8: "In stock" in a darker green that passes contrast on white (WooCommerce's green is 3.4:1) */
.woocommerce div.product p.stock.in-stock, .woocommerce div.product .stock.in-stock { color: #17633A; }
/* 3.8.11: shop by what you're doing (same tiles as categories), Clay Range break, cart rows */
.store-uses { margin-top: 8px; }
.store-uses .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .store-uses .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .store-uses .ct-kids { display: block; } }
.clay-promo { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 36px 0 8px; padding: 22px 24px; border-radius: var(--radius); background: var(--steel) url(img/topo-light.svg) center / cover no-repeat; color: var(--white); box-shadow: var(--shadow-sm); }
.clay-promo .cp-t { font: 700 1.3rem/1.2 var(--head); margin: 0 0 4px; }
.clay-promo .cp-d { margin: 0; color: rgba(255,255,255,.85); }
.cart-rows { margin-top: 28px; }
/* 3.8.14: collections (kinds, steps, calibers, what goes with it) and caliber chips on category pages */
.col-nav { margin: 0 0 18px; }
.col-chips { margin: 0 0 12px; }
.col-chips-h { margin: 0 0 8px; font: 600 .95rem var(--body); color: var(--steel); }
.col-hot-note { margin-left: 8px; font-weight: 400; color: var(--gunmetal); font-size: .88rem; }
.col-chips .cal-chips { margin: 0; }
.col-chips .cal-chips a[aria-current="true"] { background: var(--steel); color: var(--white); border-color: var(--steel); }
.col-chips .cal-chips .is-hot a { border-color: var(--blaze); }
.col-chips .sf-n { color: var(--gunmetal); font-weight: 400; margin-left: 4px; }
.col-chips .cal-chips a[aria-current="true"] .sf-n { color: rgba(255,255,255,.8); }
.ph-note { margin: 6px 0 0; color: rgba(255,255,255,.8); font-size: .98rem; }
.col-next { flex-wrap: wrap; }

/* Checkout: note when Circle Star is picked as the dealer for a nearby buyer (assets/ffl-near.js) */
.ffl-near-note { margin: 8px 0 12px; padding: 10px 14px; border-left: 3px solid var(--blaze); background: var(--fog); font-size: .95rem; text-align: left; }

/* 3.8.33 (final polish 2026-10-31) */
/* Row heads wrap: a long caliber name no longer squeezes the heading to one word a line or pushes the link past the card */
.row-head { flex-wrap: wrap; row-gap: 6px; }
.row-more { white-space: normal; }
@media (max-width: 560px) { .row-head h2 { flex: 1 1 100%; } .row-more { margin-left: 0; } }
/* Focus ring inside scrolling rows and the one-row store bar is drawn inside the link, so it isn't clipped */
.row-card a:focus-visible, .sub-rail a:focus-visible, .sb-top a:focus-visible { outline-offset: -3px; }
/* Store bar button: "Categories" shows only where the full label is hidden (under 960px) */
.sb-btn-short { display: none; }
@media (max-width: 960px) { .sb-btn-short { display: inline; } }
/* Product gallery: small feed photos show at their own size, not stretched soft */
.woocommerce div.product div.images .woocommerce-product-gallery__image img { width: auto; max-width: 100%; margin: 0 auto; }
/* Narrowest phones: one product per row, so names and Add to cart fit */
@media (max-width: 359px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* 3.8.34 (walkthrough 2026-10-31) */
/* "Update cart" while it's disabled: WooCommerce's own sheet sets color: inherit, so the label was ink on the ink button. Now a light button with readable text */
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: 1; background: var(--white); color: var(--gunmetal); box-shadow: inset 0 0 0 1px #6B7680; cursor: not-allowed; padding: 0 20px; }
/* Product rows scroll by their arrow buttons, touch and keys; no bare scrollbar under the cards */
.row-track { scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
/* Cart: where a gun ships, beside the shipping choice, and the tax row before an address is known */
.ship-ffl { color: var(--gunmetal); font-weight: 400; }
.tax-note td { color: var(--gunmetal); }
/* Coming soon (store mode): once Circle Star is set as the dealer, the dealer search, its shipping instructions and the shipping
   address block (filled with the store's address) are hidden (assets/ffl-near.js, cold walk 2026-10-31) */
body.cs3-ffl-pickup #ffl_checkout_notice, body.cs3-ffl-pickup #ffl_checkout_notice_ammo, body.cs3-ffl-pickup #ffl_search_fields,
body.cs3-ffl-pickup .woocommerce-shipping-fields, body.cs3-ffl-pickup #ffl-local-pickup-section, body.cs3-ffl-pickup #ffl-favorite-section { display: none !important; }
