@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- COLORS ---------- */
:root {
    --primary-lavender: #D7BDE2;
    /* Soft Lavender */
    --primary-dark-purple: #8E44AD;
    /* Deeper Purple for text/contrast */
    --accent-yellow: #F4D03F;
    /* Vibrant Yellow */
    --accent-gold: #c5a059;
    /* Keeping gold for subtle legacy compatibility if needed */
    --bg-white: #FFFFFF;
    --text-dark: #2C1A1D;
    --text-on-dark: #FFFFFF;

    --shadow-soft: 0 10px 30px rgba(142, 68, 173, 0.1);
    --shadow-hover: 0 20px 40px rgba(142, 68, 173, 0.25);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- GLOBAL ---------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    background-color: rgb(235, 235, 235);
    overflow-x: hidden;
}

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- HEADER ---------- */
header {
    background-color: var(--bg-white);
    height: 100px;
    /* Taller header for better presence */
    padding: 0 5vw;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Auto width for logo/basket, flex space for nav */
    grid-template-areas: "logo nav basket";
    /* Swapped areas */
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle separator */
}

.logo {
    grid-area: logo;
    display: flex;
    justify-content: flex-start;
    /* Left align */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.logo img {
    width: 70px;
    /* Slightly smaller icon */
}

.logo-fashion {
    margin: 0;
    font-size: 20px;
    color: var(--primary-dark-purple);
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
    /* Modern touch */
}

.logo-zone {
    margin: 0;
    font-size: 11px;
    color: #888;
    /* Neutral grey instead of yellow for cleaner look */
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.4;
    text-shadow: none;
}

.list {
    grid-area: nav;
    margin: 0;
    justify-self: center;
    /* Center align */
}

.list ul {
    list-style: none;
    display: flex;
    gap: 50px;
    /* Wider spacing */
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.list a {
    color: #555;
    /* Neutral dark grey initial state */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Center expand */
    background-color: var(--primary-dark-purple);
    transition: width 0.3s ease;
}

.list a:hover {
    color: var(--primary-dark-purple);
}

.list a:hover::after {
    width: 80%;
}

.basket {
    grid-area: basket;
    justify-self: end;
    position: relative;
}

.basket::before {
    /* Optional separator or badge could go here */
}

.basket img {
    width: 26px;
    transition: transform 0.3s ease;
    filter: none;
    /* Reset filter */
    opacity: 0.7;
}

.basket a:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* ------ Hello section ------ */
.hello-section {
    background-color: #FDFDFD;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
    margin: 3rem auto;
    border-radius: 20px;
    max-width: 900px;
    border: 2px solid var(--primary-lavender);
    box-shadow: var(--shadow-soft);
    animation: fadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}

.hello-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-lavender), var(--accent-yellow), var(--primary-lavender));
}

.hello {
    width: 90%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hello h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    color: var(--primary-dark-purple);
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.text {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    color: var(--text-dark);
}

.text h3 {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    color: #555;
    font-style: italic;
}

/* ---------- MAIN ---------- */
main {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    /* margin-bottom: 4rem; */
}

.cards {
    width: 90%;
    /* max-width: 1200px; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cards per row */
    gap: 2rem;
    padding: 0 20px;
}

/* ---------- CARD (Horizontal Layout) ---------- */
.card {
    background-color: var(--bg-white);
    width: 100%;
    height: 350px;
    /* Fixed compact height for horizontal row */
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(215, 189, 226, 0.4);
    animation: fadeIn 0.8s ease-out both;
    margin-bottom: 3rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-yellow);
}

.card-img {
    width: 60%;
    /* Image takes less than half */
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img img {
    transform: scale(1.08);
}

/* ---------- BUTTON ---------- */
.button-buy {
    background-color: var(--primary-lavender);
    color: var(--primary-dark-purple);
    padding: 12px 35px;
    height: auto;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-lavender);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.button-buy:hover {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
}

.info-price p:first-child {
    font-size: 1.1rem;
}

.info-price p:last-child {
    font-size: 1.5rem;
    color: #444;
    font-weight: 600;
    margin: 0;
    position: relative;
    display: block;
    padding-bottom: 20px;
    /* Space for the line */
}

/* Yellow decor line between price and button */
.info-price p:last-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Short elegant line */
    height: 3px;
    background-color: var(--accent-yellow);
    display: block;
}

.buy-info {
    width: 50%;
    /* Adjusted to match user's 50% image width */
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Left align */
    background-color: var(--bg-white);
    box-sizing: border-box;
    text-align: center;
    position: relative;
    gap: 15px;
    /* Better spacing between name, price, button */
}

/* Remove the vertical line since we are horizontal now */
.buy-info::before {
    display: none;
}


/* ---------- FOOTER ---------- */
footer {
    background-color: var(--primary-lavender);
    /* Light purple footer */
    width: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-dark-purple);
    gap: 30px;
    /* margin-top: 4rem; */
    border-top: 5px solid var(--accent-yellow);
}

.listInFooter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
}

.listInFooter a {
    color: var(--primary-dark-purple);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-weight: 600;
}

.listInFooter a:hover {
    color: var(--bg-white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.contacts p:first-child {
    font-weight: 700;
    color: var(--bg-white);
    background: var(--primary-dark-purple);
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 5px;
    font-size: 16px;
}

/* ---------- ADAPTIVE ---------- */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols */
    }
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }

    .list {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .list ul {
        justify-content: center;
        gap: 20px;
        font-size: 14px;
    }

    .basket {
        display: none;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .hello h2 {
        font-size: 2rem;
    }

    .cards {
        grid-template-columns: 1fr;
        /* 1 col */
        max-width: 400px;
    }

    .card-img {
        height: 250px;
    }
}