*{
    transition: all .5s ease-in-out;
}
    
    /* Glassmorphism Intensive */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

/* Page Transitions */
.page {
    transition: opacity 0.8s, transform 0.8s;
}

.page.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Coffee Cup Animation */
.coffee-cup-container {
    position: relative;
    width: 60px;
    height: 45px;
}

.cup {
    width: 100%;
    height: 100%;
    border: 3px solid #C6AC8F;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    position: relative;
}

.cup::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 8px;
    width: 18px;
    height: 22px;
    border: 3px solid #C6AC8F;
    border-radius: 0 10px 10px 0;
}

.filling-coffee {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #C6AC8F;
    animation: fill-up 2s ease-in-out infinite;
}

@keyframes fill-up {
    0% {
        height: 0%;
    }

    80%,
    100% {
        height: 90%;
    }
}

.custom-scroll::-webkit-scrollbar {
    width: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #C6AC8F;
    border-radius: 10px;
}

/* Glassmorphism Refinement */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.nav-item-link.active {
    color: #C6AC8F !important;
}

/* Page Transitions */
.page {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page.hidden {
    display: none;
    opacity: 0;
    transform: translateY(30px);
}

/* Custom Coffee Loader */
.coffee-cup-container {
    position: relative;
    width: 60px;
    height: 45px;
}

.cup {
    width: 100%;
    height: 100%;
    border: 3px solid #C6AC8F;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    position: relative;
}

.cup::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 8px;
    width: 18px;
    height: 22px;
    border: 3px solid #C6AC8F;
    border-radius: 0 10px 10px 0;
}

.filling-coffee {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #C6AC8F;
    animation: fill-up 2.5s infinite;
}

.steam {
    position: absolute;
    top: -15px;
    left: 15px;
    width: 3px;
    height: 10px;
    background: rgba(198, 172, 143, 0.4);
    border-radius: 2px;
    animation: steam-anim 2.5s infinite;
}

@keyframes fill-up {
    0% {
        height: 0%;
    }

    80% {
        height: 95%;
    }

    100% {
        height: 95%;
    }
}

@keyframes steam-anim {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.custom-scroll::-webkit-scrollbar {
    width: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #C6AC8F;
}



/* ... existing code ... */

/* Basket Image Glow */
#basket-items img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: filter 0.5s ease;
}

#basket-items div:hover img {
    filter: grayscale(1);
}

/* Quantity Control Buttons */
#basket-items button {
    border-radius: 8px;
    transition: all 0.3s ease;
}

#basket-items button:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Glassmorphism Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item-link.active {
    color: #C6AC8F !important;
}

/* Page State */
.page {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page.hidden {
    display: none;
    opacity: 0;
    transform: translateY(30px);
}

/* Coffee Cup Loader Animation */
.coffee-cup-container {
    position: relative;
    width: 60px;
    height: 45px;
}

.cup {
    width: 100%;
    height: 100%;
    border: 3px solid #C6AC8F;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    position: relative;
}

.cup::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 8px;
    width: 18px;
    height: 22px;
    border: 3px solid #C6AC8F;
    border-radius: 0 10px 10px 0;
}

.filling-coffee {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #C6AC8F;
    animation: fill-up 2.5s infinite;
}

.steam {
    position: absolute;
    top: -15px;
    left: 15px;
    width: 3px;
    height: 10px;
    background: rgba(198, 172, 143, 0.4);
    border-radius: 2px;
    animation: steam-anim 2.5s infinite;
}

@keyframes fill-up {
    0% {
        height: 0%;
    }

    80%,
    100% {
        height: 95%;
    }
}

@keyframes steam-anim {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #C6AC8F;
}

/* Basket Styling */
#basket-items img {
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: filter 0.5s;
}

#basket-items div:hover img {
    filter: grayscale(0);
}

.grayscale1 {
    --tw-grayscale: grayscale(30%) !important;
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.glass-card:hover .grayscale1 {
        --tw-grayscale: grayscale(0%) !important;
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

/* Smoothly animates the card collapsing out of the DOM structure */
.basket-item-container {
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
}

.basket-item-container.collapsed {
    max-height: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    opacity: 0 !important;
    border: none !important;
}

/* SVG Circular Countdown Animation Framework */
.timer-svg circle {
    stroke-dasharray: 56; /* Circumference for r=9 (2 * pi * 9) */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 100ms linear;
    transform: rotate(-90deg);
    transform-origin: center;
}

/* Buttery smooth bounce for the header basket badge */
@keyframes basketBounce {
    0% { transform: scale(1); }
    28% { transform: scale(1.35); }
    52% { transform: scale(0.92); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-basket-bounce {
    animation: basketBounce 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Enhanced smooth success state for the product action button */
.btn-success-state {
    background-color: #D9A05B !important; /* Matches your amberBrew color */
    color: #000000 !important;
    transform: scale(0.92);
    box-shadow: 0 0 15px rgba(217, 160, 91, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}


/* Inline validation layout */
.qty-error-msg {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth animations for updates */
.animate-basket-bounce {
    animation: basketBounce 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.btn-success-state {
    background-color: #D9A05B !important;
    color: #000000 !important;
    transform: scale(0.92);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Container framework for fluid removal transitions */
.basket-item-container {
    max-height: 140px; /* Adjust slightly based on your layout padding */
    opacity: 1;
    transform: translateX(0);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Animate out state when the 5s timer finishes */
.basket-item-container.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateX(-30px) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
}

/* Base fade-in animation for inline error warning alerts */
.qty-error-msg {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header basket badge animation scale profile */
.animate-basket-bounce {
    animation: basketBounce 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.btn-success-state {
    background-color: #D9A05B !important;
    color: #000000 !important;
    transform: scale(0.92);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}


@keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.animate-shake {
    animation: field-shake 0.4s ease-in-out;
}

/* Smooth transition for the red error glow */
.error-glow {
    border-color: rgba(248, 113, 113, 0.6) !important;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.2);
}