:root {
            --primary-color: #383838;
            --secondary-color: #38703d;
            --accent-color: #f8b500;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --gray-color: #6c757d;
            --light-gray: #e9ecef;
            --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--font-main);
            color: var(--dark-color);
            background-color: #f5f5f5;
            line-height: 1.6;
        }
        
        a {
            text-decoration: none;
            color: inherit;
        }
        
        /* Header */
        header {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 5%;
            background-color: var(--primary-color);
            color: white;
        }
        
        .top-bar .contact-info {
            display: flex;
            gap: 20px;
        }
        
        .top-bar .contact-info i {
            margin-right: 5px;
        }
        
        .top-bar .social-icons {
            display: flex;
            gap: 15px;
        }
        
        .main-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 5%;
        }
        
        .logo {
            display: flex;
            align-items: center;
            font-size: 24px;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        .logo img {
            margin-right: 10px;
            border-radius: 60px;
            width: 300px;
            height: 100px;
        }
        
        .search-bar {
            flex-grow: 1;
            margin: 0 40px;
            position: relative;
        }
        
        .search-bar input {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid var(--light-gray);
            border-radius: 20px;
            font-size: 16px;
        }
        .search-icon {
            position: absolute;
            left: 10px;
            color: #ccc;
            font-size: 16px;
        }
        
        .search-bar button {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            padding: 0 15px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }
        
        .header-actions {
            display: flex;
            gap: 20px;
        }
        
        .header-actions .action-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }
        
        .header-actions .action-item i {
            font-size: 20px;
            margin-bottom: 5px;
        }
        
        .cart-count {
            background-color: var(--accent-color);
            color: white;
            font-size: 12px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: -5px;
            right: -5px;
        }
        
        /* Navigation */
        nav {
            background-color: var(--light-color);
            border-top: 1px solid var(--light-gray);
            border-bottom: 1px solid var(--light-gray);
        }
        
        .nav-container {
            display: flex;
            justify-content: space-between;
            padding: 0 5%;
        }
        
        .categories {
            position: relative;
        }
        
        .category-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background-color: var(--primary-color);
            padding: 15px 25px;
            font-weight: bold;
            cursor: pointer;
        }
        /* danhmuc dropdown */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: Arial, sans-serif;
            padding: 20px;
        }
        
        .categories {
            position: relative;
            width: 250px;
        }
        
        .category-btn {
            background-color: #f8f8f8;
            border: 1px solid #ddd;
            padding: 12px 15px;
            cursor: pointer;
            font-weight: bold;
            display: flex;
            align-items: center;
            position: relative;
        }
        
        .category-btn i {
            margin-right: 10px;
        }
        
        .sidebar-menu {
            list-style-type: none;
            background-color: white;
            border: 1px solid #ddd;
            border-top: none;
            width: 100%;
            position: absolute;
            z-index: 100;
            display: none;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .sidebar-menu li {
            border-bottom: 1px solid #eee;
        }
        
        .sidebar-menu li:last-child {
            border-bottom: none;
        }
        
        .sidebar-menu li a {
            padding: 10px 15px;
            display: block;
            color: #333;
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .sidebar-menu li a:hover {
            background-color: #f5f5f5;
            color: #0066cc;
        }
        
        /* Thêm mũi tên xuống */
        .category-btn::after {
            content: '▼';
            position: absolute;
            right: 15px;
            transition: transform 0.3s;
        }
        
        /* Xoay mũi tên khi dropdown mở */
        .category-btn.active::after {
            transform: rotate(180deg);
        }
        
        /* Hiển thị menu khi active */
        .category-btn.active + .sidebar-menu {
            display: block;
        }
        
        .main-menu {
            display: flex;
            list-style: none;
        }
        
        .main-menu li {
            position: relative;
        }
        
        .main-menu li a {
            display: block;
            padding: 15px 20px;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .main-menu li a:hover {
            color: var(--primary-color);
        }
        
        /* Hero Section */
        .hero {
            background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/api/placeholder/1200/400');
            background-size: cover;
            background-position: center;
            color: white;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin-bottom: 40px;
        }
        
        .hero-content {
            max-width: 800px;
            padding: 0 20px;
        }
        
        .hero h1 {
            font-size: 42px;
            margin-bottom: 20px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }
        
        .hero p {
            font-size: 18px;
            margin-bottom: 30px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 25px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 4px;
            font-weight: bold;
            text-transform: uppercase;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: var(--secondary-color);
        }
        
        /* Features */
        .features {
            display: flex;
            justify-content: space-around;
            padding: 0 5%;
            margin-bottom: 40px;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .feature-icon {
            font-size: 30px;
            color: var(--primary-color);
        }
        
        .feature-text h3 {
            font-size: 18px;
            margin-bottom: 5px;
        }
        
        .feature-text p {
            color: var(--gray-color);
            font-size: 14px;
        }
        
        /* Product Sections */
        .section-title {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .section-title h2 {
            font-size: 28px;
            margin-bottom: 10px;
            position: relative;
            display: inline-block;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--primary-color);
        }
        
        .product-container {
            padding: 0 5%;
            margin-bottom: 60px;
        }
        
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }
        
        .product-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .product-img {
            height: 350px;
            width: 100%;
            object-fit: cover;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .product-details {
            padding: 15px;
        }
        
        .product-category {
            font-size: 12px;
            color: var(--gray-color);
            margin-bottom: 5px;
        }
        
        .product-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
            height: 40px;
            overflow: hidden;
        }
        
        .product-price {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .current-price {
            font-size: 18px;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        .old-price {
            font-size: 14px;
            text-decoration: line-through;
            color: var(--gray-color);
        }
        
        .discount {
            font-size: 12px;
            background-color: var(--accent-color);
            color: white;
            padding: 3px 8px;
            border-radius: 3px;
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .product-rating i {
            color: #ffc107;
            font-size: 14px;
            margin-right: 3px;
        }
        
        .rating-count {
            font-size: 12px;
            color: var(--gray-color);
            margin-left: 8px;
        }
        
        .product-actions {
            display: flex;
            gap: 10px;
        }
        
        .add-to-cart {
            flex-grow: 1;
            padding: 8px 0;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .add-to-cart:hover {
            background-color: var(--secondary-color);
        }
        
        .wishlist-btn {
            width: 36px;
            height: 36px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--light-gray);
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .wishlist-btn:hover {
            background-color: #ffeeba;
            color: #d39e00;
        }
        
        /* Banner Section */
        .banner-section {
            padding: 0 5%;
            margin-bottom: 60px;
        }
        
        .banner {
            display: flex;
            background-color: #e9f7ef;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .banner-content {
            flex: 1;
            padding: 40px;
        }
        
        .banner h3 {
            font-size: 32px;
            margin-bottom: 15px;
            color: var(--dark-color);
        }
        
        .banner p {
            margin-bottom: 25px;
            color: var(--gray-color);
        }
        
        .banner-img {
            flex: 1;
            background-image: url('/api/placeholder/600/300');
            background-size: cover;
            background-position: center;
        }
        
        /* Newsletter */
        .newsletter {
            background-color: var(--primary-color);
            color: white;
            padding: 60px 5%;
            text-align: center;
            margin-bottom: 60px;
        }
        
        .newsletter h3 {
            font-size: 28px;
            margin-bottom: 15px;
        }
        
        .newsletter p {
            margin-bottom: 25px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .newsletter-form input {
            flex-grow: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 4px 0 0 4px;
            font-size: 16px;
        }
        
        .newsletter-form button {
            padding: 0 25px;
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            font-weight: bold;
            cursor: pointer;
        }
        
 /* footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 40px 20px;
    font-size: 14px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.footer-section h3,
.footer-section h4 {
    color: #f8b500;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #f8f9fa;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    margin-top: 20px;
    font-size: 13px;
}

        
/* Responsive */
@media (max-width: 992px) {
.features {
    flex-wrap: wrap;
    gap: 20px;
}
            
.feature-item {
    width: 45%;
}
            
.banner {
    flex-direction: column;
}
            
.banner-img {
    height: 200px;
    }
}
        
@media (max-width: 768px) {
.top-bar {
    display: none;
}
            
.main-header {
    flex-wrap: wrap;
}
            
            .logo {
                margin-bottom: 15px;
            }
            
            .search-bar {
                order: 3;
                margin: 15px 0 0;
                width: 100%;
            }
            
            .nav-container {
                flex-direction: column;
            }
            
            .category-btn {
                width: 100%;
            }
            
            .main-menu {
                overflow-x: auto;
                white-space: nowrap;
                width: 100%;
            }
            
            .feature-item {
                width: 100%;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }

        /* Style cho thông báo */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Style cho nút yêu thích */
.favorite-button {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #ccc;
  transition: color 0.3s ease;
  z-index: 10;
}

.favorite-button:hover {
  color: var(--danger-color);
}

.favorite-button.active {
  color: var(--danger-color);
}

/* Icon trái tim */
.favorite-button::before {
  content: "♡";
}

.favorite-button.active::before {
  content: "♥";
}

/* Badge cho số lượng trong giỏ hàng và yêu thích */
.cart-count, .favorite-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Style cho sản phẩm */
.product-card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.product-price {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
  margin-left: 5px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  z-index: 5;
}

.product-rating {
  margin-bottom: 10px;
  color: var(--accent-color);
}

.add-to-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #555;
}

/* Style cho trang giỏ hàng */
.cart-item {
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  position: relative;
}

.cart-item-image {
  width: 100px;
  margin-right: 15px;
}

.cart-item-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.cart-item-details {
  flex-grow: 1;
}

.quantity-controls {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.quantity-controls button {
  background-color: var(--light-bg);
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.item-quantity {
  padding: 0 15px;
}

.remove-item {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 0;
}

.remove-item:hover {
  color: var(--danger-color);
}

.cart-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #ddd;
  text-align: right;
}

#checkout-button {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

#checkout-button:hover {
  background-color: #388e3c;
}

/* Style cho trang yêu thích */
.favorite-item {
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  position: relative;
}

.favorite-item-image {
  width: 100px;
  margin-right: 15px;
}

.favorite-item-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.favorite-item-details {
  flex-grow: 1;
}

.add-to-cart-from-favorites {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-top: 10px;
}

.add-to-cart-from-favorites:hover {
  background-color: #555;
}

.remove-favorite {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 0;
}

.remove-favorite:hover {
  color: var(--danger-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .cart-item, .favorite-item {
    flex-direction: column;
  }
  
  .cart-item-image, .favorite-item-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
}