﻿body{
    margin:0;
}
#login-form {
    align-content: center;
    width: 400px;
    margin: 0 auto;
}
.row {
    padding-left: 15px;
    padding-right: 15px;
}
.row > * {
    padding-right: calc(var(--bs-gutter-x)* 0.2);
    padding-left: calc(var(--bs-gutter-x)* 0.2);
}

img {
    max-width: 100%;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: none;
}
body {
    background: #80808021;
}
header {
    background: green;
}
.image-hover-zoom {
    overflow: hidden;
    display: block;
    position: relative;
}

    .image-hover-zoom img {
        transition: transform 0.5s ease;
    }

    .image-hover-zoom:hover img {
        transform: scale(1.3);
    }
.navbar-toggler:focus{
    box-shadow:none;
}
.navbar-toggler {
    border: none;
    float:right;
    order:3;
}
.icon-cart {
    float: right;
    order: 2;
}
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 15px;
}


.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.shopping-cart .badge {
    font-size: 0.7rem;
}
.product .name {
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.product .cate {
    background: #5c5b5b1c;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 9px;
    display: inline;
}

.product .price {
    color: #c75008;
    font-size: 16px;
    width: 100%;
}


.product .readmore {
    background: #ed6806;
    color: #fff;
    padding: 10px 15px;
    border-radius: 7px;
    display: block;
    text-decoration: none;
    text-align: center;
    margin: 10px 0;
}

.product {
    border-radius: 4px;
    margin: 7px 0;
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}
.old-price {
    text-decoration: line-through;
}

    .product img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product .item {
        background: #fff;
        padding: 9px;
        padding: 10px;
        background-color: #fff;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
    }
.product .discount {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6c00;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    padding: 5px;
    width: 40px;
    height: 40px;
    font-size: 14px;
}
.cart .price {
    color: red;
    font-size: 22px;
    padding: 5px 15px;
}
.cart img{
    max-height:150px;
}
.title {
    text-transform: uppercase;
    color: #d93a08;
    font-weight: 700;
    font-size: 20px;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.form-search label {
    display: block;
    padding: 9px 0;
}
.form-search .search-price span {
    margin-right: 10px;
}
.form-search label input {
    margin-right: 7px;
    background: #f0e18738;
    color: #33333370;
    border-radius: 5px;
    padding: 5px 10px;
}
.form-search label input:focus{
box-shadow:none;
}
.form-search .search-price {
    align-items: center;
}
    .form-search label input {
        margin-right: 7px;
    }

.form-search .form-group {
    padding: 15px 0;
    overflow: hidden;
}
.form-search .sub-title span {
    padding: 7px 10px;
    display: inline-block;
    background: #A8D5BA;
    color: #333;
}
.form-search .sub-title {
    border-bottom: #A8D5BA 1px solid;
}
.form-search .form-group:last-child {
    border-bottom: none;
    margin-bottom: 15px;
}
footer {
    text-align: center;
    background: #333;
    color: #fff;
    padding: 40px 0;
}

.breadcrumb ul {
    margin: 0;
    padding: 0;
}

    .breadcrumb ul li {
        list-style-type: none;
        float: left;
        padding: 2px 0;
    }

        .breadcrumb ul li a, .breadcrumb ul li span {
            background: #28272712;
            padding: 4px 7px;
            border-radius: 5px;
            text-decoration: none;
            display: inline-block;
        }

header .navbar {
    background: green;
}

.attr span {
    border: grey 1px solid;
    padding: 3px 7px;
    background: #fff;
    cursor: pointer;
}

.color input[type="checkbox"] {
    display: none;
}

/* Tạo giao diện checkbox tùy chỉnh */
.color label {
    position: relative;
    padding-left: 30px;
    font-size: 20px;
    cursor: pointer;
    float: left;
    margin: 5px 3px 0 0;
    height: 30px;
}

    /* Tạo khung cho checkbox */
    .color label::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 4px;
        background-color: #fff;
    }

/* Khi checkbox được chọn (checked) */
.color input[type="checkbox"]:checked + label::before {
    background-color: #4CAF50; /* Màu nền khi được chọn */
    border-color: #4CAF50;
}

/* Hiển thị dấu tích khi checkbox được chọn */
.color input[type="checkbox"]:checked + label::after {
    content: "✔";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 16px;
}

.addToCart {
    background: #118311ad;
    padding: 10px 7px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.buyNow {
    background: #ff6c00;
    padding: 10px 7px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.detail .price {
    color: red;
    font-size: 25px;
}

.banner {
    position: relative;
    width: 100%;
    height: 200px;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* Màu chữ */
}

.home.banner {
    height: 300px;
    background-image: url('../images/banner-in-an.jpg');
}
/* Lớp phủ với opacity */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Màu phủ với độ trong suốt */
}

/* Nội dung text trong banner */
.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 50px;
    margin: 0;
}

.banner p {
    font-size: 20px;
}

.toolbar {
    display: block;
}

    .toolbar button {
        height: 34px;
    }

    .toolbar ul {
        list-style: none;
        display: flex;
        justify-content: right;
        margin-left: 0;
        padding-left: 0;
    }

        .toolbar ul li a {
            color: #4a4949;
            text-decoration: none;
            font-size: 18px;
            padding: 3px 10px;
            border: #3333334f 1px solid;
            border-radius: 5px;
            margin: 0px 5px;
            display: inline-block;
        }

            .toolbar ul li a:hover {
                background-color: #575757;
                border-radius: 5px;
            }

        .toolbar ul li select {
            padding: 5px 10px;
        }

#product-list-view .product-single {
    background: #fff;
    margin-bottom: 9px;
    overflow: hidden;
}

    #product-list-view .product-single img {
        height: 100%;
        object-fit: cover;
    }

    #product-list-view .product-single .item {
        padding: 10px;
    }

    #product-list-view .product-single .name {
        font-size: 19px;
        font-weight: 500;
    }

    #product-list-view .product-single .price {
        color: #ff5500;
        font-size: 24px;
        font-weight: 500;
    }

    #product-list-view .product-single .cate {
        background: #80808033;
        padding: 3px 5px;
        border-radius: 5px;
        font-size: 11px;
    }

.product-buttons {
    align-items: center;
    gap: 10px;
}

    .product-buttons .btn {
        font-size: 12px;
        padding: 5px;
        margin: 0px;
    }

.shopping-cart {
    background: #ff000047;
    color: #fff;
    border-radius: 50%;
    padding: 5px 7px;
    font-size: 18px;
    position: relative;
}

    .shopping-cart span {
        position: absolute;
        right: -14px;
        top: -12px;
        color: #fff;
        background: red;
        border-radius: 50px;
        width: 24px;
        height: 24px;
        text-align: center;
        font-weight: 700;
        font-size: 15px;
    }
.cart-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    line-height: 28px;
    font-size: 19px;
    background: #ffffff82;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
}
    .cart-item label {
        font-weight: bold;
        font-size: 16px;
        font-weight: 500;
    }
    .cart-item span {
        font-size: 16px;
        color: #333;
    }
    .cart-item.total label {
        font-size: 18px;
        font-weight: bold;
        color: #d9534f;
    }

    .cart-item.total span {
        font-size: 18px;
        font-weight: bold;
        color: #d9534f;
    }
.order-details, .payment-method {
    margin-top: 20px;
}

    .order-details table, .payment-method table {
        width: 100%;
        border-collapse: collapse;
    }

    .order-details th, .payment-method th, .order-details td, .payment-method td {
        padding: 8px;
        border: 1px solid #ddd;
        text-align: left;
    }

    .order-details th, .payment-method th {
        background-color: #f2f2f2;
    }

.total-price {
    font-weight: bold;
    color: #FF5733;
}
.payment-method ul {
    list-style-type: none;
    padding: 0;
}

.payment-method li {
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor:pointer;
}

.payment-method li:hover {
    background-color: #f1f1f1;
}
.sticky.fixed {
    position: fixed;
    top: 15px;
    right:15px;
}
.btn-delete {
    background: red;
    color: #fff;
    padding: 2px 7px;
}
.check-mark {
    color: green;
    font-weight: 700;
    width: 40px;
    display: inline-block;
    text-align: center;
}
#loading {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: blue;
    z-index: 9999;
}
#loading span {
    font-weight: bold;
}
.customer .box {
    border: grey 1px solid;
    margin: 10px 0;
}

.customer .box .title {
    background: green;
    color: #fff;
    padding: 10px;
}

.customer .box ul {
    padding: 0;
    margin: 0;
}

.customer .box ul li {
    list-style-type:none;
}

.customer .box ul li a {
    padding: 15px;
    display: block;
    border-bottom: #2e2a2a38 1px solid;
    color: #403c3c;
    text-decoration: none;
}
.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
}
/* Container cho 2 slider */
.price-range-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

/* Nhóm mỗi slider */
.price-slider {
    flex: 1 1 45%;
    min-width: 150px;
}

    /* Label giá hiện tại */
    .price-slider label span {
        font-weight: 700;
        color: #d6336c; /* màu hồng đậm */
        margin-left: 6px;
    }

/* Style chung cho input range */
input[type="range"].form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

    /* Thumb (nút kéo) */
    input[type="range"].form-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        background: #d6336c;
        cursor: pointer;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 0 5px rgba(214, 51, 108, 0.6);
        transition: background 0.3s ease;
        margin-top: -8px; /* canh giữa thanh */
    }

    input[type="range"].form-range::-moz-range-thumb {
        width: 22px;
        height: 22px;
        background: #d6336c;
        cursor: pointer;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 0 5px rgba(214, 51, 108, 0.6);
        transition: background 0.3s ease;
    }

    /* Hover thumb */
    input[type="range"].form-range:hover::-webkit-slider-thumb {
        background: #b52a59;
        box-shadow: 0 0 8px rgba(181, 42, 89, 0.8);
    }

    input[type="range"].form-range:hover::-moz-range-thumb {
        background: #b52a59;
        box-shadow: 0 0 8px rgba(181, 42, 89, 0.8);
    }

    /* Track màu sắc theo tiến độ (hiệu ứng màu) - Chrome/Safari */
    input[type="range"].form-range::-webkit-slider-runnable-track {
        height: 6px;
        border-radius: 4px;
        background: linear-gradient(to right, #d6336c 0%, #d6336c 50%, #e9ecef 50%, #e9ecef 100%);
    }

    /* Firefox track */
    input[type="range"].form-range::-moz-range-track {
        height: 6px;
        border-radius: 4px;
        background: #e9ecef;
    }
@media (max-width: 500px) {
    .price-range-container {
        flex-direction: column;
        gap: 15px;
    }

    .price-slider {
        flex: 1 1 100%;
    }
}
@media (max-width:549px) {
    #mainNavbar {
        float: left;
        order: 3;
    }
    .navbar-nav .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        font-weight: 500;
        border-top: #ffffff47 1px solid;
    }
    .navbar-nav .navbar-nav li:first-child .nav-link {
        border-top: #ffffffb0 2px solid;
    }
}