@import url('https://fonts.googleapis.com/css2?family=Carattere&family=Caveat:wght@400..700&family=Cherry+Swash:wght@400;700&family=Kalam:wght@300;400;700&family=Leckerli+One&family=Rock+Salt&family=Sniglet:wght@400;800&display=swap');
html{
    scroll-behavior: smooth;
}
:root {
    --pink-light: #f4bbc9;
    --pink-mid: #fae6e7;
    --pink-deep: #f6a6bb;
    --cream: #f7eeed;
    --text-dark: #3a1a24;
    --text-mid: #7a4a5a;
    --white: #ffffff;
}


* {
    font-family: 'Playfair Display', serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: var(--cream);
    color: var(--text-dark);
}

.hero {
    background: linear-gradient(135deg, var(--pink-mid), var(--pink-light));
    padding: 3em 2em;
    text-align: center;
}

.tagline {
    text-align: center;
    color: var(--text-mid);
    font-size: 1.1em;
    padding-bottom: 0;
    letter-spacing: 0.05em;
}

a{
    color: var(--text-dark);
    text-decoration: none;
}
a:visited{
    color: var(--text-dark);
}
ul{
    margin: 13px;
    display: flex;
    flex-wrap:nowrap;
    justify-content: right;
    align-content: space-between;
    list-style: none;
}

#cartbtn {
    justify-content: left;
    margin-left: auto;
}

li .animated{
    display: none;
}
li .still {
    display: block;
}
li:hover .still{
    display: none;
}
li:hover .animated{
    display: block;
    cursor: pointer;
}

ul li {
    /* background-color: var(--pink-light); */
    border-radius: 5px;
    padding: 7px;
    margin: 5px;
    box-shadow: 1px 2px 3px var(--text-mid);
    transition: 0.2s ease all;
}

li:hover {
    transform: translateY(-3px); 
    box-shadow: 0 6px 16px rgba(246, 166, 187, 0.4);
    background-color: white;
}
nav {
    background: var(--pink-mid);
    padding: 1em 2em;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1.5px solid var(--pink-light);
}

.checkout-container{
    top : 60px;
    height: fit-content;
    
}


h1 {
    font-family: "Carattere", cursive;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    font-size: 4em;
    color: var(--text-dark);
    padding: 0.5em 1em;
}

h2 {
    padding: 1em 0 0.5em;
    color: var(--text-dark);
    font-size: 1.8em;
    border-bottom: 2px solid var(--pink-light);
    margin-bottom: 0.5em;
}

h3 {
    padding: 0.5em 0;
    color: var(--text-dark);
    font-size: 1em;
}

p {
    padding-bottom: 1em;
    color: var(--text-mid);
}
ul li img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* ── Layout ── */
.products-container {
    width: 100%;
    /* max-width: 55em; */
    padding: 2em;
}

.cart-container {
    display: flex;
}

.checkout-container {
    width: 100%;
    padding: 2em;
    background: var(--pink-mid);
    border-left: 2px solid var(--pink-light);
}

/* cart section */
.cart-section{
    position: fixed;
    display: inline-block;
    flex-wrap: nowrap;
    width: 70%;
    height: 100%;
    top: 0;
    background-color: #ffffff;
    left: 100%;
    transition: left 0.3s ease;
    z-index: 101;
    padding: 2em;
    box-shadow: -4px 0 20px rgba(246, 166, 187, 0.3);
    overflow-y: auto;
}
.cart-open {
    left: 30%; /* slides in from the right */
}
#closeCart {
    position: absolute;
    top: 1em;
    right: 1em;
    border: none;
    background: transparent;
    font-size: 1.2em;
    color: var(--pink-deep);
    cursor: pointer;
}

#closeCart:hover {
    color: var(--text-dark);
    transform: scale(1.2);
}

/* end of cart section */




/* ── Product grids ── */
.cakes, .cookies, .croissant, .cupcake, .donut, .rolls, .cart {
    display: flex;
    flex-wrap: wrap;
}

/* ── Product cards ── */
.cakes > div, .cookies > div, .croissant > div,
.cupcake > div, .donut > div, .rolls > div {
    background: var(--white);
    margin: 0.8em;
    padding: 1.5em;
    border-radius: 16px;
    border: 1.5px solid var(--pink-light);
    transition: 0.2s ease all;
    text-align: center;
}

.cakes > div:hover, .cookies > div:hover, .croissant > div:hover,
.cupcake > div:hover, .donut > div:hover, .rolls > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(246, 166, 187, 0.25);
    border-color: var(--pink-deep);
}

/* ── Product images ── */
.cakes > div img, .cookies > div img, .croissant > div img,
.cupcake > div img, .donut > div img, .rolls > div img {
    max-width: 175px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto 0.8em;
}

/* ── Product titles ── */
.cakes > div h3, .cookies > div h3, .croissant > div h3,
.cupcake > div h3, .donut > div h3, .rolls > div h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3em;
}

/* ── Cart items ── */
.cart > div {
    border: 1.5px solid var(--pink-light);
    background: var(--white);
    border-radius: 12px;
    margin: 0.8em;
    padding: 1.5em;
}

/* ── Checkout ── */
.checkout {
    margin-bottom: 4em;
}

/* ── Buttons ── */
button {
    border: 1.5px solid var(--pink-deep);
    background: var(--white);
    color: var(--pink-deep);
    padding: 0.7em 1.2em;
    border-radius: 50px;
    transition: 0.2s ease all;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.08em;
    cursor: pointer;
    margin-top: 0.5em;
}

button:hover {
    background: var(--pink-deep);
    color: var(--white);
    transform: scale(1.03);
}

button.pay {
    background: var(--pink-deep);
    color: var(--white);
    width: 100%;
    margin-top: 1em;
    font-size: 0.9em;
}

button.pay:hover {
    background: var(--pink-light);
    color: var(--text-dark);
}

/* ── Cash input ── */
.received {
    font-size: 1.2em;
    padding: 0.5em;
    border: 1.5px solid var(--pink-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    width: 100%;
    margin-top: 0.5em;
    outline: none;
}

.received:focus {
    border-color: var(--pink-deep);
}







.blossoms ,.bread {
    position: absolute;
    width: 100%;
    top: 10;
    left: 0;
    pointer-events: none;
}

.blossoms span , .bread span {
    position: absolute;
    font-size: 1.5em;
    animation: fall linear infinite;
    opacity: 0;
}

/* give each blossom a different position, size and speed */
.blossoms span:nth-child(1) { left: 10%; animation-duration: 4s; animation-delay: 0s; font-size: 1.2em; }
.blossoms span:nth-child(2) { left: 25%; animation-duration: 6s; animation-delay: 1s; font-size: 2em; }
.blossoms span:nth-child(3) { left: 45%; animation-duration: 5s; animation-delay: 2s; }
.blossoms span:nth-child(4) { left: 60%; animation-duration: 7s; animation-delay: 0.5s; font-size: 1.8em; }
.blossoms span:nth-child(5) { left: 75%; animation-duration: 4s; animation-delay: 1.5s; }
.blossoms span:nth-child(6) { left: 90%; animation-duration: 6s; animation-delay: 3s; font-size: 1.3em; }

.bread span:nth-child(1){top:30% ;left: 5%; animation-duration: 3s ; animation-delay: 0s;}
.bread span:nth-child(2){top:10% ;left: 16%; animation-duration: 5s ; animation-delay: 1s;}
.bread span:nth-child(3){top:30% ;left: 40%; animation-duration: 7s ; animation-delay: 2s;}
.bread span:nth-child(4){top:20% ;left: 50%; animation-duration: 4s ; animation-delay: 3s;}
.bread span:nth-child(5){top:12% ;left: 60%; animation-duration: 3s ; animation-delay: 1s;}
.bread span:nth-child(6){top:30% ;left: 90%; animation-duration: 6s ; animation-delay: 2.5s;}

@keyframes fall {
    0%   { top: -10%; opacity: 1; transform: rotate(0deg); }
    100% { top: 110%; opacity: 0; transform: rotate(360deg); }
}