/* ====================================
   ROOT VARIABLES
   ==================================== */
:root {
  --primary-color: #00ff88;
  --secondary-color: #ff0066;
  --dark-bg: #0a0a0a;
  --dark-secondary: #151515;
  --dark-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --transition-speed: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
  font-family: "Molot";
  src: url(../fonts/molot/Molot.otf) format("opentype");
}
/* ====================================
   GLOBAL STYLES
   ==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 80px 0;
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all var(--transition-speed);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-text {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 2px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 136, 0.03) 2px,
    rgba(0, 255, 136, 0.03) 4px
  );
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(40px);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    var(--dark-bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  *animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
  }
  to {
    filter: drop-shadow(0 0 40px rgba(255, 0, 102, 0.3));
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ====================================
   SECTION HEADERS
   ==================================== */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* ====================================
   PRODUCT CARDS
   ==================================== */
.product-card {
  background: var(--dark-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-speed) var(--transition-timing);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:not(.no-flip):hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--dark-tertiary);
  aspect-ratio: 3/4;
}

.product-image {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--transition-timing);
}

.product-card:not(.no-flip):hover.product-image {
  transform: rotateY(180deg);
}

.img-front,
.img-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.img-back {
  transform: rotateY(180deg);
}

.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-badges .badge {
  font-size: 0.75rem;
  padding: 6px 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition-speed);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.btn-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-action:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-category {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ====================================
   CATEGORY CARDS
   ==================================== */
.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--transition-speed);
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-timing);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition-speed);
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(0, 255, 136, 0.2), transparent);
}

.category-overlay h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #00cc70);
  border: none;
  color: var(--dark-bg);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
  background: linear-gradient(135deg, #00ff88, #00ff88);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all var(--transition-speed);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

/* ====================================
   NEWSLETTER
   ==================================== */
.newsletter-form .input-group {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form .form-control {
  background: var(--dark-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 15px 20px;
  border-radius: 50px 0 0 50px;
}

.newsletter-form .form-control:focus {
  background: var(--dark-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: none;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 15px 30px;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--dark-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: var(--border-color);
  margin: 2rem 0;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ====================================
   DARK SECONDARY SECTION
   ==================================== */
.bg-dark-secondary {
  background-color: var(--dark-secondary);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-section {
    height: 70vh;
    min-height: 500px;
  }

  .product-actions {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 40px 0;
  }

  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .navbar-collapse {
    background: var(--dark-secondary);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
  }

  .nav-link {
    padding: 0.5rem 0;
  }

  .category-card {
    aspect-ratio: 4/3;
  }
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ====================================
   PAGE HEADER
   ==================================== */
.page-header {
  padding: 80px 0 60px;
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--dark-secondary) 100%
  );
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* ====================================
   SEARCH BAR
   ==================================== */
.search-bar .input-group-text {
  background: var(--dark-secondary);
  border: 1px solid var(--border-color);
  border-right: none;
  color: var(--text-secondary);
  padding: 12px 15px;
}

.search-bar .form-control {
  background: var(--dark-secondary);
  border: 1px solid var(--border-color);
  border-left: none;
  color: var(--text-primary);
  padding: 12px 15px;
}

.search-bar .form-control:focus {
  background: var(--dark-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: none;
}

/* ====================================
   FILTER BUTTONS
   ==================================== */
.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-buttons .btn {
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.filter-buttons .btn.active {
  background: var(--primary-color);
  color: var(--dark-bg);
  border-color: var(--primary-color);
}

/* ====================================
   FORM STYLES
   ==================================== */
.form-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
  background: var(--dark-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.1);
}

.form-select {
  cursor: pointer;
}

.invalid-feedback {
  color: var(--secondary-color);
}

/* ====================================
   ACCORDION STYLES
   ==================================== */
.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--border-color);
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.text-primary-color {
  color: var(--primary-color);
}

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

.bg-gradient {
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
}
