/* --- BIẾN MÀU SẮC VÀ PHÔNG CHỮ --- */
:root {
    --color-main: #F4F1EA;
    --color-main2:#eaf0f4;
    --color-secondary: #8DAB9A;
    --color-accent: #fe2b54; /* Màu chủ đạo */
    --color-text: #333333;
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
}
html {
    scroll-behavior: smooth;
}
#homepage-collections,
#homepage-blog {
    /* Khoảng đệm cho header trên di động */
    scroll-margin-top: 100px; 
}

@media (min-width: 992px) {
    #homepage-collections,
    #homepage-blog {
        /* Khoảng đệm cho header trên desktop */
        scroll-margin-top: 150px; 
    }
}
/* --- QUY TẮC CHUNG --- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #fff; /* Hoặc var(--color-main) nếu bạn muốn nền toàn trang */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* --- TÙY CHỈNH HEADER --- */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* === Header Desktop === */
/* Tầng trên */
.header-top {
    background-color: var(--color-main); /* #F4F1EA */
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-logo img {
    max-height: 50px;
}

.search-form {
    position: relative;
}

.search-form input {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    font-family: var(--font-body);
    width: 250px;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
}

.header-hotline, .header-cart {
    display: flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
}

.header-hotline i, .header-cart i {
    font-size: 1.5rem;
    color: var(--color-secondary); /* #8DAB9A */
}

.header-hotline span {
    margin-left: 8px;
    font-size: 0.9rem;
}

.header-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--color-accent); /* #D4A373 */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Tầng dưới - Thanh điều hướng */
.header-nav {
    background-color: #fff;
    padding: 5px 0; /* Chiều cao thanh thoát */
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-list > li > a:hover {
    color: var(--color-accent);
}

/* Menu thả xuống */
.dropdown .dropdown-menu {
    display: none; /* Ẩn mặc định */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    border-radius: 0;
    padding: 10px 0;
    min-width: 220px;
    z-index: 1001;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block; /* Hiện khi hover vào thẻ <li> cha */
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--color-main);
}

/* === Header Mobile === */
.mobile-header {
    padding: 10px 0;
    background-color: #fff;
}
.mobile-header .btn {
    font-size: 1.5rem;
    color: var(--color-text);
}
.mobile-logo img {
    max-height: 40px;
}
.mobile-header .cart-count {
    font-size: 10px; /* Chỉnh nhỏ lại cho mobile */
}

/* --- TIÊU ĐỀ SECTION --- */
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.section-title p {
    color: #777;
    font-size: 1.1rem;
}

/* --- GIAO DIỆN TAB --- */
.nav-tabs {
    border-bottom: 2px solid #ddd;
}
.nav-tabs .nav-item {
    margin-bottom: -2px; /* Nâng tab lên để đè lên border bottom */
}
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    color: var(--color-accent); /* #D4A373 */
    border-bottom-color: var(--color-accent);
    background-color: transparent;
}

.btn-view-more {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 20px;
}
.btn-view-more:hover {
    background-color: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* --- THẺ SẢN PHẨM --- */
.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
}
.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.product-card-img {
    position: relative;
    overflow: hidden;
}
.product-card-img img {
    width: 100%;
    height: auto;
    display: block;
}
.product-card-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 4px;
}
.product-card-actions {
    position: absolute;
    bottom: -50px; /* Ẩn đi mặc định */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    transition: bottom 0.3s ease;
}
.product-card:hover .product-card-actions {
    bottom: 20px; /* Hiện ra khi hover */
}
/* --- THẺ SẢN PHẨM - THỐNG KÊ ĐÁNH GIÁ, LƯỢT BÁN --- */
.product-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d; /* text-muted của Bootstrap */
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}
.product-card-stats .stat-item {
    display: inline-flex;
    align-items: center;
}
.product-card-stats .stat-item i {
    margin-right: 4px;
}
.btn-action {
    background-color: white;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.btn-action:hover {
    background-color: var(--color-accent);
    color: white;
}
.product-card-body {
    padding: 10px 5px;
}
.product-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    /* height: 40px; */ /* Giới hạn chiều cao 2 dòng */
    overflow: hidden;
}
.product-card-title a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
}
.product-card-title a:hover {
    color: var(--color-accent);
}
.product-card-price .price-sale {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-accent);
    margin-right: 10px;
}
.product-card-price .price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* --- TRANG DANH SÁCH SẢN PHẨM --- */
aside h4 {
    font-weight: 600;
    color: var(--color-text);
}
.filter-group h5 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.accordion-button {
    font-weight: 500;
    color: var(--color-text);
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-main);
    color: var(--color-accent);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 163, 115, 0.25); /* Màu D4A373 */
}
.form-check-label {
    cursor: pointer;
}
#sort-by {
    max-width: 200px;
}
/*
 * SỬA LỖI STICKY HEADER CHE MẤT NỘI DUNG KHI CUỘN TRANG
 * Thuộc tính này sẽ thêm một khoảng đệm "ảo" ở trên phần tử
 * khi nó là mục tiêu của một thao tác cuộn (như click vào link neo hoặc dùng JS).
*/
#products-main-header {
  /*
   * Giá trị này là khoảng đệm cho màn hình di động.
   * Header di động của chúng ta cao khoảng 60px, ta để dư ra một chút là 80px.
  */
  scroll-margin-top: 90px;
}

@media (min-width: 992px) {
  /* * Áp dụng khi màn hình lớn hơn hoặc bằng 992px (breakpoint 'lg' của Bootstrap).
   * Header desktop 2 tầng của chúng ta cao hơn, khoảng 120-130px.
   * Ta đặt giá trị là 140px để đảm bảo có khoảng trống thoải mái.
  */
  #products-main-header {
    scroll-margin-top: 250px;
  }
}

/* --- TRANG CHI TIẾT SẢN PHẨM --- */
.product-gallery .main-image-container {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
}
.thumbnail-container {
    display: flex;
    gap: 10px;
}
.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.thumbnail-image.active,
.thumbnail-image:hover {
    border-color: var(--color-accent);
}

.product-title {
    font-family: var(--font-heading);
    font-weight: 600;
}
.product-meta {
    font-size: 0.9rem;
}
.product-price .price-sale {
    color: var(--color-accent);
    font-weight: bold;
}
.product-price .price-original {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 5px;
}
.variant-group .btn {
    min-width: 80px;
}

.quantity-input {
    display: flex;
    max-width: 130px;
}
.quantity-input .form-control {
    border-left: none;
    border-right: none;
    border-radius: 0;
}
/* Tắt mũi tên lên/xuống của input number */
.quantity-input input[type=number]::-webkit-inner-spin-button,
.quantity-input input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-input input[type=number] {
    -moz-appearance: textfield;
}
/* CSS cho nút chọn phiên bản bị vô hiệu hóa */
.variant-group .btn.disabled {
    background-color: #f8f9fa;
    border-style: dashed;
    color: #ccc;
    cursor: not-allowed;
}

/* Ghi đè màu nền của nút khi active */
.variant-group .btn.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}
/* --- KHU VỰC ĐÁNH GIÁ --- */
.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}
.review-stars .bi {
    color: #ffc107; /* Màu vàng của sao */
}

/* Form đánh giá */
.review-form-wrapper {
    background-color: #f8f9fa;
}
.star-rating-input > i {
    font-size: 1.8rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}
.star-rating-input > i:hover,
.star-rating-input > i.hover,
.star-rating-input > i.active {
    color: #ffc107;
}
/* CSS cho ảnh đánh giá của khách hàng */
.review-images-gallery .review-image-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}
.review-images-gallery .review-image-thumbnail:hover {
    transform: scale(1.1);
}

/* CSS cho khu vực xem trước ảnh khi upload */
#image-preview-container .img-preview-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}
#image-preview-container .preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
#image-preview-container .remove-img-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}
/* --- TRANG AUTH --- */
.auth-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.auth-wrapper .nav-pills .nav-link {
    background-color: #f1f1f1;
    color: var(--color-text);
    font-weight: 600;
}
.auth-wrapper .nav-pills .nav-link.active {
    background-color: var(--color-secondary);
    color: white;
}
/* --- TRANG TÀI KHOẢN --- */
.account-sidebar {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.account-user-info {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}
.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto;
}
.account-sidebar .nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}
.account-sidebar .nav-link.active,
.account-sidebar .nav-link:hover {
    background-color: var(--color-main);
    color: var(--color-accent);
}
.account-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}
.account-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* --- TRANG SỔ ĐỊA CHỈ --- */
.address-card {
    transition: all 0.3s ease;
}
.address-card.border-primary {
    border-width: 2px;
}
.address-card .address-actions {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}
.address-card .card-link {
    text-decoration: none;
    font-weight: 500;
}
/* --- TRANG CHI TIẾT ĐƠN HÀNG --- */
.order-items-table img {
    max-width: 60px;
    border: 1px solid #eee;
}
.order-items-table td, .order-items-table th {
    vertical-align: middle;
}
/* --- TRANG GIỎ HÀNG - GIAO DIỆN MOBILE --- */
.cart-item .card-title {
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.cart-item .variant-attributes {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    line-height: 1.3;
}
.cart-item .price-per-item {
    font-size: 1.1rem;
}
/* --- SỬA LỖI HEADER STICKY CHE TAB TRÊN TRANG AUTH --- */
/* * Áp dụng một khoảng đệm "ảo" phía trên các tab-pane
 * để khi trình duyệt cuộn tới, nó không bị header che mất.
*/
.auth-wrapper .tab-pane {
  /* Khoảng đệm cho header trên di động (header thấp hơn) */
  scroll-margin-top: 80px;
}

@media (min-width: 992px) {
  .auth-wrapper .tab-pane {
    /* Khoảng đệm cho header trên desktop (header 2 tầng, cao hơn) */
    scroll-margin-top: 250px;
  }
}
/* --- TRANG CHỦ - KHU VỰC BỘ SƯU TẬP --- */
.collection-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 350px;
}
.collection-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.collection-card:hover .collection-card-img {
    transform: scale(1.1);
}
.collection-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}
.collection-card-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.collection-card:hover .collection-card-title {
    transform: translateY(0);
}

/* --- TRANG BLOG --- */
.post-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.post-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- TRANG CHI TIẾT BÀI VIẾT --- */
.post-content p {
    line-height: 1.8;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
/* --- HERO BANNER CAROUSEL --- */
.hero-banner-section .carousel-item {
    aspect-ratio: 1903 / 595; 
}
.hero-banner-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-banner-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.hero-banner-section .carousel-indicators .active {
    width: 30px;
    border-radius: 6px;
}

/* === THAY ĐỔI: CSS CHO CON TRỎ CHUỘT KHI KÉO === */
.hero-banner-section .carousel {
    cursor: grab;
    cursor: -webkit-grab;
}
.hero-banner-section .carousel.active-swipe {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* --- RESPONSIVE CHO DI ĐỘNG --- */
@media (max-width: 767.98px) {
    .hero-banner-section .carousel-item {
        aspect-ratio: 1170 / 495;
    }
}

/* ============================================= */
/* === CSS HOÀN CHỈNH CHO MENU DI ĐỘNG (OFF-CANVAS) === */
/* ============================================= */

/* Style cho phần header của Off-canvas */
.offcanvas-header {
    background-color: var(--color-main);
    border-bottom: 1px solid #e0e0e0;
}
.offcanvas-header .offcanvas-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Style cho phần thân của Off-canvas */
.offcanvas-body {
    padding: 0; /* Xóa padding mặc định */
}

/* Xóa các dấu chấm đầu dòng của thẻ UL */
#mobile-nav-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.offcanvas-body ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Định dạng chung cho TẤT CẢ các link trong menu */
#mobile-nav-list .nav-link {
    padding: 1rem 1.5rem;
    color: var(--color-text);
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease-in-out;
}

/* Hiệu ứng khi di chuột vào bất kỳ mục nào */
#mobile-nav-list .nav-link:hover {
    background-color: var(--color-main);
    color: var(--color-accent);
}

/* Style riêng cho mục cha có menu con */
#mobile-nav-list .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hiệu ứng xoay mũi tên */
#mobile-nav-list .mobile-dropdown-toggle .bi-chevron-down {
    transition: transform 0.3s ease;
}
#mobile-nav-list .mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Style cho các mục con trong menu xổ xuống */
#mobile-nav-list .collapse .nav-link {
    padding-left: 2.5rem; /* Thụt lề vào sâu hơn */
    font-weight: 400;     /* Chữ mảnh hơn */
    font-size: 0.95rem;
    color: #555;
    background-color: #f8f9fa; /* Màu nền hơi xám để phân biệt */
    /*border-bottom: none; /* Bỏ đường kẻ cho mục con */
}
.dropdown-header {
    font-weight: 600;
    color: var(--color-text);
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    background-color: #f8f9fa; /* Màu nền hơi xám để phân biệt */
}

/* --- TRANG CHI TIẾT SP - GALLERY ẢNH ĐÁNH GIÁ --- */
.customer-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.customer-photo-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    background-color: #f0f0f0;
}
.customer-photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.customer-photo-item:hover img { transform: scale(1.1); }
.customer-photo-item.view-more {
    display: flex; align-items: center; justify-content: center;
}
.view-more-overlay {
    font-weight: bold; color: #555; text-align: center;
    font-size: 0.9rem;
}

/* MODAL XEM ẢNH ĐÁNH GIÁ */
#review-image-modal .modal-review-info { position: relative; }
#modal-image-col img {
    width: 100%; height: auto;
    max-height: 85vh; /* Chiều cao tối đa của ảnh */
    object-fit: contain; background-color: #111;
}
.modal-thumbnails-wrapper { background-color: #f8f9fa; }
.modal-thumbnails { overflow-x: auto; }
.modal-thumbnail-img {
    width: 60px; height: 60px;
    object-fit: cover; border-radius: 5px;
    border: 2px solid transparent; cursor: pointer;
}
.modal-thumbnail-img.active { border-color: var(--color-accent); }

/* --- LIVE SEARCH HEADER --- */
.search-form {
    position: relative; /* Đã có, đảm bảo lại */
}
.header-search-results-box {
    display: none; /* Mặc định ẩn */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1100;
}
.header-search-results-box .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
}
.header-search-results-box .list-group-item:last-child {
    border-bottom: none;
}
/* ============================================= */
/* === CSS CHO TRANG LIÊN HỆ (contact.php) === */
/* ============================================= */

/* Cột thông tin liên hệ bên trái */
.contact-info-wrapper h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Tạo đường gạch chân trang trí cho tiêu đề */
.contact-info-wrapper h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
}

.contact-info-wrapper .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-info-wrapper .info-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-info-wrapper .info-item p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Form liên hệ bên phải */
.contact-form-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.contact-form-card .form-label {
    font-weight: 600;
}

.contact-form-card .form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.25rem rgba(141, 171, 154, 0.25); /* Màu --color-secondary với độ mờ */
}

.contact-form-card button[type="submit"] {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    font-weight: 600;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
}

.contact-form-card button[type="submit"]:hover {
    background-color: #c59461; /* Màu đậm hơn một chút của --color-accent */
    border-color: #c59461;
}
/* ============================================= */
/* === FOOTER === */
/* ============================================= */
.site-footer {
    background-color: #f8f9fa;
    padding: 4rem 0 0 0;
    font-size: 0.95rem;
    color: #6c757d;
}
.footer-logo {
    max-height: 40px;
    filter: grayscale(1) opacity(0.7);
}
.footer-widget .widget-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}
.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    margin-right: 5px;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background-color: var(--color-accent);
    color: #fff;
}
.footer-bottom {
    background-color: var(--color-main);
    padding: 1.5rem 0;
    margin-top: 4rem;
}
/* --- FOOTER - MẠNG XÃ HỘI --- */
.footer-social-large {
    margin-top: 1rem;
    display: flex;
    gap: 1rem; /* Khoảng cách giữa các icon */
}

.footer-social-large a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 1.5rem; /* Kích thước icon */
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-large a.facebook { background-color: #1877F2; }
.footer-social-large a.instagram { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.footer-social-large a.tiktok { background-color: #000000; }
/* THÊM QUY TẮC MỚI VÀO ĐÂY */
.footer-social-large a.shopee { background-color: #EE4D2D; display: flex; /* Để căn chỉnh item bên trong */ align-items: center; /* Căn dọc giữa */ justify-content: center; /* Căn ngang giữa */ }

.footer-social-large a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* ============================================= */
/* === NÚT LIÊN HỆ ĐỘNG (FAB) === */
/* ============================================= */
.fab-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    cursor: pointer;
}

.fab-main {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.fab-main .icon-close {
    display: none;
}

.fab-options {
    position: absolute;
    bottom: 65px; /* Khoảng cách từ nút chính */
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-option img {
    width: 28px;
    height: 28px;
}

/* Các màu nền cho từng nút con */
.fab-option:nth-child(1) { background-color: #25D366; } /* Phone - Dùng màu của WhatsApp cho nổi bật */
.fab-option:nth-child(2) { background-color: #0068FF; } /* Zalo */
.fab-option:nth-child(3) { background-color: #00B2FF; } /* Messenger */


/* Trạng thái khi active */
.fab-container.active .fab-main {
    transform: rotate(360deg);
    animation: none; /* Tắt animation khi active */
}
.fab-container.active .fab-main .icon-main {
    display: none;
}
.fab-container.active .fab-main .icon-close {
    display: block;
}
.fab-container.active .fab-option {
    opacity: 1;
    transform: translateY(0);
}

/* Hiệu ứng delay cho các nút con */
.fab-container.active .fab-option:nth-child(1) { transition-delay: 0.1s; }
.fab-container.active .fab-option:nth-child(2) { transition-delay: 0.2s; }
.fab-container.active .fab-option:nth-child(3) { transition-delay: 0.3s; }

/* Animation nhấp nháy */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(212, 163, 115, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 163, 115, 0); }
}