/* --- Global Styles --- */
:root {
    --bg-pink: #F5CBCD;
    --dark-green: #1A431C;
    --light-grey: #E0E0E0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-pink);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* --- Header --- */
header {
    margin-bottom: 50px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 80px;
    color: var(--dark-green);
    margin: 0;
    -webkit-text-stroke: 0px;
    text-stroke: 0px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.brand-subtitle {
    color: #757575;
    font-size: 20px;
    margin-top: -10px;
}

/* --- Titles --- */
.main-title, .yummy-title {
    font-family: 'Fredoka', cursive, var(--font-heading);
    font-weight: 700;
    font-size: 42px;
    color: #b33951;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.6);
}

.main-subtitle, .yummy-subtitle {
    color: #757575;
    font-size: 18px;
    margin-bottom: 40px;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    justify-items: center;
}

.product-card {
    position: relative;
    background-color: #DEEDD8;
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 4px solid var(--dark-green);
    overflow: visible;
    margin-top: 15px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
}

/* Glow Effect when chosen */
.product-card.selected {
    box-shadow: 0 0 25px 8px rgba(26, 67, 28, 0.8);
    transform: scale(1.02);
}

/* --- Product Card Badges (Unified Diagonal Ribbon Style) --- */
.product-badge,
.badge-best,
.badge-limited,
.product-card .order-badge.sold-out-btn {
    position: absolute;
    top: 25px;
    right: -35px;
    color: white;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 40px;
    border: 2px solid #fff;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    clip-path: none;
    border-radius: 6px;
    transform: rotate(45deg);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    width: auto;
    margin: 0;
    display: block;
    left: auto;
    pointer-events: none;
}

.badge-best {
    background-color: #d4ac0d; /* Warm amber/gold for Best Seller */
}

.badge-limited {
    background-color: #2980b9; /* Vibrant blue for Limited Edition */
}

.product-card .order-badge.sold-out-btn {
    background-color: #c0392b; /* Red for Sold Out */
    cursor: not-allowed;
    pointer-events: auto;
}

/* Product Image Inside Card */
.card-image-container {
    width: 100%;
    margin: 0 0 15px 0;
    height: 200px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    border: none;
    position: relative;
}

.card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.card-inner h3 {
    font-weight: 700;
    font-size: 22px;
    color: var(--dark-green);
    margin-bottom: 5px;
}

.card-inner .description {
    font-size: 14px;
    color: #424242;
    margin-bottom: 12px;
}

/* --- Price Placed Above the Line --- */
.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

/* --- Progress Bar (The Line) --- */
.progress-bar {
    height: 8px;
    background-color: #BDBDBD;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background-color: var(--dark-green);
}

/* --- Time Placed Under the Line --- */
.time {
    font-size: 14px;
    color: #424242;
    margin: 0 0 15px 0;
    display: block;
    text-align: center;
}

/* --- Centered Order Button at the Bottom (Updated to match size-btn shape) --- */
.order-badge {
    position: relative;
    display: block;
    width: 80%;
    max-width: 200px;
    margin: 15px auto 5px auto;
    background-color: var(--dark-green);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 14px;
    border: 2px solid var(--dark-green);
    border-radius: 6px;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 2px 4px rgba(26, 67, 28, 0.2);
    clip-path: none;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.order-badge:hover {
    background-color: #2c6f2f;
    transform: scale(1.03);
}

/* Styling for Cup and Box Selection Option Buttons */
.option-toggle-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.size-btn {
    background-color: #f1f1f1;
    color: #1A431C;
    border: 2px solid #1A431C;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.size-btn:hover {
    background-color: #e2ece3;
}

.size-btn.active-size {
    background-color: #1A431C;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(26, 67, 28, 0.2);
}

/* Full-Screen Closed Alert Overlay */
.closed-overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.closed-alert-box {
    background: #FFF5F6;
    border: 4px solid #1A431C;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif;
}

.closed-alert-box .brand-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #1A431C;
    margin-bottom: 10px;
}

.closed-alert-box h2 {
    font-size: 1.4rem;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.closed-alert-box p {
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.closed-clock-icon {
    font-size: 3rem;
    margin: 15px 0;
}

.closed-subtext {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0 !important;
}

/* ------------------------------------------------------ */
/* 🌸 MARQUEE SECTION — PINK STRIP WITH TIGHT GREEN BORDERS */
/* ------------------------------------------------------ */

.marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background-color: var(--bg-pink);
    padding: 0;
    margin-top: 60px;
    margin-bottom: 60px;

    border-top: 4px solid var(--dark-green);
    border-bottom: 4px solid var(--dark-green);
    overflow: hidden;
}

.marquee-strip {
    width: 100%;
    background-color: var(--bg-pink);
    border: none;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: moveLeft 55s linear infinite;
    gap: 0;
}

.marquee-content img {
    height: 95px;
    width: auto;
    object-fit: contain;
    margin: 0;
    display: block;
}

@keyframes moveLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Yummy Section --- */
.yummy-section {
    margin-bottom: 60px;
}

/* --- Contacts --- */
.contacts-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    color: var(--dark-green);
    margin-bottom: 60px;
    text-transform: lowercase;
}

.contacts-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.15));
    transition: transform 0.2s ease;
    cursor: pointer;
}

.contact-icon:hover {
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    width: 100%;
    background-color: var(--dark-green);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: white;
}

.footer-link {
    color: #e7a8c9;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
    color: #ffbcd9;
}

/* --- Floating Cart Button --- */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 75px;
    height: 75px;
    background-color: var(--dark-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s;
    overflow: visible;
    border: none;
    padding: 0;
}

.floating-cart-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    z-index: 1010;
}

/* --- Slide-in Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
}

.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 1200;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background-color: var(--dark-green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-family: var(--font-heading);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-text {
    text-align: center;
    color: #888;
    margin-top: 50px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-green);
    font-size: 16px;
}

.cart-item-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-actions button {
    background: var(--light-grey);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cart-footer {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background-color: #2c6f2f;
}

/* --- Checkout Modal --- */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1300;
}

.checkout-modal.active {
    visibility: visible;
    opacity: 1;
}

.checkout-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.checkout-content form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-green);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.submit-order-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.submit-order-btn:hover {
    background-color: #2c6f2f;
}

/* --- Payment Buttons Styling --- */
.payment-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.payment-buttons-container .submit-order-btn {
    margin-top: 0;
    flex: 1;
}

.card-btn {
    background-color: #1A431C;
}

.card-btn:hover {
    background-color: #2c6f2f;
}

.cash-btn {
    background-color: #3b7a57;
}

.cash-btn:hover {
    background-color: #2c6f2f;
}

/* --- Separate Checkout Page Styling --- */
.checkout-page-body {
    background-color: var(--bg-pink);
    padding: 20px;
}

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
}

.checkout-header-section {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkout-summary-box, .checkout-form-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.checkout-summary-box h3, .checkout-form-box h3 {
    margin-top: 0;
    color: var(--dark-green);
    font-family: var(--font-heading);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.checkout-items-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.checkout-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-green);
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.back-shop-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--dark-green);
    text-decoration: none;
    font-weight: bold;
}

/* --- Mobile-First & Responsive Adjustments --- */
@media (max-width: 480px) {
    .container {
        padding: 5px;
        max-width: 100%;
    }

    header {
        margin-bottom: 30px;
    }

    .brand-name {
        font-size: 38px;
    }

    .brand-subtitle {
        font-size: 16px;
    }

    .main-title, .yummy-title {
        font-size: 26px;
    }

    .main-subtitle, .yummy-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 40px;
    }

    .product-card {
        padding: 10px;
        border-radius: 20px;
        overflow: visible;
        max-width: 100%;
        margin-top: 10px;
        margin-bottom: 15px;
        border-width: 3px;
    }

    .product-badge,
    .badge-best,
    .badge-limited,
    .product-card .order-badge.sold-out-btn {
        top: 15px;
        right: -25px;
        left: auto;
        font-size: 10px;
        padding: 6px 25px;
        width: auto;
        margin: 0;
    }

    .card-image-container {
        height: 120px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .card-inner h3 {
        font-size: 16px;
    }

    .card-inner .description {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .price {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .time {
        font-size: 11px;
        margin: 0 0 10px 0;
    }

    .order-badge {
        font-size: 12px;
        padding: 6px 10px;
        width: 90%;
        margin: 10px auto 2px auto;
    }

    .floating-cart-btn {
        bottom: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .checkout-content {
        width: 95%;
        margin: 0 auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-buttons-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .brand-name { 
        font-size: 50px; 
    }
    
    .main-title, .yummy-title { 
        font-size: 30px; 
    }
    
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    
    .cart-drawer { 
        width: 100%; 
        right: -100%; 
    }
    
    .checkout-grid { 
        grid-template-columns: 1fr; 
    }
}