body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9; /* Light background for a modern look */
  color: #333; /* Default text color */
}

header {
  background: linear-gradient(135deg, #0073e6, #4caf50); /* Modern gradient */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  text-align: center;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between logo and text */
  margin-bottom: 10px; /* Space below the logo */
  background-color: black; /* Black background */
  padding: 10px; /* Add padding for spacing */
  border-radius: 10px; /* Rounded corners */
}

header .logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Circular logo */
  border: 2px solid white; /* Add a border for emphasis */
}

header h1 {
  font-size: 28px;
  color: white;
  margin: 0;
  font-weight: bold;
}

header .welcome-message {
  font-size: 16px;
  color: #f4f4f9;
  margin: 10px 0; /* Space around the welcome message */
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between input and button */
  justify-content: center;
  margin-top: 10px; /* Space above the search bar */
}

.search-bar input {
  padding: 10px;
  border-radius: 20px; /* Rounded input */
  border: 1px solid #ccc;
  transition: box-shadow 0.3s ease;
  width: 250px; /* Wider input for better usability */
}

.search-bar input:focus {
  box-shadow: 0 0 8px #0073e6; /* Highlight on focus */
}

.search-bar button {
  padding: 10px 20px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 20px; /* Rounded button */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px; /* Space between icon and text */
}

.search-bar button:hover {
  background-color: #1da851; /* Slightly darker green */
  transform: scale(1.1); /* Slight zoom effect */
}

nav {
  background-color: white; /* White background for topbar */
  color: #333; /* Default text color */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  border-radius: 10px; /* Rounded corners */
  margin: 10px 20px; /* Add spacing around the topbar */
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  margin: 0;
}

nav li {
  cursor: pointer;
  font-size: 16px;
  color: #333; /* Default text color */
  display: flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
  padding: 10px 15px; /* Add padding for better spacing */
  border-radius: 50px; /* Fully rounded buttons */
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

nav li:hover {
  transform: scale(1.1); /* Slight zoom effect */
  background-color: rgba(0, 0, 0, 0.05); /* Subtle hover background */
}

nav li.active {
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.1); /* Active tab background */
}

nav li i {
  font-size: 18px; /* Icon size */
  color: inherit; /* Inherit text color */
  transition: transform 0.3s ease, color 0.3s ease;
}

nav li:hover i {
  transform: scale(1.2); /* Slight zoom effect */
}

nav li[data-tab="home"] i {
  color: #0073e6; /* Home icon color */
}

nav li[data-tab="cart"] i {
  color: #ff9800; /* Cart icon color */
}

nav li[data-tab="settings"] i {
  color: #4caf50; /* Settings icon color */
}

nav li[data-tab="login"] i {
  color: #f44336; /* Login icon color */
}

main {
  padding: 20px;
  padding-top: 20px; /* Adjust padding to account for the slideshow */
}

/* Featured products carousel */
.featured-carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(90deg, #0073e6, #4caf50); /* Gradient background */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.featured-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.featured-carousel .featured-card {
  flex: 0 0 auto;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-carousel .featured-card:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.featured-carousel .featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.featured-carousel .featured-card .details {
  padding: 10px;
  text-align: center;
}

.featured-carousel .featured-card .details h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.featured-carousel .featured-card .details p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

/* Enhanced product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjusted for better spacing */
  gap: 30px; /* Increased gap for modern look */
  padding: 20px;
  background-color: #f4f4f9; /* Light background */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  margin-top: 20px; /* Add spacing above the product grid */
}

.product-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-card .details {
  padding: 10px;
}

product-card .details h3 {
  margin: 0;
  font-size: 16px;
}

.product-card .details h3 i {
  margin-right: 5px;
  font-size: 16px;
  color: #0073e6; /* Icon color */
}

.product-card .details p {
  margin: 5px 0;
  font-size: 14px;
}

.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 8px solid #f3f3f3;
  border-top: 8px solid #0073e6;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  z-index: 1000;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.product-details-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-details-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.product-details-card .details {
  text-align: left;
  width: 100%;
  max-width: 500px;
}

.product-details-card .details h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #333;
}

.product-details-card .details p {
  margin: 5px 0;
  font-size: 16px;
  color: #555;
}

.quantity-section {
  margin: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Add spacing between elements */
}

.quantity-section label {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.quantity-section input {
  padding: 10px;
  font-size: 16px;
  width: 200px;
  border: 2px solid #0073e6; /* Blue border */
  border-radius: 10px; /* Rounded corners */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

quantity-section input:focus {
  box-shadow: 0 0 10px #0073e6; /* Blue glow on focus */
  border-color: #005bb5; /* Darker blue border on focus */
}

.quantity-section button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #25d366; /* Green background */
  color: white;
  border: none;
  border-radius: 10px; /* Rounded corners */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Space between icon and text */
}

.quantity-section button:hover {
  background-color: #1da851; /* Slightly darker green on hover */
  transform: scale(1.1); /* Slight zoom effect */
}

.quantity-section button i {
  font-size: 18px; /* Icon size */
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

quantity-controls button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

quantity-controls button:hover {
  background-color: #005bb5;
}

quantity-controls span {
  font-size: 16px;
  font-weight: bold;
}

quantity-controls button i {
  font-size: 14px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 15px;
}

.cart-item .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cart-item .details h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.cart-item .details p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.cart-item .quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item .quantity-controls button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cart-item .quantity-controls button:hover {
  background-color: #005bb5;
}

.cart-item .quantity-controls span {
  font-size: 16px;
  font-weight: bold;
}

.cart-item .remove-button {
  padding: 5px 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cart-item .remove-button:hover {
  background-color: #e60000;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, #0073e6, #005bb5); /* Gradient background */
  color: white;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.cart-footer p {
  font-size: 18px;
  font-weight: bold;
}

.send-order-button {
  padding: 10px 20px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.send-order-button:hover {
  background-color: #1da851;
  transform: scale(1.05); /* Slight zoom effect */
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
}

.toast.success {
  background-color: #4caf50;
}

.toast.error {
  background-color: #f44336;
}

.toast.info {
  background-color: #2196f3;
}

/* Fade animations */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Add hover effect for buttons */
button:hover {
  transform: scale(1.05); /* Slight zoom effect */
}

button i {
  margin-right: 5px; /* Space between icon and text */
  font-size: 16px; /* Icon size */
}

/* Highlight section */
.highlight-section {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.highlight-section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

.highlight-section .highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.highlight-section .highlight-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-section .highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.highlight-section .highlight-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.highlight-section .highlight-card .details {
  padding: 10px;
  text-align: center;
}

.highlight-section .highlight-card .details h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.highlight-section .highlight-card .details p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

/* Modal styles */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.slideshow-container {
  position: relative;
  width: 100%; /* Reduce width to 90% of the page */
  max-width: 1800px; /* Set a maximum width */
  margin: 0 auto; /* Center the slideshow */
  height: 400px;
  overflow: hidden;
  z-index: 1000;
  background-size: cover; /* Dynamically change background */
  background-position: center;
  transition: background 1s ease-in-out; /* Smooth background transition */
  border-radius: 10px; /* Add rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

.slideshow-container .slides-wrapper {
  display: flex; /* Arrange slides in a row */
  transition: transform 1s ease-in-out; /* Smooth slide transition */
}

.slideshow-container .slide {
  flex: 0 0 100%; /* Each slide takes full width */
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1000;
}

.slideshow-container .prev {
  left: 10px;
}

.slideshow-container .next {
  right: 10px;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}
