@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-burgundy: #5D001E;
    /* Бордовий */
    --secondary-pink: #E3B4B8;
    /* Ніжно-рожевий */
    --bg-cream: #FDFBF7;
    /* Кремовий/білий */
    --text-dark: #2C1A1D;
    --text-light: #FDFBF7;
    --accent-gold: #c5a059;
    /* Keeping gold for subtle accents if needed, or replacing with pink */
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(93, 0, 30, 0.05);
    --shadow-hover: 0 20px 40px rgba(93, 0, 30, 0.15);
}

/* ---------- 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: var(--bg-cream);
    overflow-x: hidden;
}

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- HEADER ---------- */
/* ---------- HEADER ---------- */
header {
    background-color: var(--bg-cream);
    height: 90px;
    padding: 0 5vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Equal space for sides, center for logo */
    grid-template-areas: "nav logo basket";
    align-items: center;
    border-bottom: 2px solid var(--secondary-pink);
}

.logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.logo img {
    width: 60px;
}

.logo-fashion {
    margin: 0;
    font-size: 24px;
    color: var(--primary-burgundy);
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-zone {
    margin: 0;
    font-size: 14px;
    color: var(--secondary-pink);
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.list {
    grid-area: nav;
    margin: 0;
    justify-self: start;
    /* Align to left */
}

.list ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.list a {
    color: var(--primary-burgundy);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-pink);
    transition: width 0.3s ease;
}

.list a:hover {
    color: var(--secondary-pink);
}

.list a:hover::after {
    width: 100%;
}

.basket {
    grid-area: basket;
    justify-self: end;
}

.basket img {
    width: 28px;
    transition: transform 0.3s ease;
    filter: invert(13%) sepia(35%) saturate(3882%) hue-rotate(327deg) brightness(88%) contrast(106%);
}

.basket a:hover img {
    transform: scale(1.1);
}

/* ------ Hello section ------ */
.hello-section {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
    margin: 2rem auto;
    border-radius: 0;
    max-width: 900px;
    border-left: 5px solid var(--primary-burgundy);
    border-right: 5px solid var(--secondary-pink);
    box-shadow: var(--shadow-soft);
    animation: fadeIn 1s ease-out;
}

.hello {
    width: 80%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hello h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: var(--primary-burgundy);
    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.2rem;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    color: var(--text-dark);
    font-style: italic;
}

/* ---------- MAIN ---------- */
main {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.cards {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* ---------- CARD (Redesigned) ---------- */
.card {
    background-color: var(--white);
    width: 600px;
    /* Wider for horizontal layout */
    height: 350px;
    /* Reduced height */
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(227, 180, 184, 0.3);
    animation: fadeIn 0.8s ease-out both;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-pink);
}

.card-img {
    width: 45%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.buy-info {
    width: 55%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: flex-start;
    /* Align mostly left */
    background-color: var(--white);
    box-sizing: border-box;
    position: relative;
}

.buy-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: var(--bg-cream);
}

.info-price {
    text-align: left;
    margin-bottom: 20px;
}

.info-price p:first-child {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: var(--primary-burgundy);
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

.info-price p:last-child {
    font-size: 1.5rem;
    color: var(--secondary-pink);
    font-weight: 600;
    margin: 0;
}

/* ---------- BUTTON ---------- */
.button-buy {
    background-color: var(--primary-burgundy);
    color: var(--white);
    padding: 12px 30px;
    height: auto;
    border-radius: 30px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-burgundy);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.button-buy:hover {
    background-color: transparent;
    color: var(--primary-burgundy);
}

/* ---------- FOOTER ---------- */
footer {
    background-color: var(--primary-burgundy);
    width: 100%;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    gap: 30px;
    margin-top: 2rem;
    border-top: 5px solid var(--secondary-pink);
}

.listInFooter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
}

.listInFooter a {
    color: var(--secondary-pink);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-weight: 500;
}

.listInFooter a:hover {
    color: var(--white);
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    font-size: 15px;
}

.contacts p:first-child {
    font-weight: 600;
    color: var(--secondary-pink);
    margin-bottom: 5px;
    font-size: 16px;
}

/* ---------- ADAPTIVE ---------- */
@media (max-width: 900px) {
    .card {
        width: 100%;
        max-width: 600px;
        height: auto;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
        background-color: var(--white);
    }

    .list {
        margin: 0;
        width: 100%;
        margin-right: 0;
    }

    .list ul {
        justify-content: center;
        gap: 20px;
        font-size: 14px;
    }

    .basket {
        display: none;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .hello h2 {
        font-size: 2rem;
    }

    .card {
        flex-direction: column;
        height: auto;
        width: 300px;
        /* Revert to column for small screens if needed, or keep row if wide enough */
    }

    .card-img {
        width: 100%;
        height: 250px;
    }

    .buy-info {
        width: 100%;
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    .buy-info::before {
        display: none;
    }

    .info-price {
        text-align: center;
    }
}