/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: #ffd700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffd700;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background-color: #ffd700;
  color: #000;
  padding: 12px 30px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #ffe04d;
}

/* Search Section */
.search-section {
  text-align: center;
  padding: 30px 20px;
}

#searchInput {
  padding: 10px 20px;
  width: 80%;
  max-width: 400px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
}

/* Products Section */
.products-section {
  padding: 50px 20px;
  text-align: center;
}

.products-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.product-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.2);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: #fff;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 10px 0 5px;
  color: #ffd700;
}

.product-card p {
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  padding: 60px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-section p {
  margin: 6px 0;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 40px;
}

/* Responsive Navbar */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }

  nav ul li {
    width: 100%;
    padding: 10px 0;
  }
}

.admin-btn {
  background-color: #ffd700;
  padding: 6px 14px;
  border-radius: 20px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.admin-btn:hover {
  background-color: #ffe04d;
}

.admin-container {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Admin Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header h1 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin Action Buttons */
.admin-actions {
  display: flex;
  gap: 15px;
}

.btn.dark {
  background-color: #4a4a4a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn.dark:hover {
  background-color: #666;
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
}

.stat-card {
  background-color: #fff;
  color: #333;
  padding: 30px 40px;
  border-radius: 16px;
  width: 240px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #555;
}

.stat-card p {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

/* Product Section */
.product-section {
  padding: 20px 40px;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 10px;
  margin-bottom: 20px;
  gap: 20px;
}

.product-header h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0;
}

.product-header .btn {
  margin-bottom: 0;
}

.btn.gradient:hover {
  opacity: 0.9;
}

/* Product Table */
.product-table {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr)) 120px;
  gap: 10px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.product-row img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #fff;
}

.product-row input[type="number"] {
  width: 60px;
  padding: 6px;
  border-radius: 6px;
  border: none;
  text-align: center;
}

.product-row button {
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.product-row .save-btn {
  background-color: #00c853;
  color: #fff;
}

.product-row .delete-btn {
  background-color: #d50000;
  color: #fff;
}

.product-row .save-btn:hover {
  background-color: #00e676;
}

.product-row .delete-btn:hover {
  background-color: #ff1744;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 95%;
}

.modal h2 {
  margin-bottom: 20px;
}

.modal form label {
  display: block;
  margin: 12px 0 4px;
  font-weight: bold;
}

.modal form input[type="text"],
.modal form input[type="number"],
.modal form input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 10px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 36px;
  height: 36px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.slider {
  position: relative;
  width: 100%;
  height: 500px; /* adjust if needed */
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fit;
  display: block;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-text .btn {
  background-color: #ffd700;
  color: #000;
  padding: 12px 30px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

@media (max-width: 768px) {
  .slider {
    height: 250px;
  }

  .slide img {
    object-position: center;
  }
}
