/* ===========================
Basic eCommerce CSS
Clean, Modern & Responsive
=========================== */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* Navbar */
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar .logo {
  font-size: 22px;
  font-weight: bold;
  color: #0ABAB5;
}

.logo span {
  color: #8A2BE2;
}

/* Navbar links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin-left: auto; /* push links right */
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #007bff;
}

/* Cart button */
.nav-links li .btn,
.navbar .btn {
  background-color: #007bff;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.nav-links li .btn:hover,
.navbar .btn:hover {
  background-color: #0056b3;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #1a1a1a;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0ABAB5, #8A2BE2);
  color: #fff;
  padding: 4rem 0;
  border-radius: 0 0 80px 0;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #ffc107;
}

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

.hero .btn {
  background-color: #ffc107;
  color: #1a1a1a;
  padding: 0.75rem 2rem;
  font-weight: bold;
}

.hero .btn:hover {
  background-color: #e0a800;
}

/* Categories Section */
.categories h2,
.products h2,
.about h2,
.testimonials h2,
.newsletter h2,
.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Products Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  transition: 0.3s;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-card .btn {
  background-color: #28a745;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

.product-card .btn:hover {
  background-color: #218838;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  font-style: italic;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card h4 {
  margin-top: 1rem;
  text-align: right;
  font-weight: 600;
  font-style: normal;
}

/* About Section */
.about p {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

/* Newsletter */
.newsletter {
  text-align: center;
  background-color: #101b3e;
  color: #fff;
  padding: 3rem 1rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.newsletter input[type="email"] {
  padding: 0.75rem;
  width: 250px;
  max-width: 80%;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.newsletter button {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #ffc107;
  color: #1a1a1a;
  font-weight: bold;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: 0.3s;
}

.newsletter button:hover {
  background-color: #e0a800;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
}

.contact-form button {
  background-color: #007bff;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #1a1a1a;
  color: #fff;
  margin-top: 2rem;
}

.footer .social-links a {
  color: #ffc107;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer .social-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 200px;
    height: calc(100% - 70px);
    flex-direction: column;
    background-color: #fff;
    gap: 2rem;
    padding: 2rem 1rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    display: flex;
    list-style: none;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }

  .nav-links li .btn {
    margin-left: 0;
  }

  .nav-links.active {
    right: 0;
  }

  /* Hide original desktop links container if needed */
  .navbar .nav-links {
    margin-left: 0;
  }
}
