/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
}

/* Navbar */

.navbar {
  background-color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  font-size: 24px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.cart-icon {
  position: relative;
}

#cartCount {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 50%;
}
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Title */
.title {
  text-align: center;
  margin: 20px 0;
  color: #333;
}
.username-style {
  color: white;
  background-color: green;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20%;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* Container layout */
.container {
  display: flex;
  width: 90%;
  margin: auto;
  flex-wrap: wrap;
  /* border: 1px solid green; */
  justify-content: space-between;
}

/* === Left Side: Form (30%) === */
.formContainer {
  width: 20%;
  min-width: 280px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form label {
  font-weight: bold;
  font-size: 14px;
}

form input,
form textarea {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  padding: 10px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

form button:hover {
  background-color: #0056b3;
}
.green {
  background-color: rgb(160, 239, 160);
}
.green:hover {
  background-color: rgb(36, 243, 36);
}
/* === Right Side: Table (60%) === */
/* === Right Side: Table Container (75%) === */
.tableContainer {
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px;
  box-sizing: border-box;
}

/* Card styling inside tableContainer */
.product-card {
  width: 200px;
  height: 320px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
}

.edit-btn,
.delete-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.edit-btn {
  background-color: #3498db;
  color: white;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
}
.footer {
  background: #f2f2f2;
  padding: 20px 10px;
  font-size: 14px;
  color: #333;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.footer-section {
  flex: 1 1 100%;
  margin-bottom: 15px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
  color: #333;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #333;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hamburger {
    display: block;
  }
  .container {
    flex-direction: column;
  }

  .formContainer,
  .tableContainer {
    width: 100%;
    height: auto;
  }
  .product-card {
    width: 100%;
  }

  .tableContainer {
    justify-content: center;
    gap: 15px;
  }
}
