/*
 * Shop layer -- refresh build item 4 (PLAN §22.3), concept v2 applied to the
 * WooCommerce templates: PLP card, used list view, /specials/, PDP fulfilment
 * line and the sticky mobile buy bar.
 *
 * Loads after theme.css on every page (inc/shop.php). The card rules repeat
 * the `.woocommerce ul.products li.product` shape where Woo's own CSS competes
 * -- see the scoping note at the top of theme.css. Responsive rules last.
 */

/* ---------- shared bits ---------- */
.erg-kicker { font-family: var(--erg-mono); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--erg-gold); margin: 0; }
.erg-pill {
  display: inline-block; font-family: var(--erg-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px; border: 1px solid; line-height: 1.2;
}
.erg-pill--local { color: var(--erg-green); border-color: rgba(92,184,122,.35); background: rgba(13,26,13,.85); }
.erg-pill--sale  { color: var(--erg-green); border-color: rgba(92,184,122,.35); background: rgba(13,26,13,.85); }
.erg-pill--store { color: var(--erg-gold); border-color: rgba(200,168,75,.4); background: rgba(200,168,75,.1); }

/* ---------- PLP card (concept .card) ---------- */
.woocommerce ul.products li.product.erg-plp-card,
ul.products li.product.erg-plp-card {
  background: var(--erg-panel); border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 0; overflow: visible;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.woocommerce ul.products li.product.erg-plp-card:hover,
ul.products li.product.erg-plp-card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.4); }

/* Light well: distributor renders are white-background; fighting that looks worse. */
html body .erg-plp-card .erg-card__thumb {
  background: #f3f4f6; border: 0; border-radius: 8px; aspect-ratio: 1; padding: 0;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
html body .erg-plp-card .erg-card__thumb img { width: 86%; height: 86%; max-width: 86%; max-height: 86%; object-fit: contain; }
html body .erg-plp-card.erg-card--nophoto .erg-card__thumb { background: #1a2028; }
.erg-card__ph { font-family: var(--erg-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; text-align: center; padding: 0 12px; }
.erg-card--nophoto .erg-card__ph { color: var(--erg-text-dim); }
.erg-card__badges { top: 8px; left: 8px; right: 8px; }

.erg-plp-card .erg-card__body { background: transparent; padding: 10px 0 0; gap: 7px; }
.erg-plp-card .erg-card__brand { font-family: var(--erg-mono); font-size: 10px; letter-spacing: .18em; color: #aab1bb; text-transform: uppercase; }
.woocommerce ul.products li.product .erg-card__title,
.erg-plp-card .erg-card__title { font-family: var(--erg-body); font-weight: 600; font-size: 14px; line-height: 1.35; }
.erg-plp-card .erg-card__meta { font-size: 12px; color: #aab1bb; margin-top: -2px; }
.erg-plp-card .erg-card__upc { margin: 0; font-family: var(--erg-mono); font-size: 10px; letter-spacing: .06em; color: #7d8590; }

.erg-card__bottom { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.woocommerce ul.products li.product .erg-card__priceval,
.erg-plp-card .erg-card__priceval { margin: 0; font-family: var(--erg-head); font-size: 21px; font-weight: 500; color: var(--erg-bone); }
.erg-card__priceval .woocommerce-price-suffix { display: none; }
.erg-plp-card .erg-card__actions { display: block; }
html body .erg-plp-card .erg-card__actions .button,
html body .erg-plp-card .erg-card__actions .erg-btn,
html body .woocommerce ul.products li.product.erg-plp-card .button {
  width: auto; padding: 9px 16px; font-size: 12px; border-radius: 999px; margin: 0; font-weight: 500; letter-spacing: .1em;
}
html body .erg-plp-card .erg-card__actions .erg-btn--ghost { background: transparent; color: var(--erg-text); border-color: rgba(255,255,255,.14); }
html body .erg-plp-card .erg-card__actions .erg-btn--ghost:hover { border-color: var(--erg-gold); color: var(--erg-gold); }
.erg-plp-card .added_to_cart { display: block; margin-top: 6px; font-family: var(--erg-head); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--erg-gold); }
.erg-plp-card .add_to_cart_button.added { display: none; }


/* Legacy erg-assets (10-base.css, 30-plp.css) still style these class names
   for the Elementor card: padding on title/meta/actions, an uppercase Oswald
   title link, and a dark background on the <img> itself, which turned every
   transparent PNG into a black square on the light well. Neutralized here
   at higher specificity; drop this block when those files are retired. */
html body .erg-plp-card .erg-card__title,
html body .erg-plp-card .erg-card__meta,
html body .erg-plp-card .erg-card__actions { padding: 0; margin-top: 0; }
html body .erg-plp-card .erg-card__meta { display: block; }
html body .erg-plp-card .erg-card__title a {
  font-family: var(--erg-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  line-height: 1.35; color: var(--erg-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
html body .erg-plp-card .erg-card__title a:hover { color: var(--erg-gold); }
/* 36-homepage.css paints .woocommerce ul.products li.product a img (0,3,4)
   dark with a 12px radius: a hairline dark frame inside the light well. */
html body .erg-plp-card .erg-card__thumb img,
html body .woocommerce ul.products li.product.erg-plp-card a img,
html body.woocommerce ul.products li.product.erg-plp-card a img { background: transparent; border-radius: 0; will-change: auto; filter: none; }
html body .erg-plp-card .erg-card__actions { display: block !important; } /* 30-plp.css sets flex with !important */
html body .erg-plp-card .erg-card__priceval .price,
html body .erg-plp-card .erg-card__priceval .woocommerce-Price-amount { font-family: var(--erg-head); font-weight: 500; letter-spacing: 0; }
html body .erg-plp-card .erg-card__priceval del .woocommerce-Price-amount { font-size: 13px; color: #aab1bb; }
html body .erg-plp-card .erg-card__priceval del { opacity: 1; margin-right: 6px; }


/* ---------- sub-category chips (inc/shop.php) ---------- */
.erg-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.erg-subcats a { font-family: var(--erg-head); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--erg-text); text-decoration: none; padding: 8px 14px; border: 1px solid var(--erg-border); border-radius: 999px; background: var(--erg-panel); transition: border-color .15s; }
.erg-subcats a:hover { border-color: var(--erg-gold); }
.erg-subcats a span { font-family: var(--erg-mono); font-size: 10.5px; color: #aab1bb; letter-spacing: 0; margin-left: 4px; }



/* ---------- PDP gallery frame ----------
   theme.css gave each slide (.woocommerce-product-gallery__image) the padding
   and border. FlexSlider sizes slides with jQuery .width(), which subtracts
   that padding + border, so every slide came out 46px narrower than the
   viewport and the next photo peeked in at the right edge (Beretta M9A1, any
   multi-photo product). The frame now lives on the viewport (or on the
   wrapper when there is only one photo); slides carry no box of their own. */
html body .woocommerce-product-gallery .flex-viewport,
html body .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  background: linear-gradient(160deg, #1e252e, #141a21); border: 1px solid var(--erg-border); border-radius: var(--erg-radius);
}
html body .woocommerce-product-gallery__image { padding: 0; border: 0; border-radius: 0; background: transparent; }
/* WooCommerce hides the gallery (inline opacity:0) until FlexSlider starts on
   window load, which waits for EVERY image on the page, including all the
   related-product cards. The main photo sat as an empty box for seconds (Rossi
   Brawler). Show it at once; the slider still starts when it's ready.
   !important because the value is an inline style set by script. */
html body .woocommerce-product-gallery { opacity: 1 !important; }
html body .woocommerce-product-gallery__image > a { padding: 22px; box-sizing: border-box; }


/* ---------- slide-out cart (inc/shop.php, assets/js/minicart.js) ---------- */
html.erg-mc-lock, html.erg-mc-lock body { overflow: hidden; }
.erg-mc { position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.erg-mc__scrim { position: absolute; inset: 0; background: rgba(4,6,9,.62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.erg-mc__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--erg-panel); border-left: 1px solid rgba(200,168,75,.3); box-shadow: -24px 0 60px rgba(0,0,0,.55);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; outline: none;
}
.erg-mc.is-open { pointer-events: auto; }
.erg-mc.is-open .erg-mc__scrim { opacity: 1; }
.erg-mc.is-open .erg-mc__panel { transform: none; }
.erg-mc__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.erg-mc__head h2 { margin: 0; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; color: var(--erg-bone); }
.erg-mc__x { background: none; border: 1px solid var(--erg-border); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--erg-text); cursor: pointer; }
.erg-mc__x:hover { border-color: var(--erg-gold); color: var(--erg-gold); }
.erg-mc .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html body .erg-mc ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
html body .erg-mc li.woocommerce-mini-cart-item { position: relative; display: block; min-height: 92px; padding: 14px 32px 14px 78px; border-bottom: 1px solid rgba(255,255,255,.06); margin: 0; }
html body .erg-mc li.woocommerce-mini-cart-item > a:not(.remove) { display: block; color: var(--erg-text); text-decoration: none; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
html body .erg-mc li.woocommerce-mini-cart-item > a:not(.remove):hover { color: var(--erg-gold); }
html body .erg-mc li.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 14px; width: 64px; height: 64px; object-fit: contain; background: #f3f4f6; border-radius: 8px; padding: 4px; margin: 0; float: none; }
html body .erg-mc li.woocommerce-mini-cart-item .quantity { display: block; font-size: 12.5px; color: #aab1bb; margin-top: 6px; }
html body .erg-mc li.woocommerce-mini-cart-item .quantity .amount { color: var(--erg-bone); font-family: var(--erg-head); font-size: 15px; }
html body .erg-mc li.woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: 14px; left: auto; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 999px; border: 1px solid var(--erg-border); color: #aab1bb !important; font-size: 15px; background: none; }
html body .erg-mc li.woocommerce-mini-cart-item a.remove:hover { border-color: var(--erg-red); color: var(--erg-red) !important; background: none; }
html body .erg-mc li.woocommerce-mini-cart-item dl.variation { font-size: 11.5px; color: #aab1bb; margin: 2px 0 0; }
html body .erg-mc .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 16px 20px 6px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #aab1bb; text-transform: uppercase; letter-spacing: .1em; }
html body .erg-mc .woocommerce-mini-cart__total .amount { font-family: var(--erg-head); font-size: 22px; color: var(--erg-bone); letter-spacing: 0; }
html body .erg-mc .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 10px 20px 4px; }
html body .erg-mc .woocommerce-mini-cart__buttons a.button { margin: 0; width: 100%; border-radius: 999px; padding: 13px 12px; text-align: center; text-decoration: none; font-family: var(--erg-head); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
html body .erg-mc .woocommerce-mini-cart__buttons a.button:not(.checkout) { background: transparent; color: var(--erg-text); border: 1px solid rgba(255,255,255,.18); }
html body .erg-mc .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { border-color: var(--erg-gold); color: var(--erg-gold); }
html body .erg-mc .woocommerce-mini-cart__buttons a.button.checkout { background: var(--erg-gold); border-color: var(--erg-gold); color: var(--erg-on-gold); }
html body .erg-mc .woocommerce-mini-cart__empty-message { padding: 30px 20px; margin: 0; color: var(--erg-muted); text-align: center; }
.erg-mc__note { margin: 0; padding: 10px 20px 18px; font-size: 12px; color: #aab1bb; }

/* ---------- cart + checkout ----------
   Both pages render through page.php, whose body column is capped at a
   reading width (715px), which squeezed the cart table and put checkout in
   one 343px column with the order summary 3,000px down the page. */
.woocommerce-cart .erg-single__body,
.woocommerce-checkout .erg-single__body,
.woocommerce-account .erg-single__body { max-width: none; }
.woocommerce-cart .erg-single__head h1,
.woocommerce-checkout .erg-single__head h1 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; font-weight: 500; color: var(--erg-bone); }

/* Notices: Woo draws an icon at left:1.5em for a 3.5em text indent; the theme's
   14px padding put the icon on top of the first letters. */
html body .woocommerce-info::before, html body .woocommerce-message::before, html body .woocommerce-error::before { display: none; }
html body .woocommerce-form-login-toggle .woocommerce-info,
html body .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0 0 10px; }
html body .woocommerce-info a, html body .woocommerce-message a { color: var(--erg-teal-lt); }

/* Cart */
html body.woocommerce-cart table.shop_table.cart td.product-thumbnail { width: 84px; }
html body.woocommerce-cart table.shop_table.cart td.product-thumbnail img { width: 64px; height: 64px; object-fit: contain; background: #f3f4f6; padding: 4px; border: 0; }
html body.woocommerce-cart table.shop_table.cart td.product-name a { font-size: 14px; line-height: 1.35; }
html body.woocommerce-cart table.shop_table.cart td.product-price,
html body.woocommerce-cart table.shop_table.cart td.product-subtotal { font-family: var(--erg-head); font-size: 16px; color: var(--erg-bone); white-space: nowrap; }
html body.woocommerce-cart table.shop_table.cart td.product-remove a.remove { color: #aab1bb !important; border: 1px solid var(--erg-border); width: 26px; height: 26px; line-height: 24px; border-radius: 999px; font-size: 16px; }
html body.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover { color: var(--erg-red) !important; border-color: var(--erg-red); background: none; }
html body.woocommerce-cart table.cart td.actions { background: rgba(255,255,255,.02); }
html body.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; align-items: center; }
html body.woocommerce-cart table.cart td.actions .coupon input.input-text { width: 180px; min-width: 0; background: var(--erg-ink); border: 1px solid var(--erg-border); border-radius: 999px; color: var(--erg-text); padding: 11px 16px; font: inherit; font-size: 13px; }
html body.woocommerce-cart .cart_totals { position: sticky; top: 96px; }
html body.woocommerce-cart .cart_totals td[data-title="Shipping"] { font-size: 12.5px; }

/* Checkout: form left, sticky order summary right. */
@media (min-width: 981px) {
  html body form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: 36px; align-items: start; }
  html body form.woocommerce-checkout > * { grid-column: 1; }
  html body form.woocommerce-checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 12px; }
  html body form.woocommerce-checkout > #order_review { grid-column: 2; grid-row: 2 / span 20; position: sticky; top: 96px; }
  html body form.woocommerce-checkout > #customer_details { grid-row: 1 / span 20; }
}
html body .woocommerce-checkout #customer_details.col2-set { display: block; }
html body .woocommerce-checkout .col2-set .col-1,
html body .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; max-width: none; }
html body .woocommerce-checkout .woocommerce-billing-fields,
html body .woocommerce-checkout .woocommerce-shipping-fields,
html body .woocommerce-checkout .woocommerce-additional-fields { background: var(--erg-panel); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 20px 22px 8px; margin: 0 0 16px; }
html body .woocommerce-checkout h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--erg-gold); font-weight: 500; }
html body .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
html body .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
html body .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
html body .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; width: auto; float: none; margin: 0 0 12px; padding: 0; }
html body .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
html body .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }
html body .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
html body .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }
html body .woocommerce-checkout .woocommerce-account-fields { background: var(--erg-panel); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 16px 22px 4px; margin: -8px 0 16px; }
html body .woocommerce-checkout-review-order table.shop_table { border: 0; border-radius: 0; overflow: visible; }
html body .woocommerce-checkout #order_review_heading { font-family: var(--erg-head); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--erg-gold); font-weight: 500; }
html body .woocommerce-checkout-review-order table.shop_table td.product-name { color: var(--erg-text); font-weight: 600; text-align: left; }
html body .woocommerce-checkout-review-order table.shop_table td.product-name .product-quantity { color: #aab1bb; font-weight: 400; }
html body .woocommerce-checkout-review-order table.shop_table th { text-align: left; }
html body .woocommerce-checkout #payment { background: transparent; border-radius: 0; }
html body .woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 0; }
html body .woocommerce-checkout #payment div.payment_box { background: rgba(255,255,255,.04); color: var(--erg-muted); border-radius: 8px; }
html body .woocommerce-checkout #payment div.payment_box::before { display: none; }
html body .woocommerce-checkout #payment div.form-row.place-order { padding: 14px 0 0; }
html body .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: #aab1bb; }
html body .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p { font-size: 12px; }

/* ---------- rebates on cards and PDP ---------- */
.erg-plp-card .erg-card__rebate { margin: 0; font-size: 12px; font-weight: 600; color: var(--erg-gold); line-height: 1.3; }
.erg-plp-card .erg-card__rebate span { font-family: var(--erg-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(200,168,75,.4); background: rgba(200,168,75,.1); border-radius: 6px; padding: 2px 6px; margin-right: 4px; vertical-align: 1px; }
.erg-pdp-rebates { margin: 0 0 14px; display: grid; gap: 8px; }
html body .erg-pdp-rebates .erg-rebate-badge { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: rgba(200,168,75,.08); border: 1px solid rgba(200,168,75,.35); border-radius: 10px; padding: 12px 14px; margin: 0; }
html body .erg-pdp-rebates .erg-rebate-badge__icon { color: var(--erg-gold); display: grid; }
html body .erg-pdp-rebates .erg-rebate-badge__headline { font-size: 14px; color: var(--erg-text); }
html body .erg-pdp-rebates .erg-rebate-badge__mfg { font-family: var(--erg-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #aab1bb; }
html body .erg-pdp-rebates .erg-rebate-badge__amount { font-family: var(--erg-head); font-size: 20px; font-weight: 500; color: var(--erg-gold); display: block; line-height: 1.1; }
html body .erg-pdp-rebates .erg-rebate-badge__desc { font-size: 12.5px; color: var(--erg-muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .erg-pdp-rebates .erg-rebate-badge__expires { font-family: var(--erg-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #aab1bb; margin-top: 4px; }
html body .erg-pdp-rebates .erg-rebate-badge__link { font-family: var(--erg-head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--erg-gold); text-decoration: none; white-space: nowrap; }

/* ---------- used archive: view toggle + list rows ---------- */
.erg-viewtoggle { display: inline-flex; border: 1px solid var(--erg-border); border-radius: 999px; overflow: hidden; margin: 0 0 14px 12px; vertical-align: middle; }
.erg-viewtoggle a { font-family: var(--erg-head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--erg-muted); padding: 7px 14px; text-decoration: none; }
.erg-viewtoggle a.is-on { background: var(--erg-gold); color: var(--erg-on-gold); }

.woocommerce ul.products.erg-ulist,
ul.products.erg-ulist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.woocommerce ul.products li.product.erg-urow { padding: 0; display: flex; }
.woocommerce ul.products li.product.erg-urow > .erg-urow__link { flex: 1; min-width: 0; }
.erg-urow__link {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--erg-panel); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px;
  color: var(--erg-text); text-decoration: none; transition: border-color .15s;
}
.erg-urow__link:hover { border-color: var(--erg-gold); }
.erg-urow__img { width: 78px; height: 78px; border-radius: 8px; overflow: hidden; background: #f3f4f6; display: grid; place-items: center; }
html body .erg-urow__img img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.erg-urow__img--ph { background: #212831; color: #aab1bb; font-family: var(--erg-mono); font-size: 9px; letter-spacing: .1em; text-align: center; line-height: 1.3; text-transform: uppercase; }
.erg-urow__txt { display: grid; gap: 3px; min-width: 0; }
.erg-urow__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.erg-urow__note { font-size: 12px; color: #aab1bb; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.erg-urow__price { font-family: var(--erg-head); font-size: 20px; color: var(--erg-bone); text-align: right; white-space: nowrap; }
.erg-urow__price small { display: block; white-space: normal; max-width: 9em; margin-left: auto; font-family: var(--erg-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--erg-green); text-transform: uppercase; }
.erg-urow__price del { color: #aab1bb; font-size: .62em; margin-right: 4px; }
.erg-urow__price ins { text-decoration: none; }

/* ---------- /specials/ ---------- */
.erg-specials { padding-bottom: 56px; }
.erg-sp-hero { position: relative; overflow: hidden; background: #0b0f14; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.erg-sp-hero::after { content: ""; position: absolute; inset: 0; background: var(--erg-contour) center/700px; opacity: .5; pointer-events: none; }
.erg-sp-hero .erg-wrap { position: relative; z-index: 1; padding-block: 44px 30px; }
.erg-sp-hero h1 { font-size: clamp(40px, 5.4vw, 64px); color: var(--erg-bone); text-transform: uppercase; font-weight: 500; line-height: .98; margin: 12px 0 14px; }
.erg-sp-hero .erg-pagehead__lede { max-width: 620px; color: var(--erg-muted); font-size: 15.5px; margin: 0; }
.erg-sp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.erg-sp-jump a { font-family: var(--erg-head); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--erg-text); text-decoration: none; padding: 8px 14px; border: 1px solid var(--erg-border); border-radius: 999px; background: rgba(19,24,31,.8); }
.erg-sp-jump a:hover { border-color: var(--erg-gold); }
.erg-sp-sec { padding-top: 44px; scroll-margin-top: 90px; }
.erg-sechead__sub { margin: 6px 0 0; color: #aab1bb; font-size: 14px; max-width: 560px; }
.erg-sp-empty { color: var(--erg-muted); background: var(--erg-panel); border: 1px dashed var(--erg-border); border-radius: 10px; padding: 18px 20px; margin: 0; }
.erg-sp-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.erg-sp-used { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.erg-capture { background: linear-gradient(180deg, #1a2028, var(--erg-panel)); border: 1px solid rgba(200,168,75,.35); border-radius: 14px; padding: 24px; position: relative; overflow: hidden; }
.erg-capture::after { content: ""; position: absolute; inset: 0; background: var(--erg-contour) center/520px; opacity: .35; pointer-events: none; }
.erg-capture > * { position: relative; z-index: 1; }
.erg-capture h3 { font-size: 26px; color: var(--erg-bone); text-transform: uppercase; font-weight: 500; margin: 8px 0; line-height: 1.05; }
.erg-capture p { font-size: 13.5px; color: var(--erg-muted); margin: 0 0 14px; }
.erg-capture small { display: block; margin-top: 12px; font-size: 12px; color: #aab1bb; }
.erg-capture small a { color: var(--erg-teal-lt); }
.erg-capture .capture-cta { margin: 0; }
html body .erg-capture .btn { display: flex; width: 100%; align-items: center; justify-content: center; font-family: var(--erg-head); text-transform: uppercase; letter-spacing: .1em; font-size: 13.5px; font-weight: 500; padding: 13px 22px; border-radius: 999px; background: var(--erg-gold); color: var(--erg-on-gold); text-decoration: none; }
html body .erg-capture .btn:hover { background: var(--erg-gold-hi); }

/* Evergreen guide pages: /suppressors/, /out-of-state-buyers/ (template-parts/guide-page.php) */
.erg-guide { padding-bottom: 56px; }
.erg-guide__facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.erg-guide__facts li { display: grid; gap: 2px; }
.erg-guide__facts b { font-family: var(--erg-head); font-size: 30px; font-weight: 500; color: var(--erg-gold); line-height: 1; }
.erg-guide__facts span { font-family: var(--erg-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #aab1bb; }
.erg-guide__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 36px; }
.erg-guide__body h2 { font-size: clamp(21px, 2.4vw, 26px); color: var(--erg-bone); text-transform: uppercase; font-weight: 500; margin: 34px 0 10px; }
.erg-guide__body h2:first-child { margin-top: 0; }
.erg-guide__body li { color: var(--erg-muted); margin-bottom: 8px; }
.erg-guide__body li strong, .erg-guide__body p strong { color: var(--erg-text); }
.erg-guide__body a { color: var(--erg-teal-lt); }
.erg-guide__body .erg-guide__note { font-size: 13px; border-left: 2px solid var(--erg-border); padding-left: 14px; margin-top: 30px; }
.erg-guide__aside { position: sticky; top: 96px; }
.erg-guide__aside a:not(.erg-btn) { color: var(--erg-teal-lt); }
.erg-guide__hours { font-family: var(--erg-mono); font-size: 12px !important; letter-spacing: .04em; }
@media (max-width: 900px) {
  .erg-guide__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .erg-guide__aside { position: static; }
}

.erg-sechead { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.erg-sechead h2 { font-size: 30px; color: var(--erg-bone); text-transform: uppercase; font-weight: 500; margin: 6px 0 0; }
.erg-sechead__more { font-family: var(--erg-head); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--erg-text); border-bottom: 1px solid var(--erg-gold); padding-bottom: 2px; text-decoration: none; white-space: nowrap; }
.erg-rebates__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.erg-rebate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--erg-panel); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px; color: var(--erg-text); text-decoration: none; }
.erg-rebate:hover { border-color: var(--erg-gold); }
.erg-rebate__amt { font-family: var(--erg-head); font-size: 26px; color: var(--erg-gold); line-height: 1; min-width: 88px; }
.erg-rebate__txt b { display: block; font-weight: 600; font-size: 14px; }
.erg-rebate__txt span { font-size: 12px; color: #aab1bb; }
.erg-rebate__end { font-family: var(--erg-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--erg-red); text-transform: uppercase; text-align: right; white-space: nowrap; }
.erg-rebate__end.is-ok { color: #aab1bb; }

/* ---------- PDP ---------- */
.erg-fulfil { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -4px 0 14px; font-size: 13px; color: var(--erg-muted); }
.erg-buybar { display: none; }
.erg-shop-single div.product { position: relative; }
.erg-shop-single .erg-pdp-sale { position: absolute; top: 22px; left: 14px; z-index: 5; font-size: 10.5px; padding: 5px 10px; }

/* ---------- responsive (keep last) ---------- */
@media (max-width: 980px) {
  .woocommerce ul.products.erg-ulist, ul.products.erg-ulist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  html body.woocommerce-cart .cart_totals { position: static; }
}
@media (max-width: 860px) {
  html body .woocommerce div.product .woocommerce-product-gallery__image,
  html body.woocommerce div.product .woocommerce-product-gallery__image { padding: 0; }
  html body .woocommerce-product-gallery__image > a { padding: 14px; }
  .erg-buybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(12,16,21,.97); border-top: 1px solid rgba(200,168,75,.35);
    box-shadow: 0 -12px 30px rgba(0,0,0,.45);
    transform: translateY(110%); transition: transform .2s ease;
  }
  .erg-buybar[hidden] { display: none; }
  body.erg-buybar-on .erg-buybar { transform: none; }
  body.erg-buybar-on { padding-bottom: 72px; }
  .erg-buybar__txt { display: grid; min-width: 0; }
  .erg-buybar__name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .erg-buybar__price { font-family: var(--erg-head); font-size: 19px; color: var(--erg-bone); line-height: 1.1; }
  .erg-buybar__price del { color: #aab1bb; font-size: .65em; margin-right: 4px; }
  .erg-buybar__price ins { text-decoration: none; }
  .erg-buybar__price .woocommerce-price-suffix { display: none; }
  html body .erg-buybar__btn { flex: 0 0 auto; border-radius: 999px; padding: 12px 18px; }
  .erg-rebates__grid { grid-template-columns: minmax(0, 1fr); }
  .erg-sp-two { grid-template-columns: minmax(0, 1fr); }
  .erg-sechead { flex-direction: column; align-items: start; gap: 8px; }
}
@media (max-width: 768px) {
  /* Woo's small-screen cart turns each row into label/value pairs. Make each
     item a compact card: name as the heading, remove in the corner. */
  html body.woocommerce-cart table.shop_table_responsive.cart tr.cart_item { position: relative; display: block; border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; }
  html body.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td { border: 0; padding: 6px 16px; font-size: 13px; }
  html body.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td::before { font-family: var(--erg-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #aab1bb; font-weight: 400; }
  html body.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-remove { position: absolute; top: 12px; right: 4px; padding: 0 12px; border: 0; }
  html body.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name { text-align: left !important; padding-right: 52px; } /* woocommerce-smallscreen sets right with !important */
  html body.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name::before { display: none; }
  html body.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name a { font-size: 14.5px; }
  html body.woocommerce-cart table.shop_table_responsive.cart tr:nth-child(2n) td { background: transparent; }
}
@media (max-width: 560px) {
  html body .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
  html body .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
  html body .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first,
  html body .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
  html body .woocommerce-checkout .woocommerce-billing-fields { padding: 16px 14px 4px; }
  html body.woocommerce-cart table.cart td.actions .coupon { flex-wrap: wrap; }
  html body.woocommerce-cart table.cart td.actions .coupon input.input-text { width: 100%; }
  /* Two-up on phones: one card per screen made a 40-item category a 40-screen scroll. */
  .woocommerce ul.products:not(.erg-ulist),
  .woocommerce-page ul.products:not(.erg-ulist),
  .erg-plp-layout__main ul.products:not(.erg-ulist) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .woocommerce ul.products li.product.erg-plp-card, ul.products li.product.erg-plp-card { padding: 8px; }
  .erg-plp-card .erg-card__title { font-size: 13px; }
  .erg-plp-card .erg-card__priceval { font-size: 18px; }
  .erg-plp-card .erg-card__bottom { flex-direction: column; align-items: stretch; }
  html body .erg-plp-card .erg-card__actions .button,
  html body .erg-plp-card .erg-card__actions .erg-btn { width: 100%; }
  .erg-plp-card .erg-card__upc { display: none; }
  .erg-card__badges .erg-pill { font-size: 8.5px; padding: 3px 6px; }
  .erg-urow__link { grid-template-columns: 64px minmax(0, 1fr); }
  .erg-urow__img { width: 64px; height: 64px; }
  .erg-urow__price { grid-column: 2; text-align: left; font-size: 18px; }
  .erg-urow__price small { display: inline; margin-left: 8px; }
  .erg-rebate { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .erg-rebate__amt { min-width: 0; font-size: 22px; }
  .erg-rebate__end { text-align: left; white-space: normal; }
  html body .erg-pdp-rebates .erg-rebate-badge { grid-template-columns: auto minmax(0, 1fr); }
  html body .erg-pdp-rebates .erg-rebate-badge__link { grid-column: 2; }
}

/* /rebates/ (page-rebates.php): one list from running now to earlier. */
.erg-rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.erg-rb { background: var(--erg-panel-2); border: 1px solid var(--erg-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.erg-rb:target { border-color: var(--erg-gold); box-shadow: 0 0 0 3px rgba(200,168,75,.2); }
.erg-rb__img { aspect-ratio: 16 / 10; background: #0b0f14; }
.erg-rb__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.erg-rb__body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; align-content: start; }
.erg-rb__body p { margin: 0; }
.erg-rb__mfg { font-family: var(--erg-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #aab1bb; }
.erg-rb__amt { font-family: var(--erg-head); font-size: 24px; line-height: 1.1; color: var(--erg-bone); text-transform: uppercase; }
.erg-rb__desc { font-size: 13.5px; color: var(--erg-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.erg-rb__when { font-family: var(--erg-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--erg-teal-lt); margin-top: 6px !important; }
.erg-rb__when.is-urgent { color: #e8a56a; }
.erg-rb__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px !important; font-size: 13px; }
.erg-rb__links a { color: var(--erg-gold); text-decoration: none; }
.erg-rb__links a:hover { text-decoration: underline; }
.erg-rb--recent { opacity: .92; }
.erg-rb--recent .erg-rb__when { color: #e8a56a; }
.erg-rb-steps { list-style: none; counter-reset: rb; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.erg-rb-steps li { counter-increment: rb; background: var(--erg-panel); border: 1px solid var(--erg-border); border-radius: 12px; padding: 18px; display: grid; gap: 6px; }
.erg-rb-steps li::before { content: counter(rb, decimal-leading-zero); font-family: var(--erg-head); font-size: 28px; color: var(--erg-teal-lt); line-height: 1; }
.erg-rb-steps b { color: var(--erg-bone); font-family: var(--erg-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.erg-rb-steps span { font-size: 13.5px; color: var(--erg-muted); }
.erg-rb-month { font-family: var(--erg-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #aab1bb; margin: 22px 0 8px; font-weight: 500; }
/* Earlier rebates: compact rows, no images. */
.erg-rb-list { display: grid; gap: 8px; }
.erg-rb-list .erg-rb { flex-direction: row; }
.erg-rb-list .erg-rb__body { grid-template-columns: 140px 130px minmax(0, 1fr) 110px auto; align-items: center; gap: 14px; padding: 10px 16px; }
.erg-rb-list .erg-rb__amt { font-size: 17px; }
.erg-rb-list .erg-rb__desc { font-size: 13px; }
.erg-rb-list .erg-rb__when, .erg-rb-list .erg-rb__links { margin: 0 !important; color: #8d949e; }
@media (max-width: 900px) {
  .erg-rb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erg-rb-list .erg-rb__body { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .erg-rb-list .erg-rb__desc { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .erg-rb-steps { grid-template-columns: minmax(0, 1fr); } }

/* Blended photos (ergual_blend()). Banners: the photo fills the right side and
   fades into the dark background; on phones it fades down from the top.
   Blocks: a faint photo across the top of the card, fading into the panel. */
.erg-blend { position: relative; isolation: isolate; overflow: hidden; }
.erg-blend::before { content: ""; position: absolute; z-index: 0; pointer-events: none; background: var(--blend-img) center / cover no-repeat; }
.erg-blend > * { position: relative; z-index: 1; }
.erg-blend--hero::before { inset: 0 0 0 46%; opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%); mask-image: linear-gradient(90deg, transparent 0%, #000 50%); }
.erg-blend--hero :is(h1, h2, p) { text-shadow: 0 2px 18px rgba(11, 15, 20, .75); }
@media (min-width: 761px) { .erg-sp-hero.erg-blend--hero .erg-pagehead__lede { max-width: min(620px, 50%); } }
.erg-blend--block::before { inset: 0 0 auto 0; height: 62%; opacity: .26; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%); }
@media (max-width: 760px) {
  .erg-blend--hero::before { inset: 0; opacity: .32; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
}

/* Two-photo strip on guide pages (guide-page.php 'strip'). */
.erg-guide-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.erg-guide-strip figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: #0b0f14; }
.erg-guide-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.erg-guide-strip figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,20,0) 45%, rgba(11,15,20,.88) 100%); }
.erg-guide-strip figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; font-family: var(--erg-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--erg-bone); }
@media (max-width: 640px) { .erg-guide-strip { grid-template-columns: minmax(0, 1fr); } }
/* Homepage signup band: the form sits on the photo half, so the photo stays
   quieter here than in a page banner. */
.signup .box.erg-blend--hero::before { opacity: .38; }

/* Used department: the list signup as a full-width row in the grid/list (inc/shop.php). */
ul.products li.erg-used-capture { grid-column: 1 / -1; list-style: none; }
.erg-capture--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.erg-capture--row p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .erg-capture--row { grid-template-columns: 1fr; gap: 8px; } }
.erg-single__capture { margin-top: 40px; }

/* /in-store/: Ace VR and visit bands (page-in-store.php). */
.erg-ace__ctas { display: grid; gap: 10px; justify-items: start; }
.erg-ace__ctas small { margin-top: 2px; }

/* Category hubs (template-parts/category-hub.php). */
.erg-hub__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.erg-hub__tiles a { display: grid; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--erg-border); border-radius: 12px; background: var(--erg-panel-2); color: var(--erg-text); text-decoration: none; }
.erg-hub__tiles a:hover { border-color: rgba(200, 168, 75, .5); }
.erg-hub__tiles b { font-family: var(--erg-head); font-size: 20px; font-weight: 500; text-transform: uppercase; color: var(--erg-bone); line-height: 1.1; }
.erg-hub__desc { font-size: 13px; color: var(--erg-muted); }
.erg-hub__n { margin-top: auto; font-family: var(--erg-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--erg-gold); }
