@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary-purple: #5D3EB2;
    --secondary-yellow: #FFD300;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5;
    -webkit-tap-highlight-color: transparent;
}

.getir-purple-bg { background-color: var(--primary-purple); }
.getir-purple-text { color: var(--primary-purple); }
.getir-yellow-bg { background-color: var(--secondary-yellow); }
.text-getir-yellow { color: var(--secondary-yellow); }

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shadow-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Bottom Nav Styling */
.nav-item {
    position: relative;
    padding-bottom: 4px; /* Space for the line */
}

.nav-active-line::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Adjust based on nav height */
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 2px;
}

.nav-center-btn {
    position: absolute;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 10px rgba(93, 62, 178, 0.3);
    border: 4px solid #f5f5f5;
    z-index: 51;
}

.nav-center-inner {
    color: var(--secondary-yellow);
    font-size: 24px;
}

.active-card {
    border: 1px solid var(--primary-purple) !important;
    box-shadow: 0 0 0 1px var(--primary-purple), 0 4px 12px rgba(93, 62, 178, 0.1) !important;
}

/* Quantity Control Styles */
.qty-control {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    z-index: 20;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(93, 62, 178, 0.1);
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-purple);
    font-size: 14px;
    transition: all 0.2s;
    border-radius: 50%;
}

.qty-btn:active {
    background-color: #f3f0ff;
    transform: scale(0.95);
}

.qty-display {
    width: 30px;
    height: 30px;
    background: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 2px;
    box-shadow: 0 2px 4px rgba(93, 62, 178, 0.3);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.add-btn {
    transition: transform 0.1s;
}
.add-btn:active {
    transform: scale(0.98);
}

.nav-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

/* Pull to Refresh Spinner */
#pull-refresh-spinner {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.2s ease-out;
    pointer-events: none;
}

.spinner-icon {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(93, 62, 178, 0.2);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Custom Scrollbar for Desktop (Hidden on mobile) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(93, 62, 178, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(93, 62, 178, 0.4);
}

/* Search Input Enhancement */
.search-input {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.search-input:focus {
    box-shadow: 0 4px 12px rgba(93, 62, 178, 0.15);
    border-color: var(--primary-purple);
    transform: translateY(-1px);
}

/* Cart Animations */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    50% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-5deg); }
    100% { transform: translateX(0); }
}

.cart-shake {
    animation: shake 0.5s ease-in-out;
}

/* Flying Item Animation */
.flying-item {
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
    padding: 5px;
}

/* Heart Pop Animation */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.heart-pop-anim {
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.animate-scale-in {
    animation: scaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}
.rotate-reverse {
    animation: spin-slow 8s linear infinite reverse;
}