/* 顏色變數 */
:root {
    --primary: #A7706B;
    --secondary: #98C1D9;
    --accent: #D8C3A5;
    --text: #4A4A4A;
    --bg: #EAE7DC;

}

/* 基本樣式 */
body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
}

/* 頁首 */
header {
    background-color: var(--primary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    margin-left: 1rem;
}

.cart-btn button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* Hero 區塊 */
.hero {
    background-color: var(--secondary);
    color: white;
    padding: 2rem;
    text-align: center;
    font-weight: bold;
    font-size: large;
}

/* 產品列表 */
.products {
    padding: 2rem;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.product-item {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    max-width: 100%;
    height: auto;
}

.custom-button {
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.custom-button:hover {
    background-color: #f5f5f5;
}

/* 購物車模態框 */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--bg);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid var(--accent);
    width: 30%;
    position: relative;
}

.close-btn {
    color: var(--text);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.checkout-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
}

/* 刪除按鈕的樣式 */
.delete-button {
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.delete-button:hover {
    background-color: #f5f5f5;
}


/* 頁尾 */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    border-bottom: 2px double white;
}

/* RWD */
@media (max-width: 1080px) {
    .modal-content {
        width: 80%;
    }
}