
:root {
    --background: #f5f1eb;
    --white: #fffdf9;
    --dark: #28231e;
    --gold: #b09265;
    --muted: #8d8377;
    --border: #e5ddd2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background);
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
}

/* HEADER */

.header {
    height: 90px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    letter-spacing: 4px;
    font-weight: 700;
}

.logo span,
footer span {
    color: var(--gold);
}

.header p {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--muted);
}

/* HERO */

.hero {
    text-align: center;
    padding: 95px 20px 100px;
}

.subtitle {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 600;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 76px;
    line-height: 1;
    font-weight: 400;
    margin: 25px 0;
}

.hero-text {
    max-width: 440px;
    margin: auto;
    font-size: 12px;
    line-height: 2;
    color: var(--muted);
}

/* COLLECTION */

.collection {
    padding: 60px 8% 100px;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

.collection-header h2,
.add-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 500;
    margin-top: 8px;
}

#perfumeCount {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}

/* CONTENT */

.content {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 35px;
    align-items: start;
}

/* PERFUME CARDS */

.perfume-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.perfume-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 30px;
    position: relative;
    min-height: 205px;
    transition: 0.3s;
}

.perfume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.card-number {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.perfume-brand {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.perfume-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 22px;
}

.perfume-details {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    color: var(--muted);
    font-size: 11px;
}

.perfume-price {
    color: var(--dark);
    font-weight: 600;
}

.delete-button {
    position: absolute;
    top: 25px;
    right: 25px;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
}

.delete-button:hover {
    color: #a14c43;
}

/* EMPTY COLLECTION */

.empty-message {
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px solid var(--border);
    text-align: center;
    padding: 65px 20px;
}

.empty-message h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 10px;
}

.empty-message p {
    color: var(--muted);
    font-size: 12px;
}

/* ADD FORM */

.add-section {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 35px;
}

.add-section h2 {
    font-size: 36px;
}

.form-text {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin: 10px 0 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: #fcfaf7;
    border: 1px solid var(--border);
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

.form-group input:focus {
    border-color: var(--gold);
}

.form-group input::placeholder {
    color: #b7afa5;
}

button[type="submit"] {
    width: 100%;
    padding: 17px;
    border: none;
    background: var(--dark);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

button[type="submit"]:hover {
    background: var(--gold);
}

#message {
    margin-top: 15px;
    color: var(--gold);
    font-size: 11px;
}

/* FOOTER */

footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 0 5%;
    }

    .header p {
        font-size: 8px;
    }

    .hero h1 {
        font-size: 55px;
    }

    .collection {
        padding: 45px 5%;
    }

    .perfume-list {
        grid-template-columns: 1fr;
    }

    .collection-header h2 {
        font-size: 34px;
    }

    .add-section {
        padding: 25px;
    }
}
