* {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #111827 0%, #374151 50%, #000000 100%);
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  color: #f9fafb;
  padding-top: 80px; /* Add space for navigation header */
}

/* Navigation Header Styles */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-btn, .cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  text-decoration: none;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.cart-btn {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.back-btn:hover, .cart-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cart-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.cart-count {
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
}

.back-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.title-icon {
  font-size: 1.3rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-header {
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .page-title {
    font-size: 1rem;
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .back-btn, .cart-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .nav-right {
    gap: 10px;
  }
  
  body {
    padding-top: 100px;
  }
  
  #filterDiv {
    margin: 15px;
    padding: 15px;
    /* Override Tailwind grid for mobile */
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}


/* Ads Part */
#product-ads {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

#product-ads > div {
  flex: 1;
  min-width: 300px;
}

/* Left content styling */
#product-ads button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #007bff;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

#product-ads button img {
  width: 24px;
  height: 24px;
}

#product-ads h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #f9fafb;
}

#product-ads span {
  font-size: 1.2rem;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
}

#product-ads span img {
  width: 20px;
  height: 20px;
}

/* Right video styling */
#product-ads video {
  width: 150%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
#product-ads video:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Filter Part */
#filterDiv {
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Override Tailwind grid for better responsive design */
#filterDiv > div {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#filterDiv > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
  border-color: #3b82f6;
}

#filterDiv > div:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
}

#filterDiv > div img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 12px;
  transition: all 0.3s ease;
}

#filterDiv > div:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

#filterDiv > div p {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  line-height: 1.4;
}

/* Add to Cart buttons for service cards */
.add-to-cart-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

#filterDiv > div:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Footer */
#footer {
  margin: 20px;
  width: calc(100% - 40px);
}

/* Product List */
#product {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  justify-content: flex-start;
  align-items: stretch;
}

/* Card Styling */
#product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 20px;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Card Styling */
.seperate {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 450px;
  min-width: 400px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  margin: 0;
}

.seperate:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: #3b82f6;
}

/* Left Side Content */
.seperate > div:first-child {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.seperate h1 {
  font-size: 16px;
  margin: 5px 0 8px 0;
  color: #f1f5f9;
  font-weight: 600;
  line-height: 1.3;
}

.seperate h3 {
  font-size: 12px;
  color: #10b981;
  margin: 3px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seperate h3:nth-of-type(2) {
  font-size: 18px;
  color: #3b82f6;
  font-weight: 700;
  margin: 6px 0;
}

.seperate h4 {
  color: #fbbf24;
  font-weight: 600;
  margin: 4px 0;
  font-size: 12px;
  background: rgba(251, 191, 36, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
}

.seperate p {
  font-size: 11px;
  color: #cbd5e1;
  margin: 2px 0;
  line-height: 1.3;
}

.seperate p:first-of-type {
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seperate p:first-of-type::before {
  content: "⭐";
  font-size: 12px;
}

.seperate p:nth-of-type(2) {
  color: #a78bfa;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seperate p:nth-of-type(2)::before {
  content: "⏱️";
  font-size: 10px;
}

.seperate hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
  margin: 8px 0;
}

/* Right Side Image & Button */
.seperate > div:last-child {
  position: relative;
  text-align: center;
  flex: 0 0 160px;
  background: rgba(51, 65, 85, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.seperate img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  border: 2px solid rgba(148, 163, 184, 0.2);
}

.seperate img:hover {
  transform: scale(1.05);
  border-color: #3b82f6;
}

/* Cool Add Button Styling */
.add-btn {
  padding: 8px 16px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 120px;
}

.add-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Responsive (optional, for smaller screens) */
@media screen and (max-width: 768px) {
  #product {
    flex-direction: column;
    align-items: center;
  }
  
  .seperate {
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
  }

  .seperate > div:last-child {
    flex: 0 0 140px;
  }

  .seperate img {
    width: 100px;
    height: 100px;
  }
  
  .add-btn {
    max-width: 100px;
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .seperate > div:first-child {
    padding: 12px;
  }
  
  .seperate h1 {
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  #filterDiv {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .seperate {
    flex-direction: column;
    width: 100%;
    max-width: none;
  }
  
  .seperate > div:last-child {
    flex-direction: row;
    justify-content: space-around;
    padding: 15px;
    flex: none;
  }
  
  .seperate img {
    margin-bottom: 0;
    margin-right: 10px;
  }
}


/* Responsive Fix */
@media screen and (max-width: 768px) {
  #product-ads {
    grid-template-columns: 1fr;
    height: auto;
  }

  #footer {
    grid-template-columns: 1fr;
  }

  #filterDiv > div {
    grid-template-columns: repeat(2, 1fr);
  }
}
