﻿body {
    padding-top: 80px;
    background: linear-gradient(180deg, #f8f9fa, #eef1f4);
}

/* ===== NAVBAR ===== */
.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
}

    .custom-navbar.shrink {
        background: rgba(255,255,255,0.9);
    }

/* BRAND */
.brand {
    font-size: 22px;
    color: #111;
    position: relative;
}

    .brand::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #0d6efd, transparent);
        animation: sweep 5s infinite;
    }

@keyframes sweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.cam {
    color: #111;
}

.store {
    color: #f5c542;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 8px rgba(245, 197, 66, 0.35), 0 2px 2px rgba(0, 0, 0, 0.15);
    transition: 0.25s ease;
}

.brand:hover .store {
    color: #ffd86a;
    transform: translateY(-1px);
}

.brand:hover .cam {
    color: #000;
}

/* MENU */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #333 !important;
    transition: 0.25s ease;
}

    .nav-link:hover {
        color: #0d6efd !important;
        transform: translateY(-2px);
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0%;
        height: 2px;
        background: #0d6efd;
        transition: 0.25s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-link.active {
        color: #0d6efd !important;
    }

/* SEARCH */
.search-box input {
    border-radius: 20px 0 0 20px;
}

.search-box button {
    border-radius: 0 20px 20px 0;
}

/* ICON */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 15px;
}

    .nav-icons i {
        font-size: 18px;
        color: #333;
        cursor: pointer;
        transition: 0.25s ease;
    }

        .nav-icons i:hover {
            color: #0d6efd;
            transform: scale(1.2);
        }

/* CART */
.cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: red;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 50%;
}

/* ===== SLIDER ===== */
#bannerSlider {
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-item img {
    transition: transform 6s ease;
}

.carousel-item.active img {
    transform: scale(1.03);
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #0d6efd;
}

/* ===== PRODUCT CARD (ĐÃ GỘP) ===== */
.product-card {
    border-radius: 15px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.35s ease;
}

    /* hover card */
    .product-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }

/* ảnh */
.img-box {
    position: relative;
    z-index: 1;
}

    .img-box img {
        height: 220px;
        width: 100%;
        object-fit: cover;
        transition: 0.5s ease;
    }

/* hover ảnh */
.product-card:hover img {
    transform: scale(1.08);
}

.product-card:hover .img-box img {
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* glow */
.product-card:hover .img-box::after {
    content: "";
    position: absolute;
    inset: 10px;
    background: rgba(0,0,0,0.05);
    filter: blur(15px);
    z-index: -1;
}

/* title */
.card-title {
    min-height: 48px;
}

.card-body p {
    margin-bottom: 6px;
}

/* desc */
.desc {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* button */
.product-card .btn {
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .btn {
    opacity: 1;
}

/* stock */
.stock {
    margin-top: 5px;
}

    .stock .badge {
        position: static;
        border-radius: 10px;
        padding: 5px 10px;
    }

/* price */
.text-danger {
    color: #e53935 !important;
    font-size: 18px;
}

/* button global */
.btn {
    border-radius: 10px;
    transition: 0.25s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

/* title section */
h3 {
    letter-spacing: 0.5px;
}

.sidebar .card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar h6 {
    font-weight: 600;
    margin-bottom: 10px;
}