
        /* === RESET & GLOBAL === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-color: #e74c3c; /* Đỏ/Cam Đậm */
            --secondary-color: #2c3e50; /* Xanh Đen */
            --text-color: #34495e;
            --light-bg: #f5f7fa;
            --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
            --radius: 8px;
        }

        body {
            background-color: var(--light-bg);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* === HEADER === */
        header {
            background-color: #fff;
            padding: 15px 0;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            border-bottom: 4px solid var(--primary-color);
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo {
            font-size: 30px;
            font-weight: 800;
            color: var(--secondary-color);
            text-decoration: none;
        }
        .logo span {
            color: var(--primary-color);
        }

        /* Thanh tìm kiếm */
        .search-bar {
            flex: 1;
            max-width: 500px;
            margin: 0 25px;
            position: relative;
        }
        .search-bar input {
            width: 100%;
            padding: 12px 20px;
            border: 2px solid #ddd;
            border-radius: 30px;
            font-size: 15px;
            transition: border-color 0.3s;
        }
        .search-bar input:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        .search-bar button {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary-color);
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .search-bar button:hover {
            background: #c0392b;
        }

        /* User Actions */
        .user-actions {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        .user-actions a {
            color: var(--secondary-color);
            text-decoration: none;
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 8px 12px;
            border-radius: var(--radius);
            transition: background-color 0.3s, color 0.3s;
        }
        .user-actions a:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* === NAVIGATION === */
        nav {
            background-color: var(--secondary-color);
            padding: 10px 0;
        }
        nav ul {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 40px;
        }
        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            font-size: 16px;
            padding: 5px 0;
            transition: color 0.3s, border-bottom 0.3s;
        }
        nav ul li a:hover {
            color: var(--primary-color);
            border-bottom: 2px solid var(--primary-color);
        }

        /* === MAIN CONTENT & LAYOUT === */
        .main-content {
            display: flex;
            margin: 30px 0;
            gap: 30px;
        }

        /* Sidebar */
        .sidebar {
            width: 280px;
            flex-shrink: 0;
        }
        .sidebar-section {
            background: white;
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
        }
        .sidebar-title {
            font-size: 1.25rem;
            color: var(--primary-color);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 3px solid #f1f1f1;
            font-weight: 700;
        }

        /* Best Seller List */
        .best-seller-products {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .best-seller-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            background: var(--light-bg);
            border-radius: var(--radius);
            transition: background-color 0.3s, transform 0.2s;
            text-decoration: none; /* đảm bảo cả khối là link */
        }
        .best-seller-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }
        .best-seller-number {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--primary-color);
            min-width: 25px;
            text-align: center;
        }
        .best-seller-image {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: var(--radius);
            box-shadow: 0 1px 5px rgba(0,0,0,0.1);
        }
        .best-seller-info {
            flex: 1;
        }
        .best-seller-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 4px;
            line-height: 1.3;
        }
        .best-seller-price {
            font-size: 1rem;
            font-weight: 800;
            color: var(--primary-color);
        }
        .best-seller-sold {
            font-size: 0.8rem;
            color: #27ae60;
        }
        .product-count {
            margin-top: 15px;
            font-size: 0.95rem;
            text-align: center;
            padding: 10px;
            background: var(--secondary-color);
            color: white;
            border-radius: var(--radius);
        }

        /* === PRODUCT GRID === */
        .product-grid {
            flex: 1;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 3px solid var(--primary-color);
        }
        .section-title {
            font-size: 1.8rem;
            color: var(--secondary-color);
            font-weight: 800;
        }

        .products, .featured-products {
            display: grid;
            gap: 25px;
            margin-bottom: 40px;
        }
        .products {
            grid-template-columns: repeat(3, 1fr);
        }
        .featured-products {
            grid-template-columns: repeat(5, 1fr);
        }


        /* Thẻ Sản Phẩm */
        .product-card {
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
        }
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        }

        .product-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-bottom: 1px solid #eee;
        }

        .product-info {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .product-name {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-color);
            line-height: 1.4;
            min-height: 40px; /* Giúp thẻ có chiều cao đồng nhất */
        }

        .product-description {
            font-size: 0.85rem;
            color: #7f8c8d;
            margin-bottom: 15px;
            line-height: 1.4;
            flex-grow: 1;
        }

        .product-price {
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .product-actions {
            display: flex;
            gap: 10px;
            margin-top: auto;
        }

        .add-to-cart, .buy-now {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: var(--radius);
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.2s;
        }

        .add-to-cart {
            background: var(--secondary-color);
            color: white;
        }
        .add-to-cart:hover {
            background: #1a252f;
            transform: translateY(-2px);
        }

        .buy-now {
            background: var(--primary-color);
            color: white;
        }
        .buy-now:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }

        /* Featured Product Cards */
        .featured-product {
            background: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 1px 5px rgba(0,0,0,0.05);
            transition: transform 0.3s;
            text-decoration: none;
        }
        .featured-product:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        }
        .featured-image {
            width: 100%;
            height: 100px;
            object-fit: cover;
        }
        .featured-info {
            padding: 10px;
        }
        .featured-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 5px;
            line-height: 1.3;
            height: 32px;
            overflow: hidden;
        }
        .featured-price {
            font-size: 0.95rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        /* === TOAST NOTIFICATION STYLING (VIP SCRIPT) === */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 99999; 
            pointer-events: none;
        }
        .toast {
            background-color: #27ae60; 
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.1rem;
            font-weight: 600;
            opacity: 0;
            transform: translateX(100%); 
            transition: opacity 0.4s ease-out, transform 0.4s ease-out;
        }
        .toast.show {
            opacity: 1;
            transform: translateX(0); 
            pointer-events: all;
        }
        .toast i {
            font-size: 1.5rem;
        }
        /* BỔ SUNG CSS CHO KHUYẾN MÃI */
        .product-price {
            display: flex;
            align-items: baseline;
            gap: 10px; 
        }

        .original-price {
            font-size: 0.95rem; 
            color: #7f8c8d; 
            text-decoration: line-through; 
            font-weight: 500;
        }

        /* Điều chỉnh giá hiện tại để nó nổi bật hơn khi đang sale */
        .product-price > span:not(.original-price) {
            color: var(--primary-color);
            font-size: 1.4rem;
            font-weight: 800;
        }
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            .search-bar {
                margin: 10px 0;
                max-width: 100%;
            }
            .main-content {
                flex-direction: column;
            }
            .sidebar {
                width: 100%;
            }
            .products {
                grid-template-columns: 1fr;
            }
            .featured-products {
                grid-template-columns: repeat(2, 1fr);
            }
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
            nav ul {
                flex-wrap: wrap;
                gap: 15px;
            }
        }
