/* =============================================
   Limitless Coffee & Co. — Single Stylesheet
   Target: iPad (primary) + Phone (responsive)
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Anybody:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vujahday+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

:root {
    --gold: #C5A55A;
    --gold-dark: #A8893D;
    --dark: #1a1a1a;
    --bg: #f5f2ed;
    --white: #ffffff;
    --text: #333333;
    --text-light: #444242;
    --border-light: #e8e3de;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

/* body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(220,215,208,0.3) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(240,235,228,0.2) 0%, transparent 60%);
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
} */


body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    background-image: url('./images/background.png');
    background-size: cover;
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 24px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 16px;
    margin-bottom: 28px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-emblem svg {
    display: block;
}

/* .logo-title {
    display: block;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2.5px;
    line-height: 1.2;
} */

/* .logo-subtitle {
    display: block;
    color: var(--gold-dark);
    font-size: 0.62rem;
    letter-spacing: 3px;
    font-weight: 500;
} */

.header-icon {
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    position: relative;
    display: inline-block;
}

.header-icon:hover {
    opacity: 1;
}

/* ========== VIEWS / SCREENS ========== */
.view {
    display: none;
}

.view.active {
    display: block;
    animation: paperSlide 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes paperSlide {
    from {
        opacity: 0;
        transform: translateX(-100%);
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        box-shadow: none;
    }
}

/* ========== PRODUCT GRID SLIDE ========== */
.products-slide {
    animation: paperSlide 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ========== CATEGORY TABS ========== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    /* margin-top: 28px; */
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    padding: 9px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s;
}

.tab-btn.active {
    background-color: var(--dark);
    color: var(--white);
}

.tab-btn.active .text-gold-gradient-active {
    background: linear-gradient(120.95deg, #856220 14.44%, #F4E683 35.13%, #BF923D 52.05%, #F1EA82 89.67%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}


.text-gold-gradient-checkout {
        background: linear-gradient(120.95deg, #856220 14.44%, #F4E683 35.13%, #BF923D 52.05%, #F1EA82 89.67%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* .tab-btn:hover:not(.active) {
    background-color: rgba(0,0,0,0.06);
} */

/* ========== SECTION TITLE (with gold lines) ========== */
.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.section-title h2 {
    /* font-family: 'Dancing Script', cursive; */
    font-family: 'Anybody', cursive;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    margin: 0;
    font-style: italic;
}

.gold-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    text-align: center;
    cursor: pointer;
    padding: 12px 6px;
    border-radius: var(--radius);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-card:active {
    transform: scale(0.97);
}

.product-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    /* border-radius: 50%; */
    margin-bottom: 12px;
    /* box-shadow: 0 4px 14px rgba(0,0,0,0.12); */
}

.product-name {
    /* font-family: 'Dancing Script', cursive; */
    font-family: "Vujahday Script", cursive;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.15;
}

.product-desc {
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 8px;
    min-height: 48px;
}

.product-price {
    font-size: 0.78rem;
    color: var(--text);
}

.product-price .price {
    color: var(--gold);
    font-weight: 700;
}

.product-price .separator {
    margin: 0 5px;
    color: #ccc;
}

/* ========== PRODUCT MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--gold);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.18);
    max-width: 580px;
    width: 100%;
    padding: 28px 24px 22px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.15rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    line-height: 1;
}

.modal-left {
    text-align: center;
    padding-right: 18px;
}

.modal-product-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    /* border-radius: 50%; */
    margin-bottom: 14px;
    /* box-shadow: 0 4px 14px rgba(0,0,0,0.1); */
}

.modal-product-name {
    /* font-family: 'Dancing Script', cursive; */
    font-family: "Vujahday Script", cursive;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-product-desc {
    font-size: 0.74rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 10px;
}

.modal-product-prices {
    font-size: 0.82rem;
    margin-bottom: 0;
}

.modal-product-prices .price {
    color: var(--gold);
    font-weight: 700;
}

.modal-product-prices .sep {
    color: #ccc;
    margin: 0 6px;
}

.modal-right {
    padding-left: 18px;
    padding-top: 4px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* Quantity controls */
.qty-control {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qty-btn {
    background: #000000;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn img {
    width: 20px;
    height: 20px;
}

/* .qty-btn:hover {
    color: var(--gold);
} */

.qty-value {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
}

/* Custom radio & checkbox */
.radio-group {
    display: flex;
    gap: 22px;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    user-select: none;
}

.custom-option input[type="radio"],
.custom-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    margin: 0;
}

.custom-option input[type="radio"]:checked,
.custom-option input[type="checkbox"]:checked {
    /* background: var(--gold); */
    background: linear-gradient(120.95deg, #856220 14.44%, #F4E683 35.13%, #BF923D 52.05%, #F1EA82 89.67%);
    /* border-color: var(--gold); */
    border: solid 2px #000000;
}

.addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.addon-price {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

/* Modal action buttons */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.btn-modal-outline {
    flex: 1;
    padding: 13px;
    border: 2px solid var(--dark);
    background: var(--white);
    color: var(--dark);
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-modal-outline:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-modal-dark {
    flex: 1;
    padding: 13px;
    border: none;
    background: var(--dark);
    color: var(--gold);
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.25s;
}

.btn-modal-dark:hover {
    background: #333;
}

/* ========== CART VIEW ========== */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
    font-style: italic;
    white-space: nowrap;
}

.cart-item-addon-label {
    font-size: 0.78rem;
    color: var(--text-light);
}

.cart-item-addon-price {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    font-style: italic;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    margin: 20px 0;
}

.cart-total span:first-child {
    font-size: 1.2rem;
}

.total-amount {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gold);
    font-style: italic;
}

/* ========== PRIMARY DARK BUTTON ========== */
.btn-primary-dark {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #000000;
    /* Balik sa solid black ang button */
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.25s;
    text-align: center;
}

.btn-primary-dark:hover {
    background-color: #1a1a1a;
}

/* Dito na ilalagay yung gradient mo */
.text-gold-gradient {
    font-family: 'Sora' !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.3px;
    background: linear-gradient(120.95deg, #856220 14.44%, #F4E683 35.13%, #BF923D 52.05%, #F1EA82 89.67%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn-primary-dark:hover {
    background: #333;
}

.add-more-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
}

/* .add-more-link:hover {
    text-decoration: underline;
} */

/* ========== PAYMENT / QR ========== */
.qr-wrapper {
    margin: 20px auto 25px;
}

.qr-wrapper img {
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.pay-amount {
    text-align: center;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.pay-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.88rem;
    padding: 0 24px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.waiting-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timer-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.timer-count {
    color: var(--gold);
    font-weight: 700;
}

/* ========== SUCCESS VIEW ========== */
.success-icon {
    font-size: 5rem;
    color: var(--gold);
    margin: 35px 0;
}

.order-num {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* ========== TOAST NOTIFICATION ========== */
.app-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: var(--gold);
    padding: 12px 28px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE — Phone (< 576px) ========== */
@media (max-width: 575.98px) {
    .app-container {
        padding: 14px 16px;
    }

    .app-header {
        padding: 6px 0 12px;
    }

    .logo-emblem svg {
        width: 40px;
        height: 40px;
    }

    /* .logo-title { font-size: 0.95rem; letter-spacing: 1.8px; } */
    /* .logo-subtitle { font-size: 0.52rem; } */

    .category-tabs {
        gap: 4px;
        margin-bottom: 20px;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 7px 15px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title {
        margin-bottom: 22px;
        gap: 10px;
    }

    .product-img {
        width: 90px;
        height: 90px;
    }

    .product-name {
        font-size: 1.25rem;
    }

    .product-desc {
        font-size: 0.65rem;
        min-height: 36px;
    }

    .product-price {
        font-size: 0.7rem;
    }

    /* Modal stacks vertically on phones */
    .modal-card {
        padding: 20px 16px 18px;
    }

    .modal-left {
        border-right: none !important;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #eee;
    }

    .modal-right {
        padding-left: 0;
    }

    .modal-product-img {
        width: 100px;
        height: 100px;
    }

    .modal-product-name {
        font-size: 1.5rem;
    }

    .modal-actions {
        margin-top: 16px;
    }

    .waiting-text {
        font-size: 1.25rem;
    }

    .pay-info {
        padding: 0 12px;
        font-size: 0.82rem;
    }
}

/* ========== RESPONSIVE — iPad & larger phones (≥ 576px) ========== */
@media (min-width: 576px) {
    .modal-left {
        border-right: 1px solid #eee;
    }
}

/* ========== RESPONSIVE — iPad portrait (768px–1024px) ========== */
@media (min-width: 768px) {
    .app-container {
        padding: 24px 32px;
    }

    .section-title h2 {
        font-size: 2.8rem;
    }

    .product-img {
        width: 130px;
        height: 130px;
    }

    .product-name {
        font-size: 1.65rem;
    }

    .product-desc {
        font-size: 0.75rem;
        min-height: 52px;
    }
}

/* ========== RESPONSIVE — iPad landscape (≥ 1025px) ========== */
@media (min-width: 1025px) {
    .app-container {
        padding: 30px 40px;
    }
}

.logo-img {
    width: auto;
    height: 80px;
}

/* ========== CART DELETE BUTTON ========== */
.cart-price-action {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-delete-btn {
    border: none;
    background: linear-gradient(120.95deg, #856220 14.44%, #F4E683 35.13%, #BF923D 52.05%, #F1EA82 89.67%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
    display: flex;
}

#orderNumber {
    color: var(--gold);
}


/* ========== CART BADGE ========== */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: linear-gradient(120.95deg, #856220 14.44%, #F4E683 35.13%, #BF923D 52.05%, #F1EA82 89.67%);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}