@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* BASIC RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Condensed', sans-serif;
}

:root {
    --lead: #212122;
    --dark-color: #212122;
    --gold-finger: #F2BD12;
    --eye-ball: #fffdf7;
    --hint-yello: #fcf1cc;
    --pure-white: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--eye-ball);
}

a {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--lead);
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    margin: auto;
    display: block;
}

/* UTILITY CLASSES */
.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.between {
    justify-content: space-between;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

.gap-4 {
    gap: 4rem;
}

.wrapper {
    max-width: 1400px;
    margin: auto;
    padding-inline: 1.5rem;
}

.p-top {
    padding-top: 7rem;
}

.text-center {
    text-align: center;
}

.m-auto {
    margin: auto;
}

.m-t4 {
    margin-top: 3.5rem;
}

.mt-one {
    margin-top: 1.2rem;
}

.mt-one-half {
    margin-top: 0.5rem;
}

/* HEADER & DESKTOP NAVBAR */
header {
    width: 100%;
    background-color: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    min-height: 90px;
}

.navbar {
    position: relative;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold-finger);
    flex-shrink: 0;
}

.navlist li a {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--lead);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navlist li a:hover,
.navlist li a.active {
    color: var(--gold-finger);
}

.desktop-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Cart Icon & Badge */
.cart-icon {
    position: relative;
    font-size: 1.8rem;
    color: var(--lead);
    display: flex;
    align-items: center;
}

.cart-value {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--gold-finger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    background-color: var(--gold-finger);
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(229, 169, 59, 0.3);
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Hamburger & Mobile Menu (Desktop par Hidden) */
.hamburger {
    font-size: 1.8rem;
    color: var(--lead);
    cursor: pointer;
    display: none;
}

.mobile-menu {
    display: none;
}

/* TYPOGRAPHY & HERO SECTION */
.content,
.image-container,
.service-card {
    flex: 1;
    flex-basis: 300px;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    color: var(--lead);
    line-height: 1.2;
}

h1 span {
    color: var(--gold-finger);
}

h2 {
    font-size: 3.2rem;
    text-transform: capitalize;
    color: var(--lead);
    line-height: 1.25;
}

h3 {
    font-size: 2.2rem;
    text-transform: capitalize;
    color: var(--lead);
}

h4 {
    font-size: 1.6rem;
    color: var(--lead);
}

h5 {
    font-size: 1.1rem;
    color: var(--gold-finger);
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.8rem;
    font-weight: 400;
}

.para {
    margin-block: 1.5rem;
    max-width: 550px;
}

/* Social Icons */
.social-icon {
    background: var(--hint-yello);
    width: 3rem;
    aspect-ratio: 1;
    border-radius: 1rem;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 6px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.social-icon:hover {
    background: var(--lead);
    color: var(--pure-white);
    transform: translateY(-3px);
}

/* SERVICES SECTION */
.service-card {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

/* MENU CARDS */
.order-card {
    flex: 1;
    flex-basis: 280px;
    max-width: 340px;
    background: var(--pure-white);
    padding: 1.5rem 1rem 2rem 1rem;
    border: 0.1rem solid var(--gold-finger);
    border-radius: 2rem;
    box-shadow: rgba(0, 0, 0, 0.05) 8px 8px 8px, rgba(0, 0, 0, 0.05) 8px 8px 8px inset;
    transition: all 0.3s ease-in-out;
}

.order-card:hover {
    transform: translateY(-5px);
}

.order-card .card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.order-card img {
    width: 14rem;
    max-height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.order-card .price {
    font-size: 1.7rem;
    color: var(--gold-finger);
    padding: 0.8rem 0 1.5rem 0;
}

/* CART TAB SIDEBAR */
.cart-tab {
    background: var(--hint-yello);
    position: fixed;
    inset: 0 -500px 0 auto;
    width: 25rem;
    max-width: 100%;
    padding-block: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -10px -10px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
    z-index: 1500;
}

.cart-tab-active {
    inset: 0 0 0 auto;
}

.cart-list {
    flex: 1;
    width: 100%;
    margin-top: 1.5rem;
    overflow-y: auto;
    display: block;
}

.cart-list::-webkit-scrollbar {
    width: 0;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    gap: 1rem;
    transition: all 0.3s ease;
}

.item.slide-out {
    transform: translateX(50%);
    opacity: 0;
}

.cart-list .item:nth-child(even) {
    background: var(--eye-ball);
}

.item .item-image img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
}

.item .detail {
    flex: 2;
}

.item h4 {
    font-size: 1.2rem;
    color: var(--lead);
}

.item .total-item {
    font-weight: 600;
    color: var(--gold-finger);
    margin-top: 0.3rem;
}

.quantity-btn {
    background: var(--lead);
    color: var(--pure-white);
    width: 1.7rem;
    aspect-ratio: 1;
    border-radius: 100vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.quantity-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-inline: 0.6rem;
}

.total-container {
    width: 100%;
    background: var(--gold-finger);
    text-align: center;
    margin-block: 1rem;
    padding-block: 1rem;
}

.total-container h4 {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
}

.btn-container .btn {
    background: var(--lead);
    transition: 0.3s ease-in-out;
}

.btn-container .btn:hover {
    background: var(--gold-finger);
    color: var(--lead) !important;
}

/* REVIEWS & SWIPER */
.swiper {
    width: 100%;
    height: 100%;
}

.review-container {
    width: 650px;
    max-width: 100%;
    flex: 1;
}

.profile {
    width: 4rem;
    aspect-ratio: 1;
    border-radius: 100vw;
    overflow: hidden;
}

.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fa-star {
    color: var(--gold-finger);
}

.arrow {
    width: 2.5rem;
    aspect-ratio: 1;
    border-radius: 100vw;
    background: var(--gold-finger);
    color: var(--lead);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* MOBILE APP SECTION */
.app-container {
    background: var(--hint-yello);
    padding: 3rem 6rem;
    border-radius: 3rem;
}

.app-container h2 {
    font-size: 3.8rem;
}

.app-container img {
    width: 25rem;
}

/* NEWSLETTER SECTION */
.input-container {
    width: 43rem;
    max-width: 100%;
    background: var(--pure-white);
    padding: 0.8rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0 5px 8px;
    border-radius: 1rem;
    margin: 3.5rem auto 0 auto;
}

input[type="email"] {
    flex: 1;
    height: 3rem;
    background: var(--pure-white);
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding-left: 1rem;
}

/* FOOTER */
.footer-container {
    margin-top: 8rem;
    padding-block: 4rem;
    background: var(--hint-yello);
}

.footer-container .flex {
    align-items: flex-start;
}

.footer-wrapper {
    flex: 1;
    flex-basis: 150px;
}

.footer-wrapper:nth-child(1) {
    flex: 2;
    flex-basis: 300px;
}

.footer-wrapper .social-icon {
    background: var(--pure-white);
}

.footer-wrapper .social-icon:hover {
    background: var(--lead);
    color: var(--pure-white);
}

.footer-link {
    color: gray;
    font-size: 1.1rem;
    transition: 0.3s ease-in-out;
}

.footer-link:hover {
    color: var(--lead);
}

/* MODALS (CHECKOUT, SIGNIN, SUCCESS) */
.checkout-modal,
.signin-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.checkout-modal.active,
.signin-modal.active {
    display: flex;
}

.checkout-content,
.signin-content {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-checkout,
.close-signin {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--lead);
    cursor: pointer;
    transition: 0.2s;
}

.close-checkout:hover,
.close-signin:hover {
    color: var(--gold-finger);
}

.checkout-content h2,
.signin-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--lead);
}

.signin-subtitle {
    font-size: 0.95rem;
    color: gray;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--lead);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--hint-yello);
    border-radius: 0.8rem;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-finger);
    background-color: var(--eye-ball);
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.order-total-display {
    background: var(--hint-yello);
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--lead);
    margin-block: 1.5rem;
}

.order-total-display span {
    color: #d48b00;
}

.submit-order-btn,
.submit-signin-btn {
    width: 100%;
    justify-content: center;
    font-weight: bold;
}

.signup-redirect {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    color: gray;
}

.signup-redirect a {
    color: var(--gold-finger);
    font-weight: bold;
}

/* SUCCESS POPUP */
.success-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2500;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.success-popup.active {
    display: flex;
}

.success-content {
    background: var(--pure-white);
    padding: 3rem 2rem;
    border-radius: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: popUpScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUpScale {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 4.5rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.order-id-box {
    background: var(--hint-yello);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    color: var(--lead);
    display: inline-block;
    margin-block: 1.5rem;
}

#closeSuccessBtn {
    width: 100%;
    justify-content: center;
}

/* ====================================================
   RESPONSIVE MEDIA QUERIES (Large to Small Order)
   ==================================================== */

@media screen and (max-width: 992px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
        padding-top: 2rem;
    }

    .content,
    .image-container {
        flex-basis: 100%;
        width: 100%;
    }

    .para {
        margin-inline: auto;
    }

    .content .flex {
        justify-content: center;
    }

    .image-container img {
        max-width: 80%;
    }

    .app-container {
        padding: 2.5rem;
        text-align: center;
    }
}

@media screen and (max-width: 850px) {
    .navlist,
    .desktop-action .signin-trigger {
        display: none !important;
    }

    .hamburger {
        display: block !important;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.8rem;
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 2rem;
        background: var(--pure-white);
        border-bottom: 2px solid var(--gold-finger);
        border-radius: 0 0 2rem 2rem;
        box-shadow: rgba(0, 0, 0, 0.1) 0 10px 15px;
        transition: left 0.4s ease-in-out;
        z-index: 999;
    }

    .mobile-menu-active {
        left: 0 !important;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .app-container {
        padding: 1.8rem 1.2rem;
    }

    .app-container h2 {
        font-size: 2rem;
    }

    .card-list {
        justify-content: center;
    }
}