@font-face {
  font-family: 'ArmyRust';
  src: url('fonts/ARMY RUST.ttf');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: Helvetica, Arial, sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.9;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 40px 80px;
}

/* ---- Meta bar ---- */
.meta-bar {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.meta-bar .left-group { display: flex; align-items: center; gap: 18px; }
.meta-bar .issue { color: #b7202a; }
.meta-bar nav { display: flex; gap: 40px; align-items: center; }
.meta-bar a { color: #1a1a1a; text-decoration: none; }
.meta-bar nav a.active { color: #b7202a; }
.monogram { font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.mono-r { font-size: 0.4em; vertical-align: sub; letter-spacing: 0; opacity: 0.75; }

/* ---- Nav wings ---- */
.nav-wings { display: inline-flex; align-items: center; }
.nav-wings img {
  height: 24px;
  width: auto;
  display: block;
  vertical-align: middle;
}
.nav-wings:hover img { opacity: 0.6; }

/* ---- Nav dropdown ---- */
.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #1a1a1a;
  min-width: 160px;
  z-index: 200;
  margin-top: 0;
  padding-top: 20px;
  padding-bottom: 14px;
}

.nav-dropdown:hover .dropdown-menu { display: flex; flex-direction: column; }

.dropdown-menu a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px 20px;
  font-weight: 500;
}

.dropdown-menu a:first-child {
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 6px;
  padding-bottom: 14px;
}

.dropdown-menu a:hover { color: #b7202a; }
.dropdown-menu a.active { color: #b7202a; }

/* ---- Bag ---- */
.bag-link { display: inline-flex; align-items: center; gap: 6px; }
.bag-count { font-size: 10px; font-weight: 700; color: #b7202a; letter-spacing: 0; }

/* ---- Footer note ---- */
.footer-note {
  margin-top: 90px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  display: flex;
  justify-content: space-between;
}

/* ---- Nav images ---- */
.home-nav-image {
  width: 18vw;
  max-width: 300px;
  min-width: 80px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  text-decoration: none;
}

.home-nav-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-nav-image.active img {
  outline: 2px solid #1a1a1a;
  outline-offset: 4px;
}

.home-logo {
  width: 8vw;
  max-width: 105px;
  min-width: 60px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
}

.home-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* MOBILE RESPONSIVENESS */
@media screen and (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

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

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

@media screen and (max-width: 768px) {
  /* Prevent page sections from exceeding screen width */
  section,
  main,
  .container,
  .product-container,
  .product-grid,
  .products-grid,
  .shop-grid {
    max-width: 100%;
  }

  /* Keep product grids within the screen */
  .product-grid,
  .products-grid,
  .shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  /* Keep form fields within the screen */
  input,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
  }

  /* Prevent oversized content from forcing horizontal scrolling */
  video,
  iframe {
    max-width: 100%;
  }
}

@media screen and (max-width: 380px) {
  .product-grid,
  .products-grid,
  .shop-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}