/* DEFAULT THEME (ARMY / FALLBACK) */
.cat-section {
  --accent: rgb(70, 120, 95);         /* green edge */
  --glow:   rgba(70,120,95,0.35);     /* border glow */
  --shadow: rgba(0,0,0,0.42);         /* core shadow */
}
/* NAVY */
.navy-section {
  --accent: #1b3a63;
  --glow: rgba(27,58,99,0.40);
}

/* MARINES */
.marines-section {
  --accent: #8b1a1a;
  --glow: rgba(139,26,26,0.42);
}

/* AIR FORCE */
.airforce-section {
  --accent: #607d8b;
  --glow: rgba(96,125,139,0.42);
}

/* COAST GUARD */
.uscg-section {
  --accent: #c5152a;
  --glow: rgba(197,21,42,0.45);
}


.category-page {
  background: #f9fbfd;
  padding-bottom: 3rem;
}

.category-section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}


.category-hero p {
  opacity: .92;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--accent);
  opacity: 0.85;
}

/* Landing-page hero size (between homepage and small category heroes) */
.hero-mid .hero-inner {
  padding: 3.0rem 1.2rem;
  max-width: 980px;
}

@media (max-width: 768px) {
  .hero-mid .hero-inner {
    padding: 2.2rem 1rem;
  }
}

/* Center gateway cards on Blanks & Accessories hub */
/* Center gateway cards on Blanks & Accessories page */
/* Centered gateway cards (Blanks / Chains / Silencers) */
#top-gateways .why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 320px));
  justify-content: center;
  gap: 1.6rem;
}

@media (max-width: 900px) {
  #top-gateways .why-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 600px) {
  #top-gateways .why-grid {
    grid-template-columns: 1fr;
  }
}



/* HERO ACCENT LINE - FORCE ENABLE */
.category-hero h1::after,
.category-hero h2::after,
.collection-hero h1::after,
.collection-hero h2::after {
  content: "";
  display: block;
  width: 85px;
  height: 2px;
  margin: 0.6rem auto 0;
  background: var(--accent);
  opacity: 0.85;
}

/* QUICK NAV */
.cat-quick-nav {
  position: sticky;
  top: 5px;          /* sits below header */
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;

  background: rgba(255,255,255,0.95);
  border-top: 1px solid #d0d6e2;
  border-bottom: 1px solid #d0d6e2;

  padding: 0.4rem 0.7rem;    /* MUCH LESS HEIGHT */
  min-height: 0;            /* no forced height */
}

/* LINKS */
.cat-quick-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  text-transform: uppercase;

  color: #0d1f35 !important;     /* DEEP NAVY */
  text-decoration: none;

  padding: 0.4rem 0.75rem;   /* MUCH THINNER */
  border-radius: 999px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.07em;
  
   max-width: 100%;
  white-space: nowrap;

  transition: background 0.15s ease, color 0.15s ease;
}
.cat-quick-nav a:hover {
  background: rgba(197,21,42,0.1);
}

/* HOVER / ACTIVE */
.cat-quick-nav a:hover,
.cat-quick-nav a:focus,
.cat-quick-nav a.active {
  background: #0d1f35 !important;
  color: #ffffff !important;
}


/* FEATURED */
.cat-featured {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.cat-featured h2 {
  color: #1b3a63;
}

.cat-intro {
  color: #6a7385;
  margin-bottom: 2rem;
}

/* SECTIONS */
.cat-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.steel-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.09);
}

/* HEADERS */
.section-header h2 {
  color: #1b3a63;
}

.section-header p {
  color: #445;
  max-width: 700px;
  line-height: 1.55;
}

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.35rem;
  margin-top: 2rem;

  max-width: 960px;     /* 🔑 key line */
  margin-left: auto;
  margin-right: auto;

  content-visibility: auto;
}



.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  }
  
  /* =========================================
   FEATURED PRODUCT CARDS — PREMIUM POLISH
   ========================================= */

.featured-card {
  position: relative;
  padding: 1.3rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(
    160deg,
    rgba(40,50,60,0.65),
    rgba(20,25,32,0.85)
  );
  
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 14px 28px rgba(0,0,0,0.45);
}

.featured-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Subtle glow edge using existing theme color */
.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 1px var(--glow);
}

/* Label */
/* FEATURED BADGE — REFINED */
.featured-card::after {
  content: "FEATURED";
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;

  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  padding: 0.28em 0.6em;
  border-radius: 999px;

  color: #ffffff;

  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65),
    rgba(20,20,20,0.85)
  );

  box-shadow:
    0 2px 6px rgba(0,0,0,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 2px var(--glow);

  pointer-events: none;
}

/* Slight lift difference vs regular cards */
.featured-card:hover {
  transform: translateY(-4px) scale(1.01);
}


/* CARDS */
.product-card {
  background: #fff;
  border-radius: 14px;              /* soft, premium corner */
  overflow: hidden;                 /* clips image to radius */
  background: #fff;                 /* ensure clean edge */
  padding: 1.15rem 1rem 1.35rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: transform .35s ease, opacity .35s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;    /* center image + text horizontally */
  text-align: center;     /* center headings and text */
  opacity: 1;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
	}

.product-card .product-title {
  color: #1a3456;          /* your brand navy */
  font-weight: 700;        /* stronger than body copy */
}

.product-card .product-cta {
  margin-top: auto;
  padding-top: 0.75rem;
}


.product-desc {
  margin-bottom: 0.85rem;
}



/* Animated-in state for newly revealed cards */
.product-card.enter {
  animation: cardEnter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}


@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(2px) scale(.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-card.hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
}


.product-card:hover {
  transform: translateY(-3px);   /* less lift = heavier feel */

  box-shadow:
     0 18px 30px var(--shadow),
     0 30px 60px rgba(0,0,0,0.25),
     0 0 0 2px var(--glow);
}


.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: .75rem;
  border-radius: 10px;              /* inner rounding */
  transition: transform .25s ease;
}

.product-card img:hover {
  transform: scale(1.03);
}

.product-card h3 {
  font-family: 'Cinzel', serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0.75rem 0 0;
  color: #f2f4f8;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}

.product-card .material-badge {
  margin-top: 0.5rem;
  display: inline-block;
}

/* BADGE */
.material-badge {
  display: inline-block;
  letter-spacing: 0.05em;
  margin-top: 0.55rem;
  padding: 0.22rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--glow);
  border-radius: 999px;
}

/* ================================
   LOAD MORE BUTTON — PREMIUM STYLE
   ================================ */

.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem auto 4rem;
}

.pagination{
  display: flex;
  justify-content: center;
  margin: 3.2rem auto 4rem;
}

/* Button base */
.page-btn{
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  background:
    linear-gradient(135deg,
      rgba(20,40,70,0.95),
      rgba(12,25,45,0.95)
    );

  cursor: pointer;

  box-shadow:
    0 8px 16px rgba(0,0,0,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

/* Hover */
.page-btn:hover{
  transform: translateY(-2px);
  background:
    linear-gradient(135deg,
      rgba(32,60,100,0.95),
      rgba(18,36,65,0.95)
    );

  box-shadow:
    0 14px 26px rgba(0,0,0,0.50),
    0 0 0 1px var(--glow),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

/* Click */
.page-btn:active{
  transform: translateY(1px);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

/* Keyboard focus */
.page-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px var(--glow),
    0 8px 18px rgba(0,0,0,0.40);
}

/* Disabled state (optional future-proof) */
.page-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Fade animation for button count */
.page-btn.fade {
  opacity: 0.25;
  transition: opacity 0.35s ease;   /* slower + visible */
}

.page-btn .count {
  font-size: 0.78em;
  opacity: 1.0;
  letter-spacing: 0.05em;
  margin-left: 0.35rem;
  font-weight: 500;
}

/* CTA */
.cat-cta {
  background: linear-gradient(90deg, #1b3a63 0%, #162945 100%);
  color: #fff;
  margin-top: 4rem;
  padding: 3rem 1rem;
  text-align: center;
}

.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-btn {
  background: #c5152a;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 24px;
}

.cta-btn.secondary {
  background: rgba(255,255,255,0.15);
}

/* =========================================
   MOBILE LANDSCAPE FIX – GRID STABILITY
   ========================================= */
@media screen and (max-width: 900px) and (orientation: landscape) {

  /* FEATURED: 2 cards per row in landscape */
  .featured-grid {
    display: grid; /* just in case */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
  }

  /* MAIN GRID: 2 cards per row in landscape */
  .product-grid {
    display: grid; /* reinforce */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
	contain: layout paint;
  }
}

@media (max-width: 600px) {
  .product-grid {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .product-card {
    padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  .product-card h3 {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}

@media (max-width: 600px) {
  .product-card .material-badge {
    margin-top: 0.65rem;
  }
}

@media (max-width: 600px) {
  .page-btn {
    padding: 1rem 2.2rem;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .featured-card::after {
    top: 0.5rem;
    right: 0.55rem;
    font-size: 0.58rem;
  }
}


@media (max-width: 700px){
  body .category-section .product-grid{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .category-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

