
/* ==============================
   MAISON ÉLÉGANCE
   Luxury Fashion Website
================================ */

:root {
    --background: #160e12;
    --surface: #25171e;
    --surface-light: #302029;
    --gold: #d6b77a;
    --gold-dark: #a88a55;
    --rose: #d8b5c0;
    --text: #f5e9e5;
    --muted: #cbbbc1;
    --border: #59404a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Georgia, serif;
    line-height: 1.6;
}

section {
    scroll-margin-top: 25px;
}

/* HEADER */

header {
    text-align: center;
    padding: 35px 20px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    color: var(--gold);
    font-size: 38px;
    font-weight: normal;
    letter-spacing: 7px;
    margin: 0;
}

header p {
    color: var(--rose);
    font-size: 12px;
    letter-spacing: 6px;
    margin: 8px 0;
}

/* NAVIGATION */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 28px;
}

nav a {
    position: relative;
    padding: 8px 0;
    color: var(--gold);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover {
    color: white;
}

nav a:hover::after {
    width: 100%;
}

/* HOME / HERO */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 65px 20px 85px;
}

.hero h2 {
    color: var(--gold);
    font-size: 45px;
    font-weight: normal;
    letter-spacing: 3px;
    margin: 0 0 35px;
}

.fashion-image {
    display: block;
    width: 75%;
    max-width: 850px;
    height: 520px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
}

.hero p {
    color: var(--muted);
    font-size: 17px;
    letter-spacing: 1px;
    margin: 30px auto 20px;
}

/* BUTTONS */

button,
.contact a,
.order-button {
    display: inline-block;
    background: var(--gold-dark);
    color: var(--background);
    border: 1px solid var(--gold);
    padding: 13px 25px;
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover,
.contact a:hover,
.order-button:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-3px);
}

.hero button {
    margin-top: 15px;
}

/* ABOUT */

.about {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface);
}

.about h2,
.collection h2,
.contact h2 {
    color: var(--rose);
    font-size: 35px;
    font-weight: normal;
    letter-spacing: 2px;
}

.about p {
    max-width: 650px;
    margin: 12px auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

/* COLLECTION */

.collection {
    text-align: center;
    padding: 85px 20px;
}

.collection h2 {
    margin-bottom: 35px;
}

.dress-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 35px;
    margin-top: 40px;
}

.dress {
    width: 300px;
    padding-bottom: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.dress:hover {
    transform: translateY(-7px);
}

.dress img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dress h3 {
    color: var(--gold);
    font-size: 21px;
    font-weight: normal;
    margin: 20px 10px 5px;
}

.dress p {
    color: var(--muted);
    font-size: 14px;
    margin: 5px 0 18px;
}

.dress button {
    margin: 5px;
    padding: 11px 15px;
}

/* SHOPPING CART */

.shopping-cart {
    width: 90%;
    max-width: 750px;
    margin: 70px auto;
    padding: 40px 25px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--gold-dark);
}

.shopping-cart h2 {
    color: var(--gold);
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 2px;
}

.cart-subtitle {
    color: var(--muted);
}

#cart-items {
    color: var(--text);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 10px;
    margin: 15px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-product img {
    width: 120px;
    height: 155px;
    object-fit: cover;
    border: 1px solid var(--gold-dark);
}

.cart-product-info {
    flex: 1;
}

.cart-product-info h3 {
    color: var(--gold);
    font-size: 19px;
    font-weight: normal;
}

.cart-product-info p {
    color: var(--muted);
    margin: 8px 0;
    font-size: 14px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.quantity-controls span {
    color: white;
}

.quantity-controls button {
    min-width: 32px;
    padding: 6px 12px;
}

.cart-product-info > button,
#clear-cart {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 8px 15px;
}

.cart-summary {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gold-dark);
}

.cart-summary h3 {
    color: var(--gold);
    font-size: 22px;
    font-weight: normal;
    margin: 20px 0;
}

/* PRODUCT DETAILS MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    text-align: center;
    background: var(--surface);
    color: white;
    border: 1px solid var(--gold);
}

.modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.modal-content h2 {
    color: var(--gold);
    font-weight: normal;
}

.modal-content label {
    display: block;
    margin: 15px 0 5px;
    color: var(--rose);
}

.modal-content select {
    width: 100%;
    padding: 10px;
    background: var(--background);
    color: white;
    border: 1px solid var(--gold-dark);
    font-family: Georgia, serif;
}

.modal-content button,
.modal-content .order-button {
    margin-top: 20px;
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 12px;
    z-index: 2;
    padding: 5px 12px;
    background: transparent;
    color: var(--gold);
    border: none;
    font-size: 28px;
}

/* CONTACT */

.contact {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface);
}

.contact p {
    color: var(--muted);
    margin-bottom: 30px;
}

/* FOOTER */

footer {
    padding: 25px 15px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 600px) {

    header {
        padding: 28px 12px;
    }

    header h1 {
        font-size: 25px;
        letter-spacing: 4px;
    }

    header p {
        letter-spacing: 4px;
    }

    nav {
        gap: 18px;
    }

    nav a {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .hero {
        padding: 45px 15px 60px;
    }

    .hero h2 {
        font-size: 29px;
    }

    .fashion-image {
        width: 100%;
        height: 350px;
    }

    .hero p {
        font-size: 15px;
    }

    .about,
    .collection,
    .contact {
        padding: 55px 15px;
    }

    .about h2,
    .collection h2,
    .contact h2 {
        font-size: 27px;
    }

    .dress {
        width: 100%;
        max-width: 340px;
    }

    .dress img {
        height: 400px;
    }

    .shopping-cart {
        width: 94%;
        padding: 30px 15px;
    }

    .shopping-cart h2 {
        font-size: 24px;
    }

    .cart-product {
        gap: 12px;
        align-items: flex-start;
    }

    .cart-product img {
        width: 85px;
        height: 120px;
    }

    .cart-product-info h3 {
        font-size: 16px;
    }

    .cart-product-info p {
        font-size: 12px;
    }

    .modal-content {
        padding: 25px 18px;
    }
}
