/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: #121212;
  color: #eee;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
  color: #1db954;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  color: #17a347;
  outline: none;
  text-decoration: underline;
}

/* Buttons */
button,
.home-button,
.whatsapp-button {
  background-color: #1db954;
  border: none;
  color: white;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
  user-select: none;
}
button:hover,
.home-button:hover,
.whatsapp-button:hover {
  background-color: #17a347;
  box-shadow: 0 6px 12px rgba(23, 163, 71, 0.5);
}
button:focus-visible,
.home-button:focus-visible,
.whatsapp-button:focus-visible {
  outline: 3px solid #17a347;
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
.home-button:focus:not(:focus-visible),
.whatsapp-button:focus:not(:focus-visible) {
  outline: none;
}
button:active,
.home-button:active,
.whatsapp-button:active {
  transform: scale(0.96);
}

/* Menu Toggle */
.menu-toggle {
  font-size: 1.6rem;
  width: 100%;
  padding: 15px;
  background-color: #1db954;
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 3px 10px rgba(29, 185, 84, 0.7);
  transition: background-color 0.3s ease;
}
.menu-toggle:hover,
.menu-toggle:focus {
  background-color: #17a347;
  outline: none;
}

/* Side Menu */
.side-menu {
  background-color: #1e1e1e;
  width: 250px;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 2rem 1.5rem;
  box-shadow: 3px 0 15px rgba(0,0,0,0.8);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow-y: auto;
}
.side-menu.open {
  transform: translateX(0);
}
.side-menu ul {
  list-style: none;
}
.side-menu li {
  margin-bottom: 1.5rem;
}
.side-menu a {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1db954;
  padding: 10px 0;
  border-bottom: 1px solid rgba(29, 185, 84, 0.2);
  transition: color 0.3s ease;
}
.side-menu a:hover,
.side-menu a:focus {
  color: #17a347;
  outline: none;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #eee;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-btn:hover,
.close-btn:focus {
  color: #1db954;
  outline: none;
}

/* Scrollbar for Side Menu */
.side-menu::-webkit-scrollbar {
  width: 8px;
}
.side-menu::-webkit-scrollbar-track {
  background: #1e1e1e;
}
.side-menu::-webkit-scrollbar-thumb {
  background-color: #1db954;
  border-radius: 4px;
}

/* Banner */
.banner-container {
  background: linear-gradient(135deg, #181818, #242424);
  text-align: center;
  padding: 1rem 0;
  box-shadow: inset 0 -5px 10px rgba(29,185,84,0.3);
}
.banner-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

/* Header */
header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 8px #1db954;
}
header p {
  font-size: 1.25rem;
  font-weight: 400;
  color: #a3a3a3;
  margin-bottom: 1rem;
}

/* Search */
.search-bar-container {
  text-align: center;
  margin-bottom: 2rem;
}
.search-form {
  display: inline-flex;
  max-width: 450px;
  width: 90%;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(29,185,84,0.25);
}
.search-input {
  flex-grow: 1;
  padding: 14px 20px;
  border: none;
  font-size: 1rem;
  background: #1e1e1e;
  color: #eee;
  transition: background-color 0.3s ease;
}
.search-input::placeholder {
  color: #888;
}
.search-input:focus {
  background-color: #292929;
  outline: none;
}
.search-button {
  padding: 0 25px;
  border: none;
  background-color: #1db954;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.search-button:hover,
.search-button:focus {
  background-color: #17a347;
  outline: none;
}

/* Category Filter */
#categoryFilter {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 30px;
  border: 2px solid #1db954;
  background: transparent;
  color: #eee;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
#categoryFilter:hover,
#categoryFilter:focus {
  border-color: #17a347;
  outline: none;
  color: #1db954;
}

/* Products Section */
.products {
  padding: 0 1rem 3rem;
}
.products h2 {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1db954;
  text-shadow: 0 0 6px #1db954aa;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background-color: #222222;
  border-radius: 15px;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: #eee;
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  user-select: none;
  align-items: center;

  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.6s forwards ease-out;
  animation-delay: 0.15s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(29,185,84,0.7);
}

/* Product Image */
.product-card img {
  max-width: 120px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: brightness(1);
  transition: filter 0.3s ease, transform 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.product-card:hover img {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Product Title */
.product-card h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1db954;
  text-shadow: 0 0 5px #1db954bb;
  margin-bottom: 0.75rem;
}

/* Product Description */
.product-card p {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

/* Price */
.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1db954;
  margin-bottom: 1rem;
}

/* Stock Status */
.stock {
  font-size: 0.9rem;
  font-weight: 600;
  color: #39d353;
  margin-bottom: 0.7rem;
}

/* Buy Button */
.product-card button {
  background-color: #1db954;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.product-card button:hover,
.product-card button:focus {
  background-color: #17a347;
  box-shadow: 0 8px 20px rgba(23, 163, 71, 0.6);
  outline: none;
}

/* Contact Info */
.contact-info {
  text-align: center;
  font-size: 1rem;
  padding: 2rem 1rem 1rem;
  color: #aaa;
}
.contact-info a {
  font-weight: 600;
  color: #1db954;
}
.contact-info a:hover,
.contact-info a:focus {
  color: #17a347;
  outline: none;
}

/* Helpful Info Section */
.helpful-info {
  background-color: #222222;
  max-width: 800px;
  margin: 2rem auto 4rem;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  color: #ccc;
}
.helpful-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1db954;
  text-align: center;
  font-weight: 900;
}
.helpful-info ul {
  list-style: none;
  padding-left: 0;
}
.helpful-info li {
  font-size: 1.1rem;
  margin: 0.7rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.helpful-info li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #1db954;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}
.social-links a {
  color: #1db954;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}
.social-links a:hover,
.social-links a:focus {
  color: #17a347;
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 2rem 1rem 3rem;
  letter-spacing: 0.05em;
}

/* Floating WhatsApp Chat Button */
.floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.6);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}
.floating-wa:hover,
.floating-wa:focus {
  background-color: #128c3f;
  outline: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1f1f1f;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}
.logo { color: #fff; font-size: 1.5rem; font-weight: bold; }
.menu-toggle {
  background: none;
  border: none;
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px; width: 25px; background: #fff; margin: 4px 0; border-radius: 2px;
}
.navbar ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 20px;
}
.navbar ul li a {
  color: #eee; text-decoration: none; font-weight: 500;
  transition: color 0.3s ease;
}
.navbar ul li a:hover { color: #00d084; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: #1f1f1f;
    position: absolute;
    top: 60px; left: 0; right: 0;
    padding: 15px 0;
    gap: 15px;
  }
  .navbar ul.show { display: flex; }
}
/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  color: #fff;
  padding: 1rem 2rem;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

ul#menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

ul#menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  ul#menu {
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    display: none;
    padding: 1rem;
  }

  ul#menu.show {
    display: flex;
  }

  ul#menu li {
    margin-bottom: 10px;
  }
}
