@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #fffaf1;
    --bg-surface: #fffdf8;
    --text-main: #101010;
    --accent: #088178;
    --border-soft: rgba(8, 129, 120, 0.24);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
    --radius-md: 14px;
    --radius-lg: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan', sans-serif;
}

body {
    width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1 {
    font-size: 50px;
    line-height: 1.2;
    color: var(--text-main);
}

h2 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--text-main);
}

h4 {
    font-size: 22px;
    color: var(--text-main);
}

h6 {
    font-weight: 700;
    font-size: 12px;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    margin: 14px 0 20px;
}

.section-p1 {
    padding: 54px 80px;
}

.section-m1 {
    margin: 36px 0;
}

/* Header */
.logo {
    text-decoration: none;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text-main);
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 80px;
    background: var(--bg-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border-soft);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

#navbar li {
    list-style: none;
    padding: 0 16px;
    position: relative;
}

#navbar li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.25s ease;
}

#navbar li a:hover,
#navbar li a.active {
    color: var(--accent);
}

#navbar li a.active::after,
#navbar li a:hover::after {
    content: "";
    width: 32%;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: -6px;
    left: 16px;
}

.nav-cart-icon {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
}

/* Home page */
#hero {
    background: linear-gradient(180deg, #fffdf8 0%, #fff7ea 100%);
    height: 90vh;
    width: 100%;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero h4 {
    color: var(--accent);
    padding-bottom: 12px;
    font-size: 28px;
}

#hero h1 {
    color: var(--accent);
}

.btn {
    cursor: pointer;
    margin-top: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    background: var(--text-main);
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 28px rgba(8, 129, 120, 0.34);
}

/* Products */
#product1 {
    text-align: center;
}

#product1 h2 {
    color: var(--accent);
}

#product1 .pro-container {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    flex-wrap: wrap;
    gap: 18px;
}

#product1 .pro {
    width: 23%;
    min-width: 250px;
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    margin: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background: var(--bg-surface);
}

#product1 .pro:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

#product1 .pro img {
    width: 100%;
    border-radius: 16px;
}

#product1 .pro .des {
    text-align: start;
    padding: 10px 0;
}

#product1 .pro .des span {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

#product1 .pro .des h5 {
    padding-top: 8px;
    color: var(--text-main);
    font-size: 15px;
}

#product1 .pro .des i {
    font-size: 12px;
    color: var(--accent);
}

#product1 .pro .des h4 {
    padding-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

#product1 .pro .cart {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background-color: var(--bg-main);
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--border-soft);
    position: absolute;
    bottom: 16px;
    right: 14px;
}

/* Newsletter */
#newsletter {
    background: var(--bg-surface);
    padding: 34px 24px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.newstext {
    text-align: center;
}

.newstext h4 {
    font-size: 30px;
    margin-bottom: 8px;
    color: var(--accent);
}

.newstext p {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.newstext p span {
    font-weight: 700;
    color: var(--accent);
}

.form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.form input[type="text"] {
    padding: 12px 14px;
    width: 320px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-main);
}

.form button {
    padding: 12px 22px;
    background-color: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.form button:hover {
    opacity: 0.88;
}

/* Footer */
#footer {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 24px;
    border-top: 1px solid var(--border-soft);
    margin-top: 28px;
}

.footer-content {
    text-align: center;
}

.footer-content h4 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--accent);
}

.footer-content p {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.social-icons {
    text-align: center;
}

.icon {
    display: inline-block;
    margin: 0 10px;
    color: var(--accent);
    text-decoration: none;
    font-size: 20px;
}

.icon:hover {
    opacity: 0.8;
}

/* About */
#about {
    background: transparent;
    padding: 42px 80px;
}

#about h2 {
    margin-bottom: 20px;
    color: var(--accent);
}

#about p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
}

#about p:last-child {
    margin-bottom: 0;
}

/* Contact */
#contact {
    background: transparent;
    padding: 42px 80px;
}

#contact h2 {
    margin-bottom: 20px;
    color: var(--accent);
}

#contact p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
}

.contact-info {
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-main);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 12px 22px;
    background-color: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.contact-form button:hover {
    opacity: 0.88;
}

/* Cart */
#cart {
    text-align: center;
    margin: 50px auto;
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    width: 70%;
    max-width: 640px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-soft);
}

.cart-heading {
    font-size: 34px;
    margin-bottom: 16px;
    color: var(--accent);
}

#cart-items {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #fff;
}

.cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-soft);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
}

.cart-item-image-name,
.cart-item-price {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-main);
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.qty-btn,
.remove-item-btn {
    border: 1px solid var(--border-soft);
    background: var(--bg-main);
    color: var(--text-main);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: 700;
}

.qty-btn:hover,
.remove-item-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.qty-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.cart-empty-message {
    color: var(--text-main);
    opacity: 0.7;
}

#total-amount {
    font-weight: 700;
    color: var(--accent);
}

#checkout-btn,
#clear-cart-button {
    margin-top: 12px;
    color: #fff;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

#checkout-btn {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(8, 129, 120, 0.28);
}

#clear-cart-button {
    background-color: var(--text-main);
    border-color: var(--text-main);
    box-shadow: 0 8px 18px rgba(16, 16, 16, 0.26);
}

#checkout-btn:hover,
#clear-cart-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive layout */
@media (max-width: 991px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 34px;
    }

    .section-p1 {
        padding: 36px;
    }

    #header {
        padding: 16px 28px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 34px;
    }

    #navbar {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 10px;
    }

    #navbar li {
        padding: 0 10px;
    }

    #hero {
        height: auto;
        min-height: 72vh;
        padding: 72px 36px;
    }

    .btn {
        font-size: 34px;
    }

    #product1 .pro {
        width: calc(50% - 10px);
        min-width: 220px;
    }

    #about,
    #contact {
        padding: 36px;
    }

    #cart {
        width: 84%;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
    }

    .section-p1 {
        padding: 24px 16px;
    }

    #header {
        padding: 12px 16px;
        align-items: flex-start;
    }

    .logo {
        font-size: 28px;
    }

    #navbar {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    #navbar li {
        padding: 4px 8px;
    }

    #navbar li a {
        font-size: 14px;
    }

    #hero {
        min-height: 62vh;
        padding: 54px 16px;
    }

    #hero h4 {
        font-size: 22px;
    }

    .btn {
        font-size: 28px;
        padding: 10px 18px;
    }

    #product1 .pro {
        width: 100%;
        min-width: 0;
    }

    #newsletter {
        padding: 24px 16px;
    }

    .newstext h4 {
        font-size: 24px;
    }

    .form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .form input[type="text"],
    .form button {
        width: 100%;
    }

    #about,
    #contact {
        padding: 24px 16px;
    }

    #about p,
    #contact p {
        font-size: 16px;
    }

    #cart {
        width: calc(100% - 32px);
        margin: 24px auto;
        padding: 16px;
    }

    #checkout-btn,
    #clear-cart-button {
        width: 100%;
    }

    .cart-item {
        align-items: flex-start;
    }

    .cart-item-thumb {
        width: 64px;
        height: 64px;
    }
}
