*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gd: #0D3E26;
  --gm: #145334;
  --gl: #1B6A43;
  --gp: #F1F9F4;
  --ac: #FAB818;
  --ach: #E09E0B;
  --wh: #ffffff;
  --ow: #FAFDFB;
  --td: #092617;
  --tm: #244C36;
  --tl: #527A63;
  --red: #FF4D4D;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--td);
  background: var(--ow);
}

a { text-decoration: none; color: inherit; }

/* ── ANNOUNCEMENT BAR ── */
.ann-bar {
  background: var(--ac);
  color: var(--gd);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── NAV ── */
nav {
  background: var(--gd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 100px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.logo-img-wrap { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nav-links { 
  display: flex; 
  gap: 24px; 
  list-style: none !important;  
  align-items: center; 
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #D1EBE0; font-size: 14px; font-weight: 600;
  transition: color .2s; padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--ac);
  transition: width .3s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--ac); }

/* ── DROPDOWN FIX ── */
.nav-dropdown { 
  position: relative !important; 
  display: flex;
  align-items: center;
  /* Promotes nav-dropdown (the actual containing block for
     .dropdown-menu below) to its own stable compositing layer. Without
     this, the browser has to recompute the absolutely-positioned
     dropdown's placement every scroll frame relative to a moving
     position:sticky ancestor (nav), which causes it to visibly
     detach/flicker near the top of the page mid-scroll before snapping
     back. Isolating it here fixes that at the source. */
  transform: translateZ(0);
  isolation: isolate;
}

.dropdown-menu {
  position: absolute !important;
  top: 35px !important; 
  left: -10px !important;
  background: var(--gd) !important;
  min-width: 220px !important;
  list-style: none !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
  border-radius: 8px !important;
  z-index: 9999 !important; 
  will-change: opacity, transform;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li { 
  width: 100%; 
  list-style: none !important; 
  margin: 0; 
  padding: 0; 
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 14px;
}

.dropdown-menu li a::after { 
  display: none !important; 
}

.dropdown-menu li a:hover { 
  background: var(--gm) !important; 
  color: var(--ac) !important; 
}

.nav-icons { display: flex; gap: 20px; align-items: center; }
.nav-icons a {
  color: #D1EBE0; font-size: 22px; position: relative;
  transition: color .2s, transform .25s ease;
  display: flex; align-items: center;
}
.nav-icons a:hover { color: var(--ac); transform: translateY(-2px) scale(1.1); }

.cbadge {
  position: absolute; top: -8px; right: -10px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800;
  width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: white; transition: .3s; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100px; left: 0; width: 100%;
    background: var(--gd); padding: 20px;
    border-top: 1px solid #1a5c26;
  }
  .nav-links.active { display: flex; }
  nav { padding: 0 20px; }
  
  /* Mobile Dropdown Fix */
  .dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-top: 10px !important;
    display: none;
  }
  .nav-dropdown:hover .dropdown-menu { display: block; }
}

/* ── HERO STRIP ── */
.cat-hero {
  background: linear-gradient(135deg, var(--gd) 0%, var(--gm) 55%, var(--gl) 100%);
  padding: 60px 40px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cat-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(250,184,24,.08) 0%, transparent 60%);
  pointer-events: none;
}

.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 18px;
  font-size: 13px; color: rgba(255,255,255,.55); font-weight: 600;
}
.breadcrumb a { color: var(--ac); }
.breadcrumb span { color: rgba(255,255,255,.35); }

.cat-hero h1 {
  font-size: 44px; font-weight: 900;
  color: #fff; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 14px;
  line-height: 1.2;
}
.cat-hero h1 em { color: var(--ac); font-style: normal; }

.cat-hero p {
  font-size: 16px; color: #BCE2CE;
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ── FILTER BAR ── */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid rgba(13,62,38,.08);
  padding: 18px 40px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-label { font-size: 13px; font-weight: 700; color: var(--tl); text-transform: uppercase; letter-spacing: .8px; }
.filter-chip {
  padding: 7px 18px; border-radius: 20px;
  border: 2px solid rgba(13,62,38,.15);
  background: transparent; color: var(--tm);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--gd); color: #fff; border-color: var(--gd);
}

/* ── CATEGORIES GRID ── */
.cats-section { padding: 60px 40px 80px; background: var(--ow); }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px; margin: 0 auto;
}

.cat-card {
  background: #fff;
  border: 1.5px solid rgba(13,62,38,.07);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 4px 16px rgba(0,0,0,.03);
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(13,62,38,.12);
  border-color: var(--gl);
}

/* Image area */
.cat-img-wrap {
  width: 100%; height: 230px;
  overflow: hidden; position: relative;
  background: var(--gp);
}
.cat-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.cat-card:hover .cat-img-wrap img { transform: scale(1.1); }

/* Gradient overlay on image */
.cat-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,38,23,.35) 0%, transparent 50%);
}

/* Badge */
.cat-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--ac); color: var(--gd);
  font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: .5px; text-transform: uppercase;
}
.cat-badge.new { background: #27ae60; color: #fff; }
.cat-badge.hot { background: var(--red); color: #fff; }

/* Info */
.cat-info {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.cat-info h3 {
  font-size: 20px; font-weight: 900; color: var(--gd);
}
.cat-info .cat-desc {
  font-size: 13.5px; color: var(--tl); line-height: 1.6;
}

.cat-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.cat-count {
  font-size: 12px; font-weight: 700;
  color: var(--tl); text-transform: uppercase; letter-spacing: .7px;
}
.cat-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gd); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.cat-card:hover .cat-arrow {
  background: var(--ac); color: var(--gd);
  transform: translateX(4px);
}

/* ── FOOTER ── */
footer { background: #062013; padding: 60px 40px 0; color: #A4C7B5; }
.ft-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 40px; margin-bottom: 40px;
}
.ft-brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ft-logo-img { width: 52px; height: 52px; border-radius: 50%; }
footer h5 { font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { font-size: 14px; color: #A4C7B5; transition: color .2s; }
footer ul li a:hover { color: var(--ac); }
.ft-brand p { font-size: 14px; line-height: 1.7; max-width: 250px; margin-top: 14px; }
.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.ft-bottom a { font-size: 13px; color: rgba(255,255,255,.3); }
.ft-tagline { font-size: 14px; font-weight: 700; color: #A4C7B5; font-style: italic; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.cat-hero h1, .cat-hero p { animation: fadeInUp .7s cubic-bezier(.16,1,.3,1) both; }
.cat-hero p { animation-delay: .1s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cats-grid, .ft-grid { grid-template-columns: 1fr; }
  .cat-hero { padding: 44px 20px 36px; }
  .cat-hero h1 { font-size: 30px; }
  .cats-section, footer { padding-left: 20px; padding-right: 20px; }
  .filter-bar { padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}