/* ========================== */
/* BASE */
/* ========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, serif;
    background-color: #fdf7f5;
    line-height: 1.6;
}

main {
    margin: 0;
    padding: 0;
}

/* ========================== */
/* HEADINGS (CLEAN + VALIDATOR SAFE) */
/* ========================== */

h1 {
    margin: 0 0 10px 0;
    font-size: 40px;
}

h2 {
    margin: 0 0 25px 0;
    text-align: center;
}

h3 {
    margin: 12px 0 8px 0;
}

/* ========================== */
/* PARAGRAPHS */
/* ========================== */

p {
    margin: 5px 0;
}

/* ========================== */
/* HEADER */
/* ========================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: #f5d7cf;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
}

.header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: black;
}

.header nav a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* ========================== */
/* HERO */
/* ========================== */

.hero {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
}

/* ========================== */
/* PRODUCTS / GALLERY */
/* ========================== */

.products {
    padding: 30px 40px;
}

.layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* ========================== */
/* CARD */
/* ========================== */

.card {
    background: white;
    flex: 0 0 300px;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.card button {
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid #aaa;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 5px;
}

.card button:hover {
    background: #eaeaea;
}

.card p {
    color: #c0392b;
    font-weight: bold;
}

/* ========================== */
/* SLIDESHOW */
/* ========================== */

.hero-slideshow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.hero-slideshow img {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-slideshow button {
    padding: 10px;
    border: none;
    background: black;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* ========================== */
/* SHOP BUTTON */
/* ========================== */

.shop-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.shop-btn:hover {
    background: #c0392b;
}

/* ========================== */
/* FOOTER */
/* ========================== */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #f5d7cf;
    margin-top: 20px;
}

/* ========================== */
/* CART ITEMS */
/* ========================== */

#cart-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.cart-item {
    background-color: white;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-row img {
    width: 120px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.cart-info {
    text-align: left;
}

/* ========================== */
/* QUANTITY CONTROLS */
/* ========================== */

.qty-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.qty-controls button {
    width: 30px;
    height: 30px;
    background: black;
    color: white;
    border: none;
    border-radius: 5px;
}

/* ========================== */
/* IMAGE MODAL */
/* ========================== */

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* ========================== */
/* CART TOTAL + ACTIONS */
/* ========================== */

.cart-total {
    text-align: center;
    margin-top: 20px;
}

.cart-actions {
    text-align: center;
    margin-top: 20px;
}

.cart-actions button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    background: black;
    color: white;
    border-radius: 6px;
}

.cart-actions button:hover {
    background: #c0392b;
}

/* ========================== */
/* MESSAGE POPUP */
/* ========================== */

.added-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    background: black;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
}

/* ========================== */
/* CHECKOUT BOX */
/* ========================== */

.checkout-box {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.checkout-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.checkout-box ul li {
    margin: 8px 0;
}

.checkout-box .warning {
    color: #c0392b;
    font-weight: bold;
}

.checkout-box .note {
    font-size: 14px;
    color: #555;
}

.checkout-box button {
    margin: 10px 5px;
    padding: 10px 18px;
    border: none;
    background: black;
    color: white;
    border-radius: 6px;
}

.checkout-box button:hover {
    background: #c0392b;
}