/* --- CẤU HÌNH CHUNG --- */
:root {
    --primary-pink: #d64578;
    /* Màu hồng chủ đạo */
    --text-gray: #666;
    --border-gray: #ddd;
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #fff;
}

a {
    text-decoration: none;
}

/* =========================================
           SECTION 1: TOP BAR (Dòng xám trên cùng)
           ========================================= */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    color: var(--text-gray);
    font-size: 13px;
    padding: 5px 0;
}

.top-bar i {
    margin-right: 5px;
    color: #999;
}

.top-bar .hotline-num {
    color: var(--primary-pink);
    font-weight: bold;
}

/* =========================================
           SECTION 2: MAIN HEADER (Logo, Search, User)
           ========================================= */
.main-header {
    padding: 20px 0;
    background: white;
}

/* Logo */
.brand-text {
    color: var(--primary-pink);
    font-weight: bold;
    font-size: 28px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Search Box */
.search-group .input-group-text {
    background: #f1f1f1;
    border: 1px solid var(--border-gray);
    font-size: 13px;
    border-right: none;
}

.search-group .form-select {
    max-width: 100px;
    background-color: #f1f1f1;
    border: 1px solid var(--border-gray);
    border-right: none;
    font-size: 13px;
}

.search-group .form-control {
    border: 1px solid var(--border-gray);
    border-left: 1px solid #eee;
    box-shadow: none;
}

.search-group .btn-search {
    background-color: var(--primary-pink);
    border: 1px solid var(--primary-pink);
    color: white;
    padding: 0 20px;
}

.search-group .btn-search:hover {
    background-color: #b03560;
}

/* User & Cart Area */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    cursor: pointer;
}

.action-item i {
    font-size: 24px;
    color: #333;
}

.action-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.action-title {
    font-weight: bold;
    font-size: 14px;
}

.action-sub {
    font-size: 12px;
    color: #888;
}

.cart-count {
    color: #d00;
    font-weight: bold;
}

/* --- CSS CHO DROPDOWN USER (Mũi tên & Nút bấm) --- */
.user-dropdown-toggle {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.auth-dropdown-menu {
    width: 200px !important; /* Giảm từ 280px xuống 200px */
    padding: 12px !important; /* Giảm khoảng cách đệm bên trong */
    border-radius: 4px !important;
}

/* Thu nhỏ mũi tên tam giác */
.auth-dropdown-menu::before {
    right: 20px; /* Căn chỉnh lại vị trí */
    top: -8px;
    border-width: 0 8px 8px 8px;
}
/* Phần header bên trong dropdown (nền xám nhạt) */
.user-dropdown-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.user-info-text {
    line-height: 1.2;
}

.user-info-text .user-name {
    font-weight: bold;
    display: block;
    font-size: 14px;
}

.user-info-text .last-login {
    font-size: 10px;
    color: #888;
}

/* Các item trong menu */
.auth-dropdown-menu .dropdown-item {
    padding: 10px 15px;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
}

.auth-dropdown-menu .dropdown-item i {
    width: 20px;
    font-size: 12px;
}

/* Nút Đăng xuất kiểu nút bấm xám ở dưới cùng */
.btn-logout-custom {
    background: #f1f1f1;
    border: none;
    width: 100%;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    color: #555;
    transition: 0.3s;
}

.btn-logout-custom:hover {
    background: #e0e0e0;
}

.btn-auth {
    display: block;
    width: 100%;
    padding: 5px 0;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    border-radius: 0;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.btn-auth-login {
    background-color: #d64578;
    color: white;
    border: 1px solid #d64578;
}

.btn-auth-login:hover {
    background-color: #b03560;
    color: white;
}

.btn-auth-register {
    background-color: white;
    color: #333;
    border: 1px solid #d64578;
}

.btn-auth-register:hover {
    background-color: #fff0f5;
}

/* =========================================
           SECTION 3: NAVIGATION BAR (Thanh menu hồng)
           ========================================= */
.main-nav {
    background-color: var(--primary-pink);
    color: white;
}

/* Tiêu đề danh mục (Kết nối với Sidebar bên dưới) */
.cat-title-header {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li a {
    color: white;
    padding: 12px 15px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    display: block;
    transition: 0.2s;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
           SECTION 4: HERO SECTION (Sidebar & Slider)
           ========================================= */
/* Sidebar Menu Styles */
.category-menu {
    border: 1px solid #eee;
    border-top: none;
    background: white;
    min-height: 100%;
}

.cat-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
    text-transform: uppercase;
}

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

.cat-item:hover {
    background-color: #f9f9f9;
    color: var(--primary-pink);
    padding-left: 25px;
}

.cat-item i.icon-left {
    width: 25px;
    color: #777;
    font-size: 14px;
}

.cat-item i.icon-arrow {
    margin-left: auto;
    font-size: 10px;
    color: #ccc;
}

/* Slider Styles */
.main-slider .carousel-item {
    height: 435px;
    position: relative;
}

/* Chiều cao khớp với menu */
.main-slider img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Hiệu ứng mờ đè lên ảnh */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Nút Xem sản phẩm */
.slider-btn-container {
    position: absolute;
    bottom: 40px;
    left: 30px;
    z-index: 3;
}

.btn-view-product {
    background-color: rgba(214, 69, 120, 0.8);
    color: white;
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 0;
    display: inline-block;
}

.btn-view-product:hover {
    background-color: var(--primary-pink);
    color: white;
}

/* Nút Next/Prev */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.3);
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* --- SECTION 5: MEDIA / BÁO CHÍ --- */
.media-section {
    padding: 30px 0;
    background-color: #fff;
    /* Nền trắng */
}

.media-card {
    height: 180px;
    /* Chiều cao cố định cho các banner */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff0f6;
    /* Nền hồng nhạt */
    border: 1px solid #ffe6ef;
}

/* Ảnh nền hoặc ảnh sản phẩm full box */
.media-card img.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout cho banner báo chí (Logo + Text) */
.media-content {
    text-align: center;
    width: 100%;
    padding: 20px;
    /* Tạo hiệu ứng nền khói mờ hồng như ảnh */
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 235, 240, 0.5) 100%
    );
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.media-logo {
    max-height: 40px;
    /* Chiều cao logo báo */
    margin-bottom: 10px;
    max-width: 80%;
}

.media-text {
    color: #0088cc;
    /* Màu xanh dương giống chữ VnExpress/Thanh Nien */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    margin: 0;
}

.media-text span {
    color: var(--primary-pink);
    /* Chữ 'Nệm Thắng Lợi' có thể làm màu hồng nếu muốn nhấn mạnh */
}

/* Chữ riêng cho banner Thanh Niên (Màu xanh đậm hơn) */
.text-thanhnien {
    color: #0072bc;
}

/* Chữ riêng cho banner VnExpress (Màu đỏ nâu) */
.text-vnexpress {
    color: #9f224e;
}

/* --- SECTION 6: SẢN PHẨM BÁN CHẠY --- */
.bestseller-section {
    padding: 30px 0;
    background-color: #fff;
}

/* Thanh tiêu đề màu hồng */
.section-header-pink {
    background-color: var(--primary-pink);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Product Card Layout */
.product-item {
    margin-bottom: 20px;
}

/* Khung chứa ảnh có viền hồng */
.product-img-box {
    border: 1px solid var(--primary-pink);
    /* Viền hồng theo yêu cầu */
    padding: 15px;
    position: relative;
    /* Để căn chỉnh nhãn HOT/SALE */
    background: #fff;
    transition: transform 0.3s ease;
}

.product-img-box:hover {
    box-shadow: 0 5px 15px rgba(214, 69, 120, 0.2);
}

.product-img-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Nhãn HOT (Góc trái) */
.badge-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ea9d01;
    /* Màu cam giống ảnh */
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 0;
}

/* Nhãn Giảm giá (Góc phải) */
.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e60000;
    /* Màu đỏ */
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 0;
}

/* Thông tin sản phẩm bên dưới */
.product-info {
    text-align: center;
    padding-top: 15px;
}

.product-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 38px;
    /* Giới hạn 2 dòng để đều nhau */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title:hover {
    color: var(--primary-pink);
}

/* Giá cả */
.price-box {
    margin-bottom: 10px;
}

.current-price {
    color: #d00;
    font-weight: bold;
    font-size: 14px;
}

.old-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
    margin-left: 5px;
}

/* Quà tặng (Footer card) */
.gift-info {
    border-top: 1px dashed #ddd;
    /* Đường gạch đứt nét */
    padding-top: 10px;
    font-size: 12px;
    color: #555;
}

.gift-info i {
    color: var(--primary-pink);
    font-size: 14px;
    margin-right: 3px;
}

/* --- SECTION 7: WELCOME PARALLAX (Chào mừng) --- */
.welcome-section {
    position: relative;
    /* Thay link ảnh nền background to, tối màu tại đây */
    background-image: url("https://images.unsplash.com/photo-1556228453-efd6c1ff04f6?q=80&w=1470&auto=format&fit=crop");
    background-attachment: fixed;
    /* QUAN TRỌNG: Tạo hiệu ứng Parallax (hình đứng yên khi cuộn) */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0;
    color: white;
}

/* Lớp phủ màu đen mờ để làm nổi bật chữ trắng */
.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Độ mờ 70% */
    z-index: 1;
}

/* Nội dung phải nằm trên lớp phủ */
.welcome-content {
    position: relative;
    z-index: 2;
}

/* Tiêu đề & Logo chữ */
.welcome-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.welcome-brand {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: "Times New Roman", serif;
    /* Font có chân cho giống ảnh */
}

.welcome-desc {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 13px;
    line-height: 1.6;
    color: #ddd;
}

.welcome-desc a {
    color: white;
    text-decoration: underline;
}

/* Phần Thống kê (Stats) */
.stat-box {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    /* Đường gạch dọc mờ */
    padding: 10px 0;
}

.stat-box:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 10px;
    color: #fff;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #ccc;
}

/* Phần Slider Hình Tròn */
.circle-slider-container {
    margin-top: 50px;
    position: relative;
}

.circle-item {
    text-align: center;
    padding: 10px;
}

.circle-img-wrap {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    /* Tạo hình tròn */
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    /* Viền mờ xung quanh */
    transition: all 0.3s ease;
    cursor: pointer;
}

.circle-img-wrap:hover {
    border-color: var(--primary-pink);
    /* Hover đổi màu viền sang hồng */
    transform: scale(1.05);
    /* Phóng to nhẹ */
}

.circle-img-wrap img {
    width: 80%;
    /* Ảnh sản phẩm nhỏ nằm trong hình tròn trắng */
    height: auto;
}

.circle-title {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    display: block;
    text-decoration: none;
}

.circle-title:hover {
    color: var(--primary-pink);
}

/* Nút điều hướng slide (Mũi tên nhỏ 2 bên) */
.circle-control-prev,
.circle-control-next {
    width: 30px;
    opacity: 1;
}

.circle-control-prev {
    left: -40px;
}

.circle-control-next {
    right: -40px;
}

/* --- SECTION 8: CATEGORY SECTION (NỆM CAO SU THIÊN NHIÊN) --- */
.category-section {
    padding: 40px 0;
    background-color: #f4f4f4;
    /* Nền xám nhạt như ảnh */
}

.category-header {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #333;
}

/* Banner bên trái */
.promo-banner {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Để ảnh phủ kín khung mà không méo */
    min-height: 300px;
    /* Đảm bảo chiều cao tối thiểu bằng với khối sản phẩm */
}

/* Nút "Xem tất cả" đè lên banner */
.btn-view-all-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-pink);
    color: white;
    padding: 10px 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-view-all-overlay:hover {
    background-color: #b03560;
    color: white;
    bottom: 35px;
    /* Hiệu ứng nảy lên nhẹ khi hover */
}

/* Điều chỉnh lại layout sản phẩm cho phần này */
/* Giúp card sản phẩm có chiều cao bằng nhau và bằng banner */
.category-section .product-item {
    background: white;
    height: 100%;
    margin-bottom: 0;
    border: 1px solid #eee;
    /* Viền mỏng cho card */
}

/* --- SECTION 9: NEWS SECTION (TIN TỨC MỚI) --- */
.news-section {
    padding: 40px 0;
    background-color: #fff;
}

.news-header {
    text-align: center;
    font-weight: bold;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #333;
}

/* LEFT COLUMN: News Slider */
.news-slider-item {
    position: relative;
    height: 400px;
    /* Chiều cao cố định cho slider */
    overflow: hidden;
}

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

/* Caption (Tiêu đề đè lên ảnh) */
.news-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    /* Gradient đen mờ từ dưới lên để làm nổi bật chữ */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    color: white;
    text-align: left;
}

.news-title-large {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    color: white;
}

.news-date-large {
    font-size: 13px;
    opacity: 0.8;
}

/* Custom Indicators (Dấu chấm tròn) */
.news-carousel-indicators {
    bottom: 20px;
    /* Vị trí cách đáy */
    right: 20px;
    /* Vị trí cách phải */
    left: auto;
    /* Hủy căn giữa mặc định */
    margin-right: 0;
    margin-bottom: 0;
}

.news-carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    border: none;
}

.news-carousel-indicators button.active {
    background-color: white;
}

/* RIGHT COLUMN: News List */
.news-list-item {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-thumb {
    width: 40%;
    /* Chiếm 40% chiều rộng */
    height: 120px;
    flex-shrink: 0;
    /* Không bị co lại */
    margin-right: 20px;
    overflow: hidden;
}

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

.news-info {
    flex-grow: 1;
    /* Chiếm phần còn lại */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date-small {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.news-title-small {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title-small:hover {
    color: var(--primary-pink);
}

.news-read-more {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    text-decoration: underline;
    font-weight: 600;
}

.news-read-more:hover {
    color: var(--primary-pink);
}

/* Nút Xem Tất Cả ở dưới cùng */
.btn-view-all-news {
    background-color: var(--primary-pink);
    color: white;
    padding: 12px 40px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    border-radius: 0;
    margin-top: 30px;
    display: inline-block;
}

.btn-view-all-news:hover {
    background-color: #b03560;
    color: white;
}

/* --- SECTION 10: FOOTER (CHÂN TRANG) --- */

/* 1. Thanh Dịch Vụ (Service Bar) */
.service-bar {
    background-color: var(--primary-pink);
    color: white;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
}

.service-item i {
    font-size: 24px;
    margin-right: 10px;
    border: 2px solid white;
    border-radius: 50%;
    padding: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Main Footer Layout */
.main-footer {
    background-color: #f9f9f9;
    /* Nền xám rất nhạt */
    padding-top: 50px;
    color: #333;
    font-size: 13px;
}

.footer-col-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 14px;
    color: #000;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-pink);
}

/* Social Icons */
.social-link {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    text-decoration: none;
}

.social-link i {
    width: 20px;
    margin-right: 8px;
    color: #555;
}

.social-link:hover,
.social-link:hover i {
    color: var(--primary-pink);
}

/* Email Subscribe Form */
.subscribe-form .input-group {
    border: 1px solid #ddd;
    background: white;
}

.subscribe-form input {
    border: none;
    font-size: 13px;
    padding: 10px 15px;
    box-shadow: none;
}

.subscribe-form .btn-submit {
    background: white;
    border: none;
    color: var(--primary-pink);
    padding: 0 15px;
}

.subscribe-desc {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
}

/* 3. Company Info Section */
.footer-company-info {
    margin-top: 40px;
    padding-bottom: 30px;
}

.footer-logo-img {
    max-width: 150px;
    margin-bottom: 20px;
}

.company-name {
    color: var(--primary-pink);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 15px;
}

.company-address p {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    color: #555;
}

.company-address i {
    color: var(--primary-pink);
    margin-right: 10px;
    margin-top: 3px;
    /* Căn chỉnh icon với dòng đầu tiên của text */
    width: 15px;
    text-align: center;
}

/* 4. Payment & Cert Bar */
.payment-cert-bar {
    border-top: 1px solid #eee;
    padding: 20px 0;
    background: white;
}

.bocongthuong-img {
    height: 40px;
}

.payment-icons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.payment-item {
    text-align: center;
    font-size: 11px;
    color: #555;
}

.payment-item i {
    display: block;
    font-size: 24px;
    margin-bottom: 2px;
    color: #333;
}

/* 5. Copyright Bar */
.copyright-bar {
    background-color: var(--primary-pink);
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
}

.hero-carousel-indicators {
    bottom: 20px;
    /* Cách đáy 20px */
}

.hero-carousel-indicators button {
    width: 12px !important;
    /* Chiều rộng */
    height: 12px !important;
    /* Chiều cao */
    border-radius: 50%;
    /* Bo tròn thành hình chấm */
    background-color: rgba(255, 255, 255, 0.5) !important;
    /* Màu trắng mờ */
    border: 2px solid transparent !important;
    margin: 0 6px !important;
    /* Khoảng cách giữa các chấm */
    opacity: 1 !important;
    transition: all 0.3s ease;
}

/* Chấm đang Active (Đang chọn) */
.hero-carousel-indicators button.active {
    background-color: white !important;
    /* Sáng lên */
    transform: scale(1.2);
    /* Phóng to nhẹ */
    border: 2px solid var(--primary-pink) !important;
    /* Viền hồng cho nổi bật */
}
/* Khung bao quanh */
.cat-wrapper {
    position: relative;
    display: block;
    z-index: 1001; /* Đảm bảo cao hơn các thành phần khác */
}

/* Danh sách danh mục */
.cat-list-box {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #eee;
    position: absolute;
    width: 100%;
    background: #fff;
    left: 0;
    top: 100%; /* Đẩy xuống dưới nút SẢN PHẨM */

    /* Hiệu ứng ẩn để hover */
    display: none !important;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* HIỆU ỨNG HOVER: Di chuột vào wrapper thì hiện list */
.cat-wrapper:hover .cat-list-box {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* TRANG CHỦ: Luôn hiển thị sẵn */
.cat-wrapper.is-home .cat-list-box {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute; /* Giữ absolute để không làm vỡ layout slide */
}

/* Định dạng link bên trong */
.cat-list-box li a {
    display: block;
    padding: 12px 20px;
    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px solid #f8f8f8;
    background: #fff;
}

.cat-list-box li a:hover {
    background: #ffeff5 !important;
    color: #d64578 !important;
}
/* Đảm bảo phần tử cha có vị trí tương đối */
.cart-items {
    position: relative;
}

/* Ẩn giỏ hàng mặc định */
.shopping-item {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* Hiển thị khi hover vào vùng chứa giỏ hàng */
.action-item:hover .shopping-item {
    opacity: 1;
    visibility: visible;
    top: 110%; /* Đẩy xuống một chút cho đẹp */
}
/* Đảm bảo khung chứa giỏ hàng là mốc để căn chỉnh dropdown */
.cart-items {
    position: relative;
    padding-bottom: 5px;
}

/* Dropdown giỏ hàng */
.shopping-item {
    position: absolute;
    top: 120%; /* Đẩy xuống dưới icon */
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;

    /* Hiệu ứng ẩn/hiện mượt mà */
    display: block !important; /* Luôn tồn tại trong DOM */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

/* Khi di chuột vào vùng action-item hoặc cart-items thì hiện giỏ hàng */
.action-item:hover .shopping-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

/* Định dạng danh sách sản phẩm trong giỏ */
.shopping-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px !important;
}

.shopping-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    gap: 10px;
}

.shopping-list .cart-img-head {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.shopping-list .cart-img-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopping-list .content h4 {
    font-size: 13px;
    margin-bottom: 5px;
}

/* Điều chỉnh nút xóa trong giỏ hàng mini */
.shopping-list .remove {
    position: absolute;
    right: 5px;
    top: 5px;
    color: #999; /* Màu xám nhẹ thay vì đỏ đậm để bớt thô */
    font-size: 12px; /* Thu nhỏ kích thước icon */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee; /* Thêm vòng tròn nhẹ quanh nút */
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.shopping-list .remove:hover {
    color: #ff4d4d; /* Hiện màu đỏ khi di chuột vào */
    background-color: #fff5f5;
    border-color: #ff4d4d;
}

/* Đảm bảo icon bên trong không bị lệch */
.shopping-list .remove i {
    font-size: 10px;
    font-weight: bold;
}
/* Thêm vào cuối file public/css/client_style.css */
@media (max-width: 767px) {
    .circle-control-prev { left: 0px; }
    .circle-control-next { right: 0px; }
    .circle-slider-container { overflow: hidden; } /* Cắt phần dư thừa nếu có */
}
