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

:root {
    --brown: #4a2c20;
    --dark: #21130e;
    --gold: #c68b4a;
    --cream: #f8f1e7;
    --white: #fff;
    --text: #665850;
    --border: #e5d8cc;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #fffaf5;
    color: var(--dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
}

a {
    color: var(--brown);
}

nav {
    min-height: 70px;
    background: rgba(33,19,14,.97);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 6%;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    color: white;
    text-decoration: none;
    font-family: "Playfair Display";
    font-size: 25px;
    font-weight: 700;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.hero {
    min-height: 650px;
    padding: 100px 7%;
    display: flex;
    align-items: center;
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(25,15,10,.9),
            rgba(25,15,10,.4)
        ),
        url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1800&q=85")
        center/cover;
}

.hero > div {
    max-width: 720px;
}

.hero span,
.heading span {
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 13px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 90px);
    line-height: 1;
    margin: 20px 0;
}

.hero p {
    max-width: 600px;
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    border: 0;
    background: var(--brown);
    color: white;
    padding: 13px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    background: var(--gold);
}

.hero .btn {
    margin-right: 10px;
}

.btn.outline {
    background: transparent;
    border: 1px solid white;
}

.btn.wide {
    width: 100%;
    text-align: center;
}

.section {
    padding: 90px 7%;
}

.narrow {
    max-width: 900px;
    margin: auto;
}

.heading {
    text-align: center;
    margin-bottom: 45px;
}

.heading h1,
.heading h2 {
    font-size: 48px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.features article {
    background: white;
    padding: 35px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(50,30,20,.08);
}

.features b {
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
}

.products {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.product {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(50,30,20,.08);
}

.product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-body {
    padding: 22px;
}

.product-body h3 {
    font-size: 24px;
}

.product-body p {
    color: var(--text);
    margin: 8px 0 12px;
}

.product-body strong {
    display: block;
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 15px;
}

.product-body form {
    display: flex;
    gap: 8px;
}

.product-body input {
    width: 70px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    font: inherit;
    background: white;
}

textarea {
    min-height: 120px;
}

.form {
    background: var(--cream);
    padding: 30px;
    border-radius: 18px;
}

.form label {
    display: block;
    font-weight: 600;
    margin-bottom: 17px;
}

.form input,
.form textarea,
.form select {
    margin-top: 7px;
}

.alert {
    max-width: 1000px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 8px;
}

.success {
    background: #e3f5e5;
    color: #23622c;
}

.error {
    background: #ffe5e2;
    color: #8b2c20;
}

.cart-row {
    background: white;
    padding: 20px;
    margin: 12px 0;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 100px 100px 80px;
    gap: 15px;
    align-items: center;
}

.summary {
    background: var(--cream);
    padding: 30px;
    margin-top: 25px;
    border-radius: 15px;
}

.summary p,
.summary h2 {
    margin: 12px 0;
}

.empty {
    padding: 50px;
    background: var(--cream);
    text-align: center;
    border-radius: 15px;
}

.order-card {
    background: white;
    border: 1px solid var(--border);
    padding: 20px;
    margin: 12px 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.center {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: auto auto 20px;
    border-radius: 50%;
    background: #dff2e2;
    color: #287535;
    font-size: 50px;
}

/* ADMIN */

.admin {
    padding: 60px 6%;
}

.admin h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.stats > div {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}

.stats span {
    display: block;
    color: var(--text);
}

.stats strong {
    display: block;
    font-size: 35px;
    margin-top: 10px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--cream);
}

td form {
    display: flex;
    gap: 5px;
}

td select {
    width: auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.admin-product {
    background: white;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer {
    padding: 50px 7%;
    background: var(--dark);
    color: white;
    text-align: center;
}

footer p {
    color: #aaa;
    margin: 8px;
}

@media(max-width:900px) {

    .products {
        grid-template-columns: repeat(2,1fr);
    }

    .features,
    .stats {
        grid-template-columns: repeat(2,1fr);
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:650px) {

    .nav-links {
        gap: 10px;
    }

    .hero {
        min-height: 550px;
    }

    .products,
    .features,
    .stats {
        grid-template-columns: 1fr;
    }

    .cart-row {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .heading h1,
    .heading h2,
    .admin h1 {
        font-size: 40px;
    }
}