/* =====================
   GLOBAL RESET & BASE
   ===================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background-color: #f9fafb;
  line-height: 1.6;
}

/* Center everything by default */
section,
header,
footer,
#gun {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Constrain content width */
section > *,
header > *,
footer > *,
#gun > * {
  width: 100%;
  max-width: 1200px;
}

/* Typography */
h1, h2, h3 {
  margin-top: 0;
  line-height: 1.2;
  text-align: center;
}

p {
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =====================
   HERO
   ===================== */

.hero {
  background: linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.55)
    ),
    url("/hero.jpg") center / cover no-repeat;
  color: #ffffff;
  padding: 100px 20px 90px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* =====================
   SECTIONS
   ===================== */

section {
  margin: 60px 0;
  padding: 0 20px;
}

.divider {
  width: 100%;
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0;
}

/* =====================
   CATALOG BUTTON
   ===================== */

.catalog-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  padding: 18px 30px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.3);
}

/* =====================
   INVENTORY GRID
   ===================== */

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  width: 100%;
}

/* =====================
   INVENTORY CARD
   ===================== */

.item-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 65px rgba(0,0,0,0.16);
}

.item-card.sold {
  opacity: 0.55;
}

/* =====================
   IMAGE
   ===================== */

.image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #e5e7eb;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================
   SOLD RIBBON
   ===================== */

.sold-ribbon {
  position: absolute;
  top: 14px;
  left: -10px;
  background: #b91c1c;
  color: #fff;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-5deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* =====================
   CARD TEXT
   ===================== */

.item-card h3 {
  font-size: 1.1rem;
  margin: 18px 16px 8px;
}

.item-card .price {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #111827;
}

/* =====================
   GUN DETAIL PAGE
   ===================== */

#gun {
  margin: 60px auto;
  padding: 0 20px;
}

#gun h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

#gun .price {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

#gun p {
  max-width: 700px;
}

/* =====================
   GALLERY
   ===================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 30px;
  width: 100%;
}

.gallery img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* =====================
   LIGHTBOX
   ===================== */

.lightbox {
  background: rgba(0,0,0,0.92);
}

/* =====================
   FOOTER
   ===================== */

footer {
  margin-top: 80px;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}



