/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #fff8f4;
    /* Light background color */
    color: #333;
    /* Dark text color */
    min-height: 100vh;
    /* Ensure full height */
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-wrapper {
    background-image: url('mochi-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    /* Minimum height for hero section */
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
    /* Logo size */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links li a:hover {
    color: #d96d6f;
    /* Hover color */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #d96d6f;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Cart Notification */
.nav-cart {
    position: relative;
}

.cart-link {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    position: relative;
    /* reference point for badge */
}

.cart-count {
    background-color: #d96d6f;
    color: white;
    font-size: 0.8rem;
    border-radius: 50%;
    padding: 2px 7px;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Order Button */
.order-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.order-btn {
    padding: 15px 40px;
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    background-color: #d96d6f;
    border: 3px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background-color: #fff;
    color: #d96d6f;
    transform: scale(1.1);
    border-color: #d96d6f;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    width: 1000px;
    margin: 40px auto;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.carousel-item img {
    width: 180px;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.carousel-item.active img {
    transform: scale(1.2);
    opacity: 1;
}

.carousel-item:hover img {
    transform: scale(1.1);
}

/* Carousel Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: -50px;
}

.carousel-btn.next {
    right: -50px;
}

/* Mochi Label Overlay */
.mochi-label-overlay {
    position: absolute;
    bottom: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: #222;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    font-family: 'Arial Rounded MT Bold', sans-serif;
    pointer-events: none;
    text-align: center;
}

/* Add to Cart Button */
.add-to-cart-container {
    text-align: center;
    margin: 30px 0 60px;
}

.add-to-cart-btn {
    background-color: #d96d6f;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(217, 109, 111, 0.2);
}

.add-to-cart-btn:hover {
    background-color: #c55e60;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(217, 109, 111, 0.3);
}

/* Notification Popup */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d96d6f;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.notification.show {
    opacity: 1;
}

/* Ad Box Section */
.carousel-box-with-ads {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin-top: 40px;
    flex-wrap: wrap;
    padding: 0 40px;
}

.ad-box {
    width: 220px;
    background-color: #fff;
    border: 2px solid #E54E6D;
    border-radius: 10px;
    padding: 20px;
    color: #E54E6D;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.ad-box h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.ad-box p {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #333;
}

/* Survey Link */
.survey-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #E54E6D;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 2px solid #E54E6D;
}

.survey-link:hover {
    background-color: #fff;
    color: #E54E6D;
    transition: 0.3s ease;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 30px 40px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0;
}

.footer-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d96d6f;
}

.footer-logo img {
    height: 40px;
}

.footer-socials {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #d96d6f;
}

/* Responsive Design for Phone Screens */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        display: none;
        /* Hide navigation links on mobile */
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
        width: 100%;
        background-color: #fff;
        align-items: flex-start;
    }

    .navbar.toggle .nav-links {
        display: flex;
    }

    .nav-cart .cart-link {
        font-size: 1.3rem;
    }

    .cart-count {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    /* Hamburger menu toggle button */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Hero Section */
    .hero-wrapper {
        min-height: 300px;
        /* Adjust hero section height for mobile */
    }

    /* Carousel */
    .carousel-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 40px auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-item img {
        width: 100%;
        opacity: 0.6;
    }

    .carousel-item.active img {
        transform: scale(1.1);
        opacity: 1;
    }

    /* Order Button */
    .order-container {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .order-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 30px;
        font-size: 1.5em;
    }

    /* Add to Cart Button */
    .add-to-cart-container {
        margin: 20px 0 40px;
    }

    .add-to-cart-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Notification Popup */
    .notification {
        padding: 8px 18px;
        font-size: 14px;
    }

    /* Ad Box */
    .carousel-box-with-ads {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 30px;
    }

    .ad-box {
        max-width: 90%;
        width: 80%;
        padding: 15px;
        font-size: 0.9em;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-links ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .footer-socials {
        gap: 10px;
    }

    .footer-socials a {
        font-size: 1.3rem;
    }
}

/* For very small screens (480px or less) */
@media (max-width: 480px) {

    /* Navbar */
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        height: 35px;
    }

    /* Carousel */
    .carousel-item img {
        opacity: 0.5;
    }

    .carousel-item.active img {
        transform: scale(1.1);
        opacity: 1;
    }

    /* Order Button */
    .order-btn {
        padding: 10px 25px;
        font-size: 1.3em;
    }

    /* Add to Cart Button */
    .add-to-cart-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Notification Popup */
    .notification {
        font-size: 13px;
        padding: 6px 15px;
    }

    /* Ad Box */
    .ad-box {
        width: 100%;
        max-width: 280px;
        padding: 12px;
    }

    /* Footer */
    .footer {
        padding: 20px 10px;
    }

    .footer-socials a {
        font-size: 1.2rem;
    }
}
