/* ================= ROOT VARIABLES ================= */
:root {
    --pink: #ff7aa2;
    --dark: #2d2d2d;
    --light: #fff7fb;
    --green: #25d366;
    --shadow: rgba(0,0,0,0.1);
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html, body {
    height: 100%;
}

/* ================= BODY ================= */
body {
    background: var(--light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 35px; /* space for announcement bar */
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 1.5rem;
}

/* ================= HEADER ================= */
.header {
    background: #fff;
    position: sticky;
    top: 35px; /* below announcement bar */
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
}

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

.logo img {
    width: 80px;
    border-radius: 50%;
}

.navigation {
    display: flex;
    gap: 1.5rem;
}

.navigation .link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navigation .link:hover {
    color: var(--pink);
    transform: translateY(-2px);
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    background: #f1f1f1;
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* ================= HERO ================= */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffd1e1, #fff);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero img {
    width: 100%;
    border-radius: 30px;
}

.btn {
    background: var(--pink);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ================= SECTIONS ================= */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ================= PRODUCT GRID ================= */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* ================= PRODUCT CARD ================= */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    

}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
 
    transition: transform 0.4s ease;
    
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .overlay {
    opacity: 1;
}

.details-btn {
    background: #fff;
    color: #333;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
}

.card-content {
    padding: 1.2rem;    
    text-align: center;              /* center text */
    display: flex;
    flex-direction: column;
    align-items: center;             /* horizontal center */
    justify-content: center;          /* vertical center */
    gap: 0.3rem;
}
/* ================= PRODUCT DETAIL PAGE ================= */
.product-detail {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.gallery {
    flex: 1;
}

.main-image {
    position: relative;
}

.main-image img {
    width: 100%;
    border-radius: 20px;
}

.main-image .prev,
.main-image .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(255,255,255,0.7);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.main-image .prev { left: 10px; }
.main-image .next { right: 10px; }

.thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnails img.active,
.thumbnails img:hover {
    border-color: var(--pink);
}

.product-info {
    flex: 1;
}

.product-info h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.product-info p.price {
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 1rem;
}

.product-info .description {
    margin-bottom: 1.5rem;
}

.product-info label.field {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.product-info select,
.product-info input[type="text"],
.product-info input[type="file"],
.product-info textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

/* Quantity selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qty-selector button {
    background: var(--pink);
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.qty-selector span {
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

/* ================= CART PANEL ================= */
.cart-panel {
    position: fixed;
    right: -100%;
    top: 35px; /* below announcement and header */
    width: 340px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    padding: 1rem;
    transition: right 0.4s ease;
    z-index: 4000;
    display: flex;
    flex-direction: column;
}

.cart-panel.show {
    right: 0;
}

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

.cart-header span {
    cursor: pointer;
    font-size: 1.2rem;
}

#cart-items {
    list-style: none;
    margin: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

#cart-items li {
    border-bottom: 1px solid #dbcf1d;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-item {
    color: red;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 6px;
}

.cart-total {
    font-weight: 600;
    margin: 0.5rem 0;
}

.cart-footer button,
.whatsapp-checkout {
    width: 100%;
}

/* ================= MODAL ================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

/* ================= FOOTER ================= */
.footer {
    background: #2d2d2d; /* dark background */
    color: #fff;
    padding: 4rem 1.5rem 2rem 1.5rem;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 5px solid var(--pink);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer p {
    color: #ccc;
    line-height: 1.6;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--pink);
    transform: translateX(5px);
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}


    
    


.socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.socials a {
    font-size: 1.6rem;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.socials a:hover {
    color: var(--green);
    background: rgba(37, 211, 102, 0.2);
    transform: scale(1.2);
}

/* Footer bottom line */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #ccc;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    .navigation.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-detail {
        flex-direction: column;
    }

    .main-image .prev,
    .main-image .next {
        font-size: 1.5rem;
    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }
}
@media (max-width: 480px) {
    .card-image img {
        height: 180px;
    }
}

/* ================= ABOUT PAGE (MATCHES CURRENT DESIGN) ================= */

/* active nav link */
.navigation .active{
    color: var(--pink);
    font-weight: 600;
}

/* About hero tweaks */

.about-hero {
    background: linear-gradient(135deg, #ffdee1, #fff);
}

/* Story section */
.about-content{
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.about-content h2{
    color: var(--pink);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-content p{
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: 16px;
    color: #555;
}

/* Soft background section */
.light-bg{
    background: var(--light);
}

/* Features grid */
.about-features{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
    gap: 25px;
    margin-top: 2rem;
}

/* Individual feature card */
.feature{
    background: #fff;
    padding: 30px 20px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 12px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* pink top line accent */
.feature::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--pink);
}

/* hover animation (same feel as product cards) */
.feature:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* icons */
.feature i{
    font-size: 42px;
    color: var(--pink);
    margin-bottom: 12px;
}

/* headings */
.feature h3{
    margin-bottom: 8px;
    font-size: 1.2rem;
}

/* description */
.feature p{
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Thank you section button spacing */
.about-content .btn{
    margin-top: 1.5rem;
    display: inline-block;
}

/* =======================================================
   ADVANCED MOBILE RESPONSIVE (PHONES 320px — 600px)
   ======================================================= */

@media (max-width: 600px) {

    /* ---------- GENERAL ---------- */
    body{
        font-size: 14px;
    }

    .container{
        padding: 1rem;
    }

    .section{
        padding: 2.5rem 0;
    }

    .section-title h2{
        font-size: 1.5rem;
    }

    /* ---------- HEADER ---------- */
    .logo img{
        width: 52px;
    }

    .controls{
        gap: 0.5rem;
    }

    .search-box{
        display: none; /* remove search on phones (huge space saver) */
    }

    .menu-toggle{
        font-size: 1.8rem;
    }

    .navigation{
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border-top: 1px solid #eee;
        gap: 0;
    }

    .navigation .link{
        padding: 14px 10px;
        border-bottom: 1px solid #f1f1f1;
        width: 100%;
    }

    /* ---------- HERO ---------- */
    .hero{
        padding: 3rem 0 2rem 0;
    }

    .hero-content{
        gap: 1.2rem;
    }

    .hero-content h1{
        font-size: 1.6rem;
        line-height: 1.3;
    }

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

    .hero img{
        border-radius: 20px;
    }

    .btn{
        padding: 0.7rem 1.2rem;
        font-size: 14px;
    }

    /* ---------- PRODUCT GRID ---------- */
    .products{
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .card{
        border-radius: 16px;
    }

    .card-content h3{
        font-size: 0.95rem;
    }

    .card-content p{
        font-size: 0.85rem;
    }

    .card-image img{
        height: 160px;
    }

    .overlay{
        opacity: 1; /* show button always on mobile */
        background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
        align-items: flex-end;
        padding-bottom: 15px;
    }

    .details-btn{
        font-size: 12px;
        padding: 0.5rem 1rem;
    }

    /* ---------- PRODUCT DETAIL PAGE ---------- */
    .product-info h1{
        font-size: 1.4rem;
    }

    .product-info p.price{
        font-size: 1.2rem;
    }

    .product-info textarea{
        min-height: 90px;
    }

    .qty-selector button{
        padding: 0.45rem 0.7rem;
    }

    /* thumbnails scroll instead of squeeze */
    .thumbnails{
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .thumbnails img{
        flex: 0 0 auto;
    }

    /* ---------- CART PANEL ---------- */
    .cart-panel{
        width: 100%;
        right: -100%;
        border-radius: 20px 20px 0 0;
        top: 35px; /* below announcement bar */
        bottom: 0;
        height: 85vh;
    }

    .cart-panel.show{
        right: 0;
    }

    #cart-items li{
        font-size: 0.85rem;
    }

    /* ---------- MODAL ---------- */
    .modal-content{
        width: 90%;
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    /* ---------- FOOTER ---------- */
    .footer{
        padding: 3rem 1rem 1.5rem 1rem;
        text-align: center;
    }

    .footer-grid{
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .socials{
        justify-content: center;
    }

    .footer a:hover{
        transform: none;
    }

    /* ---------- ABOUT PAGE ---------- */
    .about-content{
        padding: 0 5px;
    }

    .about-content h2{
        font-size: 1.5rem;
    }

    .about-content p{
        font-size: 14px;
        line-height: 1.7;
    }

    .feature{
        padding: 22px 16px;
    }

    .feature i{
        font-size: 34px;
    }
}


/* EXTRA SMALL DEVICES (IPHONE SE / VERY SMALL PHONES) */
@media (max-width: 380px){


    /* 1 product per row */
    .products{
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Smaller product image */
    .card-image img{
        height: 300px;
    }

    /* Reduce card padding */
    .card-content{
        padding: 0.8rem;
        gap: 0.2rem;
    }

    /* Smaller text */
    .card-content h3{
        font-size: 0.9rem;
    }

    .card-content p{
        font-size: 0.8rem;
    }

    /* Smaller button */
    .details-btn{
        font-size: 11px;
        padding: 0.4rem 0.8rem;
    }

}


/* ================= ANNOUNCEMENT BAR ================= */

.announcement-bar {
    width: 100%;
    background: var(--pink);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 35px;
    display: flex;
    align-items: center;
}

/* Moving text container */
.announcement-track {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 18s linear infinite;
}

.announcement-track p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Animation */
@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 600px) {
    .announcement-bar {
        height: 30px;
    }

    .announcement-track p {
        font-size: 12px;
    }
}
/* ================= CUSTOM ENQUIRY FORM ================= */

#cake-enquiry {
    padding: 40px 20px;
    background: #fff5f8;
    text-align: center;
}

#cake-enquiry form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#cake-enquiry input,
#cake-enquiry select,
#cake-enquiry textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#cake-enquiry button {
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#cake-enquiry button:hover {
    background: #1ebe5d;
}

/* ================= REVIEWS PAGE ================= */

.reviews-hero{
    padding:80px 20px;
    text-align:center;
    background:linear-gradient(135deg,#ffd1e1,#fff,#ffeaf2);
}

.reviews-hero h1{
    font-size:2.2rem;
    color:var(--pink);
}

.reviews-hero p{
    font-size:15px;
    color:#555;
}



/* ================= GRID ================= */

.review-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

    padding:40px;

}



/* ================= CARD ================= */

.review-card{

    background:white;

    border-radius:20px;

    padding:25px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,0.1);

    transition:0.4s;

    transform-style:preserve-3d;

}


.review-card:hover{

    transform:rotateY(8deg) rotateX(4deg) scale(1.05);

    box-shadow:0 25px 45px rgba(0,0,0,0.2);

}



/* stars */

.stars{

    font-size:20px;

    margin-bottom:10px;

}



/* text */

.review-card p{

    font-size:14px;

    color:#444;

    margin-bottom:10px;

    line-height:1.5;

}



.review-card h3{

    color:var(--pink);

    font-size:14px;

}



/* ================= TABLET ================= */

@media (max-width:900px){

    .review-grid{

        grid-template-columns:repeat(2,1fr);

        gap:20px;

        padding:25px;

    }

}



/* ================= PHONE ================= */

@media (max-width:600px){

    .reviews-hero{

        padding:50px 15px;

    }

    .reviews-hero h1{

        font-size:1.6rem;

    }

    .review-grid{

        grid-template-columns:1fr;

        gap:18px;

        padding:15px;

    }

    .review-card{

        padding:18px;

        border-radius:16px;

    }

    .stars{

        font-size:18px;

    }

    .review-card p{

        font-size:13px;

    }

}



/* ================= VERY SMALL PHONES ================= */

@media (max-width:380px){

    .reviews-hero h1{

        font-size:1.3rem;

    }

    .review-card{

        padding:14px;

    }

    .review-card p{

        font-size:12px;

    }

    .stars{

        font-size:16px;

    }

}