*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.mobile-only {
    display: none;
}

/* ===== Header ===== */
.main-header {
    background-color: #821818;
    width: 100%; 
    height: 128px;
    display: flex;
    justify-content: center; /* Centers the content nav */
    align-items: center;
}

/* Banner background */
.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top navigation */
.header-nav {
    width: 100%;
    margin-top: 2vh;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo img {
    height: 95px;
}

.nav-menu li:last-child img {
    height: 50px; /* adjust to match button size */
    cursor: pointer;
    margin-top: 10px;
}

.nav-menu li {
    color: #ffffff;
    /* font: normal normal bold 26px/40px "Libian TC"; */
    opacity: 0.85;
    cursor: pointer;
}

/* Contact Section */
.contact-section {
    background: #FFFAF3;
    padding: 100px 0; /* Increased padding for better vertical breathing room */
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 90%; 
    max-width: 1400px; 
    margin: auto;
    display: flex;
    align-items: flex-start; 
    gap: 80px; 
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

/* This puts Phone and Email on the same line */
.form-row {
    display: flex;
    gap: 20px; 
}

.form-row .form-group {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #707070;
    border-radius: 8px; 
    font-size: 16px;
    background-color: #FFFAF3;
}

.contact-form textarea {
    height: 80px;
    resize: none;
}

.submit-btn {
    width: 100%;
    background: #821818;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #a01d1d;
}

/* ===== Header/sidebar ===== */
.mobile-overlay {
    height: 100%;
    width: 0; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    background-color: #740505; /* Updated color */
    overflow-x: hidden;
    transition: 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the list isn't showing standard bullet points */
.overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.overlay-list li {
    margin: 25px 0;
}

.overlay-list a {
    text-decoration: none;
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    display: block;
}

.close-overlay {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 35px;
    color: white;
    text-decoration: none;
    z-index: 100;
    cursor: pointer;
}



/* ===== Footer ===== */

.main-footer {
    background-color: #125043; 
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;

    color: #ffffff;
    padding: 80px 60px 320px;
}

/* Header/cart */
.cart-overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10001; /* Higher than sidebar */
    top: 0;
    right: 0;
    background-color: #740505;
    overflow-x: hidden;
    transition: 0.5s;
    color: white;
}

.cart-container {
    padding: 0px 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-title { 
    font-size: 36px;
}

.cart-subtitle {
    opacity: 0.8;
    margin-bottom: 10px;
}

.promo-info { 
    font-size: 13px;
}

.promo-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.promo-row img { width: 24px; height: 24px; }

.cart-item {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}
.item-img { width: 100px; height: 100px; object-fit: contain; background: white; border-radius: 4px; }

.qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}
.qty-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-footer {
    margin-top: auto;
    padding-bottom: 40px;
}
.checkout-btn {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    border: none;
    background: white;
    color: #740505;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
}

/* ===== Footer ===== */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1640px;
    margin: 0 auto;
}

/* Left section */
.footer-left {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    height: 136px;
    margin-bottom: 15px;
}

.company-name {
    font-size: 16px;
    margin-bottom: 15px;
    white-space: normal;
}

/* Icon + text row */
.footer-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.footer-info {
    font-size: 16px;
    opacity: 0.9;
    line-height: 20px;
    margin-bottom: 0;
}

/* Social icons */
.footer-social {
    margin: 15px 0;
}

.footer-social img {
    width: 32px;
    margin-right: 10px;
    cursor: pointer;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    font-size: 18px;
    opacity: 0.7;
    margin-top: 15px;
    white-space: normal;
}

/* Columns */
.footer-column,
.footer-column3 {
    flex: 1;
    min-width: 150px;
    margin-top: 70px;
    /* white-space: nowrap; */
}

.footer-left,
.footer-column,
.footer-column3 {
    margin-left: 0;
    margin-right: 0;
}

.footer-column,
.footer-column3 {
    width: auto;
}

.footer-column3{
    margin-top:125px !important;
}

.footer-column h4 {
    font-size: 24px;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid #ddd;
    height:40px;
}

.footer-column ul,
.footer-column3 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li,
.footer-column3 ul li{
    font: normal normal normal 22px/32px "Taipei Sans TC Beta";
    margin-bottom: 22px; 
    cursor: pointer;
}

.text-white {
    color: white;
}


/* ===== Privacy Page Styles ===== */
.privacy-section {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    background-color: #fffaf0; 
}

.privacy-container {
    width: 100%;
    max-width: 1640px; 
    padding: 0 140px;  
}

.privacy-container h2 {
    margin-bottom: 20px;
}

.privacy-content p, .privacy-content li {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #000000;
}

.privacy-content ul {
    list-style-type: disc;
    padding-left: 80px;
    margin-bottom: 30px;
}

/* ===== Return Policy Page ===== */
.return-section {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    background-color: #fffaf0; 
}

.return-container {
    width: 100%;
    max-width: 1640px; 
    padding: 0 140px;  
}

.breadcrumb {
    font-size: 18px;
    color: #000000;
    margin-bottom: 50px;
}

.return-container h2 {
    margin-bottom: 20px;
}

.return-content p, .return-content li {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #000000;
}

.return-content ul {
    list-style-type: disc;
    padding-left: 80px;
    margin-bottom: 30px;
}

/* ===== Terms Page ===== */
.terms-section {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    background-color: #fffaf0; 
}

.terms-container {
    width: 100%;
    max-width: 1640px; 
    padding: 0 140px;  
}

.terms-container h2 {
    margin-bottom: 20px;
}

.terms-content p, .terms-content li {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #000000;
}

.terms-content ul {
    list-style-type: disc;
    padding-left: 80px;
    margin-bottom: 30px;
}

.nav-menu {
    list-style: none;
    display: flex;              
    flex-direction: row;        
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.nav-menu li {
    color: white;
    font-size: 16px;
    writing-mode: horizontal-tb;
    letter-spacing: 2px;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.fade.show {
    opacity: 1;
}

.modal-dialog {
    width: 100%;
    max-width: 900px;
    margin: 0 15px;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.modal-body {
    padding: 15px 0 !important;
}

.modal::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.modal-dialog {
    display: inline-block;
    vertical-align: middle;
}

.modal-content {
    padding: 15px;
}

.modal-label {
    text-align: left;
    font-weight: 400;
}

.footer-column ul li, .footer-column3 ul li {
    font-size: 1.1rem;
}

@media (max-width: 768px) {

    .main-header {
        height: 90px;
    }

    .header-nav {
        padding: 0 20px;
        margin-top: 0;
        justify-content: space-between;
    }

    .nav-menu {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .mobile-menu-icon {
        display: flex !important;
    }

    .mobile-menu-icon img{
        width: 30px;
        height: auto;
        margin-left:10px;
    }

    /* Adjust mobile-cart-icon sizes */
    .mobile-cart-icon img {
        width: 30px;
        height: auto;
    }

    .nav-logo img {
        height: 60px; /* Make logo smaller on mobile to fit the bar */
    }

    .banner-title img {
        width: 200px !important;
        height: 65px !important;
        margin-top:-40px;
    }

    .main-footer {
        padding: 60px 25px 120px !important; 
        text-align: center;        
    }

    .footer-content {
        display: flex;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        align-items: center;
        width: 100%;
        gap: 0;
        overflow-x: hidden; 
    }

    .footer-left,
    .footer-column,
    .footer-column3 {
        width: 100% !important;
        min-width: auto !important;
        margin-top: 0 !important;
        text-align: center;
        white-space: normal;
    }

    .footer-logo {
        height: 100px;
        margin: 0 auto 20px;
        display: block;
    }

    .company-name {
        line-height: 28px;
    }

    .footer-info-row {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .footer-icon {
        margin: 0 0 8px 0;
    }

    .footer-social img {
        margin: 0 8px;
    }

    .footer-column h4 {
        font-size: 22px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
        display: block;
    }

    .footer-column3 h4.empty-header {
        display: none;
    }

    .footer-column ul li,
    .footer-column3 ul li {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .footer-copyright {
        font-size: 16px;
        line-height: 22px;
        margin-top: 40px;
    }

    .footer-content > * {
        margin-bottom: 20px;
    }

    /* Remove margin from last two items */
    .footer-content > *:nth-last-child(-n+2) {
        margin-bottom: 0;
    }

    .mobile-d-none {
        display: none !important;
    }
}