/* General Styling */
body {
  padding: 0;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Header */
.main-header {
  width: 100%;
  min-height: 3.5rem;
  background-color: #dbc441;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-header__nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-header__item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.main-header__item {
  margin: 0.25rem 0.5rem;
}

.main-header__item a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.main-header__item a:hover,
.main-header__item a:active,
.main-header__item a.active {
  color: white;
  background-color: #3e00a1;
}

/* Mobile Navigation */
.mobile-nav {
  width: 30rem;
  height: 100vh;
  max-width: 90%;
  position: fixed;
  left: 0;
  top: 0;
  background: white;
  z-index: 10;
  padding: 2rem 1rem 1rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.mobile-nav__item {
  margin: 1rem;
  padding: 0;
}

.mobile-nav__item a {
  text-decoration: none;
  color: black;
  font-size: 1.5rem;
  padding: 0.5rem 2rem;
}

.mobile-nav__item a:active,
.mobile-nav__item a:hover,
.mobile-nav__item a.active {
  background: #00695c;
  color: white;
  border-radius: 3px;
}

#side-menu-toggle {
  border: 1px solid white;
  font: inherit;
  padding: 0.5rem;
  display: none; /* Hidden by default */
  background: transparent;
  color: white;
  cursor: pointer;
}

#side-menu-toggle:focus {
  outline: none;
}

#side-menu-toggle:active,
#side-menu-toggle:hover {
  color: #ffeb3b;
  border-color: #ffeb3b;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
  display: none;
}

/* ...existing code... */

/* Responsive Design */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1rem;
  }

  .main-header__nav {
    display: none; /* Hide desktop nav */
  }

  #side-menu-toggle {
    display: block; /* Show hamburger */
  }

  .main-header {
    justify-content: space-between;
  }
}

/* Grid */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
}

.card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
}

.card__header,
.card__content {
  padding: 1rem;
}

.card__header h1,
.card__content h1,
.card__content h2,
.card__content p {
  margin: 0;
}

.card__image {
  width: 100%;
}

.card__image img {
  width: 100%;
}

.card__actions {
  padding: 1rem;
  text-align: center;
}

.card__actions button,
.card__actions a {
  margin: 0 0.25rem;
}

.btn {
  display: inline-block;
  padding: 0.25rem 1rem;
  text-decoration: none;
  font: inherit;
  border: 1px solid #00695c;
  color: #00695c;
  background: white;
  border-radius: 3px;
  cursor: pointer;
}

.btn:hover,
.btn:active {
  background-color: #00695c;
  color: white;
}

.centered {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1rem 0.5rem;
  }

  .main-header__item a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Main Content */
main {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(280px, 1fr)
  ); /* Flexible grid */
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: start;
}

/* Product Card */
.card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  text-align: center;
}

.card:hover {
  transform: scale(1.03);
}

.card__header {
  background-color: #3e00a1;
  color: white;
  padding: 1rem;
  font-size: 1.2rem;
}

.card__image {
  text-align: center;
  padding: 1rem;
}

.card__image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.card__content {
  padding: 1rem;
}

.product__price {
  color: #27ae60;
  font-size: 1.5rem;
  font-weight: bold;
}

.product__description {
  font-size: 0.9rem;
  color: #666;
}

/* Buttons */
.card__actions {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.btn {
  background-color: #dbc441;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.btn:hover {
  background-color: #b89f35;
}

.imageSize {
  width: auto;
  height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1rem;
  }
}
