/* ===== GLOBAL STYLING ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=Sacramento&display=swap');

:root {
    --saffron: #F7C319;
    --sunglow: #FACF43;
    --naples: #FCDB6D;
    --vanilla: #FDEB9E;
    --cream: #FDFBCF;

    --text: #5a4a1f;
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background: var(--cream);
    color: var(--text);
}

/* ===== HEADER ===== */
header {
    background: var(--sunglow);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: margin-left;
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-family: 'Sacramento', cursive;
    font-size: 40px;
    margin: 0;
    color: var(--text);
}

nav a {
    margin-left: 20px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* ===== HOMEPAGE CARDS ===== */
.hero {
    padding: 60px 20px;
    text-align: center;
}

.card-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: var(--vanilla);
    padding: 30px;
    width: 250px;
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    background: var(--naples);
}

.card h3 {
    margin: 0;
}

/* ===== CATALOG GRID ===== */
.catalog {
    padding: 50px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    justify-items: center;   /* centers each product */
}


.item {
    max-width: 220px;
    background: var(--vanilla);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    text-align: center;
}

.item img {
    width: 50px%;
    max-width: 180px;      /* limits how big images can get */
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 0 auto;        /* centers the image */
}

.btn {
    margin-top: 10px;
    display: inline-block;
    background: var(--saffron);
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.btn:hover {
    background: var(--sunglow);
}

/* ===== FOOTER ===== */
footer {
    margin-top: 40px;
    background: var(--sunglow);
    padding: 15px;
    text-align: center;
    font-size: 14px;
}
