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

:root {
    --roasted-espresso: #2B1A12;
    --dark-cocoa: #3E2723;
    --mocha-blend: #5D4037;
    --caramel-drizzle: #C57B57;
    --brown-sugar: #A97458;
    --hazelnut-cream: #F5E9DD;
    --vanilla-foam: #FFF6EE;
    --mocha-mist: #EBDCCF;
    --gold-rich: #D6A461;
    --gold-soft: #E8C9A1;
    --text-dark: #2B1A12;
    --text-light: #FAF9F6;
    --background-light: #FFF8F3;
    --matcha-light: #E8F3D8;  
    --matcha-cream: #F4FAEC;  
    --matcha-rich: #A8C97F;   
    --matcha-deep: #7CA152;   
}

.banner {
    /* background-image: url(../media/heroBanner.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; */
    position: relative;
    height: 260px;
    width: min(95%, 1100px);
    margin: 80px auto;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner h2, 
.banner p {
    position: relative;
    z-index: 2;
    color: var(--text-light);
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 10, 5, 0.4),
        rgba(20, 10, 5, 0.7)
    );
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito Sans", sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--background-light);
}

p {
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--mocha-blend);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    height: 95vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero {
    background-image: url('../media/hero1.jpg');
}

.details-hero {
    background-image: url('../media/pastryBanner.jpg');
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    padding: 0 20px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-content h1 { font-size: 3.4rem; margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 22px; }
.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--caramel);
    border-radius: 999px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: 0.25s;
}

.section-title {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.15s;
}

.header-container,
.about-container,
.contact-wrapper,
.footer-container {
    width: min(95%, 1100px);
    margin: 0 auto;
}

.site-header {
    background: var(--hazelnut-cream);
    padding: 10px 0;
    box-shadow: 0px 1px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 58px;
    width: 58px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold-soft);
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 26px;
    align-items: center;
}

.main-nav a {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--roasted-espresso);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--caramel-drizzle);
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: var(--caramel-drizzle);
}

.main-nav a:hover::after {
    width: 100%;
}

.products-section {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}

.products-section:nth-of-type(even) {
    background-color: var(--hazelnut-cream);
}

.products-section .section-title {
    color: var(--mocha-blend);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    border: 1px solid rgba(214, 164, 97, 0.08);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: rgba(214, 164, 97, 0.35);
}

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

.product-card h3 {
    margin-top: 15px;
    font-size: 1.25rem;
    color: var(--dark-cocoa);
}

.price {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 8px 0 15px;
    color: var(--caramel-drizzle);
}

.product-actions {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 10px -18px 0;
}

.product-details { margin-bottom: 50px; }

.coffee-banner {
    position: relative;
    height: 220px;
    background-image: url('../media/breww.jpg'); 
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto;
    border-radius: 14px;
    overflow: hidden;
    width: min(95%, 1100px);
}

.coffee-overlay {
    position: absolute;
    inset: 0;
}

.coffee-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.coffee-content h2 {
    font-size: 3rem;
    margin-bottom: 8px;
}

.coffee-content p {
    font-size: 1.1rem;
    font-weight: 400;
}

.details-btn,
.add-to-cart-btn,
.hero-btn,
.login-btn,
.submit-btn,
.login-submit {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 10px 25px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    margin: 18px;
}

.details-btn:hover,
.add-to-cart-btn:hover,
.hero-btn:hover,
.login-btn:hover,
.submit-btn:hover,
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.hero-btn,
.login-btn,
.login-submit {
    background-color: var(--caramel-drizzle);
    color: var(--text-light);
}

.details-btn,
.add-to-cart-btn,
.submit-btn {
    background-color: var(--gold-rich);
    color: var(--text-dark);
}

.hero-btn:hover,
.login-btn:hover,
.login-submit:hover {
    background-color: var(--brown-sugar);
}

.details-btn:hover,
.add-to-cart-btn:hover,
.submit-btn:hover {
    background-color: var(--gold-soft);
}

.discount-banner {
    position: relative;
    height: 220px;
    background-image: url('../media/aboutdivider.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto;
    border-radius: 14px;
    overflow: hidden;
    width: min(95%, 1100px);
}

.discount-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(45, 23, 15, 0.8),
        rgba(193, 122, 88, 0.5)
    );
}

.discount-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.discount-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.discount-content p {
    font-size: 1.1rem;
    font-weight: 400;
}






.about-content p {
    font-size: 2rem;
    font-weight: 400;
}


.about-section {
    padding: 80px 0;
    background-color: var(--matcha-cream);
}

.about-container {
    width: min(95%, 1100px);
    margin: auto;
    display: flex;
    gap: 40px;
    align-items: center;

    
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 400px;  
}

.about-text h2 {
    font-size: 2.4rem;
    color: var(--dark-cocoa);  
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--roasted-espresso); 
}

.about-image {
    flex: 1 1 400px;  
}

.about-image img {
    width: 100%;       
    max-width: 500px;  
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.section-divider {
    width: 100%;
    height: 190px;
    background-image: url('../media/about.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.section-divider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(43, 26, 18, 0.78),
        rgba(140, 63, 82, 0.65)
    );
}

.section-divider h2 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.9rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
}

.contact-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--hazelnut-cream);
}

.contact-wrapper {
    display: flex;
    gap: 40px;
}

.contact-form-container,
.contact-map {
    flex: 1;
}

.contact-section .section-title {
    margin-bottom: 25px;
}

.contact-form-container p {
    margin-bottom: 16px;
    color: var(--roasted-espresso);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-cocoa);
}

input,
textarea {
    padding: 11px 12px;
    border: 1px solid rgba(93, 64, 55, 0.18);
    border-radius: 8px;
    font-family: inherit;
    background-color: #fff;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--caramel-drizzle);
    box-shadow: 0 0 0 3px rgba(197, 123, 87, 0.18);
    background-color: #fffdf9;
}

.submit-btn {
    background: var(--dark-cocoa);
    color: var(--text-light);
    padding: 11px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.submit-btn:hover {
    background: var(--mocha-blend);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.26);
}

.site-footer {
    background: var(--roasted-espresso);
    text-align: center;
    color: var(--text-light);
    padding: 70px 0 40px;
    border-top: 4px solid var(--gold-soft);
}

footer { margin-bottom: -100px; }

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--gold-soft);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links,
.footer-socials {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-socials li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-socials a {
    color: var(--hazelnut-cream);
    font-size: 0.95rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover,
.footer-socials a:hover {
    opacity: 0.75;
    color: var(--gold-rich);
}

.footer-column p {
    margin-bottom: 6px;
    color: var(--hazelnut-cream);
    font-size: 0.95rem;
}


.footer-copy {
    text-align: center;
    margin-top: 35px;
    color: var(--hazelnut-cream);
    font-size: 0.85rem;
    opacity: 0.8;
}


.footer-divider {
    height: 180px;
    background-image: url('../media/pastryBanner.jpg'); 
    background-position: center;
    border-radius: 10px;
    width: 100%;
    margin: 60px auto 0 auto;
    position: relative;
    overflow: hidden;
}


.footer-divider::before {
    content: "";
    position: absolute;
    inset: 0;
}


.footer-divider h2 {
    line-height: 180px; 
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-shadow: 0 0 9px var(--dark-cocoa);
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
}

#login-modal {
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.login-modal-overlay {
    text-align: center;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.login-modal {
    background: var(--vanilla-foam);
    padding: 30px;
    width: min(400px, 90%);
    border-radius: 16px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border: 1px solid rgba(232, 201, 161, 0.6);
}

.login-modal h2 {
    margin-bottom: 18px;
    color: var(--dark-cocoa);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--dark-cocoa);
}

.login-modal-overlay.active {
    display: flex;
}

.products-container {
    position: relative;
}

#checkout-section {
    padding: 80px 0;
    background-color: var(--mocha-mist);
}

.cart-container {
    justify-content: center;
    background-color: var(--background-light);
    padding: 15px;
    width: 60%;
    margin: auto;
    margin-bottom: 20px;
    border: 1px solid var(--gold-soft);
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.089);
    div p { 
        text-align: center;
        font-family: "Nunito Sans";
        font-weight: 600; 
        margin: 5px 0;
    }
}

#cart-log {
    max-height: 500px;
    overflow-y: scroll;
}

.cart-details {
    text-align: center;
    margin-top: 5px;
    .cart-detail-title { font-weight: 600; }
}

.proceed-container {
    margin-top: 30px;
    text-align: center;
    div p {
        font-size: 18px;
    }
}

/* MEDIA QUERIES */

@media (max-width: 900px) {
    .about-container,
    .contact-wrapper {
        flex-direction: column;
    }

    .hero-section {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 700px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
    }

    .main-nav ul {
        gap: 18px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .discount-banner {
        height: 200px;
    }
}

@media (max-width: 500px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .products-grid {
        gap: 24px;
    }

    section {
        padding: 60px 0;
    }
}
