/* Reset cơ bản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.site-header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  width: 60px;
  margin-right: 10px;
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  width: 250px;
  transition: 0.2s;
}
.search:focus {
  border-color: 	
#007700;
}

.cart-btn {
  padding: 8px 15px;
  border: none;
  background: #007700;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
}
.cart-btn:hover {
  background: #007700;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 50px 0;
}

.hero-left h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero-left p {
  margin-bottom: 20px;
  color: #555;
}

.hero-actions .btn {
  padding: 10px 20px;
  margin-right: 10px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}
.btn {
  background: #007700;
  color: #fff;
  transition: 0.2s;
}
.btn:hover {
  background: #007700;
}
.btn-outline {
  background: transparent;
  border: 2px solid #007700;
  color: #007700;
}
.btn-outline:hover {
  background:#007700;
  color: #fff;
}

.hero-right img {
  max-width: 100%;
}

/* Products */
.products-section {
  margin: 50px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* About */
.about {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 50px;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 8px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.close-btn {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.cart-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

.total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007700;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* Banner full-width */
.banner-fullwidth {
  width: 100%;
  overflow: hidden;
  margin: 50px 0; /* Khoảng cách trên/dưới banner */
}

.banner-fullwidth .banner-image {
  width: 100%;
  height: 400px; /* chiều cao mặc định */
  object-fit: cover; /* giữ tỉ lệ, cắt phần thừa */
  display: block;
  border-radius: 10px; /* tuỳ chọn bo góc */
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .banner-fullwidth .banner-image {
    height: 250px; /* giảm chiều cao trên mobile */
  }
}

@media (max-width: 480px) {
  .banner-fullwidth .banner-image {
    height: 200px;
  }
}
/* ===== MENU DESKTOP ===== */
.nav-menu {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    z-index: 9999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 17px;
  }
}

