/* --- RESET & GLOBALS --- */
* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #fff2f8;
            font-family: "overdozesans";
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
@font-face {
    font-family: "Vividly-Regular";
    src: url("./Vividly-Regular.otf") format("woff2"),
         url("./Vividly-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: "overdozesans";
  src: url("./overdozesans.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "overdozesans";
  src: url("./overdozesans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Vividly-Regular";
  src: local("Vividly-Regular");
}
/* --- SCROLLABLE CONTAINER --- */
.orders-screen {
    background-color: #fff2f8;
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    position: relative;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- CLEAN HEADER --- */
.header-wrapper {
    width: 100%;
    padding: 30px 20px 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.back-btn {
            font-family: "overdozesans";
    font-size: 24px;
    color: #5a1132;
    text-decoration: none;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid #ffb7d9;

    display: flex;
    align-items: center;
    justify-content: center;
}
.page-title {
            font-family: "overdozesans";
    font-size: 22px;
    color: #5a1132;
}
.placeholder { width: 45px; } /* Just for spacing */

/* --- ORDERS LIST --- */
.orders-list {
    margin-top: 15px;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- CLEAN ORDER CARD --- */
.order-card {
    background: #ffffff;
    border-radius: 30px;
    border: 2px solid #ffb7d9;
    padding: 16px 18px;
    box-shadow: 0 4px 12px rgba(255, 183, 217, 0.08);
    transition: transform 0.2s;
}
.order-card:active { transform: scale(0.98); }

/* Active Order Highlight (Soft pink glow) */
.order-card.active {
    border-color: #5a1132;
    background: #fff9fb;
}

/* --- TOP ROW (ID + Date + Status) --- */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.order-info {
    display: flex;
    gap: 10px;
    align-items: center;
}
.order-id {
            font-family: "overdozesans";
    font-size: 14px;
    color: #5a1132;
}
.order-date {
            font-family: "overdozesans";
    font-size: 12px;
    color: #ffb7d9;
}
.status-badge {
            font-family: "overdozesans";
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    background: #ffffff;
    color: #ffb7d9;
}
.status-badge.completed {
    background: #ffffff;
    color: #ffb7d9;
}
.status-badge.cancelled {
    background: #ffffff;
    color: #ffb7d9;
}

/* --- MIDDLE ROW (Image + Name + Qty) --- */
.card-items {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff2f8;
    border-radius: 20px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.item-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 15px;
    padding: 6px;
    border: 1px solid #ffb7d9;
}
.item-details h3 {
            font-family: "overdozesans";
    font-size: 16px;
    color: #5a1132;
}
.item-details p {
            font-family: "overdozesans";
    font-size: 13px;
    color: #ffb7d9;
    margin-top: 2px;
}

/* --- BOTTOM ROW (Total + Buttons) --- */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
}
.total-price {
            font-family: "overdozesans";
    font-size: 18px;
    color: #5a1132;
}

/* --- CLEAN BUTTONS --- */
.track-btn {
    background: #5a1132;
    color: #ffffff;
            font-family: "overdozesans";
    font-size: 13px;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
}
.reorder-btn {
    background: transparent;
    border: 2px solid #ffb7d9;
    color: #5a1132;
            font-family: "overdozesans";
    font-size: 13px;
    padding: 6px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}
.reorder-btn:hover { background: #ffb7d9; }

/* --- YOUR EXACT BOTTOM NAV (UNCHANGED) --- */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    height: 96px;
    background-color: #ffffff;
    border-radius: 43px 43px 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 10px 10px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.02);
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}
.nav-item img {
    width: 26px;
    height: 26px;
    margin-bottom: 5px;
}
.nav-item span {
            font-family: "overdozesans";
    font-size: 14px;
    color: #5a1132;
    text-align: center;
}
.nav-item.active span { color: #5a1132; }
.nav-item.active img { opacity: 0.7; }

/* ===== SCROLL REVEAL ANIMATIONS ===== */

/* 1. Initial hidden state */
.animate-on-scroll {
    opacity: 0 !important;
    transform: translateY(35px) !important;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform, opacity;
}

/* 2. Active state when scrolled into view */
.scroll-reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. 🎀 DELAYS FOR A WAVE EFFECT */
.order-card:nth-child(1) { transition-delay: 0.1s !important; }
.order-card:nth-child(2) { transition-delay: 0.2s !important; }
.order-card:nth-child(3) { transition-delay: 0.3s !important; }
.order-card:nth-child(4) { transition-delay: 0.4s !important; }