* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fcf6ec;
    font-family: sans-serif;
    color: #4a3320;
}

#wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

#logo {
    font-weight: bold;
    font-size: 18px;
}

#nav ul {
    list-style: none;
    display: flex;
}

#nav ul li {
    margin-left: 25px;
}

#nav ul li a {
    text-decoration: none;
    color: #4a3320;
    font-size: 14px;
}

#nav ul li a:hover {
    font-weight: bold;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
}

#hero-content {
    width: 45%;
}

#hero-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 15px;
}

#hero-desc {
    font-size: 14px;
    margin-bottom: 25px;
}

#hero-btn {
    display: inline-block;
    background-color: #684a36;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

#hero-btn:hover {
    filter: brightness(1.2);
}

#hero-image {
    width: 45%;
}

#hero-image img {
    max-width: 100%;
    height: auto;
}

#menu {
    padding: 40px 0;
    text-align: center;
}

#menu-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 40px;
}

#menu-list {
  display: flex;
  justify-content: space-between;
}

.menu-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 31%;
}

.menu-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.item-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.item-price {
    font-size: 14px;
}

@media (max-width: 768px) {
    #header {
        flex-direction: column;
    }
    
    #nav ul {
        margin-top: 15px;
        padding: 0;
    }
    
    #hero {
        flex-direction: column;
    }
    
    #hero-content, #hero-image {
        width: 100%;
    }
    
    #hero-image {
        margin-top: 30px;
    }
    
    #menu-list {
        grid-template-columns: auto;
    }
    
    .menu-item {
        width: 100%;
        margin-bottom: 20px;
    }
}
#menu-dropdown {
    position: relative;
}
#dropdown-content {
    display: none; 
    position: absolute; 
    top: 100%; /* Đẩy menu con xuống ngay sát dưới chữ Thực đơn */
    left: 0;
    background-color: #ffffff;
   
    padding: 10px 0;
    min-width: 130px;
    box-sizing: border-box;
}
#dropdown-content a {
    display: block;
    text-decoration: none;
    color: #4a3320;
    padding: 8px 16px;
    font-size: 14px;
}
#dropdown-content a:hover {
    background-color: #fcf6ec;
    font-weight: bold;
}
#menu-dropdown:hover #dropdown-content {
    display: block;
}





.page-caphe {
    background-color: #f2f2f2;
}

#cp-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
}

#cp-header-top {
    background-color: #b72b35;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
}

#cp-logo {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

#cp-nav-bar {
    border-top: 2px solid #5ab0e5;
    border-bottom: 2px solid #5ab0e5;
    padding: 15px 0;
    text-align: center;
    background-color: #ffffff;
}

#cp-nav-bar ul {
    list-style: none;
    display: inline-block;
    padding: 0;
    margin: 0;
}

#cp-nav-bar ul li {
    display: inline-block;
    margin: 0 15px;
}

#cp-nav-bar ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 14px;
}

#cp-nav-bar ul li a.cp-active {
    color: #b72b35;
    border-bottom: 2px solid #b72b35;
    padding-bottom: 5px;
}

#cp-nav-bar ul li a:hover {
    color: #b72b35;
}

#cp-main-content {
    padding: 20px;
    background-color: #f5f6f8;
}

.cp-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #b72b35;
    margin-bottom: 20px;
}

.cp-bar {
    color: #b72b35;
    font-weight: bold;
    margin-right: 5px;
}

#cp-product-list {
    display: grid;
grid-template-columns: repeat(3,1fr);    
gap: 20px;
}

.cp-product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.cp-product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cp-product-info {
    padding: 15px;
    text-align: center;
    position: relative;
    flex-grow: 1;
}

.cp-product-name {
    font-weight: bold;
    font-size: 15px;
    color: #333333;
    margin-bottom: 8px;
}

.cp-product-price {
    font-size: 14px;
    color: #b72b35;
    font-weight: bold;
}

.cp-add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #b72b35;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cp-add-btn:hover {
    filter: brightness(1.2);
}

/* --- NÚT THANH TOÁN NỔI --- */
.floating-checkout-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #b72b35;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.floating-checkout-btn:hover {
    filter: brightness(1.2);
}



.page-tra {
    background-color: #f2f2f2;
}

#tra-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
}

#tra-header-top {
    background-color: #b72b35;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
}

#tra-logo {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

#tra-nav-bar {
    border-top: 2px solid #5ab0e5;
    border-bottom: 2px solid #5ab0e5;
    padding: 15px 0;
    text-align: center;
    background-color: #ffffff;
}

#tra-nav-bar ul {
    list-style: none;
    display: inline-block;
    padding: 0;
    margin: 0;
}

#tra-nav-bar ul li {
    display: inline-block;
    margin: 0 15px;
}

#tra-nav-bar ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 14px;
}

#tra-nav-bar ul li a.tra-active {
    color: #b72b35;
    border-bottom: 2px solid #b72b35;
    padding-bottom: 5px;
}

#tra-nav-bar ul li a:hover {
    color: #b72b35;
}

#tra-main-content {
    padding: 20px;
    background-color: #f5f6f8;
}

.tra-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #b72b35;
    margin-bottom: 20px;
}

.tra-bar {
    color: #b72b35;
    font-weight: bold;
    margin-right: 5px;
}

#tra-product-list {
    display: grid;
grid-template-columns: repeat(3,1fr);    
gap: 20px;
}

.tra-product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.tra-product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tra-product-info {
    padding: 15px;
    text-align: center;
    position: relative;
    flex-grow: 1;
}

.tra-product-name {
    font-weight: bold;
    font-size: 15px;
    color: #333333;
    margin-bottom: 8px;
}

.tra-product-price {
    font-size: 14px;
    color: #b72b35;
    font-weight: bold;
}

.tra-add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #b72b35;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.tra-add-btn:hover {
    filter: brightness(1.2);
}




.page-thanhtoan {
    background-color: #f2f2f2;
}

#tt-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
}

#tt-header-top {
    background-color: #b72b35;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
}

#tt-logo {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

#tt-main-content {
    padding: 20px;
    background-color: #f5f6f8;
}

.tt-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #b72b35;
    margin-bottom: 20px;
}

.tt-bar {
    color: #b72b35;
    font-weight: bold;
    margin-right: 5px;
}

#tt-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

#tt-left-col {
    width: 60%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

#tt-right-col {
    width: 38%;
}

.tt-form-group {
    margin-bottom: 20px;
}

.tt-form-group label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333333;
}

.tt-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#tt-payment-options {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px;
}

.tt-radio-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.tt-radio-block input[type="radio"] {
    cursor: pointer;
}

.tt-radio-block label {
    display: inline;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
}

#tt-order-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

#tt-box-title {
    font-size: 16px;
    font-weight: bold;
    color: #b72b35;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.tt-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}

.tt-item-name {
    font-weight: bold;
    color: #333333;
}

.tt-item-qty {
    color: #888888;
    margin-left: 5px;
}

.tt-item-price {
    color: #333333;
}

.tt-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 15px 0;
}

.tt-cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #666666;
}

.tt-total-price {
    font-size: 16px;
    font-weight: bold;
    color: #b72b35;
    margin-top: 10px;
}

#tt-submit-btn {
    width: 100%;
    background-color: #b72b35;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
}

#tt-submit-btn:hover {
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    #tt-layout {
        flex-direction: column;
    }
    #tt-left-col, #tt-right-col {
        width: 100%;
    }
}


.floating-checkout-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #b72b35;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.floating-checkout-btn:hover {
    filter: brightness(1.2);
}


/* --- CSS CHO POPUP (MODAL) ĐÃ ĐƯỢC ĐỒNG BỘ CHUẨN --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.modal-flex {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

/* Đã sửa lại gọi đích danh class ảnh */
.modal-img {
    width: 40%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-title {
    font-size: 24px;
    color: #000000;
    margin-bottom: 5px;
}

/* Đã sửa lại gọi đích danh class giá tiền */
.modal-price {
    font-size: 18px;
    color: #b72b35;
    font-weight: bold;
    margin: 10px 0;
}

.modal-add-btn {
    background-color: #b72b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
}


.footer1{
    background-color: burlywood;
    color: #ffffff;
    padding: 40px 0 0 0;
    margin-top: 50px;

}
.footer-container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 0 20px;

}
.footer1-col{
    width: 48%;
}
.footer1-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fcf6ec;
    text-transform: uppercase;
    font-weight: bold;
}
.footer1-col p{
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #dcdcdc;
}