* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}
/* LOGO */
.logo {
  color: white;
  font-weight: bold;
  font-size: 20px;
  padding: 10px 10px;
}

/* HEADER CHÍNH */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 0 20px;
  height: 70px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* MENU CHÍNH */
.menuheader {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.menuheader li {
  position: relative;
}

.menuheader a {
  display: block;
  padding: 22px 20px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

.menuheader a::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background-color: #FF59C7;
  transition: width 0.3s ease;
  border-radius: 5px;
}

.menuheader a:hover {
  color: #FF59C7;
}

.menuheader a:hover::after {
  width: 80%;
}

/* NHÓM NÚT ĐĂNG NHẬP / ĐĂNG KÝ */
.button-group {
  display: flex;
  gap: 10px;
}

.login-btn {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.login-btn:hover {
  color: #FF59C7;
  border-color: #FF59C7;
  background-color: rgba(255, 89, 199, 0.1);
}

/* nội dung */
main {
    padding: 30px;
}

h1 {
    padding-top: 25px;
    text-align: left;
    margin-bottom: 30px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}
.product-card h2 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.product-card p {
    color: #333;
    margin-bottom: 10px;
}

.product-card button {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.product-card button:hover {
    background-color: #e91e63;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}



/* Giỏ hàng */
.cart-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#cartItems {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-price {
    color: #666;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-controls button {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.item-controls button:hover {
    background: #ddd;
}

.remove-btn {
    color: #ff4081;
    background: transparent !important;
    font-size: 16px;
}

.item-qty {
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.cart-summary p {
    font-size: 1.2rem;
    margin: 0;
}

#totalPrice {
    color: #ff4081;
    font-weight: bold;
}

.checkout-btn, .continue-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.checkout-btn {
    background: #ff4081;
    color: white;
}

.checkout-btn:hover {
    background: #e91e63;
}

.continue-btn {
    background: #f0f0f0;
    color: #333;
    margin-right: 10px;
}

.continue-btn:hover {
    background: #ddd;
}

.empty-cart {
    text-align: center;
    padding: 30px;
    color: #666;
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
}
/* Lab Thực Hành */
.lab-container {
    padding: 30px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lab-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.lab-card h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.view-lab-btn {
    display: inline-block;
    background-color:#ff4081;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.view-lab-btn:hover {
    background-color: #ab2351;
}

.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}



/* liên hệ */
.contact-container {
      max-width: 600px;
      margin: 50px auto;
      background-color: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
      color: #333;
    }

    .contact-container h1 {
      color: #ff4081;
      margin-bottom: 20px;
      text-align: center;
    }

    .contact-info p {
      font-size: 16px;
      margin: 10px 0;
    }

    .contact-info span {
      font-weight: bold;
    }


    /* kiến thức nuôi cá */
    .kienthucnuoica {
      padding-left: 100px;
      max-width: 960px;
      margin: 50px auto;
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
      text-align: center;
    }
    h2 {
      color: #ff4081;
      margin-bottom: 10px;
    }
    p, li {
      line-height: 1.6;
    }
    ul {
      margin-left: 20px;
      margin-bottom: 20px;
    }

    /* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .menuheader {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .menuheader li {
    width: 100%;
  }

  .menuheader a {
    padding: 15px;
    border-top: 1px solid #333;
  }

  .button-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 10px;
  }

  .login-btn {
    width: 90%;
    text-align: center;
  }

  main {
    padding: 15px;
  }

  .product-grid, .lab-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .contact-container,
  .cart-container,
  .kienthucnuoica {
    padding: 20px;
    margin: 20px;
    width: auto;
  }

  .kienthucnuoica {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 16px;
    padding: 5px;
  }

  .product-card img,
  .lab-card img {
    height: 140px;
  }

  .contact-container h1 {
    font-size: 22px;
  }

  .cart-summary {
    flex-direction: column;
    gap: 10px;
  }

  .checkout-btn, .continue-btn {
    width: 100%;
    margin: 5px 0;
  }
}
