@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800;900&display=swap');

:root {
  /* Dark Mode Premium Palette */
  --bg-color: #0a0a0a;
  --surface-color: #1a1a1a;
  --surface-light: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #ff3333; /* Aggressive Red for BJJ */
  --accent-hover: #cc0000;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Typography Classes */
.h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; }
.h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.h3 { font-size: 1.5rem; font-weight: 600; }
.text-accent { color: var(--accent-color); }

/* Buttons */
.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 51, 51, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a, .dropbtn {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.nav-links a:hover, .nav-links a.active, .dropdown:hover .dropbtn {
  color: var(--text-primary);
}

/* Dropdown CSS */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--surface-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 1000;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--surface-light);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--surface-light);
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cart-btn {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.75rem;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Main content padding for navbar */
main {
  padding-top: 100px;
  min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
  margin-top: -80px; /* Reduced to match new navbar height */
  padding-top: 130px;
  height: 90vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.8)), url('../Assets/Hero Banner.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 20px;
  animation: fadeUp 1s ease-out;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  animation: fadeUp 1.2s ease-out;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  animation: fadeUp 1.4s ease-out;
}

/* Product Grid */
.products-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--surface-light);
  padding-bottom: 20px;
}

.filter-tabs {
  display: flex;
  gap: 20px;
}

.filter-btn {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-color);
}

/* Category Boxes (Home) */
.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.category-grid .product-card {
  width: 100%;
  max-width: 350px;
}

.category-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface-light);
}

/* Color Selectors */
.color-selectors {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.color-circle:hover {
  transform: scale(1.1);
}

.color-circle.active {
  border-color: var(--text-primary);
}

.bg-tan { background-color: #d2b48c; }
.bg-woodland { background-color: #4b5320; }


.category-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 0.5s ease;
}

.category-images img.active {
  opacity: 1;
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,1), transparent);
  text-align: center;
  z-index: 10;
}

.category-overlay h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--surface-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: var(--surface-light);
  overflow: hidden;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-price {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--surface-light);
  color: #fff;
  padding: 10px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
}

.add-to-cart-btn:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Promo Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.promo-modal {
  background: var(--surface-color);
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .promo-modal {
  transform: scale(1);
}

.promo-img {
  width: 100%;
  height: 250px;
  background-image: url('../Assets/Promo\\ Background.png');
  background-size: cover;
  background-position: top center;
}

.promo-content {
  padding: 30px;
  text-align: center;
}

.promo-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.promo-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.promo-input {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-color);
  border: 1px solid var(--surface-light);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  margin-bottom: 15px;
  outline: none;
}

.promo-input:focus {
  border-color: var(--accent-color);
}

/* Product Modal Styles */
.product-modal {
  background: var(--surface-color);
  width: 95%;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .product-modal {
    flex-direction: row;
  }
}

.modal-overlay.active .product-modal {
  transform: scale(1);
}

.product-modal-img {
  flex: 1;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.product-modal-img img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.product-modal-details {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--surface-color);
  z-index: 1501;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  border-left: 1px solid var(--glass-border);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--surface-light);
}

.close-cart {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.close-cart:hover {
  color: #fff;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-light);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  background: var(--surface-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  max-width: 90%;
  max-height: 90%;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.cart-item-price {
  color: var(--text-secondary);
}

.cart-item-remove {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-top: 10px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--surface-light);
  background: var(--bg-color);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.cart-discount {
  display: flex;
  justify-content: space-between;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 20px;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background: var(--surface-color);
  padding: 60px 5% 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--surface-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Forms & Dashboard */
.auth-container {
  max-width: 400px;
  margin: 80px auto;
  background: var(--surface-color);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg-color);
  border: 1px solid var(--surface-light);
  border-radius: 4px;
  color: #fff;
}

.form-group input:focus {
  border-color: var(--accent-color);
  outline: none;
}

.dashboard-header {
  margin-bottom: 30px;
}

.dashboard-card {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid var(--glass-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--surface-light);
}

.data-table th {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  text-transform: uppercase;
}
