/* --- YOUR EXACT 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 PAGE CONTAINER --- */
.purchase-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;
}

/* --- HEADER & BREADCRUMB --- */
.header-wrapper {
    width: 100%;
    padding: 30px 20px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.back-btn {
            font-family: "overdozesans";
    font-size: 22px;
    color: #5a1132;
    text-decoration: none;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    border: 2px solid #ffb7d9;
}
.breadcrumb {
    font-family: "Vividly-Regular", sans-serif;
    font-size: 14px;
    color: #5a1132;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    border: 2px solid #ffb7d9;
}
.breadcrumb span { color: #ffb7d9; }

/* --- CART HERO --- */
.cart-hero {
    margin-top: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 50px;
    padding: 30px 20px;
    border: 3px solid #ffb7d9;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(255, 183, 217, 0.2);
}
.cart-hero h1 {
            font-family: "overdozesans";
    font-size: 30px;
    color: #5a1132;
    margin-top: 10px;
}
.cart-hero p {
            font-family: "overdozesans";
    color: #ffb7d9;
    font-size: 14px;
    margin-top: 5px;
}
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}
.cart-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffb7d9;
    color: #5a1132;
            font-family: "overdozesans";
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ffffff;
}

/* --- CART ITEMS LIST --- */
.cart-list {
    margin-top: 25px;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-item {
    background: #ffffff;
    border-radius: 30px;
    padding: 12px 15px;
    border: 2px solid #ffb7d9;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}
.item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff2f8;
    border-radius: 20px;
    padding: 5px;
}
.item-details {
    flex: 1;
}
.item-details h3 {
            font-family: "overdozesans";
    font-size: 18px;
    color: #5a1132;
}
.item-details p {
            font-family: "overdozesans";
    font-size: 13px;
    color: #ffb7d9;
}
.item-details .item-price {
            font-family: "overdozesans";
    font-size: 16px;
    color: #5a1132;
    display: block;
    margin-top: 2px;
}
.remove-btn {
    background: none;
    border: none;
    color: #ffb7d9;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}
.remove-btn:hover {
    color: #5a1132;
}

/* --- ORDER SUMMARY --- */
.order-summary {
    
    margin-top: 25px;
    width: 340px;
    background: #ffffff;
    border-radius: 40px;
    padding: 20px 25px;
    border: 3px solid #ffb7d9;
}
.order-summary h3 {
            font-family: "overdozesans";
    font-size: 20px;
    color: #5a1132;
    margin-bottom: 15px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
            font-family: "overdozesans";
    font-size: 15px;
    color: #5a1132;
    padding: 5px 0;
}
.free-delivery {
    color: #ff7fb3;
            font-family: "overdozesans";
}
.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ffb7d9;
            font-family: "overdozesans";
    font-size: 20px;
    color: #5a1132;
}

/* --- PAYMENT FORM --- */
.payment-form {
    margin-top: 25px;
    width: 340px;
    background: #ffffff;
    border-radius: 40px;
    padding: 25px;
    border: 3px solid #ffb7d9;
}
.payment-form h3 {
            font-family: "overdozesans";
    font-size: 20px;
    color: #5a1132;
    margin-bottom: 15px;
}
.input-group {
    margin-bottom: 15px;
    position: relative;
}
.input-group label {
            font-family: "overdozesans";
    font-size: 13px;
    color: #5a1132;
    display: block;
    margin-bottom: 5px;
}
.cute-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 30px;
    border: 2px solid #ffb7d9;
    background: #fff2f8;
    font-family: "Vividly-Regular", sans-serif;
    font-size: 15px;
    color: #5a1132;
    outline: none;
    transition: 0.2s;
}
.cute-input:focus {
    border-color: #5a1132;
    background: #ffffff;
}
.cute-input::placeholder {
    color: #ffb7d9;
}
.input-icon {
    position: absolute;
    right: 15px;
    top: 65%;
    transform: translateY(-50%);
    width: 20px;
    opacity: 0.5;
}
.input-row {
    display: flex;
    gap: 15px;
}
.input-row .half {
    flex: 1;
}
.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.toggle-text {
            font-family: "overdozesans";
    font-size: 13px;
    color: #5a1132;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffb7d9;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #ffd0e5;
}
input:checked + .slider:before {
    transform: translateX(16px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

/* --- PLACE ORDER BUTTON --- */
.place-order-btn {
    margin-top: 30px;
    width: 280px;
    background:#ffd0e5;
    color: #ffffff;
            font-family: "overdozesans";
    font-size: 20px;
    padding: 18px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.1s ease;
}
.place-order-btn:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #3a0a20;
}

/* --- DECORATIVE FLOATING ELEMENTS --- */
.floating-icon {
    position: absolute;
    opacity: 0.5;
}
.floating-1 { top: 120px; left: 5px; width: 30px; }
.floating-2 { top: 400px; right: 10px; width: 25px; }
.floating-3 { bottom: 250px; left: 10px; width: 30px; }

/* --- 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 */
.cart-hero { transition-delay: 0.0s !important; }
.cart-item:nth-child(1) { transition-delay: 0.1s !important; }
.cart-item:nth-child(2) { transition-delay: 0.2s !important; }
.cart-item:nth-child(3) { transition-delay: 0.3s !important; }
.order-summary { transition-delay: 0.3s !important; }
.payment-form { transition-delay: 0.5s !important; }
.place-order-btn { transition-delay: 0.7s !important; }