/* style.css */
:root {
    --primary: #ff6b6b;       /* Màu chủ đạo - hồng cam */
    --secondary: #4ecdc4;     /* Màu phụ - xanh ngọc */
    --dark: #2d3436;          /* Màu tối - xám đen */
    --light: #f7f7f7;         /* Màu sáng - xám nhạt */
    --accent: #ffe66d;        /* Màu nhấn - vàng */
    --text: #2d3436;          /* Màu chữ chính */
    --text-light: #636e72;    /* Màu chữ phụ */
    --border: #dfe6e9;        /* Màu viền */
    --shadow: 0 5px 15px rgba(0,0,0,0.08);     /* Đổ bóng nhẹ */
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15); /* Đổ bóng khi hover */
}

* {
    margin: 0;                 /* Xóa margin mặc định trình duyệt */
    padding: 0;                /* Xóa padding mặc định */
    box-sizing: border-box;    /* Quan trọng: padding và border tính trong width */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #d6cbb5;    /* Nền trắng */
    background-image: url('images/Brown\ Yellow\ Cute\ Cake\ Handdrawn\ Illustration\ Group\ Project\ Presentation\ .png');
    color: var(--text);        /* Màu chữ theo biến */
    line-height: 1.7;          /* Khoảng cách dòng rộng hơn để dễ đọc */
    font-size: 16px;           /* Cỡ chữ mặc định */
}

a {
    text-decoration: none;     /* Bỏ gạch chân link */
    color: inherit;            /* Kế thừa màu từ thẻ cha */
    transition: all 0.3s ease; /* Hiệu ứng chuyển động 0.3s cho tất cả thuộc tính */
}

img {
    max-width: 100%;           /* Ảnh không vượt quá container */
    height: auto;              /* Giữ tỷ lệ ảnh */
    display: block;            /* Loại bỏ khoảng trắng dưới ảnh */
}


.container {
    width: 90%;                /* Chiếm 90% màn hình */
    max-width: 1200px;         /* Không vượt quá 1200px */
    margin: 0 auto;            /* Căn giữa */
    padding: 0 15px;           /* Padding 2 bên */
}

.btn {
    display: inline-block;     /* Hiển thị như block nhưng nằm cùng dòng */
    padding: 12px 28px;        /* Khoảng cách bên trong */
    background: linear-gradient(135deg, var(--primary), #ff5252); /* Màu chuyển sắc */
    color: white;              /* Chữ trắng */
    border: none;              /* Không viền */
    border-radius: 8px;        /* Bo góc */
    cursor: pointer;           /* Con trỏ thành bàn tay khi hover */
    transition: all 0.3s ease; /* Hiệu ứng mượt */
    font-weight: 600;          /* Chữ đậm */
    font-size: 0.95rem;        /* Cỡ chữ */
    text-align: center;        /* Căn giữa chữ */
    box-shadow: var(--shadow); /* Đổ bóng */
}

.btn:hover {
    transform: translateY(-3px); /* Di chuyển lên trên 3px */
    box-shadow: var(--shadow-hover); /* Bóng đậm hơn */
    background: linear-gradient(135deg, #ff5252, var(--primary)); /* Đảo gradient */
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.text-center {
    text-align: center;
}

/* Header */
.top-banner {
    background: linear-gradient(135deg, var(--dark), #2d3436); /* Gradient từ 2 màu tối */
    color: white;
    padding: 10px 0;
    text-align: center;
}

.header {
    position: sticky;          /* Header dính trên cùng khi cuộn */
    top: 0;                   /* Dính ở vị trí top: 0 */
    z-index: 1000;            /* Luôn nằm trên các phần tử khác */
    backdrop-filter: blur(10px); /* Hiệu ứng làm mờ background phía sau */
}

.header-main {
    display: flex;             /* Sắp xếp theo hàng ngang */
    justify-content: space-between; /* Căn đều 2 bên */
    align-items: center;       /* Căn giữa theo chiều dọc */
    gap: 30px;                 /* Khoảng cách giữa các phần tử con */
}

.logo a {
    display: flex;         
    align-items: center;   
    gap: 12px;              
    text-decoration: none;  
}

.logo img {
    height: 50px;         
    width: auto;          
    object-fit: contain;   
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.5rem;     
    font-weight: 700;       
    color: var(--primary);           
    line-height: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    position: relative;        /* Để tạo pseudo-element (::after) */
    padding: 8px 0;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;              /* Khi hover, mở rộng full width */
}

.main-nav a::after {
    content: '';              /* Bắt buộc có content */
    position: absolute;        /* Vị trí tuyệt đối so với thẻ a */
    bottom: 0;
    left: 0;
    width: 0;                 /* Ban đầu width = 0 (ẩn) */
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease; /* Hiệu ứng mở rộng width */
}


.header-actions {
    display: flex;
    gap: 15px;
}

.header-actions a {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px; 
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; 
}


.slider-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
   
    transition: transform 0.8s ease-in-out; 
    
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 1;
}


.slide-img {
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


.hero-content {
    position: relative;
    z-index: 3; 
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(200px);
}

.hero-content .btn {
    font-size: 1.5rem; 
    padding: 15px 40px; 
    border-radius: 50px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 2rem;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 10px auto;
}

/* Product Grid */
.product-grid {
    display: grid;                          /* Layout dạng lưới */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    /* Tự động tạo cột, mỗi cột tối thiểu 280px, tối đa 1fr (chia đều) */
    gap: 35px;                              /* Khoảng cách giữa các card */
    margin-bottom: 50px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-8px);            /* Hiệu ứng nổi lên */
}

.product-img {
    height: 220px;                          /* Cố định chiều cao ảnh */
    overflow: hidden;                       /* Ảnh lớn hơn sẽ bị ẩn */
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;                      /* Ảnh phủ kín khung, không méo */
    transition: transform 0.5s ease;        /* Hiệu ứng phóng to chậm */
}

.product-card:hover .product-img img {
    transform: scale(1.1);                  /* Phóng to ảnh 110% */
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-info-detail {
    padding: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
}

.product-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}



/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--dark);
}

.pagination a.active, .pagination a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Product Detail */
.product-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.favorite-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    border-color: #ff4757;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #ff4757;
    border-color: #ff4757;
}

/* Style cho icon */
.favorite-btn i {
    color: #ccc;
    font-size: 22px;
    transition: color 0.3s;
}

.favorite-btn.active i {
    color: white;
}

.product-images .main-image img {
    width: 100%;
    border-radius: 8px;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.product-attributes {
    margin-bottom: 30px;
}

.attribute {
    margin-bottom: 10px;
}

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

.quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Tabs */
.product-tabs {
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ffffff;
    margin-bottom: 20px;
}

.tab-link {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent; 
}

.tab-link.active {
   border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CSS CHO PHẦN ĐÁNH GIÁ --- */

.review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-user {
    font-size: 1.1rem;
    color: #333;
}

.review-date {
    font-size: 0.9rem;
    color: #999;
}

.review-rating {
    margin-bottom: 8px;
    font-size: 14px; /* Kích thước sao */
}

.review-rating i {
    margin-right: 2px;
}

.review-comment {
    color: #555;
    line-height: 1.5;
}

.no-review {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.map-placeholder {
    height: 400px;
    width: 100%; 
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden; 
    position: relative; 
}

.map-placeholder iframe {
    width: 100% !important; 
    height: 100% !important; 
    display: block; 
    border: none;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) { /* Áp dụng khi màn hình ≤ 768px */
    .header-main {
        flex-direction: column;  /* Xếp dọc thay vì ngang */
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap; /* Cho phép xuống dòng */
        justify-content: center;
    }
    
     .hero h1 {
        font-size: 2.5rem;       /* Giảm cỡ chữ trên mobile */
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-detail-main, .contact-content {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* Cart Page Styles */
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.cart-header, .cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.summary-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.total-row {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: none;
}

/* News Detail Styles */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.news-hero-image {
    margin: 20px 0;
}

.news-hero-image img {
    width: 100%;
    border-radius: 8px;
}

.news-image {
    margin: 20px 0;
    text-align: center;
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.news-tags {
    margin: 30px 0;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 0 5px 5px 0;
    font-size: 0.9rem;
}



/* Style chung cho banner chính sách (Shipping/Return) */
.section-return,
.section-shipping {
    position: relative;
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Đặt hình ảnh riêng biệt */
.section-return {
    background-image: url('/images/cheesecake.jpg');
}

.section-shipping {
    background-image: url('/images/Login.jpg');
}

/* Overlay & Tiêu đề */
.overlay {
    background-color: rgba(0, 0, 0, 0.55);
    padding: 40px 60px;
    border-radius: 16px;
    color: white;
    text-align: center;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}


/* privacy-policy  */
/* Khung chia layout 2 cột (privacy-policy) */
.privacy-tabs {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 30px 0 40px;
}

/* Sidebar trái */
.privacy-nav {
    flex: 0 0 280px;
    max-width: 350px;
    padding: 20px;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
}

/* Nội dung bên phải */
.privacy-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px;
    background-color: #fff;
    box-sizing: border-box;
    text-align: justify;
}

/* Responsive: Chuyển sang 1 cột trên mobile */
@media (max-width: 768px) {
    .privacy-tabs {
        flex-direction: column;
    }

    .privacy-nav,
    .privacy-content {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .privacy-nav {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}
/* Tiêu đề sidebar */
.privacy-nav h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* Thanh ngang sau tiêu đề */
.privacy-nav .nav-divider {
    border: none;
    border-top: 2px solid #d9534f;
    margin: 0 0 20px;
}

/* Khung viền bao quanh danh mục */
.privacy-nav .nav-box {
    border: 1px solid #ccc;
    padding: 16px;
    border-radius: 6px;
    background-color: #fff;
}

/* Danh sách không dấu chấm */
.privacy-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mục danh sách và liên kết */
.privacy-nav ul li {
    margin-bottom: 10px;
}

.privacy-nav ul li a {
    text-decoration: none;
    color: #555;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.privacy-nav ul li a:hover {
    color: #d9534f;
    text-decoration: underline;
    transform: translateX(4px);
}
/* Khung chứa slider */
.privacy-nav .privacy-slider {
    margin-top: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    width: 100%;
}

/* Track chạy ngang */
.privacy-nav .slider-track {
    display: flex;
    width: max-content;
    animation: scroll-privacy 25s linear infinite;
}

/* Ảnh trong slider */
.privacy-nav .slider-track img {
    width: 420px;
    height: 420px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease;
}

.privacy-nav .slider-track img:hover {
    transform: scale(1.05);
}

/* Animation chạy ngang */
@keyframes scroll-privacy {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive: ảnh nhỏ hơn trên mobile */
@media (max-width: 768px) {
    .privacy-nav .slider-track img {
        width: 150px;
        height: 100px;
    }
}
/* Tiêu đề nội dung */
.privacy-section h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #d9534f;
}

/* Đoạn văn và tiêu đề phụ */
.privacy-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.privacy-section strong {
    display: block;
    margin: 20px 0 10px;
    font-weight: bold;
    color: #444;
}

.content-section {
    background-color: #ffffff;
    color: #222222;
    padding: 40px 60px;
    line-height: 1.8;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: justify;
    margin: 0 3px;
}

.content-section p {
    margin-bottom: 20px;
}




.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary); 
    transition: all 0.2s ease;
    z-index: 999;
}
body.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}
.chatbot-toggler span {
    color: #fff;
    position: absolute;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child  {
    opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot {
    position: fixed;
    right: 35px;
    bottom: 90px;
    width: 350px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
                0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    z-index: 998;
}
body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header h2 {
    font-size: 1.4rem;
}
.chatbot header span {
    position: absolute;
    right: 15px;
    top: 50%;
    display: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.chatbot .chatbox {
    overflow-y: auto;
    height: 300px; 
    padding: 30px 20px 100px;
}
.chatbox .chat {
    display: flex;
    list-style: none;
}
.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}
.chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: var(--primary);
    border-radius: 4px;
    margin: 0 10px 7px 0;
}
.chatbox .chat p {
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    background: var(--primary);
    font-size: 0.95rem;
}

.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
    color: #000;
    background: #f2f2f2;
}


.chatbot .chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
}
.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
    font-family: inherit;
}
.chat-input span {
    align-self: flex-end;
    color: var(--primary);
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    visibility: hidden;
    font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
    visibility: visible;
}

.search-box {
    display: flex;
    align-items: center;
    border-radius: 20px;
    padding: 0 5px;
    border: 1px solid transparent; 
    transition: all 0.3s ease;
}

.search-box.active {
    border-color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-input {
    width: 0;
    border: none;
    outline: none;
    background: transparent;
    transition: width 0.3s ease;
    padding: 0;
    opacity: 0;
}

.search-box.active .search-input {
    width: 150px;
    padding: 5px 10px;
    opacity: 1;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    color: var(--dark);
    transition: 0.3s ease;
}

.search-btn:hover {
    color: var(--primary);
}


.product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.product-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    transform: scale(1);
}

.product-card:hover .product-img-el {
    transform: scale(1); 
}

.product-img-el.fade-out {
    opacity: 0; 
}

/* hieu ung scroll */
.reveal-item {
    opacity: 0;
    transform: translateY(50px); 
    transition: all 0.8s ease-out; 
    visibility: hidden; 
}

/* Nếu bạn thích kiểu "rơi từ trên xuống" như bạn mô tả, hãy đổi dòng transform ở trên thành:
   transform: translateY(-50px); 
*/

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (max-width: 490px) {
    .chatbot-toggler {
        right: 20px;
        bottom: 20px;
    }
    .chatbot {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }
    .chatbot .chatbox {
        height: 90%;
        padding: 25px 15px 100px;
    }
    .chatbot header span {
        display: block;
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .policy-nav {
        flex-direction: column;
    }

    .policy-content {
        flex: 1 1 auto;
        min-width: 0;
        padding: 20px;
        background-color: #fff;
        box-sizing: border-box;
        text-align: justify;
    }
}


/* Signup, Login, Forgot*/
.auth-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
.auth-page{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('images/Login.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}
.auth-page .wrapper{
    width: 420px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(35px);
    box-shadow: 0 8px 32px rgba(0,0,0, 0.2);
    color: #fff;
    border-radius: 10px;
    padding: 30px 40px;
}
.auth-page .wrapper h1{
    font-size: 36px;
    text-align: center;
}
.auth-page .wrapper .input-box{
    position: relative;
    width: 100%;
    height: 50px;
    margin: 20px 0;
}
.auth-page .input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255,255,255, .2);
    border-radius: 40px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    padding: 20px 45px 20px 20px;
}
.auth-page .input-box input::placeholder{
    color: #938f8f;
}
.auth-page .input-box i{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}
.auth-page .wrapper .btn{
    width: 100%;
    height: 45px;
    background: #dad2d2;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0,0,0, .1);
    cursor: pointer;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}
.auth-page .wrapper .register-link{
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}
.auth-page .register-link p a{
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.auth-page .register-link p a:hover{
    text-decoration: underline;
}
.auth-page .wrapper .remember-forgot{
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
   
}
.auth-page .remember-forgot label input{
    accent-color: #fff;
    margin-right: 3px;
    margin-top:30px;
}
.auth-page .remember-forgot a{
    color: #fff;
    text-decoration: none;
    margin-top: 30px;
}
.auth-page .remember-forgot a:hover{
    text-decoration: underline;
}    

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Chia cột: Trái 2 phần, Phải 1 phần */
    gap: 30px;
    margin-bottom: 50px;
}

/* Form bên trái */
.checkout-form-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary); 
    outline: none;
}

textarea.form-control {
    resize: vertical;
    height: 100px;
}

.order-summary-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    height: fit-content;
}

.order-summary-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.order-divider {
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-total {
    font-size: 20px;
    font-weight: bold;
    color: #d62828;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-confirm {
    width: 100%;
    padding: 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-confirm:hover {
    background-color: #d4a373;
}

#success-message {
    display: none; 
    text-align: center;
    padding: 50px;
    background: #e8f5e9;
    border-radius: 10px;
    margin-top: 20px;
}

#success-message h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

#success-message i {
    font-size: 60px;
    color: #2e7d32;
    margin-bottom: 20px;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    }
}