@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

:root {
    --primary-color: #c0392b;
    --secondary-color: #fdf5f3;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --border-color: #ddd;
    --success-color: #27ae60;
    --error-color: #c0392b;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

header h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5em;
}

header .subtitle {
    font-size: 1.1em;
    color: #777;
    margin-top: 5px;
}

h2 {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-top: 30px;
}

.info-section p, .shipping-info p, .footer-info p {
    background-color: var(--light-gray);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(192, 57, 43, 0.2);
}

.payment-account {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.total-section {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 5px;
    margin-top: 25px;
    border: 1px solid var(--primary-color);
}

.total-section p {
    margin: 8px 0;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
}

.total-section strong {
    font-size: 1.3em;
    color: var(--primary-color);
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #a53125;
}

button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#form-status {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #888;
    font-size: 0.9em;
}

#payment-account-div{
    border: solid 1px;
    padding: 20px;
}

.payment-account{
    font-size: 24px;
}

.product-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-image:hover {
    transform: scale(1.05);
}

/* The Modal (background) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
}

/* Modal Content (the image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    transition: transform 0.3s;
}

.modal-content.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

/* Add Animation */
.modal-content {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

@media only screen and (min-width: 700px){
    #product-image{
        max-height: 500px;
    }
}