@import url('./typography.css');

body,
button,
input,
select,
textarea {
    font-family: 'Inter', sans-serif;
}


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

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(-45deg, #fdfaf4, #f2e7d5, #e6dccb, #fdfaf4);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    color: #2a4d3c;
    padding-top: 100px;
    padding-bottom: 80px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(-45deg, #fdfaf4, #f2e7d5, #e6dccb, #fdfaf4);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: none;
    border: none;
}


.logo {
    height: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-size: 1.2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2a4d3c;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ca5c2c;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #2a4d3c;
    z-index: 1001;
}

.hero {
    text-align: center;
    padding: 3rem 1rem 1rem;
    margin-top: 5rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 1rem;
    max-width: 1100px;
}


/* Delivery Info Section */
*.delivery-info {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem auto 2rem auto;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #2a4d3c;
}

#delivery-info-box {
    max-width: 400px;
    margin: 0.8rem auto 1rem;
    margin-top: 150px;
    padding: 10px 18px;
    background-color: #faf6ea;
    border-left: 4px solid #99b99a;
    border-radius: 10px;
    text-align: center;
    color: #2a4d3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-message {
    font-size: 1rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
}

.delivery-timer {
    font-size: 1rem;
    font-weight: 400;
    color: #3a6953;
    margin-top: 0.2rem;
}

.sliding-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 0.5px rgba(42, 77, 60, 0.2);
    font-size: 2rem;
    color: #1c3b2c;
    position: relative;
}

#delivery-message,
#countdown-timer {
    display: inline-block;
    padding-right: 2rem;
    animation: slide-left 35s linear infinite;
    will-change: transform;
}

/* Delivery Banner */
.delivery-banner {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px 15px;
    background-color: #faf6ea;
    border-left: 4px solid #99b99a;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.delivery-banner h2 {
    margin: 0 0 5px;
    font-size: 0.5rem;
    font-weight: 300;
    color: #31572a;
}

.delivery-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.product-grid {
    flex: 1 1 65%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.2rem 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    height: 170px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card h3 {
    margin: 0.7rem 0 0.4rem;
    font-size: 1.5rem;
}

.product-card p {
    margin: 0.2rem 0;
    font-size: 1.3rem;
}

.product-card button {
    padding: 0.4rem 0.6rem;
    font-size: 1.3rem;
    background: #3a6953;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.product-card button:hover {
    background: #1e3a2b;
}

.product-card div:last-child {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.unavailable {
    color: #b91c1c;
    font-size: 2rem;
    margin-top: 0.5rem;
}

.checkout-container {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.waived-fee {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.waived-fee s {
    font-weight: 500;
    color: #444;
}

.waived-note {
    font-size: 0.9em;
    color: #a31616;
    font-weight: 300;
}


.checkout-card {
    background: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease;
    width: 100%;
}

.checkout-card:hover {
    transform: translateY(-2px);
}

.checkout-card h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #2a4d3c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary {
    max-height: 700px;
    min-height: 450px;
    padding-right: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 6px 0;
    font-size: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.cart-summary-values {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 15px;
    color: #2a4d3c;
}

.total-row {
    font-size: 16px;
    font-weight: 400;
    margin-top: 8px;
    border-top: 1px solid #ccc;
    padding-top: 8px;
}

.customer-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.customer-form input,
.customer-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    background: #fdfdfd;
    transition: border 0.3s ease, background 0.3s ease;
}

.customer-form input:focus,
.customer-form select:focus {
    border-color: #2a4d3c;
    outline: none;
    background: white;
}

.checkout-btn {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    background: #2a4d3c;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #1e3a2b;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2a4d3c;
    color: white;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.footer p {
    margin: 0;
    padding: 0.5rem 1rem;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

#deliveryModal .modal-content {
    background: white;
    padding: 1.8rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
    position: relative;
}

/* Pop animation */
@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #2a4d3c;
}

.modal-content p {
    font-size: 1rem;
    margin: 1rem 0;
}

.modal-close-btn {
    padding: 0.5rem 1rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#proceedToPayBtn {
    background-color: #2a4d3c;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#proceedToPayBtn:hover {
    background-color: #1e3a2b;
}

#cancelModalBtn {
    background-color: #d30707;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#cancelModalBtn:hover {
    background-color: #b0b0b0;
}


#deliveryModal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
}

#cancelBtn {
    background-color: #2a4d3c;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#cancelBtn:hover {
    background-color: #b0b0b0;
}

.receipt-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.receipt-modal.active {
    display: flex;
}

/* === MODAL CONTENT === */
.receipt-content {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 420px;
    padding: 1.5rem;
    position: relative;
    text-align: center;
}

.receipt-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #9ca3af;
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.receipt-close-btn:hover {
    color: #4b5563;
}

/* === HEADER === */
.receipt-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.receipt-title {
    font-size: 2.875rem;
    font-weight: 800;
    color: #15803d;
    margin: 0;
}

.receipt-tagline {
    font-size: 0.775rem;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

.receipt-field {
    margin: 0.75rem 0;
    text-align: left;
}

.receipt-label {
    font-size: 0.875rem;
    color: #6d6c6c;
    margin-bottom: 0.15rem;
}

.receipt-value {
    font-size: 1rem;
    font-weight: 200;
    color: #1f2937;
    margin: 0;
}

.receipt-value.mono {
    font-family: monospace;
    font-size: 0.9rem;
}

/* === ITEM LIST === */
.receipt-items {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 0.25rem;
    border-top: 1px dashed #e5e7eb;
}

.receipt-items li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px dashed #e5e7eb;
}

/* === SUMMARY (Subtotal & Total) === */
.receipt-summary {
    border-top: 1px solid #e5e7eb;
    margin-top: 1.25rem;
    padding-top: 1rem;
    font-size: 0.9rem;
}

.receipt-subtotal,
.receipt-total {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.receipt-subtotal .label {
    color: #6b7280;
}

.receipt-subtotal .value {
    color: #1f2937;
    font-weight: 300;
}

.receipt-total {
    font-weight: 400;
    color: #15803d;
}

/* === FOOTER === */
.receipt-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.receipt-thankyou {
    font-size: 0.75rem;
    color: #8b3737;
    margin-bottom: 1rem;
}

.receipt-download-btn {
    background: #15803d;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
}

.receipt-download-btn:hover {
    background: #166534;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: #2a4d3c;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 2rem;
}

p,
ul li {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Footer */
.footer {
    background-color: #2a4d3c;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 1.2rem;
    margin-top: auto;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .main {
        flex-direction: column;
        padding: 2rem;
    }

    .checkout-container {
        width: 100%;
    }

    .delivery-info {
        margin: 0.8rem 1rem 1.5rem 1rem;
        padding: 1rem;
    }

    .delivery-message {
        font-size: 1rem;
    }

    .delivery-timer {
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card img {
        height: 90px;
    }

    .product-card h3,
    .product-card p,
    .product-card button {
        font-size: 0.85rem;
    }

    .product-card button {
        padding: 0.25rem 0.5rem;
    }

    .customer-form input,
    .customer-form select {
        font-size: 0.9rem;
        padding: 10px;
    }

    .checkout-btn {
        font-size: 0.95rem;
        padding: 12px;
    }

    .cart-summary {
        max-height: 500px;
        min-height: 350px;
    }

    .cart-item {
        font-size: 0.96rem;
    }

    .cart-row {
        font-size: 0.95rem;
        font-weight: 400;
        margin: 4px 0;
    }

    .total-row {
        font-size: 13px;
        font-weight: 300;
    }

    .hero {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-top: 20px;
    }

    .logo {
        height: 70px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        border-radius: 0.5rem;
        top: 80px;
        right: 1.2rem;
        background-color: #fdfaf4;
        padding: 1rem;
        gap: 1rem;
        font-size: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .footer {
        padding: 0.5rem 1rem;
        font-size: 0.5rem;
        margin-top: 4rem;
    }
}

@media (max-width: 767px) {
    #delivery-info-box {
        max-width: 70%;
        padding: 8px 12px;
        border-left-width: 3px;
        border-radius: 8px;
        margin: 0.5rem auto 1rem auto;
    }

    @media (min-width: 768px) {
        #delivery-info-box {
            margin-top: 120px;
        }
    }


    #delivery-info-box h2 {
        font-size: 1rem;
        font-weight: 300;
    }

    #delivery-info-box p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

#delivery-info-box {
    max-width: 400px;
    margin-top: 1rem;
    padding: 12px 18px;
    background-color: #faf6ea;
    border-left: 4px solid #99b99a;
    border-radius: 10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #2a4d3c;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

#delivery-info-box h2 {
    font-weight: 400;
    font-size: 0.95rem;
    color: #284b22;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

#delivery-info-box p {
    font-weight: 300;
    font-size: 0.8rem;
    color: #3a6953;
    margin: 0;
}

@media (max-width: 767px) {
    .receipt-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 1rem;
    }

    .receipt-content {
        max-height: 90vh;
        overflow-y: auto;
        width: 95%;
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .receipt-items li {
        font-size: 0.85rem;
    }

    .receipt-title {
        font-size: 2rem;
    }

    .receipt-thankyou {
        font-size: 0.7rem;
    }

    .receipt-download-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}


/* ================================
   ANIMATIONS
=================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}