
/* GENERAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fffaf6;
    color: #594b43;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}


/* HEADER */

.header {
    height: 85px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffaf6;
    border-bottom: 1px solid #f0e8e0;
}

.logo {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: bold;
    color: #8e6e61;
}

.logo span {
    color: #d99b9b;
}

.navigation {
    display: flex;
    gap: 35px;
    font-size: 14px;
}

.navigation a:hover {
    color: #c58e83;
}

.cart-button {
    background: transparent;
    border: 1px solid #d9c4b6;
    border-radius: 30px;
    padding: 10px 20px;
    color: #594b43;
}


/* HERO */

.hero {
    min-height: 510px;
    padding: 70px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: #f4e9e1;
}

.hero-text {
    max-width: 500px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: #b58678;
    font-weight: bold;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.12;
    font-weight: normal;
    margin: 20px 0;
}

.hero h1 span {
    color: #c58e83;
    font-style: italic;
}

.hero-description {
    max-width: 390px;
    line-height: 1.9;
    color: #85736a;
    font-size: 15px;
}

.shop-button {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 27px;
    background: #987467;
    color: white;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.2s;
}

.shop-button:hover {
    background: #76594e;
    transform: translateY(-2px);
}


/* HERO ART */

.hero-art {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e7d4c4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-emoji {
    font-size: 130px;
}

.sun-decoration {
    position: absolute;
    top: 25px;
    left: 35px;
    font-size: 45px;
    color: #d7a66f;
}

.floating {
    position: absolute;
    font-size: 35px;
}

.flower-one {
    right: 25px;
    top: 55px;
    color: #c98791;
}

.flower-two {
    left: 30px;
    bottom: 35px;
    color: #b38d9e;
}

.heart {
    right: 45px;
    bottom: 35px;
    color: #bd7d80;
    font-size: 45px;
}


/* SHOP */

.shop-section {
    padding: 90px 8%;
}

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

.section-heading h2,
.about-section h2 {
    font-family: Georgia, serif;
    font-weight: normal;
    font-size: 40px;
    margin: 15px 0;
}

.section-heading > p:last-child {
    color: #94847a;
    font-size: 14px;
}

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

.product-card {
    text-align: center;
}

.product-image {
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
}

.product-image:hover {
    transform: translateY(-5px);
}

.product-image span {
    font-size: 90px;
}

.product-pink {
    background: #f3dfdf;
}

.product-yellow {
    background: #f4eacb;
}

.product-green {
    background: #e1e9d9;
}

.product-blue {
    background: #dfe8ee;
}

.product-card h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: normal;
    margin: 18px 0 7px;
}

.price {
    font-size: 14px;
    color: #8e766a;
}

.add-button {
    background: transparent;
    border: 1px solid #cdb6a8;
    padding: 10px 20px;
    border-radius: 25px;
    color: #715b50;
    margin-top: 8px;
    transition: 0.2s;
}

.add-button:hover {
    background: #987467;
    color: white;
}


/* ABOUT */

.about-section {
    text-align: center;
    background: #f4e9e1;
    padding: 80px 20px;
}

.about-section > p:last-child {
    max-width: 500px;
    margin: 20px auto 0;
    color: #85736a;
    line-height: 1.9;
}


/* FOOTER */

.footer {
    text-align: center;
    padding: 45px 20px;
    background: #fffaf6;
}

.footer p {
    color: #96847a;
    font-size: 13px;
}

.copyright {
    margin-top: 25px;
    font-size: 11px !important;
}


/* MOBILE */

@media (max-width: 750px) {

    .header {
        height: auto;
        min-height: 75px;
        padding: 18px 5%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 21px;
    }

    .navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 30px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 55px 7%;
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-art {
        width: 250px;
        height: 250px;
    }

    .hero-emoji {
        font-size: 100px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }

    .shop-section {
        padding: 65px 5%;
    }

    .section-heading h2,
    .about-section h2 {
        font-size: 32px;
    }

}

/* PRODUCT DETAIL PAGE */

.product-detail {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 30px;
}

.back-link {
    display: inline-block;
    color: #987467;
    margin-bottom: 30px;
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.detail-image {
    background: #f3dfdf;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image span {
    font-size: 150px;
}

.detail-info h1 {
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: normal;
    margin: 18px 0;
}

.detail-price {
    font-size: 22px;
    color: #987467;
}

.detail-description {
    color: #8a7a70;
    line-height: 1.9;
    margin: 25px 0;
}

.detail-info label {
    display: block;
    margin: 20px 0 10px;
    font-size: 14px;
}

.detail-info select {
    width: 100%;
    padding: 13px;
    background: white;
    border: 1px solid #d9c4b6;
    border-radius: 8px;
    color: #594b43;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 15px 0 25px;
}

.quantity-control button {
    width: 38px;
    height: 38px;
    border: 1px solid #d9c4b6;
    border-radius: 50%;
    background: white;
    color: #594b43;
    font-size: 20px;
}

.detail-add-button {
    width: 100%;
    padding: 17px;
    border: none;
    border-radius: 30px;
    background: #987467;
    color: white;
}

.detail-add-button:hover {
    background: #76594e;
}

.cart-message {
    color: #66866b;
    font-size: 14px;
}

.small-note {
    font-size: 12px;
    color: #a18f83;
    margin-top: 25px;
}

@media (max-width: 750px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-info h1 {
        font-size: 32px;
    }

    .product-detail {
        margin: 30px auto;
        padding: 0 20px;
    }
}

/* CART PAGE */

.cart-page {
    max-width: 950px;
    margin: 60px auto;
    padding: 0 24px;
    min-height: 55vh;
}

.cart-page > h1 {
    font-size: 32px;
    margin-bottom: 35px;
    color: #59443e;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #eadfda;
}

.cart-item-image {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    background: #f9e6e8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin: 0 0 7px;
    color: #59443e;
}

.cart-item-info p {
    margin: 0 0 8px;
    color: #927f76;
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddc9c0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.remove-item {
    border: none;
    background: none;
    color: #a47d78;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}

.cart-summary {
    max-width: 420px;
    margin: 40px 0 0 auto;
    padding: 25px;
    background: #fbf6f2;
    border-radius: 14px;
}

.cart-summary h2 {
    margin-top: 0;
    color: #59443e;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 18px 0;
    font-size: 14px;
}

.total-row {
    padding-top: 18px;
    border-top: 1px solid #e5d6cf;
    font-size: 18px;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: #8d6961;
    color: white;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
}

.checkout-button:hover {
    background: #72534c;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #80645b;
    font-size: 14px;
}

.empty-cart {
    text-align: center;
    padding: 65px 20px;
    background: #fbf6f2;
    border-radius: 14px;
}

.empty-cart-emoji {
    font-size: 55px;
    margin-bottom: 15px;
}

.empty-cart h2 {
    color: #59443e;
}

.empty-cart p {
    color: #927f76;
}

.empty-cart a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #8d6961;
    color: white;
    text-decoration: none;
    border-radius: 25px;
}

@media (max-width: 600px) {
    .cart-page {
        margin: 35px auto;
        padding: 0 16px;
    }

    .cart-page > h1 {
        font-size: 26px;
    }

    .cart-item {
        gap: 12px;
    }

    .cart-item-image {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .cart-item-info h3 {
        font-size: 14px;
    }

    .cart-item-info p {
        font-size: 12px;
    }

    .cart-quantity {
        gap: 8px;
    }
}

/* CHECKOUT PAGE */

.checkout-page {
    max-width: 1100px;
    margin: 55px auto;
    padding: 0 24px;
    min-height: 60vh;
}

.checkout-page h1 {
    color: #59443e;
    font-size: 32px;
    margin-bottom: 35px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 45px;
    align-items: start;
}

.checkout-form-section,
.checkout-order-section {
    background: #fbf6f2;
    padding: 28px;
    border-radius: 15px;
}

.checkout-layout h2 {
    color: #59443e;
    margin-top: 0;
    margin-bottom: 25px;
}

.checkout-form-section label {
    display: block;
    margin: 16px 0 7px;
    color: #59443e;
    font-size: 14px;
}

.checkout-form-section input,
.checkout-form-section select,
.checkout-form-section textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddc9c0;
    border-radius: 8px;
    background: white;
    font: inherit;
}

.checkout-form-section input:focus,
.checkout-form-section select:focus,
.checkout-form-section textarea:focus {
    outline: 2px solid #c9a49b;
    border-color: transparent;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5d6cf;
    color: #59443e;
}

.checkout-item p {
    color: #927f76;
    font-size: 13px;
    margin-bottom: 0;
}

.checkout-order-section .summary-row {
    margin-top: 22px;
}

.checkout-page #checkout-message {
    color: #66846a;
    font-size: 14px;
    margin-top: 15px;
}

@media (max-width: 750px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .checkout-page {
        margin: 35px auto;
        padding: 0 16px;
    }

    .checkout-form-section,
    .checkout-order-section {
        padding: 20px;
    }
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.shipping-options label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e5d5ce;
    border-radius: 12px;
    cursor: pointer;
    background: #fffaf7;
}

.shipping-options label input {
    width: auto;
    margin: 0 0 6px;
}

.shipping-options label span {
    font-size: 13px;
    color: #806f67;
}

#shipping-message {
    font-size: 13px;
    color: #806f67;
    margin: 10px 0 16px;
}

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

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.shipping-options label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e5d5ce;
    border-radius: 12px;
    cursor: pointer;
    background: #fffaf7;
}

.shipping-options label input {
    width: auto;
    margin: 0 0 6px;
}

.shipping-options label span {
    font-size: 13px;
    color: #806f67;
}

#shipping-message {
    font-size: 13px;
    color: #806f67;
    margin: 10px 0 16px;
}

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

/* PRODUCT PHOTOS */

.product-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}

/* PRODUCT DETAIL PHOTO */

#product-image {
    overflow: hidden;
}

#product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
