/* Root Values */
:root {
    /* Animate CSS */
    --animate-delay: .4s !important;
    /* Primary gradient */
    --primary-gradient: linear-gradient(90deg, #5D5CDE, #8683FF, #5D5CDE, #8683FF);
    
}
/* Preloader styles */
#preloader {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 1;
    visibility: visible;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes preloader-pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

#preloader p {
    animation: preloader-pulse 2s infinite;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 8px;
}
.dark ::-webkit-scrollbar-track {
    background: #2d2d2d;
}
::-webkit-scrollbar-thumb {
    background: rgba(93, 92, 222, 0.5);
    border-radius: 8px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(93, 92, 222, 0.8);
}
.dark ::-webkit-scrollbar-thumb {
    background: rgba(93, 92, 222, 0.5);
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(93, 92, 222, 0.8);
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom transitions */
.custom-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu Nav Links */
.nav-links {
    color: white;
    transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links:hover {
    color: #5D5CDE;
}

/* Food card hover effect */
.food-card, .special-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
.food-card:hover, .special-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(93, 92, 222, 0.2);
}
.food-card:hover {    
    transform: translateY(-4px);
}
.dark .food-card:hover, .dark .special-card:hover {
    border-color: rgba(93, 92, 222, 0.4);
}
.food-card:hover .food-image, .special-card:hover .food-image {
    transform: scale(1.08);
}
.food-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile food card layout */
@media (max-width: 639px) {
    .food-card {
        display: flex;
        flex-direction: row;
        height: auto;
    }

    .food-card .relative.overflow-hidden {
        width: 40%;
        height: 100%;
        min-height: 130px;
    }

    .food-card .p-4 {
        width: 60%;
        padding: 0.75rem;
    }

    .food-card .text-lg {
        font-size: 1rem;
    }

    .food-card p.text-sm {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .food-card .add-to-cart-btn {
        padding: 0.375rem 0.75rem;
    }
}

/* Rating stars */
.rating-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
}
.rating-stars-bg {
    color: #e2e8f0;
}
.dark .rating-stars-bg {
    color: #4b5563;
}
.rating-stars-fg {
    color: #FBBF24;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
}

/* Dietary badges */
.dietary-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Enhanced Button animation */
.buttons {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, background-position;
    backface-visibility: hidden;
    background: var(--primary-gradient) !important;
    background-size: 300% 100% !important;
    background-position: 0% 0% !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px rgba(93, 92, 222, 0.25) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.6s ease !important;
    border-radius: 0.5rem;
}

.buttons:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(93, 92, 222, 0.4) !important;
    background-position: 100% 0% !important;
}

/* Custom Radio Button Styling */
.customization-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #d1d5db;
    border-radius: 100%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.customization-radio:checked {
    border-color: var(--primary-color, #5D5CDE);
    border-width: 5px;
    background-color: white;
}

.dark .customization-radio {
    border-color: #6b7280;
}

.dark .customization-radio:checked {
    border-color: var(--primary-color, #5D5CDE);
    background-color: #1f2937;
}

.customization-radio:focus {
    box-shadow: 0 0 0 3px #5D5CDE4D;
}

/* Custom radio button styling for ratings */
input[type="radio"].rating-filter {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Add special case for smaller add-to-cart buttons in recommendation sections */
#recommendedItems .add-to-cart-btn,
.specials-container .add-to-cart-btn {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8rem !important;
}

/* Category button hover */
.category-btn {
    transition: all 0.2s ease;
}
.category-btn:hover:not(.bg-primary) {
    transform: translateX(2px);
}

/* Button hover effects */
.decrease-quantity-btn, .increase-quantity-btn,
#foodDetailDecreaseBtn, #foodDetailIncreaseBtn {
    transition: all 0.2s ease;
}
.decrease-quantity-btn:hover, .increase-quantity-btn:hover,
#foodDetailDecreaseBtn:hover, #foodDetailIncreaseBtn:hover {
    background-color: #5D5CDE;
    color: white;
    border-color: #5D5CDE;
}

/* Favorite button animation */
.favorite-btn, #foodDetailFavoriteBtn {
    transition: all 0.2s ease;
}
.favorite-btn:hover, #foodDetailFavoriteBtn:hover {
    transform: scale(1.1);
}
.favorite-btn.text-red-500 i, #foodDetailFavoriteBtn .fa-heart.text-red-500 {
    animation: heartbeat 1.2s ease-in-out 1;
}
@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

/* Modal animations */
.modal-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.modal-slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.modal-slide-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(50px); opacity: 0; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes scaleOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.95); opacity: 0; }
}

/* Bounce animation for add to cart */
@keyframes addedToCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.added-to-cart {
    animation: addedToCart 0.5s ease-in-out;
}

/* Modal animations */
.animate__zoomIn {
    animation-duration: 0.4s;
}
.animate__slideInRight {
    animation-duration: 0.3s;
    position: relative;
    transform-origin: right center;
}
.animate__animated.animate__slideInRight {
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    animation-duration: 0.4s !important;
}

/* Fix for modal animations and positioning */
#cartModal .bg-white, 
#favoritesModal .bg-white,
#cartModal .dark\:bg-neutral-800,
#favoritesModal .dark\:bg-neutral-800 {
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Fix potential overflow issues during animations */
#cartModal, #favoritesModal {
    contain: content;
}

/* Card shadow transitions */
.shadow-md, .shadow-lg, .shadow-xl {
    transition: box-shadow 0.3s ease;
}

/* Improved input focus states */
input {
    transition: all 0.3s ease;
}
textarea {
    transition: all 0.3s ease;
    resize: none;
    
}
input:focus, select:focus, textarea:focus {
    border-color: #5D5CDE;
    box-shadow: 0 0 0 3px #5D5CDE33;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Toast styling */
.toast-notification {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

/* Hero section image hover */
.hero-image {
    transition: transform 0.5s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.hero-image:hover {
    transform: rotate(0) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Hero container for no gap */
.hero-image-container {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Wave separator styling */
.wave-container {
    transform: translateY(1px); /* Ensures no gap between sections */
    line-height: 0; /* Remove any spacing */
}

#wave-top .shape-fill {
    fill: #FFFFFF; /* Light mode background color */
}


.dark #wave-top .shape-fill {
    fill: #262626; /* Dark mode background color */
}

.wave-container svg {
    filter: drop-shadow(0px -4px 3px rgba(0, 0, 0, 0.1));
}

#wave-top {
    filter: drop-shadow(0px -4px 3px rgba(0, 0, 0, 0.1));
}

#wave-bottom {
    filter: drop-shadow(0px -4px 3px rgba(255, 255, 255, 0.1));
}

.dark #wave-bottom {
    filter: drop-shadow(0px -4px 3px rgba(0, 0, 0, 0.1));
}

#wave-bottom .shape-fill {
    fill: rgb(245, 245, 245); /* Light mode background color */
}

.dark #wave-bottom .shape-fill {
    fill: #171717; /* Dark mode background color */
}

/* Full-screen hero background */
section.relative {
    position: relative;
    background-position: center;
    background-size: cover;
}

/* Full-height hero section */
.h-screen {
    height: 100vh;
    min-height: 500px; /* Fallback for very small screens */
}

/* Ensure the first content section after hero has proper spacing */
section.h-screen + section {
    margin-top: 0;
}

/* Adjust navigation for full-height hero */
#main-header {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Enhance the scroll effect to be smoother */
#main-header.scrolled {
    background-color: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.dark #main-header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
}

/* Enhanced button styling for hero section */
.btn-primary {
    display: inline-block;
    background-color: #5D5CDE;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #4F4EBE;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Enhanced Menu sorting select */
select {
    appearance: none;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;    
    border: 1px solid #E5E7EB33;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color, #5D5CDE)!important;
    box-shadow: 0 0 0 3px #5D5CDE33;
}

select:hover {
    border-color: #5D5CDE!important;
}

/* Input field styling to match selects */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid;
    transition: all 0.2s;
    outline: none;
    resize: none;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color, #5D5CDE)!important;
    box-shadow: 0 0 0 3px #5D5CDE33;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="date"]:hover,
input[type="tel"]:hover,
textarea:hover {
    border-color: #5D5CDE !important;
}

/* Allergen tags */
.allergen-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

/* Map marker pulse */
@keyframes map-marker-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.map-marker {
    position: relative;
}
.map-marker::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-color: rgba(93, 92, 222, 0.5);
    animation: map-marker-pulse 1.5s linear infinite;
    z-index: -1;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeOutDown {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 20px); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}
.fade-in-up {
    animation: fadeInUp 0.5s ease-in-out;
}
.fade-out-down {
    animation: fadeOutDown 0.5s ease-in-out;
}

/* Modal scroll fix */
.modal-scrollable {
    max-height: 80vh;
    overflow-y: auto;
}

/* Popup modal styles */
.popup {
    max-height: 90vh;
    overflow-y: auto;
}

/* Mobile Menu Styles */
#mobileMenu {
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#mobileMenu nav a {
    display: block;
    transition: all 0.2s ease;
}

#mobileMenu nav a:hover {
    padding-left: 5px;
}

#mobileMenu .close-button {
    transition: all 0.2s ease;
}

#mobileMenu .close-button:hover {
    transform: rotate(90deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Category filter styles */
.category-container {
    position: relative;
    overflow: hidden;
    min-height: 130px; /* Reserve minimum height to prevent shifts */
}

.category-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow-x: hidden;
    contain: paint; /* Optimize rendering */
}

.category-item {
    transition: none;
    padding: 4px; /* Add padding around category items */
    margin-bottom: 4px; /* Add margin at bottom */
    contain: layout style; /* Prevent paint thrashing */
}

.category-btn {
    transition: none;
    padding: 3px; /* Add padding inside buttons */
}

.category-btn .w-20 {
    aspect-ratio: 1 / 1; /* Enforce 1:1 aspect ratio */
    width: 80px;
    height: 80px;
    display: block; /* Ensure consistent block behavior */
    background-color: rgba(93, 92, 222, 0.05); /* Placeholder color before image loads */
    border: 2px solid transparent;
    box-sizing: border-box;
    padding: 2px; /* Add 1px padding to create space between image and border */
    border-radius: 50%; /* Ensure the container itself is rounded */
}

.category-btn .w-20 img {
    border-radius: 50%; /* Ensure the image inside is also rounded */
}

.category-btn.active .w-20 {
    border: 2px solid #5D5CDE;
    box-shadow: 0 0 0 2px rgba(93, 92, 222, 0.3);
}

/* Make "all" category have the same border styling when active */
.category-btn.active[data-category="all"] .w-20 {
    border: 2px solid #5D5CDE;
    box-shadow: 0 0 0 2px rgba(93, 92, 222, 0.3);
}

.category-btn.active span {
    color: #5D5CDE;
    font-weight: 500;
}

.category-btn {
    transition: all 0.3s ease;
    position: relative;
}

/* Utility class to hide scrollbars while allowing scrolling */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Scroll indication for category filter on small screens */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.overflow-x-auto::-webkit-scrollbar {
    display: none;
}

/* Header styles */
#main-header {
    background-color: transparent;
}

#main-header.scrolled {
    background-color: rgba(31, 41, 55, 0.95); /* dark background with transparency */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dark mode scrolled header */
.dark #main-header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
}

/* Update the hero slider styles for smoother transitions */

/* Hero slider styles */
#hero-slider {
    position: relative;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Modified animation that starts slightly zoomed in and continues zooming */
.hero-slide img {
    transform: scale(1.02); /* All images start slightly zoomed */
}

.hero-slide.active img {
    animation: heroZoom 5s ease-out forwards;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.02); /* Start from slightly zoomed state */
    }
    100% {
        transform: scale(1.08); /* End at more zoomed state */
    }
}

/* Override any transitions that might interfere */
#hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease-out; /* Add transition for non-animated state */
}

/* Category navigation styles */
.category-container {
    position: relative;
    overflow: hidden;
    min-height: 130px; /* Reserve minimum height to prevent shifts */
}

.category-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow-x: hidden;
    contain: paint; /* Optimize rendering */
}

.category-item {
    transition: none;
    padding: 4px; /* Add padding around category items */
    margin-bottom: 4px; /* Add margin at bottom */
    contain: layout style; /* Prevent paint thrashing */
}

.category-btn:hover{
    transform: none!important;
}

.category-btn .w-20 {
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1; /* Enforce 1:1 aspect ratio */
    width: 80px;
    height: 80px;
    display: flex; /* Ensure consistent block behavior */
    background-color: rgba(93, 92, 222, 0.05); /* Placeholder color before image loads */
}

.category-btn:hover .w-20 {
    box-shadow: 0 0 0 2px rgba(93, 92, 222, 0.3);
}

/* Circular scroll buttons */
#scroll-left, #scroll-right {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#scroll-left:hover, #scroll-right:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dark #scroll-left, .dark #scroll-right {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Position hero content perfectly centered in the tall hero section */
.hero-content {
    position: absolute;
    transform: translate(0, -15vh);
    width: 100%;
    text-align: center;
    z-index: 20; /* Ensure it's above the background overlay */
}

/* Position the wave container at the absolute bottom */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0; /* Remove any spacing */
    z-index: 10;
}

/* Animation for Popular Choice badge */
@keyframes badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.animate-badge {
  animation: badge-pulse 2s infinite;
  transform-origin: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0), 0 0 0 rgba(34, 197, 94, 0);
  animation-timing-function: ease-in-out;
}

.animate-badge::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: inherit;
  background: rgba(34, 197, 94, 0.4);
  z-index: -1;
  opacity: 0;
}

/* Footer stability improvements for CLS */
footer {
    contain: layout style;
    min-height: 300px; /* Reserve space for footer */
}

/* Stabilize icons in footer to prevent layout shifts */
footer i.fab, 
footer i.fas {
    width: 1.25em;
    text-align: center;
    display: inline-block;
}

footer li.flex i.fas {
    width: 1.5em; /* Slightly wider for list icons */
}

/* Stabilize image containers in popular section */
#popular-container {
    min-height: 280px; /* Reserve space while images load */
}

/* Payment method radio button styles */
.payment-method {
    display: none;
}
.payment-method + label {
    cursor: pointer;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #E5E7EB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.dark .payment-method + label {
    border-color: #374151;
}
.payment-method:checked + label {
    border-color: #5D5CDE;
    background-color: rgba(93, 92, 222, 0.08);
    box-shadow: 0 4px 12px -1px rgba(93, 92, 222, 0.15), 0 2px 8px -1px rgba(93, 92, 222, 0.12);
}
.dark .payment-method:checked + label {
    background-color: rgba(93, 92, 222, 0.15);
    box-shadow: 0 4px 12px -1px rgba(93, 92, 222, 0.2), 0 2px 8px -1px rgba(93, 92, 222, 0.15);
}

.payment-method + label .payment-icon {
    margin-right: 12px;
    font-size: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #F3F4F6;
    color: #4B5563;
    transition: all 0.3s ease;
}

.dark .payment-method + label .payment-icon {
    background-color: #374151;
    color: #D1D5DB;
}

.payment-method:checked + label .payment-icon {
    background-color: #5D5CDE;
    color: white;
    transform: scale(1.05);
}

.payment-method + label .payment-check {
    position: absolute;
    right: 1rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark .payment-method + label .payment-check {
    border-color: #4B5563;
}

.payment-method:checked + label .payment-check {
    background-color: #5D5CDE;
    border-color: #5D5CDE;
}

.payment-method + label .payment-check i {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
    color: white;
}

.payment-method:checked + label .payment-check i {
    opacity: 1;
    transform: scale(1);
}

/* Checkout step indicators */
.checkout-step-indicator {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(93, 92, 222, 0.05);
}

.checkout-step-indicator::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(#5D5CDE, #8683FF);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.checkout-step-indicator.active::before {
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.checkout-step-indicator.completed {
    background-color: #5D5CDE;
    color: white;
    transform: scale(1.05);
}

.checkout-step-indicator.completed i {
    animation: checkmark 0.5s ease forwards;
}

@keyframes checkmark {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(93, 92, 222, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(93, 92, 222, 0); }
    100% { box-shadow: 0 0 0 0 rgba(93, 92, 222, 0); }
}

/* Checkout progress bars */
.checkout-progress {
    transition: width 0.5s ease;
    height: 3px;
    position: relative;
    overflow: hidden;
    background: #E5E7EB;
    border-radius: 4px;
}

.dark .checkout-progress {
    background: #374151;
}

.checkout-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #5D5CDE, #8683FF);
    transform: translateX(-100%);
    animation: none;
    border-radius: 4px;
}

.checkout-progress.active::after {
    animation: progressAnimation 0.8s forwards cubic-bezier(0.34, 1, 0.64, 1);
}

@keyframes progressAnimation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* Input styling for checkout */
.checkout-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background-color: white;
}

.dark .checkout-input {
    border-color: #374151;
    background-color: #1F2937;
    color: #F3F4F6;
}

.checkout-input:focus {
    border-color: #5D5CDE;
    box-shadow: 0 0 0 3px rgba(93, 92, 222, 0.2);
    outline: none;
}

.checkout-input::placeholder {
    color: #9CA3AF;
    opacity: 0.7;
}

.dark .checkout-input::placeholder {
    color: #6B7280;
}

.checkout-form-group {
    margin-bottom: 1.25rem;
}

.checkout-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Credit card input specific styling */
.cc-input-group {
    position: relative;
}

.cc-input-group input {
    padding-left: 2.75rem;
}

.cc-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}

/* Improved credit card details container */
#creditCardDetails {
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1rem;
    background-color: #F9FAFB;
    border: 1px solid #F3F4F6;
    transition: all 0.3s ease;
}

.dark #creditCardDetails {
    background-color: #1F2937;
    border-color: #374151;
}

/* Navigation buttons in checkout */
.checkout-nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.checkout-prev-btn {
    border: 2px solid #E5E7EB;
    color: #6B7280;
}

.dark .checkout-prev-btn {
    border-color: #374151;
    color: #D1D5DB;
}

.checkout-prev-btn:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.dark .checkout-prev-btn:hover {
    background-color: #374151;
    border-color: #4B5563;
}

.checkout-next-btn, .checkout-submit-btn {
    background: linear-gradient(90deg, #5D5CDE, #8683FF);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(93, 92, 222, 0.1), 0 2px 4px -1px rgba(93, 92, 222, 0.06);
}

.checkout-next-btn:hover, .checkout-submit-btn:hover {
    background: linear-gradient(90deg, #5352C4, #7672FF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -1px rgba(93, 92, 222, 0.15), 0 4px 6px -2px rgba(93, 92, 222, 0.1);
}

.checkout-nav-btn i {
    transition: transform 0.3s ease;
}

.checkout-prev-btn:hover i {
    transform: translateX(-4px);
}

.checkout-next-btn:hover i {
    transform: translateX(4px);
}

/* Order review styling */
.review-section {
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: #F9FAFB;
    border: 1px solid #F3F4F6;
    transition: all 0.3s ease;
}

.dark .review-section {
    background-color: #1F2937;
    border-color: #374151;
}

.review-section h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Animated transition between steps */
.checkout-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.checkout-step.hidden {
    opacity: 0;
    transform: translateX(20px);
}

.checkout-step:not(.hidden) {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
