/* Inventory page */
body.inventory-page {
  margin: 0;
  color: #4b0d0d;
  min-height: 100vh;
  background-color: #ebe2d4;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 95% 60% at 50% -5%, rgba(255, 252, 246, 0.92) 0%, transparent 58%),
    radial-gradient(ellipse 80% 45% at 50% 102%, rgba(100, 58, 38, 0.08) 0%, transparent 52%),
    linear-gradient(175deg, #faf6ee 0%, #f4ece1 42%, #ebe2d4 78%, #e3d8c8 100%);
  background-size: 200px 200px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

body.inventory-page > * {
  position: relative;
  z-index: 1;
}

.inventory-page .footer {
  background: transparent !important;
  border-top: 1px solid rgba(75, 13, 13, 0.1);
}

.inventory-page .custom-nav,
.inventory-page .mobile-nav {
  background: transparent !important;
  box-shadow: none;
}

.inventory-page .custom-nav {
  padding: 8px 0;
}

.inventory-page .nav-inner {
  max-width: 1400px;
}

.inventory-page .nav-logo img {
  height: 110px !important;
  margin: 0 auto !important;
  display: block;
}

.inventory-page .custom-nav.shrink .nav-logo img {
  height: 80px !important;
}

.inventory-page .nav-links a {
  font-size: 1.55rem;
}

.inventory-page .page-spacer {
  height: 125px;
}

/* Page header + filters share centered content width */
.inv-page-header,
.inv-filters {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Page header */
.inv-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  width: 100%;
}

.inv-page-header p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: #6b3a2a;
  margin: 0;
  line-height: 1.5;
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.inventory-page .inv-page-header .inventory-title,
.inventory-page .inv-sold-header .inventory-title {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 3rem;
  font-weight: 700;
  color: #4b0d0d;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

/* Filter tabs */
.inv-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding-bottom: 2.5rem;
  width: 100%;
}

.inv-filter-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  border: 1.5px solid #8f100b;
  background: #fff;
  color: #8f100b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.inv-filter-btn:hover,
.inv-filter-btn.active {
  background: #8f100b;
  color: #fff;
}

/* Current inventory grid */
.inv-section {
  padding: 0 20px 3rem;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.inv-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.inv-empty-box {
  text-align: center;
  background: #fff;
  border: 1.5px solid rgba(143, 16, 11, 0.2);
  border-radius: 12px;
  padding: 2.75rem 2rem;
  box-shadow: 0 8px 32px rgba(75, 13, 13, 0.07);
}

.inv-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(143, 16, 11, 0.08);
  color: #8f100b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
}

.inv-empty-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #4b0d0d;
  margin: 0 0 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.inv-empty-message {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: #6b3a2a;
  line-height: 1.55;
  margin: 0 auto 1.75rem;
  max-width: 420px;
}

.inv-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.inv-empty-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  border: none;
  background: #8f100b;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.inv-empty-btn:hover {
  background: #a30000;
  transform: translateY(-1px);
}

.inv-empty-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  color: #8f100b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inv-empty-link:hover {
  color: #4b0d0d;
}

.inv-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(75, 13, 13, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.inv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(75, 13, 13, 0.14);
}

.inv-card.is-hidden {
  display: none;
}

.inv-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ddd0;
}

.inv-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.inv-slider img.active {
  opacity: 1;
}

.inv-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #8f2d2a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, color 0.2s ease;
}

.inv-fav.is-saved {
  color: #a30000;
  transform: scale(1.05);
}

.inv-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  color: #4b0d0d;
  font-size: 0.8rem;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.inv-slider .slider-btn.prev { left: 10px; }
.inv-slider .slider-btn.next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.slider-dot.active {
  background: #fff;
}

.inv-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.2rem;
  text-align: center;
}

.inv-card-title {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 1rem;
  font-weight: 700;
  color: #4b0d0d;
  margin: 0 0 0.45rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.inv-specs {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #8f422a;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.inv-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.65rem;
  flex: 1;
  text-align: left;
}

.inv-features li {
  font-family: 'Oswald', sans-serif;
  font-size: 0.74rem;
  color: #3a2a2a;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.inv-features li i {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: #8f100b;
  color: #fff;
  font-size: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inv-card-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(75, 13, 13, 0.12);
  margin-top: auto;
}

.inv-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #8f2d2a;
  white-space: nowrap;
}

.inv-price--pending {
  font-size: 1.15rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9a7b1a;
}

.inv-price--auction {
  font-size: 1.15rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8f2d2a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.inv-price--auction:hover {
  color: #4b0d0d;
  text-decoration: underline;
}

.inv-pending-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 5px 12px;
  background: #c9a227;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.inv-auction-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 5px 12px;
  background: #8f100b;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.inv-card--pending .inv-slider img {
  filter: saturate(0.85);
}

.inv-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.inv-btn-call {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid #8f100b;
  background: #fff;
  color: #8f100b;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.inv-btn-call:hover {
  background: #faf6f0;
  color: #8f100b;
  transform: translateY(-1px);
}

/* Pagination */
.inv-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 20px 3.5rem;
}

.inv-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1.5px solid rgba(75, 13, 13, 0.2);
  border-radius: 4px;
  background: #fff;
  color: #4b0d0d;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.inv-page-btn:hover,
.inv-page-btn.active {
  background: #8f100b;
  border-color: #8f100b;
  color: #fff;
}

.inv-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Sold inventory */
.inv-sold-section {
  padding: 0 20px 3.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.inv-sold-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.inv-sold-header .inventory-title {
  font-size: 2.25rem;
  margin: 0 0 0.55rem;
  display: block;
}

.inv-sold-header p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: #6b3a2a;
  margin: 0 auto;
  line-height: 1.5;
  max-width: 520px;
}

.inv-sold-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.inv-sold-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(75, 13, 13, 0.08);
}

.inv-sold-card.is-hidden {
  display: none;
}

.inv-sold-pagination {
  padding-bottom: 2rem;
}

.inv-sold-card .inv-sold-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.inv-sold-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inv-sold-card .sold-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  background: #8f2d2a;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 2;
}

.inv-sold-card-body {
  padding: 0.75rem 0.85rem 0.9rem;
  text-align: center;
}

.inv-sold-card-body h3 {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b0d0d;
  margin: 0 0 0.3rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.inv-sold-card-body p {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  color: #8f422a;
  margin: 0;
  line-height: 1.35;
}

/* CTA banner */
.inv-cta-wrap {
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.inv-cta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(75, 13, 13, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 1.5rem;
}

.inv-cta-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #8f100b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.inv-cta-text {
  flex: 1;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: #4b0d0d;
  line-height: 1.45;
  margin: 0;
}

.inv-cta-btn {
  flex-shrink: 0;
  font-family: 'Rocket Thunder', sans-serif;
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  background: #ffe08f;
  color: #8f100b;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.inv-cta-btn:hover {
  background: #ffd966;
  color: #8f100b;
  transform: translateY(-2px);
}

/* Nav active link */
.nav-links a.nav-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (max-width: 992px) {
  .inv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-sold-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inv-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }

  .inv-cta-text {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .inventory-page .inv-page-header .inventory-title {
    font-size: 2rem;
  }

  .inventory-page .inv-sold-header .inventory-title {
    font-size: 1.65rem;
  }

  .inv-grid {
    grid-template-columns: 1fr;
  }

  .inv-features {
    grid-template-columns: 1fr;
  }

  .inv-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .inv-actions {
    justify-content: center;
  }

  .inv-sold-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-page .nav-logo img {
    height: 90px !important;
  }

  .inventory-page .page-spacer {
    height: 108px;
  }
}
