/* ==================== VARIABLES ==================== */
:root {
  --red: #E31837;
  --red-dark: #B81230;
  --red-light: #FF2D4B;
  --red-glow: rgba(227, 24, 55, 0.4);
  --black: #0A0A0A;
  --black-light: #141414;
  --black-card: #1A1A1A;
  --black-border: #2A2A2A;
  --gray: #888;
  --gray-light: #AAA;
  --white: #FFFFFF;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--red); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 4px; border: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 8px 30px var(--red-glow); }
.btn-full { width: 100%; justify-content: center; }

/* ==================== NAVBAR ==================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  letter-spacing: 3px;
  display: flex; align-items: center; gap: 8px;
}
.shop-header-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.cart-btn {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--red); color: var(--red); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--red);
  color: var(--white);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
}
.nav-right-mobile { display: none; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; padding: 5px;
}
.nav-toggle span {
  width: 25px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ==================== SHOP HEADER ==================== */
.shop-header {
  padding: 120px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--black) 0%, #1a0000 100%);
  border-bottom: 1px solid var(--black-border);
}
.shop-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.shop-header p {
  color: var(--gray);
  font-size: 16px;
  letter-spacing: 2px;
}

/* ==================== FILTERS ==================== */
.shop-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 40px 0 30px;
  flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 10px 24px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--gray-light);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.filter-search {
  position: relative;
  flex-shrink: 0;
}
.filter-search i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}
.filter-search input {
  padding: 10px 16px 10px 40px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  width: 250px;
  transition: border-color 0.3s;
}
.filter-search input:focus { border-color: var(--red); }
.filter-search input::placeholder { color: var(--gray); }

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.product-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.5s ease both;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.product-card:hover .product-card-image img { transform: scale(1.1); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}
.product-card-body { padding: 20px; }
.product-card-category {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.product-card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.product-card-price {
  display: flex; align-items: center; gap: 10px;
}
.product-card-price .current {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
}
.product-card-price .old {
  font-size: 15px;
  color: var(--gray);
  text-decoration: line-through;
}
.no-products {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray);
}
.no-products i { font-size: 48px; margin-bottom: 16px; }
.no-products p { font-size: 18px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== PRODUCT MODAL ==================== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  padding: 20px;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 15px; right: 20px;
  background: none; color: var(--white);
  font-size: 32px; z-index: 10;
  transition: color 0.3s;
}
.modal-close:hover { color: var(--red); }
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.modal-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.modal-info {
  padding: 40px 30px;
}
.modal-category {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
}
.modal-info h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 8px 0 16px;
  line-height: 1.2;
}
.modal-price {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.modal-price .current {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
}
.modal-price .old {
  font-size: 18px;
  color: var(--gray);
  text-decoration: line-through;
}
.modal-description {
  color: var(--gray-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal-options {
  margin-bottom: 20px;
}
.modal-options label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--gray-light);
}
.option-group { display: flex; gap: 8px; flex-wrap: wrap; }
.option-btn {
  padding: 8px 18px;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 4px;
  color: var(--gray-light);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1px;
  transition: var(--transition);
}
.option-btn:hover, .option-btn.selected {
  border-color: var(--red);
  color: var(--white);
  background: rgba(227, 24, 55, 0.2);
}
.modal-quantity {
  margin-bottom: 24px;
}
.modal-quantity label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--gray-light);
}
.qty-control {
  display: flex;
  width: fit-content;
}
.qty-control button {
  width: 40px; height: 40px;
  background: var(--black);
  border: 1px solid var(--black-border);
  color: var(--white);
  font-size: 18px;
  transition: var(--transition);
}
.qty-control button:hover { border-color: var(--red); color: var(--red); }
.qty-control button:first-child { border-radius: 4px 0 0 4px; }
.qty-control button:last-child { border-radius: 0 4px 4px 0; }
.qty-control input {
  width: 60px; height: 40px;
  text-align: center;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-left: none; border-right: none;
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-heading);
}
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-add-cart {
  margin-bottom: 16px;
  font-size: 15px;
  padding: 16px;
}
.modal-stock {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}
.modal-stock.low { color: #e74c3c; }

/* ==================== CART SIDEBAR ==================== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: -420px;
  width: 400px; max-width: 90vw;
  height: 100vh;
  background: var(--black-light);
  border-left: 1px solid var(--black-border);
  z-index: 1600;
  display: flex; flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--black-border);
}
.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 3px;
}
.cart-close {
  background: none; color: var(--white);
  font-size: 28px;
}
.cart-items {
  flex: 1; overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex; gap: 14px;
  padding: 14px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
  animation: fadeInUp 0.3s ease;
}
.cart-item-image {
  width: 70px; height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.cart-item-details {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 6px;
}
.cart-item-price {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--red);
  font-weight: 600;
}
.cart-item-qty {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.cart-item-qty button {
  width: 26px; height: 26px;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty span {
  font-family: var(--font-heading);
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}
.cart-item-remove {
  position: absolute; top: 10px; right: 10px;
  background: none; color: var(--gray);
  font-size: 16px;
  transition: color 0.3s;
}
.cart-item-remove:hover { color: var(--red); }
.cart-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gray);
  gap: 12px;
}
.cart-empty i { font-size: 48px; }
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--black-border);
}
.cart-total {
  display: flex; justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.cart-total span:last-child { color: var(--red); }

/* ==================== CHECKOUT ==================== */
.checkout-content {
  max-width: 600px;
  padding: 40px;
}
.checkout-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 3px;
  margin-bottom: 30px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gray-light);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 6px;
  color: var(--white);
  font-size: 15px;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; }
.checkout-summary {
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}
.checkout-summary h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--gray-light);
}
.checkout-summary-item {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-light);
  border-bottom: 1px solid var(--black-border);
}
.checkout-total {
  display: flex; justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 2px;
  padding-top: 12px;
  margin-top: 8px;
}
.checkout-total span:last-child { color: var(--red); }

/* ==================== SUCCESS ==================== */
.success-content {
  max-width: 450px;
  padding: 60px 40px;
  text-align: center;
}
.success-icon {
  font-size: 64px;
  color: #27ae60;
  margin-bottom: 20px;
}
.success-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.success-content p {
  color: var(--gray-light);
  margin-bottom: 8px;
}
.success-content .btn { margin-top: 24px; }

/* ==================== FOOTER ==================== */
footer {
  background: var(--black);
  border-top: 1px solid var(--black-border);
  padding: 20px 0;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right-mobile { display: flex; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-image { aspect-ratio: 4/3; }
  .form-row { grid-template-columns: 1fr; }
  .shop-filters { flex-direction: column; align-items: stretch; }
  .filter-search input { width: 100%; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .checkout-content { padding: 30px 20px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card-body { padding: 12px; }
  .product-card-name { font-size: 14px; }
  .product-card-price .current { font-size: 18px; }
}
