:root {
  --primary-color: #556B2F;
  --secondary-color: #ffffff;
  --accent-color: #8B4513;
  --text-color: #333333;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */

header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  background: #2d3d1a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Logo ── */
.header-logo {
  flex-shrink: 0;
  margin-right: auto;
}

.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 38px;
  width: auto;
}

/* ── Desktop nav ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  font-family: inherit;
}

.header-nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.header-nav-link--cta {
  background: #556B2F;
  color: #fff;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.2);
  margin-left: 4px;
}

.header-nav-link--cta:hover {
  background: #6a8539;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.header-nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ── Account area ── */
.header-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.header-account:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.header-account-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(10);
  opacity: 0.75;
}

.header-account:hover .header-account-icon { opacity: 1; }

.header-account-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Admin icon ── */
.header-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.header-admin-link:hover { background: rgba(255,255,255,0.1); }

.header-admin-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.65;
  transition: opacity 0.15s;
}

.header-admin-link:hover .header-admin-icon { opacity: 1; }

/* ── Basket button ── */
.header-basket-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.header-basket-button:hover { background: rgba(255,255,255,0.1); }

.header-basket-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(10);
  opacity: 0.8;
  display: block;
}

.header-basket-button:hover img { opacity: 1; }

.header-basket-count {
  display: none;
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 1;
  background: #6db53f;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  line-height: 15px;
  text-align: center;
  padding: 0 3px;
}

.header-basket-count.has-items { display: block; }

/* ── Hamburger ── */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.82);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  margin-left: auto;
  transition: background 0.15s;
  line-height: 1;
}

.hamburger-menu:hover { background: rgba(255,255,255,0.1); }

/* ── Test banner ── */
.test-banner {
  background: #d97706;
  color: #fff;
  text-align: center;
  padding: 7px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Mobile menu overlay ── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #1a2410;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.close-menu {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.close-menu:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.mobile-menu-overlay nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu-overlay nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.mobile-menu-overlay nav ul li a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.mobile-menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */

.site-footer {
  background: #1a2410;
  color: rgba(255,255,255,0.7);
  margin-top: 0;
  padding-top: 52px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-text {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

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

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6db53f;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 16px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
}

@media (max-width: 768px) {
  .header-nav  { display: none; }
  .header-logo img { height: 32px; }
  .header-inner { height: 54px; }
  .hamburger-menu { display: flex; }
}

@media (max-width: 500px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-inner { padding: 0 16px; }
}
