/* ==========================================================================
   Spice Junction — Order Page
   ========================================================================== */

/* Hero */
.order-hero {
    background-color: #0b1727;
    border-bottom: 3px solid #ffc554;
}

.order-hero-title {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: .4rem;
}

.order-hero-subtitle {
    font-size: .95rem;
    color: #9da9bb;
    margin-bottom: 1rem;
}

/* Item Cards */
.order-item-card {
    background-color: #fff;
    border: 1px solid #d8e2ef;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 .2rem .8rem rgba(11, 23, 39, .06);
    transition: transform .2s, box-shadow .2s;
}

.order-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.5rem rgba(11, 23, 39, .1);
}

.order-item-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fa;
    display: block;
}

.order-item-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform .4s;
    border-radius: 8px 8px 0 0;
}

.order-item-card:hover .order-item-img {
    transform: scale(1.04);
}

.order-item-body {
    padding: 1rem 1.1rem 1.2rem;
}

.order-item-name {
    font-family: 'Merriweather', serif;
    font-size: .9rem;
    font-weight: 700;
    color: #344050;
}

.order-item-price {
    font-size: .95rem;
    font-weight: 700;
    color: #ffc554;
    white-space: nowrap;
    margin-left: .5rem;
    flex-shrink: 0;
}

.order-item-desc {
    font-size: .8rem;
    color: #748194;
    line-height: 1.5;
    margin-top: .3rem;
}

/* Add to order button */
.order-add-btn {
    background-color: #ffc554;
    color: #4d5969;
    font-weight: 600;
    font-size: .82rem;
    border: none;
    border-radius: .35rem;
    padding: .45rem;
    transition: background-color .15s;
}

.order-add-btn:hover {
    background-color: rgb(255, 184, 46);
    color: #4d5969;
}

.order-add-btn.added {
    background-color: #4cd964;
    color: #fff;
}

/* Cart Sidebar Box */
.order-cart-box {
    background-color: #fff;
    border: 1px solid #d8e2ef;
    border-radius: .75rem;
    box-shadow: 0 .25rem 1rem rgba(11, 23, 39, .07);
    padding: 1.25rem;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.order-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: .75rem;
    border-bottom: 2px solid #ffc554;
    margin-bottom: 1rem;
}

.order-cart-header h5 {
    font-family: 'Merriweather', serif;
    font-size: .95rem;
    color: #344050;
}

.order-cart-clear {
    font-size: .8rem;
    color: #9da9bb;
    text-decoration: none;
}

.order-cart-clear:hover {
    color: #FF806E;
}

/* Cart items */
.cart-item {
    padding: .6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: .3rem;
}

.cart-item-name {
    font-size: .85rem;
    font-weight: 600;
    color: #344050;
}

.cart-item-line-total {
    font-size: .85rem;
    color: #ffc554;
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.cart-qty-btn {
    background: #f0f0f0;
    border: none;
    border-radius: .25rem;
    width: 24px;
    height: 24px;
    font-size: .9rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}

.cart-qty-btn:hover {
    background: #ffc554;
}

.cart-qty {
    font-size: .85rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-remove {
    background: none;
    border: none;
    color: #9da9bb;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
}

.cart-remove:hover {
    color: #FF806E;
}

/* Cart empty state */
.order-cart-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9da9bb;
    font-size: .875rem;
}

/* Cart summary */
.order-cart-summary {
    padding: .75rem 0 0;
    font-size: .875rem;
    color: #344050;
}

.order-cart-total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: .5rem;
    border-top: 1px solid #d8e2ef;
    color: #344050;
}

/* Checkout button */
.order-checkout-btn {
    background-color: #ffc554;
    color: #4d5969;
    font-weight: 700;
    font-size: .875rem;
    border: none;
    border-radius: .4rem;
    padding: .55rem 1rem;
    transition: background-color .15s;
}

.order-checkout-btn:hover {
    background-color: rgb(255, 184, 46);
    color: #4d5969;
}

/* Checkout wizard steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #9da9bb;
    gap: 4px;
}

.checkout-step.active {
    color: #ffc554;
}

.checkout-step.completed {
    color: #4cd964;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #9da9bb;
    transition: all .2s;
}

.checkout-step.active .step-circle {
    background: #ffc554;
    color: #4d5969;
}

.checkout-step.completed .step-circle {
    background: #4cd964;
    color: #fff;
}

.checkout-step-line {
    flex: 1;
    height: 2px;
    background: #d8e2ef;
    margin: 0 4px;
    margin-bottom: 14px;
}

.checkout-step-title {
    font-family: 'Merriweather', serif;
    font-size: .88rem;
    font-weight: 700;
    color: #344050;
    margin-bottom: 1rem;
}

/* Order type cards */
.order-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.order-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .3rem;
    padding: .85rem .5rem;
    border: 2px solid #e3e6ed;
    border-radius: .6rem;
    background: #ffffff;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    color: #4d5969;
    transition: all .2s ease-in-out;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.order-type-card i {
    font-size: 1.4rem;
    color: #748194;
    transition: color .2s;
}

.order-type-sub {
    font-size: 10px;
    font-weight: 400;
    color: #9da9bb;
    line-height: 1.15;
}

.order-type-card:hover {
    border-color: #ffc554;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    color: #344050;
}

.order-type-card:hover i {
    color: #ffc554;
}

.order-type-card.selected {
    border-color: #ffc554;
    background: #fffcf4;
    color: #344050;
    box-shadow: 0 0 0 1px #ffc554, 0 4px 12px rgba(255, 197, 84, .2);
}

.order-type-card.selected i {
    color: #e5a420;
}

.order-type-card.selected::after {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 11px;
    color: #4cd964;
}

.payment-coming-soon {
    opacity: .6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.coming-soon-badge {
    position: absolute;
    top: -7px;
    right: -5px;
    background: #748194;
    color: #fff;
    font-size: 8.5px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Form input styling */
.checkout-input-wrap {
    position: relative;
    margin-bottom: .85rem;
}

.checkout-input-wrap .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9da9bb;
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
}

.checkout-input-wrap textarea+.input-icon {
    top: 18px;
}

.checkout-input-wrap .form-control {
    padding-left: 36px;
    font-size: .875rem;
    height: calc(1.5em + 1rem + 2px);
    border: 1px solid #d8e2ef;
    border-radius: .45rem;
    color: #344050;
}

.checkout-input-wrap textarea.form-control {
    height: auto;
}

.checkout-input-wrap .form-control:focus {
    border-color: #ffc554;
    box-shadow: 0 0 0 3px rgba(255, 197, 84, .2);
}

/* Loyalty Points Redemption Box */
.loyalty-checkout-box {
    background: linear-gradient(135deg, #2b3445 0%, #1a1f2c 100%);
    border-radius: .6rem;
    padding: .85rem 1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.loyalty-checkout-box .custom-control-label {
    cursor: pointer;
    font-size: 13px;
}

/* Review receipt styling */
.review-summary {
    background: #fcfdfe;
    border: 1px solid #e3e6ed;
    border-radius: .6rem;
    padding: 1rem;
    font-size: .83rem;
}

.review-customer-chip {
    background: #f0f4f9;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #4d5969;
    margin-top: .75rem;
    border-left: 3px solid #ffc554;
}

/* Order confirmation card */
.order-confirmation-card {
    background: #fff;
    border: 1px solid #d8e2ef;
    border-radius: .75rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 .25rem 1rem rgba(11, 23, 39, .07);
}

.order-number-badge {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #d8e2ef;
    border-radius: .5rem;
    padding: .75rem 1.5rem;
}

/* ==========================================================================
   QR Landing Screen
   ========================================================================== */
.qr-landing-hero {
    background-color: #0b1727;
    border-bottom: 3px solid #ffc554;
    padding: 3.5rem 1rem 3rem;
}

.qr-landing-badge {
    display: inline-block;
    background: rgba(255, 197, 84, .15);
    border: 1px solid #ffc554;
    color: #ffc554;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    letter-spacing: .5px;
}

.qr-landing-title {
    font-family: 'Merriweather', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: .5rem;
}

.qr-landing-subtitle {
    color: #9da9bb;
    font-size: 1rem;
}

.qr-landing-offers {
    padding: 2.5rem 1rem;
    background: #fff;
}

.qr-offers-heading {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #344050;
    text-align: center;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .85rem;
}

.qr-offers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.qr-offer-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 21 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #0b1727;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(11, 23, 39, 0.12);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.qr-offer-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(11, 23, 39, 0.22);
}

.qr-offer-fallback-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 197, 84, .6);
    background: linear-gradient(135deg, #0b1727, #1c2c42);
}

.qr-offer-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(11, 23, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qr-offer-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Merriweather', serif;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.qr-offer-badge {
    background: #ffc554;
    color: #4d5969;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-offer-badge.auto {
    background: #4cd964;
    color: #fff;
}

.qr-landing-cta-wrap {
    padding: 1.5rem 1rem 3rem;
    text-align: center;
    background: #fff;
}

.qr-landing-cta {
    padding: .8rem 2.2rem;
    font-size: 1rem;
}

.tracker-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0 1.5rem;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    flex: 1;
    font-size: .75rem;
    color: #9da9bb;
    text-align: center;
}

.tracker-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9da9bb;
    transition: all .3s;
}

.tracker-step.active .tracker-circle {
    background: #ffc554;
    color: #4d5969;
    box-shadow: 0 0 0 6px rgba(255, 197, 84, .2);
}

.tracker-step.active {
    color: #344050;
    font-weight: 600;
}

.tracker-step.completed .tracker-circle {
    background: #4cd964;
    color: #fff;
}

.tracker-step.completed {
    color: #4cd964;
}

.tracker-message {
    text-align: center;
    color: #748194;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.tracker-ready-banner {
    background: rgba(76, 217, 100, .12);
    border-left: 4px solid #4cd964;
    color: rgb(36, 119, 56);
    padding: .9rem 1.1rem;
    border-radius: .5rem;
    text-align: center;
    font-weight: 600;
}

.order-history-row {
    background: #fff;
    border: 1px solid #d8e2ef;
    border-radius: .6rem;
    padding: .9rem 1.1rem;
    margin-bottom: .7rem;
}

.order-item-img-wrap {
    position: relative;
}

.item-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    z-index: 10;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

/* Smooth interactive states for better UX */
.item-favorite-btn:hover {
    transform: scale(1.15);
    color: #FF806E;
}

.item-favorite-btn:active {
    transform: scale(0.9);
}

.item-favorite-btn.favorited {
    color: #FF806E;
}

.item-favorite-btn.favorited:hover {
    color: #ff5a46;
}

/* Category Tab Panes — Hide inactive categories & display only active */
.order-tab-pane {
    display: none;
}

.order-tab-pane.active {
    display: block;
    animation: menuFadeIn .3s ease;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}