﻿/* ===== Logo ===== */
.main-logo {
    height: 50px;
    width: auto;
}

/* ===== Navbar ===== */
.navbar {
    padding: 0.4rem 1rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 17px;
    color: #000;
    transition: 0.3s;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #ff6a00;
    }

/* ===== Icon ===== */
.nav-icon {
    color: #000;
    transition: color 0.3s;
}

    .nav-icon:hover {
        color: #ff6a00;
    }

.badge.bg-danger1 {
    background-color: #ff6a00 !important;
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: -6px;
    right: -10px;
}

/* ===== Responsive cho mobile ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
    }

        .navbar-nav .nav-link {
            display: block;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }

            .navbar-nav .nav-link:last-child {
                border-bottom: none;
            }

    /* Ẩn search trên mobile cho gọn */
    .search-box {
        display: none;
    }

    /* Giảm kích thước logo trên mobile */
    .main-logo {
        height: 45px;
    }
}

/* ==== LOGO ==== */
/*.main-logo {
    height: 60px;*/ /* 🔸 giảm từ 70px → 50px */
    /*width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-right: 15px;
}

    .main-logo:hover {
        transform: scale(1.05);
    }*/

/* ==== NAVBAR ==== */
/*.navbar {
    padding: 0.3rem 1rem;*/ /* 🔸 giảm padding dọc */
    /*background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    height: 65px;*/ /* 🔸 cố định chiều cao tổng thể */
    /*display: flex;
    align-items: center;
}*/

/* ==== MENU LINK ==== */
/*.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 15px;*/ /* giảm nhẹ kích thước chữ */
    /*color: #000;
    margin: 0 10px;
    transition: color 0.3s;
    line-height: 1.2;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #ff6a00;
    }*/

/* ==== ICON ==== */
/*.nav-icon {
    color: #000;
    font-size: 18px;*/ /* nhỏ hơn chút */
    /*transition: color 0.3s;
}

    .nav-icon:hover {
        color: #ff6a00;
    }*/

/* ==== BADGE ==== */
/*.badge.bg-danger1 {
    background-color: #ff6a00 !important;
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: -5px;
    right: -8px;
}*/

/* ==== Responsive ==== */
/*@media (max-width: 992px) {
    .main-logo {
        height: 45px;
    }

    .navbar {
        height: auto;*/ /* để menu mobile tự giãn */
        /*padding: 0.5rem;
    }
}*/

/* ===== Navbar Links ===== */
/*.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    font-weight: 500;
    font-size: 16px;
    color: #000;*/ /* màu chữ mặc định */
    /*margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}*/

    /* Hover: chữ cam */
    /*.navbar-nav .nav-link:hover,
    .navbar-nav .dropdown-toggle:hover {
        color: #ff6a00;
    }*/

    /* Active: chữ cam + đậm */
    /*.navbar-nav .nav-link.active,
    .navbar-nav .dropdown-toggle.active {
        color: #ff6a00;
        font-weight: 600;
    }*/

    /* Gạch chân khi hover hoặc active */
    /*.navbar-nav .nav-link::before,
    .navbar-nav .dropdown-toggle::before {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        left: 0;
        bottom: -5px;
        background-color: #ff6a00;
        transition: width 0.3s ease;
    }*/


    /* Hover hoặc Active */
    /*.navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after,
    .navbar-nav .dropdown-toggle:hover::after,
    .navbar-nav .dropdown-toggle.show::after {
        width: 100%;
    }*/

/* Logo */
/*.navbar-brand .logo1 {
    height: 40px;
    width: auto;
}*/



/* ===== Hero Section ===== */
/*.hero-section { 
    background: #f8f9fa; 
    padding: 50px 20px; 
}
.hero-section h1 { 
    font-size: 2.5rem; 
    font-weight: bold; 
}*/
/* ===== Category ===== */
/*.category-title { 
    text-align: center; 
    font-weight: 600; 
    margin-top: 10px; 
}*/
/* Card danh mục */
/*.category {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}
.category:nth-child(1) { animation-delay: 0.2s; }
.category:nth-child(2) { animation-delay: 0.4s; }
.category:nth-child(3) { animation-delay: 0.6s; }
.category:nth-child(4) { animation-delay: 0.8s; }

.category img {
    width: 100%;
    height: 220px;*/ /* đồng bộ chiều cao */
/*object-fit: cover;         
    border-radius: 6px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.category:hover { 
    transform: translateY(-5px); 
}
.category:hover img {
    transform: scale(1.1);     
    opacity: 0.85;             
}*/
/* ===== Product Card ===== */
/*.product-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}
.product-card img {
    width: 100%;
    height: 250px;             
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.product-card:hover img {
    transform: scale(1.08);    
    filter: brightness(0.9);   
}
.product-card button:hover { 
    background: #fff; 
    color: #000; 
    border: 1px solid #000; 
    transition: 0.3s; 
}*/
/* Animation keyframes */
/*@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
}

/* ===== Navbar ===== */
.navbar {
    background: #fff !important;
    border-bottom: 1px solid #eee;
}

    .navbar .nav-link {
        color: #000;
        font-weight: 500;
        margin: 0 10px;
        transition: 0.3s;
    }

        .navbar .nav-link:hover,
        .navbar .nav-link.active {
            color: #ff6a00; /* cam */
        }

.nav-icon {
    font-size: 20px;
    color: #000;
    margin-left: 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-icon:hover {
        color: #ff6a00;
    }

    .nav-icon .badge {
        font-size: 12px;
        position: absolute;
        top: -5px;
        right: -10px;
        background: #ff6a00 !important; /* badge cam */
    }

/* ===== Section Title ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    color: #000;
}

    .section-title::after {
        content: "";
        display: block;
        width: 180px;
        height: 3px;
        background: #ff6a00; /* gạch chân cam */
        margin: 10px auto 0;
        border-radius: 2px;
    }

/* ===== Danh mục ===== */
.category img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    transition: 0.3s;
}

.category:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.category-title {
    margin-top: 8px;
    font-weight: 500;
    color: #000;
}

/* ===== Product Card ===== */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    transition: 0.3s;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border-color: #ff6a00; /* viền cam khi hover */
    }

    .product-card img {
        width: 100%;
        height: 200px;
        border-radius: 8px;
        object-fit: cover;
    }

    .product-card h6 {
        color: #000;
    }

    .product-card p {
        color: #666;
    }

/* ===== Button ===== */
.btn-dark {
    background: #000;
    color: #fff;
    border: none;
}

    .btn-dark:hover {
        background: #ff6a00;
        color: #fff;
    }

.btn-outline-dark {
    border: 1px solid #000;
    color: #000;
}

    .btn-outline-dark:hover {
        background: #ff6a00;
        color: #fff;
    }
/* Nút cam riêng */
.btn-orange {
    background: #ff6a00;
    color: #fff;
    border: none;
}

    .btn-orange:hover {
        background: #e65c00;
        color: #fff;
    }

/* ===== Promo Banner ===== */
.promo-banner {
    position: relative;
}

.promo-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1rem;
}

/* ===== Ưu điểm dịch vụ icon ===== */
.bi {
    color: #ff6a00; /* icon cam */
}

/* ===== Carousel Controls (mũi tên) ===== */
.carousel-control-prev,
.carousel-control-next {
    background: none !important; /* bỏ nền đen dài */
    border: none;
    width: auto;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    filter: invert(48%) sepia(95%) saturate(900%) hue-rotate(5deg) brightness(95%) contrast(95%);
    /* icon cam */
    width: 1.3rem; /* nhỏ hơn */
    height: 1.3rem; /* nhỏ hơn */
}

/* Hover */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(36%) sepia(96%) saturate(1500%) hue-rotate(5deg) brightness(95%) contrast(95%);
}

/* ===== Footer ===== */
footer {
    
    color: #fff;
}

    footer a {
        color: #ff6a00;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* ===== Product Detail Page ===== */
.main-img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    cursor: crosshair;
}

.thumb-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

    .thumb-list img {
        width: 70px;
        height: 70px;
        border-radius: 6px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: 0.3s;
        object-fit: cover;
    }

        .thumb-list img:hover,
        .thumb-list img.active {
            border: 2px solid #000;
            transform: scale(1.05);
        }

/* Zoom container */
.zoom-container {
    position: relative;
    display: inline-block;
}

.zoom-result {
    position: absolute;
    border: 1px solid #ccc;
    width: 250px;
    height: 250px;
    right: -270px; /* hiển thị bên phải ảnh */
    top: 0;
    background-repeat: no-repeat;
    background-size: 1000px 1000px; /* scale lớn */
    display: none;
    border-radius: 8px;
    z-index: 10;
}

/* Nút thêm giỏ hàng */
.btn-add-cart {
    background: #000;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    width: 100%;
    margin-top: 20px;
    transition: 0.3s;
}

    .btn-add-cart:hover {
        background: #333;
    }

/* Card sản phẩm liên quan */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

    .product-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

/*trang giỏ hàng*/
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f1f1;
    padding: 15px 0;
}

    .cart-item img {
        width: 100px;
        height: auto;
        border-radius: 6px;
        object-fit: cover;
        margin-right: 15px;
    }

    .cart-item h6 {
        margin: 0;
        font-size: 16px;
    }

    .cart-item p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

.quantity-box {
    display: flex;
    align-items: center;
}

    .quantity-box button {
        width: 35px;
        height: 35px;
        border: 1px solid #ddd;
        background: #fff;
    }

    .quantity-box input {
        width: 50px;
        text-align: center;
        border: 1px solid #ddd;
        margin: 0 5px;
    }

.order-summary {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
}

.btn-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 12px;
    margin-top: 15px;
}

    .btn-checkout:hover {
        background: #333;
    }
    
/*Thanh toán*/
/* ===== Cart Item ===== */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    transition: background 0.3s ease;
}

    .cart-item:hover {
        background: #fafafa; /* hiệu ứng hover */
    }

    .cart-item img {
        width: 90px;
        height: 90px;
        border-radius: 6px;
        object-fit: cover;
        margin-right: 15px;
        border: 1px solid #ddd;
    }

    .cart-item h6 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #000;
    }

    .cart-item p {
        margin: 2px 0 0;
        color: #666;
        font-size: 14px;
    }

/* ===== Quantity Box ===== */
.quantity-box {
    display: flex;
    align-items: center;
}

    .quantity-box button {
        width: 32px;
        height: 32px;
        border: 1px solid #ccc;
        background: #fff;
        color: #000;
        font-weight: bold;
        border-radius: 4px;
        transition: 0.3s;
    }

        .quantity-box button:hover {
            background: #ff6a00;
            color: #fff;
            border-color: #ff6a00;
        }

    .quantity-box input {
        width: 50px;
        text-align: center;
        border: 1px solid #ccc;
        margin: 0 5px;
        border-radius: 4px;
    }

/* ===== Order Summary ===== */
.order-summary {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .order-summary h5 {
        font-weight: 600;
        margin-bottom: 20px;
        text-align: center;
        color: #000;
    }

/* ===== Checkout Button ===== */
.btn-checkout {
    width: 100%;
    background: #ff6a00;
    color: #fff;
    padding: 12px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: 0.3s;
}

    .btn-checkout:hover {
        background: #e65c00;
        color: #fff;
    }

/*khuyen mai*/
/* Khuyến mãi */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    transition: 0.3s;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        border-color: #ff6a00;
    }

    .product-card img {
        height: 220px;
        object-fit: cover;
        border-radius: 6px;
    }

.badge.bg-danger1 {
    font-size: 0.6rem;
    padding: 4.5px 5.5px;
}

.text-orange {
    color: #ff6a00;
}

/*Liên hệ*/
.btn-orange {
    background-color: #ff6a00;
    color: #fff;
    border: none;
    transition: 0.3s ease;
}

    .btn-orange:hover {
        background-color: #e85c00;
        color: #fff;
    }

.contact-banner {
    background-color: #f7f7f7;
}

form input, form textarea {
    border-radius: 8px;
}
/*san pham*/
/* ========== PRODUCT PAGE ========== */

.text-orange {
    color: #ff6a00 !important;
}

/* Card sản phẩm */
.product-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    background: #f9f9f9; /* sáng nhẹ hơn trắng */
}


    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .product-card img {
        aspect-ratio: 1 / 1.2; /* giúp ảnh đều nhau, không bị méo */
        object-fit: cover;
    }

    .product-card:hover img {
        transform: scale(1.04);
    }

    /* Nút hành động */
    .product-card .btn {
        transition: all 0.2s ease;
        border-radius: 6px;
    }

        .product-card .btn:hover {
            transform: scale(1.05);
        }

/* Tắt màu hover cho nút */
.btn-dark:hover,
.btn-outline-dark:hover {
    background-color: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* Phân trang */
.pagination .page-item.active .page-link {
    background-color: #ff6a00;
    border-color: #ff6a00;
}

/*login*/
.card {
    border-radius: 12px;
}

.form-control {
    box-shadow: none !important;
    border: 1px solid #ddd;
}

    .form-control:focus {
        border-color: #ff6a00;
        box-shadow: 0 0 0 0.15rem rgba(255, 106, 0, 0.25);
    }

.btn-dark:hover {
    background-color: #ff6a00 !important;
    border-color: #ff6a00 !important;
}

.text-orange {
    color: #ff6a00 !important;
}
/*Register*/
.card {
    border-radius: 12px;
}

input.form-control {
    border-radius: 8px;
    box-shadow: none;
}

.btn-dark:hover {
    background-color: #ff6a00 !important;
    border-color: #ff6a00 !important;
}

/* profile*/
.table-hover tbody tr:hover {
    background-color: #fff8f2;
}

.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
}

.card {
    border-radius: 12px;
}
