/* ============================================================
   GUN SNACKS — Shared Stylesheet
   Stonewall Supply Company LLC · Fort Worth, Texas
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&family=Barlow+Condensed:wght@400;700;800;900&display=swap');

/* VARIABLES */
:root {
  --brown-dark: #3d1200;
  --brown-mid: #6b2200;
  --brown-light: #8b3a00;
  --cream: #fff8ee;
  --white: #ffffff;
  --gold: #d4a017;
  --brass: #b8860b;
  --red: #cc2200;
  --blue: #1a3a6b;
  --green: #1a6b3a;
  --orange: #e85d04;
  --candy-yellow: #ffd60a;
  --banner-h: 38px;
  --phone-h: 40px;
  --nav-h: 64px;
  --header-h: calc(var(--banner-h) + var(--phone-h) + var(--nav-h));
}

@media (max-width: 600px) {
  :root { --banner-h: 36px; }
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--brown-dark);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
}

/* ============================================================
   LEAD TIME BANNER
   ============================================================ */
.lead-time-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: #2a0c00;
  color: var(--white);
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  padding: 0 1rem;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--candy-yellow);
}

.lead-time-banner__accent {
  color: var(--candy-yellow);
  font-weight: 800;
}

.lead-time-banner__mobile { display: none; }

@media (max-width: 600px) {
  .lead-time-banner {
    font-size: 0.78rem;
    letter-spacing: 0.2px;
  }
  .lead-time-banner__desktop { display: none; }
  .lead-time-banner__mobile { display: inline; }
}

/* ============================================================
   PHONE BANNER
   ============================================================ */
.phone-banner {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 99;
  height: var(--phone-h);
  background: var(--candy-yellow);
  color: var(--brown-dark);
  text-align: center;
  padding: 0.65rem 2rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: calc(var(--banner-h) + var(--phone-h)); left: 0; right: 0;
  z-index: 100;
  background: rgba(61,18,0,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.nav-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .candy-dot {
  width: 28px; height: 28px;
  background: var(--candy-yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--brown-dark);
  box-shadow: 0 0 12px rgba(255,214,10,0.5);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--candy-yellow); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.nav-cart:hover {
  background: rgba(255,214,10,0.15);
  border-color: rgba(255,214,10,0.4);
  color: var(--candy-yellow);
  transform: translateY(-1px);
}

.nav-cart.has-items {
  color: var(--candy-yellow);
  border-color: rgba(255,214,10,0.35);
  background: rgba(255,214,10,0.08);
}

.nav-cart svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-cart .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--candy-yellow);
  color: var(--brown-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brown-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.nav-cart .cart-count[aria-hidden="true"] {
  display: none;
}

.nav-cta {
  background: var(--candy-yellow);
  color: var(--brown-dark);
  font-weight: 900;
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(255,214,10,0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,214,10,0.5);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(107,34,0,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(184,134,11,0.15) 0%, transparent 60%),
    var(--brown-dark);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,214,10,0.06) 2px, transparent 2px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,214,10,0.12);
  border: 1px solid rgba(255,214,10,0.3);
  color: var(--candy-yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-headline .brand-mm {
  color: var(--candy-yellow);
  display: inline-block;
  text-shadow: 0 0 40px rgba(255,214,10,0.4);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* HERO BOX MOCKUP */
.hero-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s ease;
  animation: float 4s ease-in-out infinite;
}

.box-mockup:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

@keyframes float {
  0%, 100% { transform: perspective(800px) rotateY(-8deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-8deg) rotateX(2deg) translateY(-12px); }
}

.box-mockup img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Cap the right column too, so a tall/wide hero image can't push the
   hero section into a giant oversized layout. */
.hero-box {
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.box-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: spin-badge 8s linear infinite;
}

@keyframes spin-badge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--brown-mid);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 2rem;
  overflow: hidden;
}

.trust-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll-track 20s linear infinite;
}

@keyframes scroll-track {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.trust-item .dot {
  width: 6px; height: 6px;
  background: var(--candy-yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--candy-yellow);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--candy-yellow);
  color: var(--brown-dark);
  font-weight: 900;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(255,214,10,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,214,10,0.5);
}

.btn-secondary {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--white); }

/* ============================================================
   PRODUCTS GRID (home page)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.product-card {
  background: var(--brown-mid);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.12);
}

/* Header is now an <a> — strip anchor defaults */
a.product-card-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

/* Inner name/desc link — inherits the flex:1 growth .product-desc relied on */
.product-card-text-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.product-card-text-link:hover .product-name {
  color: var(--candy-yellow);
  transition: color 0.15s;
}

.product-card-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  position: relative;
  flex-shrink: 0;
}

.product-9mm .product-card-header { background: linear-gradient(135deg, #5c1e00, #8b3a00); }
.product-45 .product-card-header { background: linear-gradient(135deg, #1a3a6b, #2a5aa0); }
.product-38 .product-card-header { background: linear-gradient(135deg, #1a5c1a, #2a8b2a); }
.product-556 .product-card-header { background: linear-gradient(135deg, #4a0000, #880000); }

.product-pill {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.15);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.product-card:hover .product-pill { transform: scale(1.1) rotate(-5deg); }

.product-9mm .product-pill { background: radial-gradient(circle at 35% 35%, #d4a017, #8b6914); }
.product-45 .product-pill { background: radial-gradient(circle at 35% 35%, #4488cc, #1a3a6b); }
.product-38 .product-pill { background: radial-gradient(circle at 35% 35%, #44aa44, #1a6b1a); }
.product-556 .product-pill { background: radial-gradient(circle at 35% 35%, #cc4444, #881a1a); }

.product-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
}

.product-tag.new { background: rgba(204,34,0,0.5); border-color: rgba(204,34,0,0.6); color: white; }

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.product-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--candy-yellow);
}

.product-price span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  margin-left: 4px;
}

.add-btn,
a.add-btn {
  background: var(--candy-yellow);
  border: 1px solid var(--candy-yellow);
  color: var(--brown-dark);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,214,10,0.3);
}

.add-btn:hover,
a.add-btn:hover {
  background: #ffe545;
  border-color: #ffe545;
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,214,10,0.45);
}

/* WC AJAX lifecycle states — show a subtle loading + added state */
.add-btn.loading {
  opacity: 0.75;
  pointer-events: none;
}

.add-btn.added {
  background: var(--brown-dark);
  border-color: var(--candy-yellow);
  color: var(--candy-yellow);
}

.add-btn.added::after {
  content: '✓';
  margin-left: 4px;
  font-weight: 900;
}

/* "View cart" link WC adds after an ajax add */
.product-meta .added_to_cart {
  display: none !important;
}

/* Non-clickable fallback (out of stock) */
.add-btn.disabled {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  background: var(--brown-mid);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 6rem 2rem;
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-pill {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.why-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(255,214,10,0.2);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.why-pill h3 {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.why-pill p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ============================================================
   BALLISTIC DATA (shared - used on home + product pages)
   ============================================================ */
.ballistic-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ballistic-card {
  background: var(--brown-mid);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ballistic-left {
  padding: 3rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.ballistic-freedom {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--candy-yellow);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ballistic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ballistic-table th {
  text-align: left;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ballistic-table td {
  padding: 0.75rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}

.ballistic-table td:first-child {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.ballistic-right {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.spec-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.spec-badge {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.spec-badge .val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--candy-yellow);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.spec-badge .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   EMAIL SIGNUP
   ============================================================ */
.email-section {
  background: var(--brown-mid);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 5rem 2rem;
}

.email-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 200px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 0.85rem 1.5rem;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder { color: rgba(255,255,255,0.35); }
.email-input:focus { border-color: rgba(255,214,10,0.5); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--brown-dark);
  padding: 6rem 2rem;
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-inner .section-title {
  margin-bottom: 1.5rem;
}

.about-inner p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-inner p strong {
  color: var(--white);
  font-weight: 800;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: var(--brown-mid);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 1.5rem;
}

.faq-q {
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.faq-a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #1a0800;
  border-top: 2px solid var(--gold);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li,
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--candy-yellow); }

/* Informational footer items (not links) — muted so they don't look clickable. */
.footer-col ul li.footer-info {
  color: rgba(255,255,255,0.35);
  cursor: default;
}

.footer-col ul li.footer-info .footer-soon {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 1px 8px;
  border-radius: 100px;
  background: rgba(255,214,10,0.12);
  color: var(--candy-yellow);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  vertical-align: middle;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.warning-text {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  line-height: 1.4;
  max-width: 600px;
  text-align: right;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.25s; opacity: 0; }
.fade-up-3 { animation-delay: 0.4s; opacity: 0; }
.fade-up-4 { animation-delay: 0.55s; opacity: 0; }
.fade-up-5 { animation-delay: 0.7s; opacity: 0; }

/* ============================================================
   PRODUCT DETAIL PAGE (product.html)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 60% 50%, rgba(107,34,0,0.5) 0%, transparent 70%),
    var(--brown-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,214,10,0.04) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.product-image-wrap {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.product-image-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
  background: linear-gradient(135deg, #5c1e00, #8b3a00);
}

.product-image-frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.product-image-placeholder {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-image-placeholder .big-pill {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4a017, #8b6914);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-detail-info {
  padding-top: 1rem;
}

.product-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,214,10,0.12);
  border: 1px solid rgba(255,214,10,0.3);
  color: var(--candy-yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.product-detail-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.product-detail-name .accent { color: var(--candy-yellow); }

.product-detail-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.product-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.spec-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}

.spec-chip .chip-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--candy-yellow);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.spec-chip .chip-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.price-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--candy-yellow);
  line-height: 1;
}

.price-unit {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.qty-atc {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  width: 44px;
  height: 48px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Nunito', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: rgba(255,255,255,0.1); }

.qty-display {
  min-width: 44px;
  text-align: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  pointer-events: none;
}

.atc-btn {
  flex: 1;
  min-width: 200px;
  background: var(--candy-yellow);
  color: var(--brown-dark);
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(255,214,10,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.atc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,214,10,0.5);
}

.shipping-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2rem;
}

.product-warning-block {
  background: rgba(204,34,0,0.1);
  border: 1px solid rgba(204,34,0,0.3);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.product-warning-block .warn-head {
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff6b4a;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-warning-block p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

/* Product ballistic section overrides */
.product-ballistic {
  background: var(--brown-dark);
  padding: 5rem 2rem;
}

.product-ballistic .ballistic-section {
  padding: 0;
}

/* ============================================================
   SHOP PAGE (shop.html)
   ============================================================ */
.shop-page-header {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 2.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(107,34,0,0.4) 0%, transparent 70%),
    var(--brown-dark);
  position: relative;
  overflow: hidden;
}

.shop-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,214,10,0.04) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.shop-page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.shop-page-header .section-label { margin-bottom: 0.5rem; }

.shop-page-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.5px;
}

.shop-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

/* SIDEBAR */
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group {
  background: var(--brown-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.filter-group-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.filter-list {
  list-style: none;
  padding: 0.5rem 0;
}

.filter-list li {
  padding: 0;
}

.filter-list a,
.filter-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  gap: 0.5rem;
}

.filter-list a:hover,
.filter-list label:hover { color: var(--white); background: rgba(255,255,255,0.04); }

.filter-list a.active,
.filter-list label.active { color: var(--candy-yellow); }

.filter-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
}

.filter-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.filter-checkbox-wrap input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--candy-yellow);
  cursor: pointer;
  flex-shrink: 0;
}

/* SHOP MAIN */
.shop-main { min-width: 0; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shop-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
}

.shop-count strong {
  color: var(--white);
  font-weight: 900;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}

.shop-sort select {
  background: var(--brown-mid);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  outline: none;
  cursor: pointer;
}

/* SHOP PRODUCT GRID */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.shop-card {
  background: var(--brown-mid);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.13);
}

.shop-card.coming-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.shop-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.shop-card:hover .shop-card-img img { transform: scale(1.04); }

.shop-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
}

.shop-card-badge.in-stock {
  background: rgba(26,107,58,0.85);
  color: #7fffb2;
  border: 1px solid rgba(127,255,178,0.25);
}

.shop-card-badge.coming-soon-badge {
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
}

.shop-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.shop-card-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.shop-card-price {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--candy-yellow);
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.shop-card-price .per {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-left: 3px;
}

.shop-card-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}

.shop-card-btn.primary {
  background: var(--candy-yellow);
  color: var(--brown-dark);
}

.shop-card-btn.primary:hover {
  background: #ffe545;
}

.shop-card-btn.disabled {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.35);
  cursor: not-allowed;
}

@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   POLICIES PAGE (policies.html)
   ============================================================ */
.page-header {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(107,34,0,0.4) 0%, transparent 70%),
    var(--brown-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,214,10,0.04) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header .section-label { text-align: center; }

.page-header .section-title {
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.6;
}

.policies-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.policy-block {
  background: var(--brown-mid);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

.policy-block-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.policy-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.policy-block-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.3px;
}

.policy-block-body {
  padding: 2rem;
}

.policy-block-body p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.policy-block-body p:last-child { margin-bottom: 0; }

.policy-block-body strong {
  color: var(--white);
  font-weight: 800;
}

.policy-block-body ul {
  margin: 0.75rem 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.policy-block-body li {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.policy-block-body h3 {
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
  color: var(--white);
}

.policy-block-body h3:first-child { margin-top: 0; }

.warning-block {
  background: rgba(204,34,0,0.1);
  border: 2px solid rgba(204,34,0,0.4);
  border-radius: 20px;
  overflow: hidden;
}

.warning-block .policy-block-header {
  background: rgba(204,34,0,0.15);
  border-bottom-color: rgba(204,34,0,0.3);
}

.warning-block .policy-block-header h2 {
  color: #ff6b4a;
}

.warning-block .policy-block-body p {
  color: rgba(255,255,255,0.6);
}

.warning-block .policy-block-body strong {
  color: #ff8c70;
}

.disclaimer-block {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-box { order: -1; }

  /* Extra breathing room under the fixed header so the hero image
     doesn't sit flush against the nav. */
  .hero { padding-top: calc(var(--header-h) + 1.5rem); }

  /* Drop the 3D tilt on mobile — it looks cramped on a phone-sized box
     and the perspective clips badly against the small viewport. */
  .box-mockup {
    transform: none !important;
    border-radius: 14px;
  }
  .box-mockup:hover { transform: none !important; }

  /* Scale the NEW BOX badge down so it doesn't swallow the image. */
  .box-badge {
    width: 56px;
    height: 56px;
    font-size: 0.6rem;
    padding: 0.4rem 0.5rem;
    top: -10px;
    right: -10px;
  }
  .why-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ballistic-card { grid-template-columns: 1fr; }
  .ballistic-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .warning-text { text-align: center; }
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-image-wrap { position: static; }
  .product-specs-row { grid-template-columns: repeat(3, 1fr); }
  .qty-atc { flex-direction: column; align-items: stretch; }
  .atc-btn { min-width: unset; }

  /* Policies */
  .policy-block-body { padding: 1.25rem; }
  .policy-block-header { padding: 1.25rem; }
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   Targets WC-generated markup inside our custom templates.
   ============================================================ */

/* Qty input */
.woocommerce .quantity input.qty {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  text-align: center;
  width: 80px;
  height: 48px;
  padding: 0 1rem;
  outline: none;
}

/* Single product add-to-cart button */
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt {
  background: var(--candy-yellow) !important;
  color: var(--brown-dark) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  border-radius: 100px !important;
  border: none !important;
  padding: 0.85rem 2rem !important;
  cursor: pointer !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  box-shadow: 0 6px 20px rgba(255,214,10,0.35) !important;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(255,214,10,0.5) !important;
  background: var(--candy-yellow) !important;
}

/* WC form-row add-to-cart wrapper */
.woocommerce form.cart {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info {
  background: rgba(255,214,10,0.1);
  border-top: 3px solid var(--candy-yellow);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.woocommerce-error {
  background: rgba(204,34,0,0.1);
  border-top: 3px solid var(--red);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  list-style: none;
}

/* Catalog ordering (sort dropdown) */
.woocommerce-ordering select {
  background: var(--brown-mid);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  outline: none;
  cursor: pointer;
}

/* Pagination */
.woocommerce-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  justify-content: center;
  padding: 2rem 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brown-mid);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.woocommerce-pagination ul li a:hover {
  background: var(--candy-yellow);
  color: var(--brown-dark);
  border-color: var(--candy-yellow);
}

.woocommerce-pagination ul li span.current {
  background: var(--candy-yellow);
  color: var(--brown-dark);
  border-color: var(--candy-yellow);
}

/* Cart & Checkout tables */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.woocommerce table.shop_table th {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.woocommerce table.shop_table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

/* Nav scroll state */
#site-nav.scrolled {
  background: rgba(61,18,0,0.98);
}

/* ============================================================
   WOOCOMMERCE CART & CHECKOUT BLOCKS
   .wp-block-woocommerce-cart / .wp-block-woocommerce-checkout
   ============================================================ */

/* Break the cart/checkout blocks out of the theme's .policies-body
   wrapper (max-width: 800px) that page.php applies to all pages. */
.policies-body:has(.wp-block-woocommerce-cart),
.policies-body:has(.wp-block-woocommerce-checkout) {
  max-width: 1280px;
  padding: 2rem 1rem 5rem;
  gap: 0;
}

.policy-block:has(.wp-block-woocommerce-cart),
.policy-block:has(.wp-block-woocommerce-checkout) {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.policy-block-body:has(.wp-block-woocommerce-cart),
.policy-block-body:has(.wp-block-woocommerce-checkout) {
  padding: 0;
}

/* Outer cart/checkout container — site's dot pattern + dark backdrop.
   WC applies native `display: grid` to .wp-block-woocommerce-checkout
   which causes the inner sidebar-layout to be squeezed into one column.
   Force block so our inner grid is the real two-column layout. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout.wc-block-checkout {
  font-family: 'Nunito', sans-serif;
  color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  position: relative;
  background-image: radial-gradient(circle, rgba(255,214,10,0.05) 2px, transparent 2px);
  background-size: 40px 40px;
  background-attachment: local;
  display: block !important;
}

.wp-block-woocommerce-empty-cart-block,
.wp-block-woocommerce-filled-cart-block {
  font-family: 'Nunito', sans-serif;
  color: var(--white);
}

/* Page title + generic heading helpers */
.wc-block-components-title {
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
}

/* Two-column grid — target the inner sidebar-layout (which carries
   .wc-block-cart or .wc-block-checkout alongside its own class).
   WC core sets flex-column and sizes children with flex: 0 1 auto,
   so we must force grid AND force children to width: 100%. */
.wc-block-components-sidebar-layout.wc-block-cart,
.wc-block-components-sidebar-layout.wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  grid-template-rows: auto !important;
  gap: 2rem !important;
  align-items: start !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  max-width: none !important;
  width: 100% !important;
}

/* WC injects an empty placeholder <div> as the first grid child.
   Hide it so auto-placement doesn't push main/sidebar into the wrong cells. */
.wc-block-components-sidebar-layout.wc-block-cart > div:empty,
.wc-block-components-sidebar-layout.wc-block-checkout > div:empty {
  display: none !important;
}

/* Explicit placement + width:100% so grid children fill their tracks
   instead of shrink-wrapping to their flex-basis: auto content width. */
.wc-block-cart__main,
.wc-block-checkout__main,
.wp-block-woocommerce-cart-items-block,
.wp-block-woocommerce-checkout-fields-block {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  background: rgba(107,34,0,0.55);
  border: 1px solid rgba(255,214,10,0.1);
  border-radius: 20px;
  padding: 2rem;
}

/* Order-summary sidebar — sticky right column */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar,
.wp-block-woocommerce-cart-totals-block,
.wp-block-woocommerce-checkout-totals-block {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  background: rgba(107,34,0,0.55);
  border: 1px solid rgba(255,214,10,0.1);
  border-radius: 20px;
  padding: 1.5rem !important;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
}

/* Nested summary blocks shouldn't re-apply the card chrome */
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: static;
}

/* Order summary product rows — WC renders this as display: table with
   nested padding that squeezes the product name into 130px and wraps
   text character-by-character inside the 360px sidebar. Flatten it. */
.wc-block-components-order-summary {
  padding: 0 !important;
  margin: 0 !important;
}

.wc-block-components-order-summary__content {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wc-block-components-order-summary-item {
  display: flex !important;
  gap: 0.75rem !important;
  align-items: flex-start !important;
  padding: 0.85rem 0 !important;
  border-bottom: 1px dashed rgba(255,214,10,0.12) !important;
}

.wc-block-components-order-summary-item:last-child {
  border-bottom: none !important;
}

.wc-block-components-order-summary-item__image {
  flex-shrink: 0 !important;
  width: 56px !important;
  height: 56px !important;
  position: relative !important;
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid rgba(255,214,10,0.15) !important;
  border-radius: 10px !important;
  overflow: visible !important;
}

.wc-block-components-order-summary-item__image img,
.wc-block-components-order-summary-item__image > img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Quantity badge — small yellow circle top-right of thumbnail */
.wc-block-components-order-summary-item__quantity {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  background: var(--candy-yellow) !important;
  color: var(--brown-dark) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 0.7rem !important;
  border-radius: 100px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border: 2px solid var(--brown-mid) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.wc-block-components-order-summary-item__description {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-details,
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.45) !important;
  margin-top: 0.25rem !important;
}

.wc-block-components-order-summary-item__total-price {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-heading-block {
  color: var(--candy-yellow) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 0.8rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin: 0 0 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(255,214,10,0.2) !important;
}

/* Step headings (checkout) */
.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout-contact-information-block h2,
.wp-block-woocommerce-checkout-shipping-address-block h2,
.wp-block-woocommerce-checkout-billing-address-block h2,
.wp-block-woocommerce-checkout-shipping-method-block h2,
.wp-block-woocommerce-checkout-payment-block h2 {
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.3px !important;
  margin: 0 0 1rem !important;
}

.wc-block-components-checkout-step__description {
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.9rem !important;
  margin-bottom: 1rem !important;
}

/* Cart items table */
.wc-block-cart-items,
.wc-block-cart-items__header,
table.wc-block-cart-items {
  background: transparent !important;
  color: var(--white) !important;
  width: 100%;
  border-collapse: collapse;
}

.wc-block-cart-items__header th,
.wc-block-cart-items th {
  color: rgba(255,255,255,0.4) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 0 0 0.85rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  background: transparent !important;
}

.wc-block-cart-items__row,
.wc-block-cart-items tr {
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.wc-block-cart-items__row td,
.wc-block-cart-items td {
  padding: 1.25rem 0 !important;
  vertical-align: top !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Horizontal gap between image · product info · total cells. WC's
   base padding collapses these together so the thumbnail sits flush
   against the product name — breathing room fixes that. */
.wc-block-cart-items__row .wc-block-cart-item__image,
.wc-block-cart-items .wc-block-cart-item__image {
  padding-right: 1.25rem !important;
  width: 80px !important;
  min-width: 80px !important;
}

.wc-block-cart-items__row .wc-block-cart-item__product,
.wc-block-cart-items .wc-block-cart-item__product {
  padding-right: 1rem !important;
}

.wc-block-cart-items__row .wc-block-cart-item__total,
.wc-block-cart-items .wc-block-cart-item__total {
  text-align: right !important;
  white-space: nowrap !important;
}

/* Product image */
.wc-block-cart-item__image img,
.wc-block-components-product-image img,
.wc-block-cart-item__wrap .wc-block-cart-item__image img {
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  max-width: 80px;
}

/* Product name + link */
.wc-block-components-product-name,
.wc-block-cart-item__product-name,
a.wc-block-components-product-name {
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}

.wc-block-components-product-name:hover,
a.wc-block-components-product-name:hover {
  color: var(--candy-yellow) !important;
}

.wc-block-components-product-metadata,
.wc-block-cart-item__metadata,
.wc-block-components-product-details {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.8rem !important;
  margin-top: 0.3rem !important;
}

/* Product prices */
.wc-block-components-product-price,
.wc-block-cart-item__total-price-and-sale-badge-wrapper,
.wc-block-components-product-price__value {
  color: var(--candy-yellow) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
}

.wc-block-components-product-price__regular {
  color: rgba(255,255,255,0.4) !important;
  text-decoration: line-through !important;
  font-weight: 600 !important;
}

/* Qty selector in cart */
.wc-block-components-quantity-selector {
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 100px !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
}

.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector__input {
  background: transparent !important;
  border: none !important;
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  outline: none !important;
}

.wc-block-components-quantity-selector__button,
button.wc-block-components-quantity-selector__button {
  background: transparent !important;
  border: none !important;
  color: rgba(255,255,255,0.7) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  width: 36px !important;
  height: 40px !important;
  cursor: pointer !important;
  transition: color 0.15s, background 0.15s !important;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background: rgba(255,255,255,0.08) !important;
  color: var(--candy-yellow) !important;
}

.wc-block-components-quantity-selector__button:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

/* Remove / trash link */
.wc-block-cart-item__remove-link,
button.wc-block-cart-item__remove-link {
  color: rgba(255,255,255,0.45) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: color 0.15s !important;
}

.wc-block-cart-item__remove-link:hover {
  color: var(--red) !important;
}

/* Order summary totals — dashed yellow dividers between rows.
   Only the inner __item is a flex row; the outer wrapper must stay
   a block so nested rows (shipping, taxes) fill the sidebar width. */
.wc-block-components-totals-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 0.7rem 0 !important;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-bottom: 1px dashed rgba(255,214,10,0.15) !important;
  background: transparent !important;
  width: 100% !important;
}

.wc-block-components-totals-wrapper {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.wc-block-components-totals-wrapper:last-child,
.wc-block-components-totals-wrapper.wc-block-components-totals-footer-item-wrapper,
.wc-block-components-totals-item:last-child {
  border-bottom: none !important;
}

.wc-block-components-totals-item__label {
  color: rgba(255,255,255,0.6) !important;
  font-weight: 700 !important;
}

.wc-block-components-totals-item__value {
  color: var(--white) !important;
  font-weight: 800 !important;
  font-family: 'Nunito', sans-serif !important;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item,
.wc-block-components-totals-footer-item {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  margin-top: 0.5rem !important;
  padding-top: 1rem !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item__label {
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 0.75rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item__value {
  color: var(--candy-yellow) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  text-shadow: 0 0 20px rgba(255,214,10,0.25) !important;
}

/* The "estimated total" variant wraps the visible amount in
   .wc-block-components-totals-footer-item-tax-value. It looks like a
   tax note, but it IS the primary total amount — keep it big + yellow.
   Only the __description (e.g. "Includes $X in tax") stays small. */
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax-value,
.wc-block-components-totals-footer-item-tax-value {
  color: var(--candy-yellow) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
}

.wc-block-components-totals-footer-item__description {
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  display: block !important;
  margin-top: 0.25rem !important;
}

/* The "Flat rate" shipping row renders an empty __description div as a
   3rd flex child. With justify-content: space-between that pushes the
   $ value to the middle where it visually crams up next to the label.
   Hide the empty placeholder so space-between works with 2 items. */
.wc-block-components-totals-item > .wc-block-components-totals-item__description:empty {
  display: none !important;
}

/* Shipping rows + panel */
.wc-block-components-totals-shipping__via,
.wc-block-components-shipping-address {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.8rem !important;
}

.wc-block-components-totals-shipping__change-address-button,
.wc-block-components-totals-shipping__change-address__link {
  color: var(--candy-yellow) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}

/* Coupon / discount panel — expanded card with icon on the right */
.wc-block-components-totals-coupon,
.wc-block-components-panel {
  border-top: 1px dashed rgba(255,214,10,0.2) !important;
  border-bottom: 1px dashed rgba(255,214,10,0.2) !important;
  padding: 0 !important;
  background: transparent !important;
  margin: 0.25rem 0 !important;
}

/* The WC panel button is a <div role="button"> containing an SVG
   followed by a bare text node "Add coupons". Bare text can't be
   positioned cleanly with flex-direction: row-reverse (it stays
   attached to the SVG). Use absolute positioning for the icon
   instead — text fills the row left-aligned, chevron pins to the
   right edge. */
.wc-block-components-panel__button,
div.wc-block-components-panel__button,
button.wc-block-components-panel__button {
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px !important;
  background: none !important;
  border: none !important;
  padding: 0.9rem 32px 0.9rem 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
}

.wc-block-components-panel__button .wc-block-components-panel__button-icon,
.wc-block-components-panel__button-icon {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  fill: var(--candy-yellow) !important;
  transition: transform 0.2s !important;
}

.wc-block-components-panel__button[aria-expanded="true"] .wc-block-components-panel__button-icon {
  transform: translateY(-50%) rotate(180deg) !important;
}

/* The parent panel must also span the sidebar so the button's 100%
   width actually covers the full row. WC's default shrinks it. */
.wc-block-components-totals-coupon,
.wc-block-components-panel {
  width: 100% !important;
  display: block !important;
}

.wc-block-components-panel__button:hover {
  color: var(--candy-yellow) !important;
}

.wc-block-components-totals-coupon__content {
  padding: 0.5rem 0 1rem !important;
}

/* Coupon input row: input + apply button side-by-side */
.wc-block-components-totals-coupon__content .wc-block-components-totals-coupon__form,
.wc-block-components-totals-coupon__form {
  display: flex !important;
  gap: 0.5rem !important;
  align-items: stretch !important;
}

.wc-block-components-totals-coupon__form .wc-block-components-text-input {
  flex: 1 !important;
  margin: 0 !important;
}

.wc-block-components-chip,
.wc-block-components-totals-coupon-link {
  background: rgba(255,214,10,0.12) !important;
  border: 1px solid rgba(255,214,10,0.3) !important;
  color: var(--candy-yellow) !important;
  border-radius: 100px !important;
  padding: 0.3rem 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
}

.wc-block-components-chip__remove {
  color: var(--candy-yellow) !important;
  opacity: 0.7 !important;
}

.wc-block-components-chip__remove:hover {
  opacity: 1 !important;
}

/* Form inputs (checkout fields) */
.wc-block-components-text-input,
.wc-block-components-select,
.wc-block-components-textarea,
.wc-block-components-address-form .wc-block-components-text-input {
  margin-bottom: 1rem !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-select select,
.wc-block-components-textarea textarea,
input.wc-block-components-text-input,
.wc-block-components-form .wc-block-components-text-input input,
.wp-block-woocommerce-checkout input[type="text"],
.wp-block-woocommerce-checkout input[type="email"],
.wp-block-woocommerce-checkout input[type="tel"],
.wp-block-woocommerce-checkout select,
.wp-block-woocommerce-checkout textarea {
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 12px !important;
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 1.4rem 1rem 0.45rem !important;
  outline: none !important;
  transition: border-color 0.15s, background 0.15s !important;
  width: 100% !important;
  box-shadow: none !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus,
.wc-block-components-textarea textarea:focus,
.wp-block-woocommerce-checkout input:focus,
.wp-block-woocommerce-checkout select:focus,
.wp-block-woocommerce-checkout textarea:focus {
  border-color: rgba(255,214,10,0.5) !important;
  background: rgba(0,0,0,0.35) !important;
}

.wc-block-components-text-input input::placeholder,
.wp-block-woocommerce-checkout input::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

/* Floating labels */
.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-textarea label,
.wc-block-components-checkout-step label {
  color: rgba(255,255,255,0.5) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  background: transparent !important;
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label {
  color: var(--candy-yellow) !important;
}

/* Country / State select — label must sit ABOVE the select, not overlap
   the value. WC's .wc-blocks-components-select__label is absolutely
   positioned with no transform; when a value is selected it collides
   with the text. And the container itself has a WHITE background from
   WC core that renders as a flash-bar above the select. Kill both. */
.wc-blocks-components-select,
.wc-blocks-components-select__container {
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.wc-blocks-components-select__label,
.wc-blocks-components-select .wc-blocks-components-select__label {
  position: static !important;
  display: block !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.5) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 0.4rem !important;
  pointer-events: none !important;
  max-width: none !important;
  width: auto !important;
  z-index: auto !important;
}

.wc-blocks-components-select__select {
  width: 100% !important;
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 12px !important;
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 1rem !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd60a'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 20px !important;
  padding-right: 2.5rem !important;
}

.wc-blocks-components-select__select:focus {
  border-color: rgba(255,214,10,0.5) !important;
  background-color: rgba(0,0,0,0.35) !important;
}

.wc-blocks-components-select__select option {
  background: var(--brown-dark) !important;
  color: var(--white) !important;
}

/* Autocomplete fix for dark bg */
.wc-block-components-text-input input:-webkit-autofill,
.wp-block-woocommerce-checkout input:-webkit-autofill {
  -webkit-text-fill-color: var(--white) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(61,18,0,0.8) inset !important;
  caret-color: var(--white) !important;
}

/* Checkbox + radio */
.wc-block-components-checkbox input,
.wc-block-components-radio-control input,
input[type="checkbox"].wc-block-components-checkbox__input,
input[type="radio"].wc-block-components-radio-control__input {
  accent-color: var(--candy-yellow) !important;
}

.wc-block-components-checkbox,
.wc-block-components-radio-control__option {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.wc-block-components-checkbox__label,
.wc-block-components-radio-control__label,
.wc-block-components-radio-control__option-layout {
  color: rgba(255,255,255,0.8) !important;
  font-family: 'Nunito', sans-serif !important;
}

/* Push the option label past the absolutely-positioned radio button
   so its text doesn't overlap the circle. Radio is 20px at left:16px
   inside a label padded 16px; clear with 32px. */
.wc-block-components-radio-control__option-layout {
  padding-left: 32px !important;
}

/* Hide the shipping-method block when completely empty (no WC zones
   configured yet). Once WC shipping is configured, content will
   populate and the block will show again. */
.wp-block-woocommerce-checkout-shipping-method-block:empty,
.wp-block-woocommerce-checkout-pickup-options-block:empty {
  display: none !important;
}

/* Shipping method cards (radio list) */
.wc-block-components-shipping-rates-control__package,
.wc-block-components-radio-control__option {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 1rem !important;
  margin-bottom: 0.5rem !important;
  transition: border-color 0.15s, background 0.15s !important;
}

.wc-block-components-shipping-rates-control__no-results-notice {
  background: rgba(255,214,10,0.08) !important;
  border: 1px dashed rgba(255,214,10,0.3) !important;
  color: rgba(255,255,255,0.7) !important;
  border-radius: 12px !important;
  padding: 0.9rem 1.1rem !important;
  font-size: 0.85rem !important;
}

.wc-block-components-radio-control__option:hover {
  border-color: rgba(255,214,10,0.3) !important;
}

.wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control__option[data-checked="true"] {
  border-color: var(--candy-yellow) !important;
  background: rgba(255,214,10,0.08) !important;
}

/* Payment methods */
.wc-block-components-payment-method,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__option {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 1rem !important;
}

.wc-block-components-payment-method__name {
  color: var(--white) !important;
  font-weight: 800 !important;
}

/* Place order / proceed to checkout buttons */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout-actions-block button,
button.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained {
  background: var(--candy-yellow) !important;
  color: var(--brown-dark) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  border-radius: 100px !important;
  border: none !important;
  padding: 0.95rem 2rem !important;
  cursor: pointer !important;
  width: 100% !important;
  box-shadow: 0 6px 20px rgba(255,214,10,0.35) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  min-height: 48px !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.contained:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(255,214,10,0.5) !important;
  background: var(--candy-yellow) !important;
  color: var(--brown-dark) !important;
}

.wc-block-cart__submit-button:disabled,
.wc-block-components-checkout-place-order-button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Secondary/outlined buttons (apply coupon, etc.) */
.wc-block-components-button.outlined,
button.wc-block-components-totals-coupon__button,
.wc-block-components-totals-coupon__button {
  background: rgba(255,255,255,0.08) !important;
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 100px !important;
  padding: 0.6rem 1.25rem !important;
  cursor: pointer !important;
  transition: background 0.15s, border-color 0.15s !important;
}

.wc-block-components-button.outlined:hover,
.wc-block-components-totals-coupon__button:hover {
  background: var(--candy-yellow) !important;
  color: var(--brown-dark) !important;
  border-color: var(--candy-yellow) !important;
}

/* Express checkout container */
.wp-block-woocommerce-checkout-express-payment-block,
.wc-block-components-express-payment {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 14px !important;
  padding: 1rem !important;
  margin-bottom: 1.25rem !important;
}

.wc-block-components-express-payment__title-container,
.wc-block-components-express-payment-continue-rule {
  color: rgba(255,255,255,0.45) !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
  background: rgba(255,255,255,0.1) !important;
}

/* Validation errors */
.wc-block-components-validation-error,
.wc-block-components-notice-banner.is-error,
.wc-block-components-form-error__message {
  color: #ff8c70 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  margin-top: 0.4rem !important;
}

.wc-block-components-notice-banner {
  background: rgba(255,214,10,0.1) !important;
  border: 1px solid rgba(255,214,10,0.3) !important;
  border-radius: 12px !important;
  color: var(--white) !important;
  padding: 1rem 1.25rem !important;
  margin-bottom: 1rem !important;
}

.wc-block-components-notice-banner.is-error {
  background: rgba(204,34,0,0.1) !important;
  border-color: rgba(204,34,0,0.3) !important;
}

.wc-block-components-notice-banner.is-success {
  background: rgba(26,107,58,0.15) !important;
  border-color: rgba(26,107,58,0.4) !important;
}

/* ------------------------------------------------------------
   MOBILE — collapse the cart/checkout two-column grid.
   Without these overrides the sidebar's explicit `grid-column: 2;
   grid-row: 1;` above forces it into a nonexistent column at
   narrow widths, causing the totals block to overlap the items
   block. Stack both in column 1 and drop the sticky. */
@media (max-width: 960px) {
  .wc-block-components-sidebar-layout.wc-block-cart,
  .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }

  .wc-block-cart__main,
  .wc-block-checkout__main,
  .wp-block-woocommerce-cart-items-block,
  .wp-block-woocommerce-checkout-fields-block {
    grid-column: 1 !important;
    grid-row: auto !important;
    padding: 1.25rem !important;
  }

  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar,
  .wp-block-woocommerce-cart-totals-block,
  .wp-block-woocommerce-checkout-totals-block {
    grid-column: 1 !important;
    grid-row: auto !important;
    position: static !important;
    top: auto !important;
    padding: 1.25rem !important;
  }

  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout,
  .wp-block-woocommerce-checkout.wc-block-checkout {
    padding: 2rem 1rem 3rem !important;
  }

  /* Cart item row — the fixed image + product + total columns
     overflow a narrow card (sum ~307px in a 222px interior).
     Shrink the thumbnail, let the row wrap so the line total
     drops to its own line under the product info. */
  .wc-block-cart-items__row,
  .wc-block-cart-items tr {
    display: grid !important;
    grid-template-columns: 56px 1fr !important;
    column-gap: 0.85rem !important;
    row-gap: 0.25rem !important;
    padding: 1rem 0 !important;
  }

  .wc-block-cart-items__row td,
  .wc-block-cart-items td {
    padding: 0 !important;
    border: none !important;
  }

  .wc-block-cart-items__row .wc-block-cart-item__image,
  .wc-block-cart-items .wc-block-cart-item__image {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 56px !important;
    min-width: 56px !important;
    padding-right: 0 !important;
  }

  .wc-block-cart-item__image img {
    max-width: 56px !important;
  }

  .wc-block-cart-items__row .wc-block-cart-item__product,
  .wc-block-cart-items .wc-block-cart-item__product {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding-right: 0 !important;
    min-width: 0 !important;
  }

  .wc-block-cart-items__row .wc-block-cart-item__total,
  .wc-block-cart-items .wc-block-cart-item__total {
    grid-column: 2 !important;
    grid-row: 2 !important;
    text-align: left !important;
    font-weight: 700 !important;
  }
}

/* ============================================================
   EMPTY CART — Gun Snacks redesign
   (Rendered by the render_block filter in functions.php)
   ============================================================ */
.gs-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4rem;
  padding: 2rem 0;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

/* Hero — centered headline + subcopy + CTA */
.gs-empty-cart__hero {
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(107,34,0,0.55);
  border: 1px solid rgba(255,214,10,0.1);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.gs-empty-cart__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,214,10,0.08) 2px, transparent 2px);
  background-size: 40px 40px;
  opacity: 0.6;
  pointer-events: none;
}

.gs-empty-cart__hero > * {
  position: relative;
  z-index: 1;
}

.gs-empty-cart__eyebrow {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--candy-yellow);
  margin-bottom: 0.75rem;
}

.gs-empty-cart__title {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(2rem, 5vw, 3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -1px !important;
  color: var(--white) !important;
  margin: 0 0 0.75rem !important;
}

.gs-empty-cart__sub {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* The generic .wp-block-woocommerce-cart a rule earlier in this file
   paints anchors yellow + underlined, which hides the pill text on
   the yellow background. Win with explicit color + no-underline here. */
.gs-empty-cart__btn,
.gs-empty-cart .gs-empty-cart__btn,
.wp-block-woocommerce-cart a.gs-empty-cart__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--candy-yellow) !important;
  color: var(--brown-dark) !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.95rem 2.25rem;
  border-radius: 100px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(255,214,10,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.gs-empty-cart__btn:hover,
.wp-block-woocommerce-cart a.gs-empty-cart__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,214,10,0.5);
  color: var(--brown-dark) !important;
  background: var(--candy-yellow) !important;
}

/* Same protection for the mini-card anchors (they inherit underlined
   yellow text from the cart link rule, which makes product names
   glow-underlined — not what we want). */
.gs-empty-cart a.gs-mini-card,
.wp-block-woocommerce-cart a.gs-mini-card {
  text-decoration: none !important;
  color: inherit !important;
}

/* Product recommendations — 3-col grid (2 tablet, 1 mobile) */
.gs-empty-cart__newinstore {
  padding: 0;
}

.gs-empty-cart__sectionhead {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 0.8rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--candy-yellow) !important;
  margin: 0 0 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(255,214,10,0.2) !important;
}

.gs-empty-cart__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .gs-empty-cart__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .gs-empty-cart__grid { grid-template-columns: 1fr; }
}

.gs-mini-card {
  display: flex;
  flex-direction: column;
  background: var(--brown-mid);
  border: 1px solid rgba(255,214,10,0.1);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gs-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,214,10,0.35);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}

.gs-mini-card__img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #5c1e00, #8b3a00);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gs-mini-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gs-mini-card__placeholder {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--candy-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.gs-mini-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gs-mini-card__name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.3;
}

.gs-mini-card:hover .gs-mini-card__name {
  color: var(--candy-yellow);
}

.gs-mini-card__price {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--candy-yellow);
}

.gs-mini-card__price del {
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin-right: 0.35rem;
}

/* Why Gun Snacks band — 3 pills at the bottom */
.gs-why-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,214,10,0.08);
  border-radius: 18px;
}

.gs-why-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: rgba(107,34,0,0.4);
  border: 1px solid rgba(255,214,10,0.1);
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  justify-content: center;
}

.gs-why-pill__icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .gs-why-band {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .gs-why-pill {
    justify-content: flex-start;
  }
}

/* Back-compat safety: if the filter doesn't fire for any reason,
   still make WC's default empty state not look broken. */
.wp-block-woocommerce-empty-cart-block:not(.gs-empty-cart) {
  text-align: center;
  padding: 4rem 2rem;
}
.wp-block-woocommerce-empty-cart-block:not(.gs-empty-cart) h2,
.wp-block-woocommerce-empty-cart-block:not(.gs-empty-cart) p {
  color: rgba(255,255,255,0.65) !important;
}

/* Address form grid */
.wc-block-components-address-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
}

.wc-block-components-address-form > * {
  grid-column: span 2;
}

.wc-block-components-address-form .wc-block-components-text-input--first-name,
.wc-block-components-address-form .wc-block-components-text-input--last-name,
.wc-block-components-address-form .wc-block-components-text-input--city,
.wc-block-components-address-form .wc-block-components-text-input--postcode,
.wc-block-components-address-form #billing-state,
.wc-block-components-address-form #shipping-state {
  grid-column: span 1;
}

/* Links */
.wc-block-cart a,
.wc-block-checkout a,
.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a {
  color: var(--candy-yellow);
  text-decoration: underline;
}

.wc-block-cart a:hover,
.wc-block-checkout a:hover {
  color: #ffe545;
}

/* Loading / skeleton states */
.wc-block-components-loading-mask::before {
  background: rgba(61,18,0,0.6) !important;
}

.wc-block-components-spinner {
  border-top-color: var(--candy-yellow) !important;
}

/* Responsive */
@media (max-width: 960px) {
  .wc-block-components-sidebar-layout.wc-block-cart,
  .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: 1fr !important;
  }

  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar,
  .wp-block-woocommerce-cart-totals-block,
  .wp-block-woocommerce-checkout-totals-block {
    position: static;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout {
    padding: 2rem 1rem 4rem;
  }

  .wc-block-cart__main,
  .wc-block-checkout__main {
    padding: 1.25rem;
  }

  .wc-block-components-address-form {
    grid-template-columns: 1fr !important;
  }

  .wc-block-components-address-form > * {
    grid-column: span 1;
  }
}

/* Keep the logo on a single line on narrow phones — it was wrapping to
   "GUN / SNACKS". Also shrink the right-side Shop Now so the bar fits. */
@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.15rem !important;
    white-space: nowrap;
  }
  .nav-logo .candy-dot {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
  }
  nav .nav-cta {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .nav-right { gap: 0.5rem; }
  nav { padding: 0 0.85rem !important; }
}

/* Aggressive mobile width recovery — at ≤480px the four nested paddings
   (policies-body → wp-block-woocommerce-checkout → __main → input) stack
   and strangle the form to ~207px usable. Flatten them. */
@media (max-width: 480px) {
  .policies-body:has(.wp-block-woocommerce-cart),
  .policies-body:has(.wp-block-woocommerce-checkout) {
    padding: 1rem 0.5rem 3rem !important;
  }

  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout,
  .wp-block-woocommerce-checkout.wc-block-checkout {
    padding: 1rem 0.5rem 2rem !important;
  }

  .wc-block-cart__main,
  .wc-block-checkout__main,
  .wp-block-woocommerce-cart-items-block,
  .wp-block-woocommerce-checkout-fields-block,
  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar,
  .wp-block-woocommerce-cart-totals-block,
  .wp-block-woocommerce-checkout-totals-block {
    padding: 1rem !important;
    border-radius: 16px;
  }

  /* Inputs: 16px font prevents iOS from zooming the viewport on focus;
     tighter horizontal padding gives more room for long values. */
  .wc-block-components-text-input input,
  .wc-block-components-text-input input[type="text"],
  .wc-block-components-text-input input[type="email"],
  .wc-block-components-text-input input[type="tel"],
  .wc-block-components-select select,
  .wc-block-components-textarea textarea,
  .wc-blocks-components-select__select,
  .wp-block-woocommerce-checkout input[type="text"],
  .wp-block-woocommerce-checkout input[type="email"],
  .wp-block-woocommerce-checkout input[type="tel"],
  .wp-block-woocommerce-checkout select,
  .wp-block-woocommerce-checkout textarea {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    font-size: 16px !important;
  }

  /* Radio cards (shipping + payment) — trim the outer padding and the
     label's clear-the-radio offset so the actual label fits the narrow card. */
  .wc-block-components-shipping-rates-control__package,
  .wc-block-components-radio-control__option {
    padding: 0.85rem 0.85rem 0.85rem 2.25rem !important;
  }

  .wc-block-components-radio-control__option-layout {
    padding-left: 0 !important;
  }

  .wc-block-components-radio-control__input {
    left: 0.85rem !important;
  }

  /* Credit card iframe needs breathing room vertically on mobile. */
  .wc-block-components-payment-method iframe,
  .wp-block-woocommerce-checkout-payment-block iframe {
    width: 100% !important;
    min-height: 300px;
  }

  .wc-block-components-payment-method,
  .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__option {
    padding: 0.85rem !important;
  }

  /* Authorize.net "inline card element" renders three inputs on one row:
     cardNumber (~85px), expiryDate (~55px), cvc (~30px) — unusable on
     375px phones. The plugin's styled-components wrappers enforce a
     fixed height that clips wrapped rows. Flatten both wrappers with
     `display: contents` so the inputs become direct flex children of
     the outer container, which we grow via flex-wrap. */
  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container > div,
  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container > div > div {
    display: contents !important;
  }

  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container input {
    flex: 0 1 auto;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
    font-size: 16px !important;
    height: 44px !important;
    padding: 0 0.75rem !important;
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    color: var(--white) !important;
    box-sizing: border-box !important;
  }

  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container input[name="cardNumber"] {
    flex-basis: 100% !important;
  }

  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container input[name="expiryDate"],
  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container input[name="cvc"] {
    flex-basis: calc(50% - 0.25rem) !important;
  }

  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container input::placeholder {
    color: rgba(255,255,255,0.4) !important;
  }

  /* Decorative placeholder card SVG sits inline before cardNumber —
     hide it so the stacked inputs don't fight for flex row space. */
  .wp-block-woocommerce-checkout .wc-block-authnet-gateway-container svg {
    display: none !important;
  }

  /* Heading scale: the default 2rem h2s are too tight next to 1rem gutters. */
  .wc-block-components-checkout-step__title,
  .wc-block-components-title {
    font-size: 1.25rem !important;
  }
}

/* ============================================================
   MY ACCOUNT — brand-styled login/register/account pages.
   WC ships no styles of its own for these by default; this gives
   them the same dark card + yellow CTA treatment as the rest of
   the site.
   ============================================================ */
.woocommerce-account {
  font-family: 'Nunito', sans-serif;
}

.woocommerce-account .u-columns,
.woocommerce-account .woocommerce {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  color: var(--white);
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
  display: block;
  width: 100%;
}

.woocommerce-account .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 720px) {
  .woocommerce-account .col2-set {
    grid-template-columns: 1fr;
  }
}

/* Login + register form cards */
.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword {
  background: rgba(107,34,0,0.55);
  border: 1px solid rgba(255,214,10,0.15);
  border-radius: 20px;
  padding: 2rem !important;
  color: var(--white);
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
}

/* Section headings ("Login", "Register") */
.woocommerce-account h2,
.woocommerce-account .woocommerce > h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 1.25rem;
  letter-spacing: 0.5px;
}

/* Form rows + labels */
.woocommerce-form-row,
.woocommerce-form__label {
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
}

.woocommerce-form-row label,
.woocommerce-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
}

/* Inputs */
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"],
.woocommerce-account input[type="number"],
.woocommerce-Input--text,
.woocommerce-Input {
  width: 100%;
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,214,10,0.2) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  transition: border-color 0.15s, background 0.15s;
}

.woocommerce-account input[type="text"]:focus,
.woocommerce-account input[type="email"]:focus,
.woocommerce-account input[type="password"]:focus,
.woocommerce-account input[type="tel"]:focus,
.woocommerce-account input[type="number"]:focus {
  outline: none;
  border-color: var(--candy-yellow) !important;
  background: rgba(0,0,0,0.4) !important;
}

/* Password row has a sibling eye-toggle button that WC renders
   empty (background-image comes from its own stylesheet which we
   dequeue). Position it over the input's right edge as a yellow
   affordance and draw an inline SVG so it's visible. */
.woocommerce-account .password-input {
  position: relative;
  display: block;
  width: 100%;
}

.woocommerce-account .password-input .show-password-input {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,214,10,0.75);
}

.woocommerce-account .password-input .show-password-input::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 12a5 5 0 110-10 5 5 0 010 10zm0-8a3 3 0 100 6 3 3 0 000-6z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 12a5 5 0 110-10 5 5 0 010 10zm0-8a3 3 0 100 6 3 3 0 000-6z'/></svg>") center/contain no-repeat;
}

.woocommerce-account .password-input .show-password-input:hover {
  color: var(--candy-yellow);
  background: rgba(255,214,10,0.1);
}

.woocommerce-account .password-input .show-password-input.display-password::before {
  /* eye-slash when password is visible */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M2 4.3L3.3 3l18 18-1.3 1.3-3.2-3.2A12 12 0 0112 19C5 19 1 12 1 12a18 18 0 014.3-5.2L2 4.3zM12 5c7 0 11 7 11 7a18 18 0 01-3.3 4.3l-2.8-2.8A5 5 0 0012 7a5 5 0 00-1.5.2L8.3 5a11 11 0 013.7-.6z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M2 4.3L3.3 3l18 18-1.3 1.3-3.2-3.2A12 12 0 0112 19C5 19 1 12 1 12a18 18 0 014.3-5.2L2 4.3zM12 5c7 0 11 7 11 7a18 18 0 01-3.3 4.3l-2.8-2.8A5 5 0 0012 7a5 5 0 00-1.5.2L8.3 5a11 11 0 013.7-.6z'/></svg>") center/contain no-repeat;
}

/* Make room inside the password input for the toggle */
.woocommerce-account .password-input input[type="password"],
.woocommerce-account .password-input input[type="text"] {
  padding-right: 2.75rem !important;
}

/* Remember-me checkbox row */
.woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin: 0.5rem 0 1.25rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}

.woocommerce-form__input-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--candy-yellow);
  margin: 0;
}

/* Submit button — matches site's yellow CTA */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce-Button,
.woocommerce-account button[type="submit"],
.woocommerce-account input[type="submit"] {
  background: var(--candy-yellow) !important;
  color: var(--brown-dark) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1.75rem !important;
  border: none !important;
  border-radius: 100px !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,214,10,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  text-transform: none;
  letter-spacing: 0.3px;
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover,
.woocommerce-Button:hover,
.woocommerce-account button[type="submit"]:hover,
.woocommerce-account input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,214,10,0.5);
}

/* Lost-password link */
.woocommerce-LostPassword,
.woocommerce-LostPassword a {
  display: block;
  margin-top: 1rem;
  color: var(--candy-yellow);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

/* Logged-in account pages: navigation + main content */
.woocommerce-MyAccount-navigation {
  background: rgba(107,34,0,0.55);
  border: 1px solid rgba(255,214,10,0.1);
  border-radius: 20px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
  border-bottom: 1px solid rgba(255,214,10,0.08);
}

.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s, background 0.15s;
  border-radius: 8px;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
  color: var(--candy-yellow);
  background: rgba(255,214,10,0.08);
  padding-left: 0.75rem;
}

.woocommerce-MyAccount-content {
  background: rgba(107,34,0,0.55);
  border: 1px solid rgba(255,214,10,0.1);
  border-radius: 20px;
  padding: 1.5rem;
}

.woocommerce-MyAccount-content a {
  color: var(--candy-yellow);
}

/* On desktop, make MyAccount dashboard two-col: nav + content */
@media (min-width: 721px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .woocommerce-MyAccount-navigation { margin-bottom: 0; }
}