/* =========================================================
   PSF CUSTOM STYLES (Consolidated + De-duped)
   ========================================================= */

/* =========================================================
   10 - AGE GATE / COOKIE BAR
   ========================================================= */
html.psf-age-gate--locked .flatsome-cookies { display: none !important; }
#psf-age-gate { z-index: 2147483647 !important; }

/* =========================================================
   20 - WOOCOMMERCE GLOBAL
   ========================================================= */

/* Hide breadcrumbs on WooCommerce pages */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .breadcrumbs,
nav.woocommerce-breadcrumb,
nav.breadcrumbs {
  display: none !important;
}

/* UPC meta */
.product_meta .upc_wrapper { display:block; margin-top:6px; }
.product_meta .upc { font-weight:600; }
/* Woo My Account: remove <mark> highlight, keep as bold text */
.woocommerce-MyAccount-content mark.order-status,
.woocommerce-MyAccount-content mark.order-date,
.woocommerce-MyAccount-content mark.order-number {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  font-weight: 700; /* bold */
}


/* =========================================================
   30 - MX MERCHANT (Checkout UI)
   ========================================================= */

/* Hide MX Merchant icon (covers both old & new selectors) */
li.wc_payment_method.payment_method_mxmerchant_gateway
label[for="payment_method_mxmerchant_gateway"] > img,
img[src*="woocommerce-gateway-mxmerchant/assets/images/icon-new.png"]{
  display: none !important;
}

/* =========================================================
   40 - SHOP / ARCHIVE "GA-Guns style" cards
   ========================================================= */

/* Dark page background like the example */
.archive.woocommerce,
.tax-product_cat,
.search-results.woocommerce {
  background: #0b0b0c;
}

/* Make each product tile a white card */
.woocommerce ul.products li.product .product-small.box {
  position: relative; /* needed for badge positioning */
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* Typography */
.product-small .name.product-title a {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.15;
  color: #111;
}

/* Price */
.product-small .price {
  font-weight: 800;
  font-size: 16px;
}

/* Full-width add to cart button */
.product-small .add-to-cart-button .button {
  width: 100%;
  border-radius: 10px;
  font-weight: 800;
  padding: 12px 14px;
}

/* =========================================================
   50 - PRODUCT IMAGE FRAMING (contain, no crop)
   ========================================================= */

.woocommerce ul.products li.product .box-image,
.product-small .box-image{
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 18px;
  box-sizing: border-box;
  overflow: hidden;
}

.woocommerce ul.products li.product .box-image img,
.product-small .box-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* =========================================================
   60 - SHOP LOOP BADGES (Online Only / Free Shipping pills)
   ========================================================= */

/* Badge stack (anchored to the product card) */
.woocommerce ul.products li.product .psf-loop-badges,
.product-small.box .psf-loop-badges{
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

/* Pill badge */
.woocommerce ul.products li.product .psf-loop-badge,
.product-small.box .psf-loop-badge{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #31651f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}

/* Variant */
.psf-loop-badge--free-shipping{ background: #0f172a; }

/* Legacy support (if anything still uses .psf-badge markup) */
.psf-badge.psf-badge--online-only{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #31651f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  pointer-events: none;
}

/* =========================================================
   70 - MY ACCOUNT DASHBOARD COMPONENTS
   ========================================================= */

.psf-table-wrap { overflow-x: auto; }

.psf-card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  justify-content: start;
  align-content: start;
}

.psf-card{
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}

.psf-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px 10px;
  border-bottom: 4px solid var(--primary-color, #f05a28);
}

.psf-card-title{
  font-weight: 800;
  text-transform: capitalize;
  margin: 0;
}

.psf-card-link{
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .05em;
}

.psf-card-body{
  padding: 14px 16px 18px;
  line-height: 1.7;
}

/* =========================================================
   80 - PREFERRED FFL CARD (if used on selection page)
   ========================================================= */

.psf-ffl-card-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.psf-ffl-card {
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.03);
}

.psf-ffl-card--set {
  border-color: #222;
  background: #101010;
  color: #f5f5f5;
}

.psf-ffl-card--set .psf-ffl-card__title,
.psf-ffl-card--set .psf-ffl-card__edit,
.psf-ffl-card--set .psf-ffl-card__ffl-num {
  color: #fff;
}

.psf-ffl-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ff5c1a;
  padding-bottom: 0.5rem;
}

.psf-ffl-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.psf-ffl-card__address div {
  line-height: 1.4;
  font-size: 0.95rem;
}

.psf-ffl-card__ffl-num {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.psf-ffl-card__footer {
  margin-top: 1rem;
  text-align: right;
}

.psf-ffl-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 0;
  border: 2px solid #ff5c1a;
  background: #ff5c1a;
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.psf-ffl-card__button:hover {
  background: transparent;
  color: #ff5c1a;
}

/* =========================================================
   90 - RESPONSIVE
   ========================================================= */
@media (max-width: 849px){
  .psf-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .psf-ffl-card { padding: 1rem; }
}
