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

html {
    scroll-behavior: smooth;
}

body {
    background: #fbf6f3;
    color: #493a3a;
    font-family: Arial, sans-serif;
}

header {
    background: white;
    padding: 25px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    color: #bd818b;
    letter-spacing: 4px;
    font-size: 25px;
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #493a3a;
    font-size: 14px;
}

nav a:hover {
    color: #bd818b;
}

main {
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 40px 20px;
}

main p:first-child {
    letter-spacing: 5px;
    color: #bd818b;
    font-size: 13px;
}

main h2 {
    font-size: clamp(36px, 6vw, 55px);
    color: #a66c78;
}

.shop-button,
.add-button,
#checkout-button,
.place-order {
    background: #bd818b;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
}

.shop-button:hover,
.add-button:hover,
#checkout-button:hover,
.place-order:hover {
    background: #a66c78;
}

.featured {
    padding: 65px 7%;
    text-align: center;
    background: white;
}

.section-label {
    color: #bd818b;
    letter-spacing: 4px;
    font-size: 12px;
}

.featured h2,
.cart-section h2,
.checkout-section h2 {
    color: #a66c78;
    font-size: 34px;
    font-weight: 400;
    margin: 15px 0;
}

.section-description {
    color: #827575;
    margin-bottom: 35px;
    line-height: 1.7;
}

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

.product-card {
    background: #fbf6f3;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.product-image {
    height: 190px;
    background: #f2e5e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a66c78;
    margin-bottom: 18px;
}

.product-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-card p {
    color: #827575;
    font-size: 13px;
    margin-bottom: 12px;
}

.product-card strong {
    display: block;
    color: #a66c78;
    margin-bottom: 15px;
}

.cart-section {
    padding: 70px 7%;
    background: #fbf6f3;
    text-align: center;
}

#cart-items {
    max-width: 750px;
    margin: 0 auto 30px;
}

.cart-item {
    background: white;
    padding: 20px 25px;
    margin-bottom: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #493a3a;
    font-size: 15px;
    text-align: left;
}

.remove-button {
    background: transparent;
    border: 1px solid #bd818b;
    color: #bd818b;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.remove-button:hover {
    background: #bd818b;
    color: white;
}

.empty-message {
    background: white;
    padding: 25px;
    border-radius: 12px;
    color: #827575;
}

.cart-section h3 {
    max-width: 750px;
    margin: 0 auto 25px;
    padding: 22px;
    background: white;
    border-radius: 12px;
    color: #a66c78;
    font-size: 21px;
    font-weight: 500;
}

#checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-section {
    padding: 70px 20px;
    text-align: center;
    background: white;
}

#checkout-form {
    max-width: 520px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#checkout-form input[type="text"],
#checkout-form input[type="tel"],
#checkout-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #eadbd8;
    border-radius: 10px;
    background: #fbf6f3;
    color: #493a3a;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

#checkout-form input:focus,
#checkout-form textarea:focus {
    border-color: #bd818b;
}

#checkout-form textarea {
    min-height: 100px;
    resize: vertical;
}

.payment-method {
    background: #fbf6f3;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    color: #493a3a;
}

.payment-method p {
    margin-bottom: 12px;
    color: #a66c78;
}

.payment-method label {
    font-size: 14px;
}

.place-order {
    width: 100%;
}

#order-success {
    max-width: 520px;
    margin: 20px auto 0;
    color: #a66c78;
    line-height: 1.8;
}

footer {
    padding: 40px 20px;
    text-align: center;
    background: #fbf6f3;
    color: #a66c78;
}

footer h2 {
    letter-spacing: 4px;
    margin-bottom: 12px;
}

footer p {
    font-size: 13px;
    color: #827575;
}

@media (max-width: 850px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    header {
        justify-content: center;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 15px;
    }

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

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
}