/* ==========================================================================
   1. Theme Configuration
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #ff9800;
  --secondary-color: #ff7600;
  --dark-bg: #111;
  --darker-bg: #000;
  --light-text: #fff;
  --gray-text: #ccc;
  --card-bg: #1e1e1e;
  --card-hover: #2e2e2e;

  /* Transitions */
  --transition-fast: 0.3s;
  --transition-normal: 0.4s;
  --transition-slow: 0.5s;
  
  /* Shadows */
  --shadow-small: 0 5px 15px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 8px 20px rgba(255, 152, 0, 0.3);
  --shadow-large: 0 30px 40px rgba(0, 0, 0, 0.4);
  
  /* Border Radius */
  --radius-small: 3px;
  --radius-medium: 30px;
  --radius-large: 50px;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('landing.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 152, 0, 0.2), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 30px;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.4rem;
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   3. Section Title
   ========================================================================== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--gray-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 20px auto;
  border-radius: 2px;
}

/* ==========================================================================
   4. Filter Buttons
   ========================================================================== */
.filters {
  margin: 40px 0;
  text-align: center;
  position: relative;
  padding: 20px 0;
}

.filters::before,
.filters::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.filters::before {
  top: 0;
}

.filters::after {
  bottom: 0;
}

.filter-btn {
  background: rgba(255, 152, 0, 0.1);
  border: 2px solid transparent;
  color: var(--light-text);
  padding: 15px 30px;
  margin: 0 8px 10px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  opacity: 1;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 152, 0, 0.3);
  border-color: transparent;
}

.filter-btn:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   5. Products Section
   ========================================================================== */
.products-section {
  padding: 60px 0;
  background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
  position: relative;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 152, 0, 0.1), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   6. Product Grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   7. Product Card
   ========================================================================== */
.product-card {
  background: linear-gradient(165deg, var(--card-bg) 0%, var(--darker-bg) 100%);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 152, 0, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 152, 0, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.product-card:hover::before {
  transform: translateX(100%);
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 152, 0, 0.3);
}

/* Product Image */
.product-image {
  position: relative;
  overflow: hidden;
  height: 300px;
  background: var(--darker-bg);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.2) rotate(-3deg);
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .overlay {
  opacity: 1;
}

/* Quick View Button */
.quick-view {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateY(30px);
  opacity: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-card:hover .quick-view {
  transform: translateY(0);
  opacity: 1;
}

.quick-view:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Product Info */
.product-info {
  padding: 30px;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

.product-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.product-info h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--light-text);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 25px;
  display: block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Add to Cart Button */
.add-to-cart {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.add-to-cart:hover::before {
  opacity: 1;
}

.add-to-cart span {
  position: relative;
  z-index: 1;
}

.add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

.add-to-cart:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   8. Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .product-image {
    height: 240px;
  }
  
  .filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
