/* DefenseTech Marketplace - Tactical Elite Design System (OP Tactical Inspired) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-dark-header: #0d0d0d;
  --bg-tactical-olive: #7d8553;
  --bg-tactical-olive-dark: #686f43;
  --bg-accent-red: #c0392b;
  --bg-accent-red-hover: #a93226;
  
  --bg-body: #f4f5f7;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  
  --border-color: #e2e8f0;
  --border-dark: #262626;
  
  --text-main: #171717;
  --text-muted: #404040;
  --text-dim: #737373;
  --text-white: #ffffff;
  
  --badge-green: #15803d;
  --badge-green-bg: #dcfce7;
  --badge-yellow: #b45309;
  --badge-yellow-bg: #fef3c7;
  --badge-red: #b91c1c;
  --badge-red-bg: #fee2e2;

  --font-tactical: 'Oswald', sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.4;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tactical-olive);
  border-radius: 4px;
}

/* Header Architecture */
.top-utility-bar {
  background-color: var(--bg-dark-header);
  color: var(--text-white);
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.8rem;
  font-weight: 600;
}

.top-utility-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #a3a3a3;
}
.utility-socials a {
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.2s;
}
.utility-socials a:hover {
  color: var(--text-white);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-white);
  font-family: var(--font-tactical);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.utility-links a {
  color: var(--text-white);
  text-decoration: none;
}
.utility-links a:hover {
  color: var(--bg-tactical-olive);
}

/* Main Nav Bar (Olive) */
.main-nav-bar {
  background-color: var(--bg-tactical-olive);
  color: var(--text-white);
  padding: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.main-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-accent-btn {
  background-color: var(--bg-accent-red);
  color: var(--text-white);
  font-family: var(--font-tactical);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
  text-transform: uppercase;
}
.nav-accent-btn:hover {
  background-color: var(--bg-accent-red-hover);
}

.olive-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  font-family: var(--font-tactical);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.olive-nav-link {
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}
.olive-nav-link:hover, .olive-nav-link.active {
  background: rgba(0, 0, 0, 0.15);
}

/* Search Box */
.header-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border-radius: 6px;
  padding: 6px 14px;
  width: 380px;
  border: 1px solid rgba(0,0,0,0.1);
}
.header-search-box input {
  border: none;
  outline: none;
  width: 100%;
  padding-left: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Category Sub-Nav Bar (Dark) */
.category-subnav {
  background-color: var(--bg-dark-header);
  color: #e5e5e5;
  font-family: var(--font-tactical);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid #1a1a1a;
  overflow-x: auto;
}

.category-subnav-content {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 42px;
  white-space: nowrap;
}

.category-subnav-item {
  color: #d4d4d4;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.category-subnav-item:hover {
  color: var(--bg-tactical-olive);
}

/* HERO SLIDESHOW (OP Tactical Style) */
.hero-slideshow-container {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: #000000;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.slide-item.active {
  opacity: 1;
  z-index: 2;
}

.slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
}

.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 850px;
  padding: 0 20px;
}

.slide-title {
  font-family: var(--font-tactical);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.slide-subtitle {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e5e5e5;
  margin-bottom: 24px;
}

.slide-btn {
  display: inline-block;
  background-color: var(--bg-tactical-olive);
  color: var(--text-white);
  font-family: var(--font-tactical);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
  text-transform: uppercase;
}
.slide-btn:hover {
  background-color: var(--bg-tactical-olive-dark);
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: var(--bg-tactical-olive);
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.slideshow-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
}
.arrow-left { left: 0; }
.arrow-right { right: 0; }

/* Info Banner Strip */
.info-strip-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.info-item-title {
  font-family: var(--font-tactical);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
}
.info-item-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.announcement-bar {
  background: #0d0d0d;
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  font-family: var(--font-tactical);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* Product Section Titles */
.section-header-tactical {
  text-align: center;
  font-family: var(--font-tactical);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 2.5rem 0 1.5rem 0;
  position: relative;
}
.section-header-tactical::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--bg-tactical-olive);
  margin: 6px auto 0 auto;
}

/* Product Cards Carousel / Grid */
.product-card-tactical {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-tactical:hover {
  border-color: var(--bg-tactical-olive);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.product-img-box {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card-tactical:hover .product-img-box img {
  transform: scale(1.05);
}

.product-title-tactical {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  height: 36px;
  overflow: hidden;
}

/* Popular Brands Bar */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}
.brand-box {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 1.1rem;
  color: #262626;
  text-transform: uppercase;
}

/* Big Promo Banners */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}
.promo-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 4px;
}
.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.promo-card:hover img {
  transform: scale(1.04);
}
.promo-overlay {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
}
.promo-title {
  font-family: var(--font-tactical);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

/* Black Footer (OP Tactical Style) */
.footer-op-tactical {
  background-color: var(--bg-dark-header);
  color: #ffffff;
  padding: 3.5rem 0 1.5rem 0;
  border-top: 4px solid var(--bg-tactical-olive);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 2rem;
  font-size: 0.82rem;
}

.footer-col-title {
  font-family: var(--font-tactical);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--bg-tactical-olive);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: #ffffff;
  color: var(--text-main);
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Role Switcher in Utility Bar */
.role-select-tactical {
  background: #262626;
  color: var(--bg-tactical-olive);
  border: 1px solid #404040;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-tactical);
  font-size: 0.85rem;
  cursor: pointer;
}
