* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
  }

body {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
  }
  
  .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: center;
  }
  
  .header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    background-color: #ffffff;
    width: 100%;
    position: sticky;
    z-index: 1000;
    top: 0;
  }
  
  .hamburger {
      display: none;
      cursor: pointer;
  }
  
  
  .logo {
    font-family: "Pacifico", serif;
    font-size: 1.8rem;
    color: #4a7c59;
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  
  .imglogo {
    width: 50px;
    height: 50px;
    margin-right: 0.5rem;
    border-radius: 100%;
  }
  
  .nav {
    display: flex;
    list-style: none;
  }
  
  .nav.show-menu {
      display: flex; /* Khi có class show-menu, thì hiện menu ra */
      flex-direction: column;
      background-color: white;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      z-index: 100;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
  .nav-item {
    margin: 0 1rem;
  }
  
  .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
  }
  
  .nav-link:hover {
    color: #4a7c59;
  }
  
  .nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #4a7c59;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
  }
  
  .nav-link:hover:after {
    width: 100%;
  }
  
  .search-cart {
    display: flex;
    align-items: center;
  }
  
  .search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
  }
  
  .search-input {
    border: none;
    padding: 0.5rem;
    outline: none;
    width: 180px;
  }
  
  .search-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cart-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    margin-right: 1rem;
  }
  
  .user-account {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  /* Nền mờ toàn màn hình */
.popup-form {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* Nội dung popup */
.popup-content {
  display: flex;
  width: 700px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  border-radius: 8px;
  overflow: hidden;
}

/* Bên trái - đăng ký */
.popup-left {
  width: 50%;
  background: #7c8ca1;
  color: white;
  padding: 30px;
  text-align: center;
}

.popup-left h2 {
  margin-bottom: 10px;
}
.popup-left p {
  margin-bottom: 20px;
}
.btn-register {
  padding: 10px 20px;
  border: 1px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
}

/* Bên phải - login */
.popup-right {
  width: 50%;
  padding: 30px;
}

.popup-right form {
  display: flex;
  flex-direction: column;
}

.popup-right input[type="text"],
.popup-right input[type="password"] {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
}

.checkbox {
  margin-bottom: 15px;
}

.btn-login {
  padding: 10px;
  background-color: #153d2e;
  color: white;
  border: none;
  cursor: pointer;
}


/* ===== Main Product Layout ===== */
.main-product-container {
  background: #fff;
  padding: 36px 0 24px 0;
  border-radius: 0 0 11px 11px;
  box-shadow: 0 4px 16px 0 rgba(44, 64, 36, 0.04);
}

.main-product-content {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
}

.product-gallery {
  flex: 0 0 300px;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-gallery .main-img {
  width: 100%;
  max-width: 400px;
  border-radius: 11px;
  box-shadow: 0 2px 8px 0 #e8e8e8;
  margin-bottom: 18px;
}

.product-info {
  flex: 1 1 420px;
  max-width: 440px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.product-price {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.product-short-desc {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 13px;
}

.product-tags {
  font-size: 0.98em;
  color: var(--highlight);
}
.product-attributes {
  font-size: 1.01rem;
  color: #455b38;
  margin-bottom: 18px;
  margin-top: 0.5em;
  padding-left: 22px;
}
.product-attributes li { margin-bottom: 4px;}

/* Quantity and Add to Cart styling (override inline for cleaner display) */
.add-to-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #f7f3f1;
}
.quantity-selector button {
  background: #f5f5f5;
  border: none;
  width: 32px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
}
.quantity-selector button:active {
  background: #e5e5e5;
}
#qty-input {
  width: 40px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
  height: 36px;
  background: transparent;
}
.add-to-cart-btn {
  height: 40px;
  padding: 0 20px;
  font-size: 16px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 6px #f0f0f0;
  transition: background 0.18s;

}
.add-to-cart-btn:hover {
  background: var(--primary);
  color: #1e0ddf;
}

.product-sidebar {
  flex: 0 0 260px;
  padding: 20px 18px;
  background: #f7f3f1;
  border-radius: 10px;
  box-shadow: 0 1px 4px #edece6;
  font-size: 0.99rem;
  color: #36572c;
  height: fit-content;
  margin-top: 5px;
}
.sidebar-support ul,
.sidebar-note ul {
  padding-left: 22px;
  margin: 8px 0 11px 0;
}
.sidebar-support li,
.sidebar-note li {
  margin-bottom: 2px;
}
.sidebar-note {
  font-size: 0.98em;
  color: #547636;
}

/* Also Like Carousel Styles */
.also-like-section {
  margin: 48px auto 0 auto;
  max-width: 1200px;
  padding: 0 16px;
}
.also-like-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  font-family: 'Quicksand', Arial, sans-serif;
  color: #222;
}
.also-like-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.also-like-track {
  display: flex;
  width: max-content;
  animation: scroll-carousel 32s linear infinite;
  gap: 18px;
}
@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.also-like-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  min-width: 180px;
  max-width: 180px;
  margin: 0 2px;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s;
  padding: 14px 12px 16px 12px;
}
.also-like-card:hover {
  box-shadow: 0 4px 18px rgba(76,175,80,0.18);
  transform: translateY(-2px) scale(1.03);
}
.also-like-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f5f5f5;
}
.also-like-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.also-like-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4caf50;
  text-align: center;
}

.footer {
    background-color: #4a7c59;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
    justify-items: center;
  }
  
  .footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .footer-title:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    bottom: 0;
    left: 0;
  }
  
  .footer-logo {
    font-family: "Pacifico", serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .footer-desc {
    font-size: 0.9rem;
    margin: 0 27px ;
  }
  
  .signup-form {
    display: flex;
    margin-bottom: 1rem;
  }
  
  .signup-input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
  }
  
  .signup-btn {
    padding: 0.5rem 1rem;
    background-color: #5cb85c;
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .signup-btn:hover {
    background-color: #4cae4c;
  }
  
  .contact-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .contact-info i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
  }
  .social-icons{
        text-align: center;
        padding: 0;
    }
    .social-icons li{
        display: inline-block;
        text-align: center;
        padding: 5px;
    }
    .social-icons i{
        color: white;
        font-size: 25px;
    }

@media (max-width: 768px) {
  /* Bố cục sản phẩm chính */
  .main-product-content {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  .product-gallery,
  .product-info {
    width: 100%;
    max-width: 100%;
  }

  .product-sidebar {
    display: none; /* Ẩn thanh bên */
  }

  /* Ẩn logo */
  .logo {
    display: none;
  }

  /* Input tìm kiếm thu nhỏ */
  .search-input {
    width: 80px;
  }

  /* Menu hamburger */
  .hamburger {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* Ẩn menu mặc định */
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: white;
    width: 100%;
    z-index: 1000;
  }

  /* Hiện menu khi có class active */
  .nav.active {
    display: flex;
  }

  .nav-item {
    padding: 10px 20px;
  }

  .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }

  /* Nút thêm vào giỏ + số lượng dọc */
  .add-to-cart-row {
    flex-direction: column;
    gap: 10px;
  }

  .quantity-selector {
    justify-content: center;
  }

  /* Carousel sản phẩm gợi ý */
  .also-like-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    padding-bottom: 10px;
  }

  .also-like-track {
    display: flex;
    gap: 15px;
    min-width: fit-content;
  }

  .also-like-card {
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}





