﻿
@font-face {
    font-family: "Futura-cn";
    src: url('../../fonts/dfkai-sb.ttf') format('truetype');
}

@font-face {
    font-family: "Futura";
    src: url('../store/fonts/svn-futura.TTF') format('opentype');
}

@font-face {
    font-family: "Futura";
    font-style: italic;
    src: url('../store/fonts/SVN-Fututa-i.TTF') format('truetype');
}

.futura-cn {
    font-family: "Futura-cn" !important;
}


body {
    background: #f6f9ff;
    font-family: Futura, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400
}

/*--------------------------*/

/* Quantity selector styling */
.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.qty-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qty-container .input-qty {
        width: 60px;
        text-align: center;
        margin: 0 1px;
        color: rgb(94, 8, 8);
    }

        .qty-container .input-qty:focus-visible {
            outline: none;
        }

    .qty-container .qty-btn-minus,
    .qty-container .qty-btn-plus {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background-color: #fff;
        color: rgb(94, 8, 8);
        border-radius: 0.25rem;
        cursor: pointer;
        padding: 5px 10px;
    }

/*.qty-btn-minus:hover,
.qty-btn-plus:hover {
    background-color: rgb(94, 8, 8);
    color: #fff;
}*/
.qty-btn-minus:active,
.qty-btn-plus:active {
    transform: scale(0.85);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}


.qty-container .qty-btn-plus {
    margin-left: -1px;
}

.qty-container .qty-btn-minus {
    margin-right: -1px;
}

/* Card */
.card {
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    overflow: hidden;
}

.item-img {
    object-fit: contain;
    height: auto;
    width: 100%;
}

.form-mooncake {
}

@media (min-width: 768px) {
    .item-img {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
}

.card-header,
.card-footer {
    border-color: #ebeef4;
    background-color: rgb(94, 8, 8);
    color: #f0da89;
    padding: 15px;
}

.item-header {
    padding: 15px;
    color: #333;
    font-weight: 400;
    text-align: left;
}

.card-title {
    color: rgb(94, 8, 8);
    font-weight: 400;
    padding: 15px;
}

    .card-title span {
        color: #899bbd;
        font-size: 14px;
        font-weight: 400;
    }

.card-body {
    padding: 20px;
    color: #212529;
}

.item-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
}

.btn-store {
    display: block;
    padding: 0 35px;
    color: #fff;
    background-color: #5e0808;
    border-radius: 0;
    height: 40px;
    line-height: 40px;
    text-transform: uppercase;
    font-size: 1rem;
    width: fit-content;
    margin: auto;
}

    .btn-store:focus {
        background-color: #5e0808 !important;
        color: #fff !important;
    } 
    .btn-store:active {
        background-color: #5e0808 !important;
        color: #fff !important;
        transform: scale(0.8);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    }

.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

#order-container {
    touch-action: manipulation;
}

/* Modal promo styling */
.modal-header {
    background: #5e0808;
    color: #fef9b3;
    border-bottom: none;
}

.modal-title {
}

.modal-body {
    background-color: #fff;
    overflow-y: auto;
    padding-bottom: unset !important;
}

.modal-content {
    overflow-y: inherit;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
    }

    .modal-body {
        max-height: 60vh;
    }
}

.modal-footer {
    background-color: #fff;
    border-top: none;
}

.modal-body img {
    border-radius: 5px;
}

.modal-body p {
    font-size: 1rem;
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Select branches styling */
.option-secondary-text {
    display: block;
    font-size: 0.9em;
    color: #888;
    white-space: normal;
}

.bootstrap-select .dropdown-toggle {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    height: calc(1.5em + 0.75rem + 2px);
    line-height: 1.5;
}

.bootstrap-select .dropdown-menu.show {
    overflow-y: auto !important;
    position: relative !important;
    min-height: unset !important;
    transform: none !important;
}

.bootstrap-select .dropdown-menu {
    width: 100% !important;
    margin-top: 0 !important;
}

    .bootstrap-select .dropdown-menu .inner {
        max-height: 300px !important;
        overflow-y: auto !important;
        min-height: unset !important;
    }

        .bootstrap-select .dropdown-menu .inner ul {
            margin: 0 !important;
            padding: 0 !important;
        }

    .bootstrap-select .dropdown-menu li {
        border-bottom: 1px solid #ced4da;
        padding: 2px
    }

    .bootstrap-select .dropdown-menu ul :last-child {
        border-bottom: none
    }

    .bootstrap-select .dropdown-menu li.active > a,
    .bootstrap-select .dropdown-menu li.active > a span,
    .bootstrap-select .dropdown-menu li.active > a .option-secondary-text {
        background-color: rgb(94, 8, 8) !important;
        color: #fff !important;
    }

    .bootstrap-select .dropdown-menu li > a:active,
    .bootstrap-select .dropdown-menu li > a:active span,
    .bootstrap-select .dropdown-menu li > a:active .option-secondary-text {
        background-color: rgb(94, 8, 8) !important;
        color: #fff !important;
    }

/* Carousel styling */
.carousel-caption-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%; /* Full height */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    background: rgba(105, 2, 2, 0.65); /* Semi-transparent background */
    padding: 20px; /* Padding for better spacing */
    box-sizing: border-box; /* Ensure padding is included in the width */
    backdrop-filter: blur(10px); /* Apply blur effect */
}

    .carousel-caption-right h5 {
        color: #f0da89;
        font-size: 2em; /* Larger font size for titles */
        margin-bottom: 15px;
        font-weight: 400; /* Bold text for better readability */
    }

    .carousel-caption-right h6 {
        color: #ffffff; /* White text color */
        font-size: 1.5em; /* Smaller font size for the subtitle */
        margin-bottom: 25px;
        font-style: italic
    }

    .carousel-caption-right p {
        color: #ffffff; /* White text color */
        font-size: 1.2em; /* Larger font size for paragraphs */
        line-height: 1.4; /* Increased line height for readability */
        word-break: break-word;
        opacity: 0.75;
    }

    .carousel-caption-right .english-text {
        font-size: 1em; /* Smaller font size for English text */
        font-style: italic
    }

    .carousel-caption-right small {
        display: block; /* Ensures small text is on a new line */
        font-size: 0.9em; /* Slightly smaller font size for small text */
    }

.carousel-inner .carousel-item {
}

.carousel-control-prev, .carousel-control-next {
    width: 5%; /* Smaller width for controls */
    bottom: 10%; /* Position at bottom */
    top: auto; /* Override top positioning */
    transform: translateY(100%);
}

.carousel-control-prev {
    left: 0; /* Align to bottom left */
}

.carousel-control-next {
    right: 0; /* Align to bottom right */
}
/* Responsive adjustments */
@media (max-width: 1280px) {
    .carousel-caption-right {
        width: 100%; /* Full width on smaller screens */
        height: 320px;
        position: relative;
        padding: 0 20px; /* Adjust padding for smaller screens */
        background: rgb(94, 8, 8);
    }

        .carousel-caption-right h5 {
            font-size: 1.2em; /* Điều chỉnh lại kích thước font trên mobile */
        }

        .carousel-caption-right h6 {
            font-size: 1.5em; /* Điều chỉnh lại kích thước font trên mobile */
        }

        .carousel-caption-right p {
            font-size: 1em; /* Điều chỉnh lại kích thước font trên mobile */
            opacity: 0.7;
        }

        .carousel-caption-right .english-text {
            font-size: 0.9em; /* Điều chỉnh lại kích thước font trên mobile */
        }

        .carousel-caption-right small {
            font-size: 0.8em; /* Điều chỉnh lại kích thước font trên mobile */
        }

    .carousel-control-prev, .carousel-control-next {
        width: 5%; /* Độ rộng của nút điều hướng */
        top: 50%; /* Đặt vị trí ở giữa theo chiều dọc */
        transform: translateY(-90%); /* Dịch chuyển lên trên để căn giữa */
    }

    .carousel-control-prev {
        left: 10px; /* Đặt ở bên trái */
    }

    .carousel-control-next {
        right: 10px; /* Đặt ở bên phải */
    }
}

@media (max-width: 768px) {
    .carousel-control-prev, .carousel-control-next {
        transform: translateY(-120%); /* Dịch chuyển lên trên để căn giữa */
    }
}

/* Cakebox images styling */
.cakebox-container {
    padding: 3em;
    margin-top: unset
}

@media (max-width: 1280px) {
    .cakebox-container {
        padding: 0.75em;
    }

    .promo-container {
        padding: 0;
        max-width: 100%;
    }
}

.image-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; /* Ensure the overlay covers the full height */
    opacity: 1;
    transition: all 0.5s ease-out;
}

.title-wrapper {
    position: absolute;
    width: 100%;
    top: 90%; /* Adjust the top position */
    text-align: center;
}

.btn-order {
    border: 0.1em solid;
    border-radius: 0;
    padding: 0.5em 2em;
    font-size: 0.8em;
    cursor: pointer;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
}

    .btn-order:hover, .btn-order:focus, .btn-order:active {
        color: #fff !important;
        border: 0.1em solid !important;
        background-color: rgba(0, 0, 0, 0.3) !important;
    }

/* Adjustments for screens up to 1280px wide */
@media (max-width: 1280px) {
    .title-wrapper {
        top: 91%;
    }

    .btn-order {
        padding: 0.75em 2em; /* Slightly larger padding */
        font-size: 0.9em; /* Slightly larger font size */
    }
}

/* Adjustments for screens between 768px and 1280px wide */
@media (min-width: 768px) and (max-width: 1280px) {
    .image-overlay {
        height: 100%;
        opacity: 1;
    }

    .title-wrapper {
        top: 85%;
    }

    .btn-order {
        padding: 1em;
        font-size: 1em;
    }
}

/* Adjustments for screens larger than 1280px wide */
@media (min-width: 1280px) {
    .title-wrapper {
        top: 90%;
    }

    .btn-order {
        padding: 1em 2em;
        font-size: 1em;
    }
}

/* Footer styling */
.mooncake-footer-location {
    background-color: #5e0808;
    color: #fff;
    padding: 1.5em;
}

.footer-michelin {
    max-width: 180px;
    margin: auto;
}

@media (max-width: 768px) {
    .footer-michelin {
        max-width: 160px
    }
}
