/*
Theme Name: Bomber Patches – Strike Eagle
Theme URI: https://bomberpatches.com
Author: Nick Tarver
Description: Mobile-first, Air-Force inspired WooCommerce theme for Bomber Patches.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bomber
Tags: e-commerce, custom-logo, responsive-layout
*/

/* =====================================================
   1) DESIGN TOKENS (Air Force)
   ===================================================== */
:root{
  --bg:#040a16;
  --panel:#0b162c;
  --panel2:#081226;
  --text:#e7edf8;
  --muted:#b6c2d9;
  --line:rgba(231,237,248,.14);

  --blue:#1e73be;
  --blue2:#0033a0;
  --gold:#f5b700;

  --radius:16px;
  --radius-sm:12px;

  --shadow:0 18px 50px rgba(0,0,0,.55);
  --shadow2:0 10px 28px rgba(0,0,0,.35);

  --container:1180px;
  --pad:clamp(14px, 3.6vw, 22px);
}

/* =====================================================
   2) BASE / RESET
   ===================================================== */
*,
*::before,
*::after{ box-sizing:border-box; }

html,body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.no-scroll{ overflow:hidden; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(30,115,190,.18), transparent 55%),
    radial-gradient(900px 450px at 85% 15%, rgba(245,183,0,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--gold); }

img{ max-width:100%; height:auto; display:block; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--pad);
}

/* Hide “Private:” prefix on titles (if client accidentally uses Private) */
.entry-title .private,
.entry-title .protected{ display:none; }
.private .entry-title::before,
.protected .entry-title::before{ display:none; }

/* =====================================================
   3) LAYOUT HELPERS
   ===================================================== */
.site-shell{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-body{ flex: 1 0 auto; }

/* keep footer pushed down */
.site-footer{ margin-top: auto; }

/* =====================================================
   4) HEADER / NAV
   ===================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:999;
  background: rgba(4,10,22,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px var(--pad);
  max-width:var(--container);
  margin:0 auto;
}

.brand-markup{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.custom-logo{ max-height:40px; width:auto; }

.logo-fallback{
  width:40px; height:40px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(30,115,190,.20), rgba(0,51,160,.10));
  border:1px solid rgba(30,115,190,.45);
  font-weight:900;
  letter-spacing:.04em;
}

.brand-text{ min-width:0; }

.site-title a{
  display:block;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:14px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-tagline{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Desktop search (big pill) */
.header-search-pop{
  flex: 0 0 auto;
  width: min(420px, 92vw);
}
.header-search-pop form{ width:100%; }
.header-search-pop input[type="search"]{
  width:100%;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#ffffff;
  color:#000;
  font-size:16px;
}
.header-search-pop input::placeholder{ color:#6b7280; }

/* Nav shell */
.nav-shell{
  display:flex;
  align-items:center;
  gap:12px;
}

.mobile-menu-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(231,237,248,.06);
  color:var(--text);
  cursor:pointer;
}

.primary-nav{ display:none; }

/* Desktop nav */
@media (min-width: 900px){
  .mobile-menu-toggle{ display:none; }

  .primary-nav{ display:block; flex: 1 1 auto; min-width: 0; }

  .primary-nav ul{
    display:flex;
    flex-wrap: nowrap;
    gap:16px;
    align-items:center;
    list-style:none;
    margin:0;
    padding:0;
  }

  .primary-nav a{
    display:inline-block;
    padding:10px 2px;
    font-weight:800;
    font-size:12px;
    letter-spacing: 0.04em; /* (kept from your later “tighten text” rule) */
    text-transform:uppercase;
    color:rgba(231,237,248,.92);
    position:relative;
    white-space: nowrap; /* keep ALL menu link text on one line */
  }

  .primary-nav a::after{
    content:"";
    position:absolute;
    left:0; bottom:6px;
    width:0; height:2px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    transition: width .18s ease;
  }

  .primary-nav a:hover::after,
  .primary-nav .current-menu-item > a::after,
  .primary-nav .current_page_item > a::after{
    width:100%;
  }

  /* Mini search to the right of links */
  .header-mini-search{
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    height: 30px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(0,0,0,.25);
  }

  .header-mini-search__input{
    width: 140px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
  }

  .header-mini-search__btn{
    width: 34px;
    height: 30px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #fff;
  }
}

/* Mobile drawer */
.mobile-drawer{
  display:block;
  position:fixed;
  inset:0;
  z-index:1000;
  pointer-events:none;
  opacity:0;
  transition: opacity .2s ease;
}
.mobile-drawer.is-open{
  pointer-events:auto;
  opacity:1;
}
.mobile-drawer__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.mobile-drawer__panel{
  position:absolute;
  left:0; right:0; top:0;
  background: #060d1c;
  border-bottom:1px solid var(--line);
  padding:18px var(--pad) 22px;
  transform: translateY(-12px);
  transition: transform .2s ease;
}
.mobile-drawer.is-open .mobile-drawer__panel{ transform: translateY(0); }
.mobile-drawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.mobile-close{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(231,237,248,.06);
  color:var(--text);
  cursor:pointer;
}
.mobile-search{ margin-top:14px; }
.mobile-search input[type="search"]{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#ffffff;
  color:#000;
  font-size:16px;
}
.mobile-links{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mobile-links a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(231,237,248,.04);
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
}
.mobile-links a:hover{ border-color: rgba(30,115,190,.55); }

/* =====================================================
   5) BUTTONS / CHIPS
   ===================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  cursor:pointer;
  transition: transform .15s ease, filter .2s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  color:#fff;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
}
.btn-primary:hover{ filter:brightness(1.08); transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  border-color: rgba(30,115,190,.55);
  color: rgba(231,237,248,.95);
}
.btn-ghost:hover{ background: rgba(30,115,190,.10); transform: translateY(-1px); }

/* Category button row */
.bp-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.bp-chip-row .btn{
  border-radius:12px;
  padding:10px 12px;
  font-size:11px;
  letter-spacing:.10em;
}
@media (max-width: 480px){
  .bp-chip-row .btn{
    width:100%;
    justify-content:space-between;
  }
}

/* =====================================================
   6) HERO / SECTIONS / CARDS
   ===================================================== */
.hero{ padding: 22px 0 10px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items:center;
}
@media (min-width: 900px){
  .hero-grid{
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    padding-top: 18px;
  }
}

.hero-kicker{
  color: var(--gold);
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.hero-title{
  font-size: clamp(2rem, 6.2vw, 3.25rem);
  line-height:1.05;
  margin:10px 0 10px;
  font-weight:950;
  letter-spacing:-.02em;
}
.hero-subtitle{
  margin:0;
  color: rgba(231,237,248,.84);
  line-height:1.7;
  font-size:16px;
  max-width: 62ch;
}

.hero-media-card{
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top, rgba(30,115,190,.20), rgba(4,10,22,.96) 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 16px;
}
.hero-media-frame{
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(231,237,248,.18);
  background: rgba(231,237,248,.03);
  padding: 10px;
  display:grid;
  place-items:center;
}
.hero-media-img{
  width:100%;
  height:auto;
  border-radius: 12px;
  object-fit: contain;
}

.section{ padding: 12px 0 34px; }
.section-title{
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(231,237,248,.92);
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at top, rgba(30,115,190,.12), rgba(4,10,22,.96) 60%);
  box-shadow: var(--shadow2);
}

/* =====================================================
   7) GUTENBERG CONTENT DEFAULTS
   ===================================================== */
.site-main{ padding: 18px 0 34px; }
.entry-content{
  color: rgba(231,237,248,.84);
  line-height:1.75;
}
.entry-content h2,
.entry-content h3{ color: rgba(231,237,248,.95); }
.entry-content a{ color: #7fb5ff; }
.entry-content a:hover{ color: var(--gold); }

/* =====================================================
   8) WOOCOMMERCE (CATALOG + PRODUCT)
   ===================================================== */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{
  color: rgba(231,237,248,.78);
}

/* Product grid + card (final, de-duped) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Card styling */
.woocommerce ul.products li.product{
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  background: rgba(8, 14, 26, 0.75) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-align: left;
}
.woocommerce ul.products li.product:hover{
  transform: translateY(-3px);
  border-color: rgba(79, 142, 219, 0.45) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

/* Make the whole product area feel consistent */
.woocommerce ul.products li.product a{ text-decoration: none !important; }

/* Product image: consistent height, centered */
.woocommerce ul.products li.product a img{
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px;
  margin: 0 0 12px !important;
}
@media (max-width: 640px){
  .woocommerce ul.products li.product a img{ height: 240px !important; }
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size: 1.02rem !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  margin: 4px 0 10px !important;
  color: #e9eef8 !important;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* Price */
.woocommerce ul.products li.product .price{
  color: rgba(233, 238, 248, 0.85) !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  font-size: 0.98rem !important;
}

/* Buttons */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  border: 1px solid rgba(79,142,219,0.45) !important;
  background: linear-gradient(135deg, #4f8edb, #0033a0) !important;
  color: #fff !important;
}
.woocommerce ul.products li.product .button:hover{ filter: brightness(1.08); }

/* On dark theme sites: ensure text stays bright */
.woocommerce ul.products li.product *{ text-shadow: none !important; }

/* Single product (base + layout) */
.woocommerce div.product .product_title{ color: var(--text); }
.woocommerce div.product form.cart .button{ border-radius: 12px; }

/* Fix footer jumping into WooCommerce single product layout */
.single-product div.product::after{
  content: "";
  display: block;
  clear: both;
}
.single-product footer,
.single-product .site-footer{ clear: both; }

/* Single product layout balance */
.single-product div.product{
  display: flex;
  gap: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Image column */
.single-product div.product div.images{
  width: 40% !important;
  max-width: 40%;
}

/* Summary column */
.single-product div.product div.summary{
  width: 60% !important;
  max-width: 60%;
}

/* Add to Cart button sizing */
.single-product .single_add_to_cart_button{
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  width: auto;
  max-width: 320px;
}

/* Center vertically with qty */
.single-product form.cart{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Keep image at its natural size (no scaling) */
body.single-product .woocommerce-product-gallery img{ max-width: none; }

/* Ensure Woo columns stay aligned */
body.single-product .woocommerce-product-gallery,
body.single-product .summary{
  margin-left: 0;
  margin-right: 0;
}

/* Center breadcrumb row */
body.single-product .woocommerce-breadcrumb,
body.single-product nav.woocommerce-breadcrumb,
body.single-product .breadcrumb{
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Single product responsive */
@media (max-width: 768px){
  .single-product div.product{ flex-direction: column; }
  .single-product div.product div.images,
  .single-product div.product div.summary{
    width: 100% !important;
    max-width: 100%;
  }
  .single-product .single_add_to_cart_button{
    width: 100%;
    max-width: none;
  }
}

/* Notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error{ border-radius: 12px; }

/* Single product page: hide express checkout blocks */
.single-product .wcpay-payment-request-wrapper,
.single-product .wcpay-express-checkout-wrapper,
.single-product .woocommerce-paypal-payments__buttons,
.single-product .ppc-button-wrapper,
.single-product .paypal-buttons,
.single-product .wc-ppcp-product-payments-buttons,
.single-product .wc-ppcp-product-buttons {
  display: none !important;
}


/* =====================================================
   9) CUSTOM ORDERS (Jetpack CRM)
   ===================================================== */
.custom-hero{ padding: 18px 0 6px; }

.custom-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 14px 0 34px;
}
@media (min-width: 980px){
  .custom-grid{
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
  }
}

.custom-form-card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent),
    radial-gradient(circle at top, rgba(30,115,190,.10), rgba(4,10,22,.96) 60%);
  box-shadow: var(--shadow);
  padding: 18px;
}
.custom-form-card h2{ margin: 0 0 8px; }
.custom-form-intro{
  margin: 0 0 14px;
  color: rgba(231,237,248,.84);
  line-height:1.6;
}

.custom-side-card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: radial-gradient(circle at top, rgba(245,183,0,.10), rgba(4,10,22,.96) 62%);
  box-shadow: var(--shadow2);
  padding: 18px;
}
.custom-card-title{
  margin: 0 0 10px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size: 13px;
}
.custom-card-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(231,237,248,.82);
  line-height: 1.7;
}
.custom-card-note{ color: rgba(231,237,248,.74); line-height:1.7; }

/* Jetpack CRM form fields: black text on white */
.custom-form-card form input,
.custom-form-card form textarea,
.custom-form-card form select{
  width:100% !important;
  background:#ffffff !important;
  color:#000000 !important;
  border:1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 16px !important; /* prevent iOS zoom */
}
.custom-form-card form textarea{ min-height: 150px !important; }
.custom-form-card form input::placeholder,
.custom-form-card form textarea::placeholder{ color:#6b7280 !important; opacity:1; }

.custom-form-card form input[type="submit"],
.custom-form-card form button[type="submit"]{
  width:100% !important;
  border:none !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  background: linear-gradient(135deg, var(--blue), var(--blue2)) !important;
  color:#fff !important;
  font-weight:950 !important;
  letter-spacing:.10em !important;
  text-transform:uppercase !important;
}

/* Jetpack CRM success message text to black */
.custom-form-card .zbs-form-success,
.custom-form-card .zbs-success,
.custom-form-card .zbs-alert-success,
.custom-form-card .jetpackcrm-form-success,
.custom-form-card .jpcrm-form-success{
  background:#fff !important;
  color:#000 !important;
  border:1px solid #d1d5db !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}
.custom-form-card .zbs-form-success *,
.custom-form-card .zbs-success *,
.custom-form-card .zbs-alert-success *,
.custom-form-card .jetpackcrm-form-success *,
.custom-form-card .jpcrm-form-success *{
  color:#000 !important;
}

/* =====================================================
   10) FOOTER
   ===================================================== */
.site-footer{
  border-top:1px solid var(--line);
  background: rgba(4,10,22,.9);
}
.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  padding: 22px var(--pad);
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
  align-items:flex-start;
  justify-content:space-between;
  color: rgba(231,237,248,.74);
  font-size: 14px;
}
.footer-meta{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: rgba(231,237,248,.55);
}

/* =====================================================
   11) SHOP / SEARCH (MOBILE UI)
   ===================================================== */

/* Shop All bar + search pill */
@media (max-width: 767px){

  .shopall-bar{
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px !important;
    padding-bottom: 4px;
    position: relative;
    z-index: 2;
  }

  .shopall-bar .section-title{
    margin: 0 !important;
    white-space: nowrap;
  }

  .shopall-search{
    flex: 0 0 50%;
    max-width: 50%;
  }

  .shopall-bar + .woocommerce,
  .shopall-bar + .products,
  .shopall-bar + ul.products{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Hide the default Woo submit button (blue "Search") */
  .shopall-search button[type="submit"],
  .shopall-search input[type="submit"]{
    display: none !important;
  }

  .shopall-search form{
    position: relative;
    width: 100%;
    margin: 0;
  }

  .shopall-search input[type="search"]{
    width: 100%;
    height: 36px;
    padding: 0 44px 0 14px;
    border-radius: 999px;

    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);

    color: rgba(255,255,255,0.85);
    outline: none;
  }

  .shopall-search input[type="search"]::placeholder{ color: rgba(255,255,255,0.45); }

  .shopall-search form::before{
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
    pointer-events: none;
  }

  .shopall-search form::after{
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    pointer-events: none;
    background: no-repeat center/12px 12px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='0.85' d='M10 2a8 8 0 105.293 14.293l4.707 4.707l1.414-1.414l-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12a6 6 0 010-12z'/%3E%3C/svg%3E");
  }
}

/* Shop page: Title + Search Row (MOBILE) */
@media (max-width: 767px){

  .shop-header-row{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-width: 0;
  }

  .shop-header-row .section-title{
    margin: 0 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .shop-header-row .woocommerce-product-search{
    flex: 0 0 auto !important;
    width: 280px !important;
    max-width: 62vw !important;

    display: flex !important;
    align-items: center !important;

    height: 52px !important;
    padding: 6px 8px 6px 14px !important;
    border-radius: 999px !important;

    border: 1px solid rgba(255,255,255,.18) !important;
    background: rgba(255,255,255,.06) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 10px 25px rgba(0,0,0,.35) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    overflow: hidden !important;
  }

  .shop-header-row .woocommerce-product-search input[type="search"]{
    flex: 1 1 auto !important;
    min-width: 0 !important;

    height: 40px !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;

    padding: 0 12px 0 2px !important;
    margin: 0 !important;

    color: rgba(255,255,255,.85) !important;
    font-size: 16px !important;
    line-height: 40px !important;
  }

  .shop-header-row .woocommerce-product-search input[type="search"]::placeholder{
    color: rgba(255,255,255,.45) !important;
  }

  .shop-header-row .woocommerce-product-search button,
  .shop-header-row .woocommerce-product-search .search-submit{
    flex: 0 0 auto !important;

    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;

    border: 1px solid rgba(255,255,255,.35) !important;
    background: rgba(0,0,0,.35) !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 6px 14px rgba(0,0,0,.35) !important;

    line-height: 1 !important;
  }

  .shop-header-row .woocommerce-product-search button svg,
  .shop-header-row .woocommerce-product-search .search-submit svg{
    width: 18px !important;
    height: 18px !important;
    display: block !important;
  }

  .shop-header-row .woocommerce-product-search button{ font-size: 0 !important; }

  /* Hide header search variants on mobile (keep your Shop pill only) */
  .header-search-pop,
  .header-mini-search{
    display: none !important;
  }

  /* Hide header search variants (explicit selectors) */
  .site-header .search-form,
  .site-header .woocommerce-product-search,
  .site-header .wp-block-search,
  .site-header form[role="search"]{
    display: none !important;
  }
}

/* Search results page: pill under title (MOBILE) */
@media (max-width: 767px){

  body.search.search-results.woocommerce .shop-header-row{
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  body.search.search-results.woocommerce .shop-header-row .section-title{
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search{
    width: 100% !important;
    max-width: none !important;
    height: 52px !important;
  }

  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search button,
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search .search-submit{
    position: relative !important;
    font-size: 0 !important;
    color: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search button::before,
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search .search-submit::before{
    content: "" !important;
    width: 18px;
    height: 18px;
    display: block;
    background: no-repeat center / 18px 18px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='0.92' d='M10 2a8 8 0 105.293 14.293l4.707 4.707l1.414-1.414l-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12a6 6 0 010-12z'/%3E%3C/svg%3E") !important;
  }
}

/* Hide the Shop All search on desktop */
@media (min-width: 768px){
  .shopall-search{ display: none !important; }

  /* Hide default Woo search on DESKTOP only */
  body.woocommerce form.woocommerce-product-search,
  body.woocommerce .widget_product_search,
  body.woocommerce .woocommerce.widget_product_search{
    display: none !important;
  }
}

/* =========================================================
   FIX: Search results mobile icon (handles input submit too)
   ========================================================= */
@media (max-width: 767px){

  /* Make sure the submit control always exists & has size */
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search button[type="submit"],
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search input[type="submit"],
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search .search-submit{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    background: rgba(0,0,0,.35) !important;
    margin: 0 !important;
    cursor: pointer !important;
  }

  /* If the theme uses <input type="submit"> (no ::before support),
     we paint the icon as a background image instead */
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search input[type="submit"]{
    font-size: 0 !important;
    color: transparent !important;
    background:
      rgba(0,0,0,.35)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='0.92' d='M10 2a8 8 0 105.293 14.293l4.707 4.707l1.414-1.414l-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12a6 6 0 010-12z'/%3E%3C/svg%3E")
      no-repeat center / 18px 18px !important;
  }

  /* Keep your ::before icon for button submits */
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search button[type="submit"]{
    font-size: 0 !important;
    color: transparent !important;
  }

  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search button[type="submit"]::before,
  body.search.search-results.woocommerce .shop-header-row .woocommerce-product-search .search-submit::before{
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    background: no-repeat center / 18px 18px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='0.92' d='M10 2a8 8 0 105.293 14.293l4.707 4.707l1.414-1.414l-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12a6 6 0 010-12z'/%3E%3C/svg%3E") !important;
  }
}


/* =====================================================
   12) MOBILE CATALOG GRID (2–3 per row)
   ===================================================== */
@media (max-width: 767px){

  .woocommerce .products,
  .woocommerce-page .products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .wc-block-grid__products{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start;
    margin: 0 !important;
    padding: 0 !important;
  }

  .woocommerce .products .product,
  .woocommerce-page .products .product,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .wc-block-grid__products .wc-block-grid__product,
  .wc-block-grid__product{
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
  }

  .woocommerce .products .product img,
  .woocommerce ul.products li.product img,
  .wc-block-grid__products .wc-block-grid__product img,
  .wc-block-grid__product img{
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}

/* Wider phones: 3 columns */
@media (min-width: 520px) and (max-width: 767px){
  .woocommerce .products,
  .woocommerce-page .products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .wc-block-grid__products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* =====================================================
   13) MOBILE HEADER TWEAKS (cart link)
   ===================================================== */
@media (max-width: 767px){

  /* Hide header mini search on mobile */
  .header-mini-search{ display: none !important; }

  /* Show cart link on mobile only */
  .header-cart-link--mobile{
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    text-decoration: none;
  }

  .header-cart-count{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
  }
}

/* Hide the mobile cart link on desktop/tablet */
@media (min-width: 768px){
  .header-cart-link--mobile{ display: none !important; }
}

@media (max-width: 767px) {
  header .mobile-menu-toggle { order: 2 !important; }
  header .cart,
  header .header-cart,
  header .woocommerce-cart-link { order: 1 !important; }
}

/* =====================================================
   14) CHECKOUT (Classic -> Blocks-style layout)
   ===================================================== */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* 2-column grid */
@media (min-width: 901px){
  body.woocommerce-checkout:not(.woocommerce-order-received) form.woocommerce-checkout{
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 28px;
    align-items: start;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{
    position: sticky;
    top: 18px;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details{ grid-column: 1; }
  body.woocommerce-checkout:not(.woocommerce-order-received) #payment{ grid-column: 1; }
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{ width: 100%; }

/* Cards */
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Stack Billing + Additional */
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col2-set,
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-1,
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-2{
  float: none;
  width: 100%;
}

/* Replace default heading with "Order summary" */
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading{ display: none !important; }
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review::before{
  content: "Order summary";
  display: block;
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

/* Headings */
body.woocommerce-checkout:not(.woocommerce-order-received) h3{
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: rgba(255,255,255,.92);
}

/* Inputs */
body.woocommerce-checkout:not(.woocommerce-order-received) input.input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) textarea,
body.woocommerce-checkout:not(.woocommerce-order-received) select{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
body.woocommerce-checkout:not(.woocommerce-order-received) input::placeholder,
body.woocommerce-checkout:not(.woocommerce-order-received) textarea::placeholder{
  color: rgba(255,255,255,0.55);
}

/* Force order notes textarea */
body.woocommerce-checkout:not(.woocommerce-order-received) textarea#order_comments{
  background: rgba(0,0,0,0.22) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 12px !important;
}

/* Select2 */
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--default .select2-selection--single{
  min-height: 44px !important;
  background: rgba(0,0,0,0.28) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 12px !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--default .select2-selection--single .select2-selection__rendered{
  color: #fff !important;
  line-height: 44px !important;
  padding-left: 12px !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--open .select2-dropdown{
  background: #0b1220 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--default .select2-results__option{ color: #fff !important; }
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--default .select2-results__option--highlighted{
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
}

/* Order review table clean */
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table{
  margin: 0;
  border: 0;
  background: transparent;
}
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table thead{ display: none; }
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table th,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table td{
  border: 0;
  padding: 10px 0;
}
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .product-total,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .cart-subtotal td,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .order-total td{
  text-align: right;
}
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .order-total th,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .order-total td{
  font-size: 18px;
  font-weight: 700;
  padding-top: 14px;
}

/* Remove theme’s extra thumbnail inside product-name (keep only ours) */
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .product-name img:not(.checkout-thumb){
  display: none !important;
}

/* Thumbnail + qty badge (your injected one) */
.checkout-thumb-wrap{
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 10px;
}
.checkout-thumb{
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.checkout-qty-badge{
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.95);
  color: rgba(0,0,0,.9);
  border: 2px solid rgba(0,0,0,.25);
}

/* Payment box */
body.woocommerce-checkout:not(.woocommerce-order-received) #payment{
  margin-top: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}
body.woocommerce-checkout:not(.woocommerce-order-received) #payment .woocommerce-notice,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment .woocommerce-error,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment .woocommerce-info{
  background: rgba(0,0,0,0.22) !important;
  color: rgba(255,255,255,0.90) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 12px !important;
}

/* Place order */
body.woocommerce-checkout:not(.woocommerce-order-received) #place_order{
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Coupon: hide notice + final stable row (survives AJAX refresh) */
body.woocommerce-checkout .woocommerce-form-coupon-toggle{ display: none !important; }

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .product-quantity{ display: none !important; }

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row td{ padding: 14px 0 18px !important; }

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row form.checkout_coupon{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;

  display: grid !important;
  grid-template-columns: 1fr 120px !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row form.checkout_coupon p{ margin: 0 !important; }

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row form.checkout_coupon .form-row{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row form.checkout_coupon input[type="text"]{
  background: rgba(0,0,0,0.32) !important;
  color: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  height: 36px !important;
  font-size: 14px !important;
  min-width: 0 !important;
  width: 100% !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row form.checkout_coupon input::placeholder{
  color: rgba(255,255,255,0.55) !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row form.checkout_coupon button{
  width: 120px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 999px !important;

  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;

  background: rgba(255,255,255,0.16) !important;
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.order-summary-coupon-row form.checkout_coupon button:hover{
  background: rgba(255,255,255,0.26) !important;
}

/* =====================================================
   WC BLOCK CHECKOUT — DARKEN INHERITED LABEL COLOR
   ===================================================== */

/* Base label color (idle state) */
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-text-input,
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-text-input.has-error{
  color: #2b2b2b !important; /* dark gray for labels */
}

/* Focused / active field label */
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-text-input:focus-within{
  color: #111111 !important; /* near-black on focus */
}

/* Error state label (still readable) */
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-text-input.has-error{
  color: #b91c1c !important; /* red but readable */
}

/* Country/Region (and other selects) wrapper text color */
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-select,
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-combobox{
  color: #2b2b2b !important; /* match your darker inherited label color */
  opacity: 1 !important;
}

/* Focus state */
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-select:focus-within,
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-combobox:focus-within{
  color: #111111 !important;
}

/* Just in case the label itself needs forcing */
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-select label,
body.woocommerce-checkout .wc-block-checkout
.wc-block-components-combobox label{
  color: inherit !important;
  opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-checkout select,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-combobox-control input{
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

body.woocommerce-checkout .wc-block-checkout select option{
  color: #111111 !important;
  background: #ffffff !important;
}


/* =====================================================
   15) CART / MISC
   ===================================================== */
.woocommerce-cart tr.woocommerce-shipping-totals{ display: none !important; }
.cart-badge:empty{ display:none !important; }

/* =====================================================
   16) RESPONSIVE OVERRIDES (GRID BREAKPOINTS)
   ===================================================== */
@media (min-width: 1100px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 720px) and (max-width: 1099px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.shopall-cta{
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* =====================================================
   MOBILE: Force search icon ONLY on Shop (NOT results)
   ===================================================== */
@media (max-width: 767px){

  /* Exclude search results page */
  body.woocommerce:not(.search) .woocommerce-product-search input[type="submit"],
  body.woocommerce:not(.search) .woocommerce-product-search button[type="submit"],
  body.woocommerce:not(.search) .bp-mobile-search-once input[type="submit"],
  body.woocommerce:not(.search) .bp-mobile-search-once button[type="submit"]{

    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    background-color: transparent !important;
    font-size: 0 !important;
    position: relative !important;
  }

  /* Icon injection (Shop page only) */
  body.woocommerce:not(.search) .woocommerce-product-search input[type="submit"],
  body.woocommerce:not(.search) .bp-mobile-search-once input[type="submit"]{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b6c2d9' d='M10 4a6 6 0 1 1 0 12A6 6 0 0 1 10 4m0-2a8 8 0 1 0 4.9 14.3l4.4 4.4 1.4-1.4-4.4-4.4A8 8 0 0 0 10 2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    text-indent: -9999px !important;
  }

  body.woocommerce:not(.search) .woocommerce-product-search button[type="submit"]::before,
  body.woocommerce:not(.search) .bp-mobile-search-once button[type="submit"]::before{
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b6c2d9' d='M10 4a6 6 0 1 1 0 12A6 6 0 0 1 10 4m0-2a8 8 0 1 0 4.9 14.3l4.4 4.4 1.4-1.4-4.4-4.4A8 8 0 0 0 10 2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    opacity: 1 !important;
  }
}

/* =====================================================
   FAQ PAGE — Better Hierarchy (Template: FAQ Page)
   ===================================================== */

/* Overall section spacing */
.section {
  padding: clamp(28px, 4vw, 56px) 0;
}

/* Header hierarchy */
.section-header {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: left;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
}

/* Layout for groups */
.faq-groups {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

/* Each FAQ group card */
.product-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 18px;
  background: rgba(255,255,255,0.03);
}

/* Group heading */
.product-card-title {
  font-size: 1.2rem;
  font-weight: 750;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}

/* Each FAQ item */
.faq-item {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

/* Question styling */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  font-size: 1.02rem;
  font-weight: 650;
  cursor: pointer;

  list-style: none; /* hides default marker in some browsers */
  padding: 8px 0;
}

/* Hide default marker (Chrome/Safari) */
.faq-question::-webkit-details-marker {
  display: none;
}

/* Custom chevron */
.faq-question::after {
  content: "▾";
  opacity: 0.75;
  transform: rotate(-90deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

/* Open state */
.faq-item[open] .faq-question::after {
  transform: rotate(0deg);
  opacity: 1;
}

.faq-item[open] {
  background: rgba(255,255,255,0.035);
  border-radius: 12px;
  padding: 12px 12px;
  margin: 8px -12px;
}

/* Answer styling */
.faq-answer {
  padding: 2px 0 8px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.88;
  max-width: 72ch;
}

/* Keyboard focus */
.faq-question:focus {
  outline: 2px solid rgba(255,255,255,0.22);
  outline-offset: 6px;
  border-radius: 10px;
}

/* Optional: 2-column cards on desktop */
@media (min-width: 900px) {
  .faq-groups {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Accessibility + older-gen readability upgrades */
.section-title{
  letter-spacing: .18em; /* slightly less spaced */
}

.section-subtitle{
  font-size: 1.05rem;
  opacity: .9;
}

/* Bigger clickable rows */
.faq-item{
  padding: 14px 0;
}

.faq-question{
  font-size: 1.05rem;
  line-height: 1.35;
}

/* Make the chevron clearer and bigger */
.faq-question::after{
  font-size: 1.15rem;
  opacity: .9;
}

/* Give answers more breathing room */
.faq-answer{
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 6px;
}

/* Stronger focus ring for keyboard users */
.faq-question:focus{
  outline: 3px solid rgba(255,255,255,.28);
  outline-offset: 8px;
}

/* Make CTA look like a callout, not another FAQ line */
.faq-cta{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.faq-cta-text{
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Route widget text is inheriting a near-invisible .entry-content color */
body.woocommerce-checkout .entry-content .pw-route-protection,
body.woocommerce-checkout .entry-content .pw-route-protection *,
body.woocommerce-checkout #route-widget,
body.woocommerce-checkout #route-widget *{
  color: var(--text, #e7edf8) !important;
  opacity: 1 !important;
}

/* If your theme dims all text inside entry-content, force Route to full strength */
body.woocommerce-checkout .entry-content .pw-route-protection{
  text-shadow: none !important;
}

/* Make links readable too */
body.woocommerce-checkout .entry-content .pw-route-protection a{
  color: var(--text, #e7edf8) !important;
  text-decoration: underline;
}

/* Any SVG inside the Route widget */
body.woocommerce-checkout .pw-route-protection svg,
body.woocommerce-checkout .pw-route-protection svg * {
  fill: var(--text, #e7edf8) !important;
  stroke: var(--text, #e7edf8) !important;
}

/* If they use an <img> logo instead of SVG */
body.woocommerce-checkout .pw-route-protection img {
  filter: brightness(0) invert(1) !important;
}

/* =========================================================
   Route Shipping Protection — match dark Order Summary theme
   ========================================================= */

/* The whole Route row */
body.woocommerce-checkout #order_review .pw-route-protection{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  padding: 12px 12px !important;
  margin: 12px 0 !important;

  border: 1px solid rgba(231,237,248,.14) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.04) !important;

  color: var(--text, #e7edf8) !important;
  font-size: 15px !important;
  line-height: 1.25 !important;

  opacity: 1 !important;
}

/* Make everything inside readable */
body.woocommerce-checkout #order_review .pw-route-protection *{
  color: var(--text, #e7edf8) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* Left side (label + icon) */
body.woocommerce-checkout #order_review .pw-route-protection label,
body.woocommerce-checkout #order_review .pw-route-protection .label,
body.woocommerce-checkout #order_review .pw-route-protection .pw-route-label{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Price on the right */
body.woocommerce-checkout #order_review .pw-route-protection .amount,
body.woocommerce-checkout #order_review .pw-route-protection .price,
body.woocommerce-checkout #order_review .pw-route-protection [class*="amount"]{
  font-weight: 700 !important;
  font-size: 15px !important;
}

/* Checkbox: bigger + high contrast */
body.woocommerce-checkout #order_review .pw-route-protection input[type="checkbox"]{
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #e7edf8 !important;
}

/* Route icon/logo: force light */
body.woocommerce-checkout #order_review .pw-route-protection svg,
body.woocommerce-checkout #order_review .pw-route-protection svg *{
  fill: var(--text, #e7edf8) !important;
  stroke: var(--text, #e7edf8) !important;
}

/* If Route uses an image logo instead of SVG */
body.woocommerce-checkout #order_review .pw-route-protection img{
  filter: brightness(0) invert(1) !important;
}

/* Make it easier to click anywhere on the row */
body.woocommerce-checkout #order_review .pw-route-protection label{
  cursor: pointer !important;
}

/* =========================================================
   Classic Checkout: Custom Order Summary items block
   ========================================================= */

/* Hide Woo’s default line items (keep totals/shipping/fees below) */
body.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item{
  display: none !important;
}

/* Our custom items wrapper */
body.woocommerce-checkout #order_review .bp-os-items{
  display: block;
  margin: 10px 0 14px;
}

/* Each item row */
body.woocommerce-checkout #order_review .bp-os-item{
  display: flex;
  justify-content: space-between;
  gap: 14px;

  padding: 10px 0;
  border-bottom: 1px solid rgba(231,237,248,.10);
}

/* Left side: thumb + meta */
body.woocommerce-checkout #order_review .bp-os-left{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

/* Thumbnail + badge */
body.woocommerce-checkout #order_review .bp-os-thumb{
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

body.woocommerce-checkout #order_review .bp-os-thumb img{
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
  border: 1px solid rgba(231,237,248,.14) !important;
}

body.woocommerce-checkout #order_review .bp-os-qty{
  position: absolute;
  top: -8px;
  left: -8px;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  background: rgba(231,237,248,.95);
  color: #0b162c;
  border: 1px solid rgba(0,0,0,.25);
}

/* Meta text */
body.woocommerce-checkout #order_review .bp-os-meta{
  min-width: 0;
}

body.woocommerce-checkout #order_review .bp-os-title{
  color: var(--text, #e7edf8);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  line-height: 1.25;
}

body.woocommerce-checkout #order_review .bp-os-unit{
  margin-top: 6px;
  color: var(--text, #e7edf8);
  opacity: .95;
  font-weight: 700;
  font-size: 13px;
}

body.woocommerce-checkout #order_review .bp-os-excerpt{
  margin-top: 10px;
  color: var(--text, #e7edf8);
  opacity: .78;
  font-size: 13px;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right side: line total */
body.woocommerce-checkout #order_review .bp-os-right{
  flex: 0 0 auto;
  text-align: right;
}

body.woocommerce-checkout #order_review .bp-os-line-total{
  color: var(--text, #e7edf8);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

/* Classic checkout: prevent right column height from stretching left (fixes big gap) */
@media (min-width: 992px){
  .woocommerce-checkout form.checkout{
    align-items: flex-start !important;
  }
  .woocommerce-checkout #customer_details{
    align-self: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

add_action('wp_head', function () {
  if (!function_exists('is_checkout') || !is_checkout()) return;
  ?>
  <style>
    .bp-coupon-wrap input.bp-coupon-input{
      width: 100%;
      max-width: 260px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(231,237,248,.14);
      background: rgba(0,0,0,.20);
      color: #e7edf8;
      outline: none;
    }
    .bp-coupon-wrap input.bp-coupon-input::placeholder{ opacity:.75; }
    .bp-coupon-wrap .bp-coupon-btn{
      border-radius: 999px;
      padding: 10px 18px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
  </style>
  <?php
});

add_action('woocommerce_review_order_before_payment', function () {

  if (!function_exists('wc_coupons_enabled') || !wc_coupons_enabled()) return;

  echo '<div class="bp-coupon-collapsible" aria-label="Discount code">';
    echo '<div class="bp-coupon-top">';
      echo '<div class="bp-coupon-label">Discount code</div>';
      echo '<button type="button" class="bp-coupon-toggle" aria-expanded="false">Apply discount code</button>';
    echo '</div>';

    echo '<div class="bp-coupon-panel" hidden>';
      echo '<div class="bp-coupon-controls">';
        echo '<input type="text" name="coupon_code" class="bp-coupon-input" placeholder="Discount code" autocomplete="off" />';
        echo '<button type="button" class="button bp-coupon-btn" id="bp-apply-coupon">APPLY</button>';
      echo '</div>';
      echo '<div class="bp-coupon-msg" id="bp-coupon-msg" aria-live="polite"></div>';
    echo '</div>';
  echo '</div>';

}, 28);

add_action('wp_ajax_bp_apply_coupon', 'bp_apply_coupon');
add_action('wp_ajax_nopriv_bp_apply_coupon', 'bp_apply_coupon');

function bp_apply_coupon() {
  if (!function_exists('WC') || !WC()->cart) {
    wp_send_json_error(['message' => 'Cart unavailable.']);
  }

  $code = isset($_POST['code']) ? wc_format_coupon_code(wp_unslash($_POST['code'])) : '';
  if (!$code) {
    wp_send_json_error(['message' => 'Enter a discount code.']);
  }

  $applied = WC()->cart->apply_coupon($code);
  WC()->cart->calculate_totals();

  if ($applied) {
    wp_send_json_success(['message' => 'Discount applied.']);
  }

  wp_send_json_error(['message' => 'That discount code is invalid.']);
}


/**
 * Move WooCommerce's native coupon (discount code) form into Order Summary
 * and keep it collapsible like the default behavior.
 */
add_action('wp_loaded', function () {

  if (!function_exists('wc_coupons_enabled') || !wc_coupons_enabled()) return;

  // Remove default location (top of checkout)
  remove_action('woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10);

  // Add it into the order summary column (right side)
  add_action('woocommerce_review_order_before_payment', function () {
    // Native Woo collapsible coupon UI
    woocommerce_checkout_coupon_form();
  }, 8);
});

/* Route fee row alignment only */
body.woocommerce-checkout #order_review tr.fee th,
body.woocommerce-checkout #order_review tr.fee td{
  vertical-align: middle;
}

/* Keep "Route Shipping Protection" on one line */
body.woocommerce-checkout #order_review tr.fee th{
  white-space: nowrap;
}

/* Ensure the amount stays right-aligned */
body.woocommerce-checkout #order_review tr.fee td{
  text-align: right;
}

body.woocommerce-checkout #order_review tr.fee th{
  white-space: normal;
}

body.woocommerce-checkout #route-checkout-radio,
body.woocommerce-checkout #RouteWidget{
  border-radius: 16px;
  border: 1px solid rgba(231,237,248,.18);
  background: rgba(255,255,255,.04);
}

/* ===== Route Shipping Protection – visual upgrade ===== */
body.woocommerce-checkout #route-checkout-radio,
body.woocommerce-checkout #RouteWidget{
  margin-top: 14px;
  padding: 18px 20px !important;
  border-radius: 18px;
  border: 1px solid rgba(231,237,248,.18);
  background: rgba(255,255,255,.05);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-size: 15px;
  line-height: 1.4;
}

/* Align checkbox + label + price cleanly */
body.woocommerce-checkout #route-checkout-radio .pw-container,
body.woocommerce-checkout #RouteWidget .pw-container{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Make checkbox easier to tap */
body.woocommerce-checkout #route-checkout-radio input[type="checkbox"],
body.woocommerce-checkout #RouteWidget input[type="checkbox"]{
  transform: scale(1.25);
  margin-right: 6px;
}

/* Emphasize the label */
body.woocommerce-checkout #route-checkout-radio .pw-title,
body.woocommerce-checkout #RouteWidget .pw-title{
  font-weight: 600;
  font-size: 15px;
}

/* Emphasize the price */
body.woocommerce-checkout #route-checkout-radio .pw-quote,
body.woocommerce-checkout #RouteWidget .pw-quote{
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
