﻿html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}



/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}
/*-------------------------------------------------*/
:root {
    --primary-color: #fe2e70;
    --secondary-color: #5d59f3;
    --light-primary-color: #fcddec;
    --bg-selected: #fff4f4;
}

.color-theme {
    background-color: var(--primary-color) !important;
}

.light-color-theme {
    background-color: var(--light-primary-color) !important;
}

.text-color-theme {
    color: var(--primary-color) !important;
}

.color-theme-1 {
    background-color: var(--secondary-color);
}

/*---------------------nav-bar----------------------------*/
#nav-full {
    position: fixed;
    top: 0;
    transition: 0.2s ease-in-out;
    z-index: 999;
    width: 100%;
}

#nav-full.active {
    top: -122px;
}

.element {
    margin-top: 9px;
    margin-right: 30px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    box-shadow: 0px 0px 14px 4px #747DE8;
    animation: glowShadow 1.5s linear infinite alternate;
}

.element img {
    width: 25px;
    height: 25px;
    animation: glowImage 1.5s linear infinite alternate;
    position: absolute;
    top: 5px;
}

@keyframes glowShadow {
    to {
        box-shadow: 0px 0px 45px 55px #eed909;
    }
}

@keyframes glowImage {
    to {
        -webkit-filter: brightness(2);
        filter: brightness(2);
    }
}

.nav-first .navbar .nav-link {
    position: relative;
    color: white;
    font-weight: 500;
}
    .nav-first .navbar .nav-link:hover {
        background: #4c4ac9;
    }

    .nav-second .navbar .navbar-nav .nav-link {
        padding: 1em;
        position: relative;
        padding-top: 2em;
        padding-bottom: 2em;
        font-size: 15px;
    }

    .nav-second .navbar .navbar-nav .nav-link:hover {
        background-color: #323232;
        color: white;
    }

    /*Tạo underline khi hover*/
    .nav-second .navbar .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        height: 2px;
        background-color: var(--primary-color);
        bottom: 0;
        left: 0;
        width: 0;
        transition: width 0.3s ease-out;
    }

    .nav-second .navbar .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

@media screen and (min-width:992px) {
    .navbar {
        padding: 0px;
    }
}

@media screen and (max-width:991px) {
    .navbar-brand {
        padding-left: .7em;
    }
}
/*---------------------Mega menu----------------------------*/
.nav-second .navbar-nav li:hover .mega-box {
    top: 82px;
    opacity: 1;
    visibility: visible;
    transition: all 0.25s ease;
    z-index: 999;
}

.mega-box {
    position: absolute;
    top: 95px;
    background-color: #f3f4f6;
    width: 1300px;
    left: 108px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mega-box .content {
        background-color: #f3f4f6;
        padding: 25px 20px;
        display: flex;
        width: 100%;
        align-items: flex-start;
    }

.content .row {
    width: calc(30% - 30px);
    line-height: 40px;
}

    .content .row .header a {
        color: black;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
        position: relative;
        display: inline-block;
    }

        .content .row .header a:hover {
            color: var(--secondary-color);
        }

        .content .row .header a::after {
            content: '';
            position: absolute;
            height: 1.5px;
            background-color: var(--primary-color);
            bottom: 0;
            left: 0;
            width: 0;
            transition: width 0.15s ease-out;
        }

        .content .row .header a:hover::after {
            width: 100%;
        }

    .content .row .mega-links {
        margin-left: -40px;
        border-left: 1px solid rgba(255, 255, 255, 0.09);
    }

    .content .row:nth-child(1),
    .content .row:nth-child(2) {
        border-left: 0px;
    }

.row .mega-links li {
    list-style: none;
    padding: 0 20px;
}

    .row .mega-links li a {
        text-decoration: none;
        padding: 5px 20px;
        color: black;
        font-size: 13px;
        display: block;
        font-weight: 550;
    }

        .row .mega-links li a:hover {
            color: var(--primary-color);
        }

        .row .mega-links li a img {
            height: 32px;
            width: 32px;
            margin-right: 10px;
}

        .row .mega-links li a:hover img {
            border: 3px solid var(--primary-color);
        }
/*---------------------search bar----------------------------*/
.search-container {
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-width: 250px;
    width: 100%;
    transition: all 0.3s ease;
}

    .search-container:hover {
        box-shadow: 40px 40px 40px rgba(0, 0, 0, 0.7);
    }

.form-control.search-input {
    border: none;
    background: transparent;
    padding-left: 20px;
    font-size: 1rem;
    height: 50px;
}

    .form-control.search-input:focus {
        box-shadow: none;
        outline: none;
    }

.search-icon {
    color: #6c757d;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
/*---------------------Main search bar----------------------------*/

.main-search-container {
    width: 1030px;
    margin: 0 auto;
}

    /* Các lớp con đã được đặt tiền tố để không xung đột với Search Bar nhỏ */
    .main-search-container .search-wrapper {
        background: white;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }

    .main-search-container .search-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
    }

    .main-search-container .search-input-group {
        width: 500px;
        margin: 0 auto;
        position: relative;
        display: flex;
        align-items: center;
    }

    /* INPUT của thanh lớn */
    .main-search-container .search-input {
        border: 2px solid #eee;
        border-radius: 30px;
        padding: 15px 25px;
        padding-right: 50px;
        width: 100%;
        transition: all 0.3s ease;
        flex: 1;
    }

        .main-search-container .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: none;
        }

    .main-search-container .btn-close {
        position: absolute;
        left: 300px;
    }
 
    .main-search-container .search-icon {
        position: absolute;
        left: 250px;
        color: #666;
    }

    .main-search-container .category-filters {
        padding: 15px 20px;
        background: white;
        border-radius: 0 0 15px 15px;
    }

    .main-search-container .filter-chip {
        display: inline-block;
        padding: 8px 15px;
        margin: 5px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        color: black;
    }

        .main-search-container .filter-chip:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .main-search-container .filter-chip.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

    .main-search-container .quick-filter:hover {
        background: #dee2e6;
    }

}

.main-search-container .suggestion-item {
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

    .main-search-container .suggestion-item:hover {
        background: #f8f9fa;
    }

.main-search-container .suggestion-category {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}


/*---------------------card----------------------------*/
.card-body {
    padding-left: 0;
    padding-right: 0;
    padding-top: 5px;
}

.card {
    position: relative;
    transition: all 0.3s;
}

.image-link {
    position: relative;
    overflow: hidden;
}

.card .image-link .btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #706cfb;
    color: white;
    transition: all 0.2s ease-in-out;
    z-index: 10;
    width: 130px;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .card .image-link .btn:hover {
        background-color: #3f3aef;
    }

.card:hover .image-link .btn {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-size: 14px;
}

.card-title a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

    .card-title a:hover {
        color: #6d68fb;
    }

.btn.btnSizeCard {
    border: 1px solid #929292;
    color: black;
    font-weight: bold;
}

    .btn.btnSizeCard.active {
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
    }

.size-scroll-container {
    overflow-x: auto;
    gap: 5px;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

    .size-scroll-container::-webkit-scrollbar {
        display: none;
    }

.card .btn.rounded-circle {
    border: 0.5px solid #b3b3b3;
    color: black;
    padding: 3px 8px 3px 8px;
    position: absolute;
    right: 0;
    bottom: 20px;
}

.card:hover .btn.rounded-circle {
    background-color: var(--primary-color);
    color: white;
}
/*----------------------Button xem them---------------------------*/

.xemThem.btn.rounded-pill {
    border: 1px solid black;
    background-color: white;
}

    .xemThem.btn.rounded-pill:hover {
        background-color: var(--primary-color);
    }

a.link-index {
    text-decoration: none;
    color: var(--primary-color);
}

    a.link-index:hover {
        color: #5d59f3;
    }
/*---------------------footer----------------------------*/
a.link-footer {
    font-size: 13px;
    color: #ebebeb;
    text-decoration: none;
}

    a.link-footer:hover {
        color: #edf147;
    }
/*---------------------button back to top----------------------------*/
#btn-back-to-top {
    position: fixed;
    padding: 10px 15px;
    bottom: 400px;
    right: 20px;
    display: none;
    border: 2px solid #fe2e70;
}
/*---------------------menu side bar category----------------------------*/
.checkbox-round {
    width: 1.3em;
    height: 1.3em;
    background-color: white;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #ddd;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

    .checkbox-round:checked {
        background-color: #5d59f3;
    }

.checkbox-label:hover {
    cursor: pointer;
}

.menu-loai .list-group-item {
    padding: 5px 0px 5px 0;
}

/*---------*/
.button-list .btn {
    padding: 4px 0 4px 0;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    width: 60px;
}

    .button-list .btn.active {
        background-color: var(--secondary-color);
        border: none;
    }

#scroll-menu {
    max-height: 90vh;
    overflow: scroll;
    overflow-x: hidden;
    position: sticky;
}

/*---------------------pagination----------------------------*/
/*.pagination .page-item a{
    color: black;
    font-size: 15px;
}

.pagination .page-item{
    margin-left: 8px;
    border-radius: 10px 10px;
}
.pagination .page-item a:hover {
    background-color: var(--secondary-color);
    color: white;
}*/
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: auto;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

nav.pagination {
    margin-top: 1em;
    padding-top: 0.5em;
    font: 0.9em sans-serif;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

    .pagination li {
        margin: 0 1px;
        margin-left: 8px;
    }

    .pagination a {
        display: block;
        padding: 0.5em 1.0em;
        border: 1px solid #bababa;
        border-radius: 0.2em;
        text-decoration: none;
        color: black;
        transition: 0.1s ease;
    }

        .pagination a:hover {
            background-color: var(--secondary-color);
            color: white;
        }

        .pagination a[aria-current="page"] {
            background-color: var(--secondary-color);
            color: white;
            font-weight: bold;
        }

/*---------------------Detail----------------------------*/
/*---------------------Image slider---------------*/
.carousel-indicators img {
    width: 90px;
    display: block;
    margin-left: 0;
}

.carousel-indicators button {
    width: max-content !important;
}

.carousel-indicators {
    position: unset;
}

/*---------------------Detail button size----------------------------*/


/*---------------------Star rating small----------------------------*/
.small-star .rating__average .star-outer {
    position: relative;
    font-size: 25px;
    display: inline-block;
}

    .small-star .rating__average .star-outer::before {
        content: "\2605 \2605 \2605 \2605 \2605";
        color: #b4b4b4;
    }

.small-star .rating__average .star-inner {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

    .small-star .rating__average .star-inner::before {
        content: "\2605 \2605 \2605 \2605 \2605";
        color: black;
    }

.small-star .rating__average span {
    margin-top: .7rem;
    letter-spacing: .2rem;
}
/*---------------------Star rating big----------------------------*/
.big-star .rating {
    width: 300px;
    align-items: center;
}

.big-star .rating__average {
    width: 100%;
    background-color: #f1f1f1;
    padding: 10px 40px 10px 40px;
    border-radius: .8rem;
    text-align: center;
}

    .big-star .rating__average h1 {
        font-size: 4rem;
        font-weight: 1000;
    }

    .big-star .rating__average .star-outer {
        position: relative;
        font-size: 3rem;
        display: inline-block;
    }

        .big-star .rating__average .star-outer::before {
            content: "\2605 \2605 \2605 \2605 \2605";
            color: #939393;
        }

    .big-star .rating__average .star-inner {
        position: absolute;
        top: 0;
        left: 0;
        overflow: hidden;
    }

        .big-star .rating__average .star-inner::before {
            content: "\2605 \2605 \2605 \2605 \2605";
            color: #ffb502;
        }

    .big-star .rating__average p {
        font-size: 14px;
    }

.big-star.sticky {
    position: sticky;
    top: 0;
}


.custom-review-field:focus,
.custom-input:focus {

    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 127, 0.25) !important;
}

.custom-review-field {
    min-height: 100px;
    width: 500px;
}

/*---------------------Rating file input----------------------------*/
.hero {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#drop-area {
    width: 800px;
    height: 200px;
    background: #fff;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
}

    #img-view {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        border: 2px dashed #bbb5ff;
        background: #f7f8ff;
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
    }

        #img-view img {
            width: 100px;
            margin-top: 25px;
            border-radius: 40px;
        }


.rating-star-click {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

    .rating-star-click input {
        display: none;
    }

    .rating-star-click label {
        font-size: 35px;
        cursor: pointer;
    }

        .rating-star-click label:hover,
        .rating-star-click label:hover ~ label {
            color: orange;
        }

    .rating-star-click input:checked ~ label {
        color: orange;
    }

.btnRating {
    background-color: #dadada;
    color: #666;
}
.btnRating:hover{
    color: white;
    background-color: var(--secondary-color);
}
/*------------------------Card category slider----------------------------*/
.category-slider {
    padding-left: 10px;
    width: 65vw;
    overflow: hidden;
    padding-bottom: 6px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    background-color: #fff3;
    border-radius: 20px;
}

    .category-slider::-webkit-scrollbar {
        width: 0;
    }

    .category-slider .form {
        width: max-content;
        --left: 0;
        transform: translateX(var(--left));
    }

        .category-slider .form .item {
            width: 170px;
            height: 260px;
            display: inline-block;
            margin-right: 20px;
            transform: perspective(10px);
            transform-style: preserve-3d;
        }

.category-slider .form .item .content {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .5s;
}

    .category-slider .form .item .content .des {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        backdrop-filter: blur(10px);
        color: #fff;
        font-family: monospace;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        box-sizing: border-box;
        font-weight: bold;
    }

.category-slider .form .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-slider .form.left .item .content {
    transform: rotateY(-1deg) scale(0.8);
}

.category-slider .form.right .item .content {
    transform: rotateY(1deg) scale(0.8);
}

/*--------------------Toast----------------------*/

.notifications {
    position: fixed;
    top: 30px;
    right: 20px;
}

.toast {
    position: relative;
    padding: 10px;
    margin-bottom: 10px;
    color: #fff;
    width: 400px;
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    border-radius: 5px;
    --color: #0abf30;
    background-image: linear-gradient(to right, #0abf3055, #22242F 30%);
    animation: show_toast 0.3s ease forwards;
}

    .toast i {
        color: var(--color);
    }

    .toast .title {
        font-size: x-large;
        font-weight: bold;
    }

    .toast i {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: x-large;
    }

    .toast span,
    .toast .close {
        opacity: 0.6;
        color: #fff
    }

@keyframes show_toast {
    0% {
        transform: translateX(100%);
    }

    40% {
        transform: translateX(-5%);
    }

    80% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-10%);
    }
}

.toast::before {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color);
    box-shadow: 0 0 10px var(--color);
    content: '';
    width: 100%;
    height: 3px;
    animation: timeOut 5s linear 1 forwards;
}

@keyframes timeOut {
    to {
        width: 0%;
    }
}
/* error */
.toast.error {
    --color: #f24d4c;
    background-image: linear-gradient(to right, #f24d4c55, #22242F 30%);
}
/* warning */
.toast.warning {
    --color: #e9bd0c;
    background-image: linear-gradient(to right, #e9bd0c55, #22242F 30%);
}
/* info */
.toast.info {
    --color: #3498db;
    background-image: linear-gradient(to right, #3498db55, #22242F 30%);
}
/*------------------------Chat----------------------------*/

.chat-section {
    padding: 25px;
    min-height: 300px;
}

.message {
    display: flex;
    margin-bottom: 20px;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.message-content {
    max-width: 400px;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
}

.message-left .message-bubble {
    background-color: #e9ecef;
    color: #333;
}

.message-right {
    flex-direction: row-reverse;
    margin-left: auto;
    justify-content: flex-start;
}

    .message-right .message-content {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .message-right .message-bubble {
        background-color: #0084ff;
        color: white;
    }

    .message-right .avatar {
        background-color: #0084ff;
    }

.action-buttons {
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
}

.btn-social {
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-zalo {
    background-color: #0068ff;
    color: white;
}

    .btn-zalo:hover {
        background-color: #0056d9;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
    }

.btn-facebook {
    background-color: #0084ff;
    color: white;
}

    .btn-facebook:hover {
        background-color: #006bd9;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
    }

.btn-social i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        font-size: 14px;
    }
}
/*------------------------Detail----------------------------*/
.linkhover {
    text-decoration: none;
    color: black;
}
.linkhover:hover{
    color: var(--secondary-color);
    
}
.btnSizeDetail{
    border-radius: 20px;
    background-color: #ddd;
    padding: 8px;
    padding-right: 18px;
    padding-left: 18px;
    border: none;
    font-size: 18px;
    color: black;
}

.btnSizeDetail.active {
    background-color: var(--primary-color);
    color: white;
}

.btnSizeDetail:hover{
    background-color: var(--secondary-color);
}

.btnMua{
    background-color: var(--secondary-color);
}
    .btnMua:hover {
        background-color: var(--secondary-color);
    }

.voucher-card {
    cursor: pointer; 
    transition: all 0.2s ease;
    position: relative;
    margin-right: 15px;
    user-select: none;
}

    .voucher-card input[type="radio"] {
        display: none;
    }

.voucher-content {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    background-color: white;
    padding-right: 15px;
    overflow: hidden;
    height: 60px; 
}


.voucher-card input[type="radio"]:checked + .voucher-content {
    border: 1px solid var(--primary-color);
    background-color: var(--bg-selected);
    box-shadow: 0 2px 8px rgba(238, 77, 45, 0.2);
}

    .voucher-card input[type="radio"]:checked + .voucher-content::after {
        content: '✔';
        color: var(--primary-color);
        font-weight: bold;
        margin-left: auto; 
        font-size: 18px;
    }


.voucher-img {
    height: 100%;
    width: 60px; 
    object-fit: contain; 
    background-color: #f8f8f8;
    padding: 5px;
    margin-right: 10px;
    border-right: 1px dashed #e0e0e0; 
}
/*------------------------3d Slider----------------------------*/
