﻿
/* ===== RESET & BASE ===== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    padding-top: 90px;
    background: #f9fbff;
    margin-bottom: 60px;
}

a {
    color: #0077cc;
    text-decoration: none;
}

/* ===== NAVBAR ===== */
.logo-concung {
    height: 70px;
    width: auto;
}

.navbar {
    background: white;
    height: 90px;
    z-index: 1000;
}

/* 1. Định vị cho khung chứa menu */
.navbar-nav {
    position: relative; /* Quan trọng để marker chạy trong khung này */
    border-bottom: 1px solid #eee; /* Đường kẻ mờ bên dưới menu (nếu thích) */
}

/* 2. Style cho chữ menu  */
.nav-link {
    color: #333; /* Màu mặc định khi chưa chọn */
    font-weight: 600;
    margin-right: 20px; /* Khoảng cách giữa các mục */
    padding: 10px 0; /* Khoảng cách trên dưới */
}

    /* Hiệu ứng khi rê chuột vào */
    .nav-link:hover {
        color: #ff2d7a; /* Màu hồng khi hover */
    }

    /* Màu chữ khi đang được chọn (Active) */
    .nav-link.active {
        color: #ff2d7a !important;
        /* Xóa bỏ position: relative cũ ở đây đi */
    }

/* 3. Style cho thanh gạch dưới di chuyển (MARKER) */
.marker {
    position: absolute;
    bottom: 0; /* Nằm sát đáy */
    left: 0;
    height: 3px; /* Độ dày */
    background-color: #ff2d7a; /* Màu hồng chuẩn của bạn */
    transition: all 0.4s ease-in-out; /* Tốc độ trượt */
    border-radius: 10px;
    width: 0; /* JS sẽ tự tính toán độ rộng, mặc định là 0 */
    pointer-events: none; /* Để chuột click xuyên qua được */
}

/* ===== SEARCH ===== */
.search-input {
    border: 2px solid #ff2d7a;
    border-radius: 10px;
}

    .search-input:focus {
        border-color: #d81b60;
        box-shadow: 0 0 0 2px rgba(255,45,122,.2);
    }

.btn-search {
    background: #ff2d7a;
    color: white;
    border-radius: 10px;
    font-weight: bold;
}

    .btn-search:hover {
        background: #d81b60;
    }

.text-pink {
    color: #ff2d7a;
}

/* ===== LANGUAGE ICON ===== */
.lang-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffe3ed;
    color: #ff2d7a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    font-size: 18px;
}

    .lang-btn:hover {
        background: #ff2d7a;
        color: white;
    }

.account-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #E11B7F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

    .account-circle:hover {
        background-color: #C5166D;
    }

/* dropdown */
.lang-menu {
    min-width: 140px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

    .lang-menu .dropdown-item {
        color: #000;
        font-weight: 500;
    }

        .lang-menu .dropdown-item:hover {
            background: #ffe3ed;
            color: #ff2d7a;
        }


/* ===== CART BADGE ===== */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.hero-banner {
    width: 100%;
    background: #cfefff;
    overflow: hidden;
    margin-top: -20px;
}

    .hero-banner img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }



/* ===== HOT PRODUCTS SLIDER ===== */
.hot-products-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.hot-products-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.hot-slide-item {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
}

    .hot-slide-item img {
        width: 150px !important; /* Ép cố định chiều rộng */
        height: 150px !important; /* Ép cố định chiều cao bằng chiều rộng -> hình vuông */
        object-fit: contain; /* Giữ nguyên hình dáng lon sữa, không bị méo */
        padding: 5px; /* Tạo khoảng thở nhẹ */
        display: block;
        margin: 0 auto 10px; /* Căn giữa hình */
        background-color: #fff; /* (Tuỳ chọn) Đặt nền trắng để đồng bộ */
    }

/* ===== PRODUCT CARD ===== */
.product-card {
    /* width: 220px;  <-- XÓA dòng này đi để nó tự co giãn theo cột Bootstrap */
    width: 100%; /* Thêm dòng này */

    background: white;
    border-radius: 16px;
    padding: 12px 14px 40px;
    box-shadow: 0 5px 12px rgba(0,0,0,.08);
    transition: all 0.3s ease; /* Đổi thành all để mượt hơn */
    position: relative;
    border: 1px solid transparent; /* Chuẩn bị sẵn viền để khi hover đổi màu không bị giật */
}

    .product-card:hover {
        /* Kết hợp phóng to và bay lên */
        transform: scale(1.03) translateY(-5px);
        /* Bóng đổ sâu hơn */
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        /* Đưa lên lớp trên cùng */
        z-index: 10;
        /* (Tùy chọn) Thêm viền hồng nhạt cho nổi bật */
        border-color: #ff3366;
    }
/* Khung bao ngoài danh sách trượt */
.scrolling-wrapper {
    display: flex; /* Xếp hàng ngang */
    flex-wrap: nowrap; /* Không cho xuống dòng */
    overflow-x: auto; /* Cho phép cuộn ngang */
    gap: 20px; /* Khoảng cách giữa các sản phẩm */
    padding: 20px 10px; /* Padding để khi phóng to không bị cắt hình */
    scroll-behavior: smooth; /* Cuộn mượt */
}
/* ===== IMAGE ===== */
.product-img {
    width: 100%;
    height: 120px; /* ↓ thấp lại */
    object-fit: contain;
    margin-bottom: 6px;
    transform: none; /* ❌ BỎ SCALE */
}
/* ===== NAME ===== */
.product-name {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    min-height: 36px; /* ↓ thấp hơn */
    margin: 6px 0 2px;
    color: #222;
}
/* ⭐ Rating + Sold */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0;
}

.rating i {
    color: #f5b301;
    font-size: 12px;
}

.sold {
    font-size: 11px;
    color: #999;
}
/* ===== PRICE ===== */
.price {
    color: #ff2d7a;
    font-weight: 700;
    font-size: 15px; /* ↓ nhỏ lại */
    margin-top: 2px;
}
/* ===== AGE ===== */
.age {
    font-size: 11px;
    color: #777;
    margin-bottom: 22px; /* ↓ bớt chỗ */
}
/* 🛒 Cart button */
.cart-btn {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    /* Thay đổi: Nền đỏ hồng ngay từ đầu */
    background: #E91E63;
    border-radius: 50%;
    /* Thay đổi: Icon màu trắng */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease; /* Thêm hiệu ứng mượt mà */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .cart-btn:hover {
        /* Khi di chuột vào: Màu đậm hơn một chút */
        background: #c2185b;
        color: #fff;
        transform: scale(1.1); /* Phóng to nhẹ cho đẹp */
    }

/* ===== SLIDER ARROWS ===== */
.slide-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    z-index: 10;
    cursor: pointer;
}

    .slide-btn.left {
        left: 10px;
    }

    .slide-btn.right {
        right: 10px;
    }
/* ===== FOOTER ===== */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    line-height: 60px;
    text-align: center;
    color: #777;
}
/* ===== KHUNG FILTER MỚI (DẠNG TAGS) ===== */
.milk-filter-wrapper {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Đổ bóng nhẹ cho cả khung */
}

.milk-filter-box {
    max-width: 1100px; /* Giới hạn chiều rộng để căn giữa màn hình */
    margin: 0 auto; /* Căn giữa */
    padding: 0 15px;
}
/* Hàng ngang chứa các nút */
.filter-row {
    display: flex;
    flex-wrap: wrap; /* Nếu màn hình nhỏ quá thì tự xuống dòng */
    justify-content: center; /* Căn giữa các nút (hoặc để flex-start nếu muốn căn trái) */
    gap: 12px; /* Khoảng cách giữa các nút */
    margin-bottom: 15px; /* Khoảng cách giữa dòng Nước và dòng Tuổi */
}
/* Kiểu dáng từng nút (Item) */
.filter-item {
    background-color: #FFCC99; /* Nền xám nhạt */
    color: #555; /* Chữ màu ghi đậm */
    font-weight: 500;
    font-size: 14px;
    padding: 8px 24px; /* Độ phồng của nút */
    border-radius: 30px; /* Bo tròn hình viên thuốc */
    cursor: pointer; /* Con trỏ chuột hình bàn tay */
    border: 1px solid transparent; /* Viền trong suốt */
    transition: all 0.2s ease;
}
    /* Hiệu ứng khi rê chuột vào */
    .filter-item:hover {
        background-color: #ffeef2; /* Nền hồng nhạt */
        color: #ff2d7a; /* Chữ hồng đậm */
        border-color: #ff2d7a; /* Viền hồng */
        transform: translateY(-2px); /* Bay lên nhẹ xíu */
    }
    /* (Tùy chọn) Class cho nút đang được chọn */
    .filter-item.active {
        background-color: #ff2d7a;
        color: #fff;
        box-shadow: 0 4px 10px rgba(255, 45, 122, 0.4);
    }
/* Thanh filter sản phẩm */
.product-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
}

.filter-left {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

    .filter-btn:hover {
        border-color: #ff4f8b;
        color: #ff4f8b;
    }

    .filter-btn.active {
        background: #ff4f8b;
        color: #fff;
        border-color: #ff4f8b;
        font-weight: 600;
    }
/* Phân trang bên phải */
.filter-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    border: 1px solid #ffd1e1;
    background: #fff;
    color: #ff4f8b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

    .page-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.product-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.voucher-box,
.brand-box {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
/* === KHUNG THƯƠNG HIỆU === */
.brand-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 logo / hàng */
    grid-template-rows: repeat(2, 140px); /* CHỈ 2 HÀNG */
    gap: 0;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    overflow: hidden; /* ❗ chặn không cho bung ra hàng thứ 3 */
}
/* từng ô logo */
.brand-item {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
/* logo to hơn, đều nhau */
.brand-logo {
    max-width: 150px; /* tăng size tại đây */
    max-height: 90px;
    object-fit: contain;
    opacity: .9;
    transition: .2s;
}

    .brand-logo:hover {
        opacity: 1;
        transform: scale(1.08);
    }
/* ===== VOUCHER ===== */
.voucher-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 14px;
    color: #fff;
    height: 90px;
    position: relative;
}

.voucher-left h5 {
    margin: 0;
    font-weight: 700;
}

.voucher-left p {
    margin: 0;
    font-size: 13px;
    opacity: .9;
}

.voucher-right {
    background: #fff;
    color: #ff2d7a;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
}
/* màu */
.voucher-card.green {
    background: linear-gradient(135deg, #1cc88a, #17a673);
}

.voucher-card.pink {
    background: linear-gradient(135deg, #ff5fa2, #ff2d7a);
}

.voucher-card.orange {
    background: linear-gradient(135deg, #ffb347, #ff9800);
}
/* ===== QUẢNG CÁO ===== */
.ad-section img {
    object-fit: cover;
}

.ad-big img {
    height: 320px;
}

.ad-small img {
    height: 155px;
}
/* DẤU CHẤM SLIDER – BỰ + ĐẬM HƠN */
.carousel-indicators button {
    width: 50px; /* bự hơn */
    height: 30px;
    border-radius: 30%;
    background-color: #fff;
    opacity: 10; /* đậm hơn */
    margin: 0 5px;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(3); /* chấm đang active nổi hơn */
}

.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

    .thumb-img:hover {
        border: 2px solid #ff4d88;
    }

/* --- THÊM MỚI: CSS CHO PHẦN SHARE & LIKE --- */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0; /* Đường kẻ mờ bên trên */
}

/* Phần icon Share bên trái */
.share-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: #555;
}

.btn-social {
    font-size: 26px;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}

    .btn-social:hover {
        transform: scale(1.1);
    }

/* Màu sắc từng icon */
.icon-zalo img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
}

.bi-messenger {
    color: #A848F8;
}
/* Màu tím Messenger */
.bi-facebook {
    color: #1877F2;
}
/* Màu xanh Facebook */

/* Phần nút Like bên phải */
.like-group {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #FF4081; /* Màu hồng Con Cưng */
    user-select: none;
}

    .like-group i {
        font-size: 24px;
    }

.like-text {
    font-weight: 600;
    color: #333;
}

.like-count {
    font-weight: 600;
}

/* Hiệu ứng khi đã like */
.like-group.liked i::before {
    content: "\f415"; /* Mã icon trái tim đặc (heart-fill) */
}
/* ------------------------------------------- */
/* --- CSS CHO TRANG CHI TIẾT SẢN PHẨM --- */

/* Chỉnh màu nền cho cột tiêu đề bảng */
.table .bg-light {
    background-color: #f9f9f9 !important;
    color: #555;
}

/* Hiệu ứng hover cho các thẻ tin tức bên phải */
.hover-shadow {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

    .hover-shadow:hover {
        transform: translateY(-3px); /* Nhấc nhẹ lên */
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    }

/* Chỉnh ảnh trong sidebar cho gọn */
.card-img-top {
    height: 150px;
    object-fit: cover;
}

.featured-post img {
    height: 220px; /* tăng chiều cao khung */
    object-fit: cover; /* hiển thị trọn ảnh */
}

.product-body {
    display: flex;
    gap: 20px;
}

.product-detail {
    flex: 7; /* 70% */
}

.product-ads {
    flex: 3; /* 30% */
}

.voucher-wrapper {
    display: flex;
    gap: 20px;
}

.voucher-item {
    flex: 1;
    border-radius: 16px;
    padding: 20px;
    color: white;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

    .voucher-item .sub-text {
        font-size: 14px;
        font-weight: normal;
        margin-top: 5px;
    }

    /* Màu giống ConCung */
    .voucher-item.red {
        background: #e53935;
    }

    .voucher-item.green {
        background: #1b8f5a;
    }

    .voucher-item.yellow {
        background: #ffb300;
        color: #222;
    }

.share-box img {
    cursor: pointer;
    transition: 0.2s;
}

    .share-box img:hover {
        transform: scale(1.1);
    }

/*Đăng ký/ Đăng nhập*/ :root {
    --concung-pink: #E11B7F;
    --concung-hover: #C5166D;
    --light-bg: #FDF2F8;
    --text-gray: #4A4A4A;
}

body {
    background-color: var(--light-bg);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-gray);
}

.auth-card {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px; /* Bo tròn nhiều hơn */
    padding: 30px;
    box-shadow: 0 10px 25px rgba(225, 27, 127, 0.1);
}

.auth-title {
    color: var(--concung-pink);
    text-align: center;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.form-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
}

.form-control-cc {
    border-radius: 12px;
    border: 1.5px solid #eee;
    padding: 12px 15px;
    width: 100%;
    transition: all 0.3s;
}

    .form-control-cc:focus {
        outline: none;
        border-color: var(--concung-pink);
        box-shadow: 0 0 0 3px rgba(225, 27, 127, 0.1);
    }
/* Nút bấm Concung */ .btn-concung {
    background-color: var(--concung-pink);
    color: white;
    border: none;
    border-radius: 50px; /* Nút hình viên thuốc */
    padding: 12px;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-concung:hover {
        background-color: var(--concung-hover);
        transform: translateY(-1px);
    }

.btn-outline-cc {
    background: transparent;
    color: var(--concung-pink);
    border: 2px solid var(--concung-pink);
    border-radius: 50px;
    padding: 10px;
    width: 100%;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
    display: block;
    text-decoration: none;
}

    .btn-outline-cc:hover {
        background: var(--light-bg);
        color: var(--concung-hover);
    }

.required {
    color: var(--concung-pink);
}

.link-pink {
    color: var(--concung-pink);
    text-decoration: none;
    font-weight: 600;
}

    .link-pink:hover {
        text-decoration: underline;
    }


.profile-header {
    background: linear-gradient(135deg, #E11B7F, #ff5ca8);
    color: white;
    padding: 30px;
    border-radius: 0 0 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    color: #E11B7F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-right: 15px;
}

.username {
    font-weight: 700;
    margin-bottom: 5px;
}

.follow-info {
    font-size: 14px;
    opacity: 0.9;
}

.icon-btn {
    font-size: 22px;
    color: white;
}

.security-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.security-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.link-item {
    text-decoration: none;
    color: #333;
}

    .link-item:hover {
        color: #E11B7F;
    }


/* đổi mật khẩu */
.custom-card {
    border-radius: 20px;
    border: none;
    padding: 2rem;
}

.text-con-cung {
    color: #e83e8c; /* Màu hồng Con Cưng */
    font-weight: bold;
    text-transform: uppercase;
}

.form-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 10px;
    padding: 0.75rem;
    background-color: #fdfdfd;
}

.btn-con-cung {
    background-color: transparent;
    border: 2px solid #e83e8c;
    color: #e83e8c;
    border-radius: 30px;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

    .btn-con-cung:hover {
        background-color: #e83e8c;
        color: white;
    }


/*Hỗ trợ khachs hàng*/
.custom-card-contact {
    border-radius: 20px;
    border: none;
    padding: 1.5rem;
}

.text-con-cung {
    color: #e83e8c; /* Màu hồng Con Cưng */
    font-weight: bold;
}

.form-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #333;
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 0.7rem;
    border: 1px solid #dee2e6;
    background-color: #fdfdfd;
}

.btn-submit-contact {
    background-color: #e83e8c;
    color: white;
    border-radius: 30px;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    transition: 0.3s;
    width: 100%;
}

    .btn-submit-contact:hover {
        background-color: #d63384;
        box-shadow: 0 4px 8px rgba(232, 62, 140, 0.3);
    }

.support-box {
    border-radius: 20px;
    background-color: #fff;
}

/*ADMIN*/
.text-pink {
    color: #E91E63;
}

.admin-menu {
    color: #333;
    border-radius: 8px;
    transition: 0.2s;
}

    .admin-menu:hover {
        background-color: #fde4ec;
        color: #E91E63;
        font-weight: 500;
    }

    .admin-menu.active {
        background-color: #E91E63;
        color: white !important;
        font-weight: bold;
    }
