/*! Aarogya Mart - Complete Tailwind CSS Replacement */
/*! This file provides all necessary styles for 100% CDN independence */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    /* SMOOTH SCROLLING - Works on Android, iOS, Windows, Mac */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* PERFORMANCE ENHANCEMENTS */
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
}

/* Selection color branding */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: inherit;
}

/* ===== COLOR VARIABLES ===== */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* ===== POSITIONING ===== */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    inset: 0;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.bottom-16 {
    bottom: 4rem;
}

.bottom-20 {
    bottom: 5rem;
}

.bottom-40 {
    bottom: 10rem;
}

.left-0 {
    left: 0;
}

.left-4 {
    left: 1rem;
}

.right-4 {
    right: 1rem;
}

.top-1 {
    top: 0.25rem;
}

.right-1 {
    right: 0.25rem;
}

.top-2 {
    top: 0.5rem;
}

.right-2 {
    right: 0.5rem;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.bottom-4 {
    bottom: 1rem;
}

.left-4 {
    left: 1rem;
}

.-top-1 {
    top: -0.25rem;
}

.-right-1 {
    right: -0.25rem;
}

.-top-2 {
    top: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* ===== SPACING - PADDING ===== */
.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

/* ===== SPACING - MARGIN ===== */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: 0.25rem;
}

.m-2 {
    margin: 0.5rem;
}

.m-4 {
    margin: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-20 {
    margin-top: 5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.-ml-1 {
    margin-left: -0.25rem;
}

.-mt-1 {
    margin-top: -0.25rem;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

/* ===== SIZING ===== */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

.w-48 {
    width: 12rem;
}

.w-56 {
    width: 14rem;
}

.w-64 {
    width: 16rem;
}

.w-full {
    width: 100%;
}

.w-screen {
    width: 100vw;
}

.min-w-0 {
    min-width: 0;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-full {
    max-width: 100%;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-7 {
    height: 1.75rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-24 {
    height: 6rem;
}

.h-32 {
    height: 8rem;
}

.h-40 {
    height: 10rem;
}

.h-48 {
    height: 12rem;
}

.h-64 {
    height: 16rem;
}

.h-80 {
    height: 20rem;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.max-h-60 {
    max-height: 15rem;
}

.max-h-80 {
    max-height: 20rem;
}

.max-h-96 {
    max-height: 24rem;
}

.max-h-\[90vh\] {
    max-height: 90vh;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* ===== TYPOGRAPHY ===== */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.break-words {
    overflow-wrap: break-word;
}

/* ===== TEXT COLORS ===== */
.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-transparent {
    color: transparent;
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-emerald-500 {
    color: var(--emerald-500);
}

.text-emerald-600 {
    color: var(--emerald-600);
}

.text-emerald-700 {
    color: var(--emerald-700);
}

.text-emerald-800 {
    color: var(--emerald-800);
}

.text-red-500 {
    color: var(--red-500);
}

.text-red-600 {
    color: var(--red-600);
}

.text-blue-500 {
    color: var(--blue-500);
}

.text-blue-600 {
    color: var(--blue-600);
}

.text-orange-500 {
    color: var(--orange-500);
}

.text-orange-600 {
    color: var(--orange-600);
}

.text-yellow-500 {
    color: var(--yellow-500);
}

/* ===== BACKGROUND COLORS ===== */
.bg-white {
    background-color: #ffffff;
}

.bg-black {
    background-color: #000000;
}

.bg-transparent {
    background-color: transparent;
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-200 {
    background-color: var(--gray-200);
}

.bg-gray-300 {
    background-color: var(--gray-300);
}

.bg-gray-500 {
    background-color: var(--gray-500);
}

.bg-gray-600 {
    background-color: var(--gray-600);
}

.bg-gray-700 {
    background-color: var(--gray-700);
}

.bg-gray-800 {
    background-color: var(--gray-800);
}

.bg-gray-900 {
    background-color: var(--gray-900);
}

.bg-emerald-50 {
    background-color: var(--emerald-50);
}

.bg-emerald-100 {
    background-color: var(--emerald-100);
}

.bg-emerald-200 {
    background-color: var(--emerald-200);
}

.bg-emerald-500 {
    background-color: var(--emerald-500);
}

.bg-emerald-600 {
    background-color: var(--emerald-600);
}

.bg-emerald-700 {
    background-color: var(--emerald-700);
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-red-500 {
    background-color: var(--red-500);
}

.bg-red-600 {
    background-color: var(--red-600);
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-500 {
    background-color: var(--blue-500);
}

.bg-blue-600 {
    background-color: var(--blue-600);
}

.bg-orange-50 {
    background-color: #fff7ed;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-orange-500 {
    background-color: var(--orange-500);
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.bg-yellow-100 {
    background-color: #fef9c3;
}

.bg-yellow-400 {
    background-color: var(--yellow-400);
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-emerald-50 {
    --tw-gradient-from: var(--emerald-50);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.from-emerald-600 {
    --tw-gradient-from: var(--emerald-600);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-emerald-100 {
    --tw-gradient-to: var(--emerald-100);
}

.to-emerald-700 {
    --tw-gradient-to: var(--emerald-700);
}

.bg-black\/50 {
    background-color: rgb(0 0 0 / 0.5);
}

.bg-black\/60 {
    background-color: rgb(0 0 0 / 0.6);
}

.bg-white\/90 {
    background-color: rgb(255 255 255 / 0.9);
}

/* ===== BORDERS ===== */
.border {
    border-width: 1px;
}

.border-0 {
    border-width: 0;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-l {
    border-left-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-solid {
    border-style: solid;
}

.border-dashed {
    border-style: dashed;
}

.border-none {
    border-style: none;
}

.border-transparent {
    border-color: transparent;
}

.border-gray-100 {
    border-color: var(--gray-100);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-300 {
    border-color: var(--gray-300);
}

.border-emerald-200 {
    border-color: var(--emerald-200);
}

.border-emerald-500 {
    border-color: var(--emerald-500);
}

.border-emerald-600 {
    border-color: var(--emerald-600);
}

.border-red-300 {
    border-color: #fca5a5;
}

.border-blue-300 {
    border-color: #93c5fd;
}

.border-yellow-300 {
    border-color: #fde047;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-t-xl {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.rounded-b-xl {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* ===== SHADOWS ===== */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.shadow-none {
    box-shadow: none;
}

.ring-1 {
    box-shadow: 0 0 0 1px var(--tw-ring-color, rgb(59 130 246 / 0.5));
}

.ring-2 {
    box-shadow: 0 0 0 2px var(--tw-ring-color, rgb(59 130 246 / 0.5));
}

.ring-emerald-500 {
    --tw-ring-color: var(--emerald-500);
}

/* ===== EFFECTS ===== */
.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* ===== TRANSFORMS ===== */
.transform {
    transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

.scale-95 {
    --tw-scale-x: 0.95;
    --tw-scale-y: 0.95;
    transform: scale(0.95);
}

.scale-100 {
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: scale(1);
}

.scale-105 {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: scale(1.05);
}

.scale-110 {
    --tw-scale-x: 1.1;
    --tw-scale-y: 1.1;
    transform: scale(1.1);
}

.-translate-y-1 {
    --tw-translate-y: -0.25rem;
    transform: translateY(-0.25rem);
}

.translate-y-0 {
    --tw-translate-y: 0;
    transform: translateY(0);
}

.translate-y-4 {
    --tw-translate-y: 1rem;
    transform: translateY(1rem);
}

.rotate-180 {
    --tw-rotate: 180deg;
    transform: rotate(180deg);
}

/* ===== TRANSITIONS ===== */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-150 {
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* ===== DISPLAY & VISIBILITY ===== */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline {
    display: inline;
}

.hidden {
    display: none;
}

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-y-scroll {
    overflow-y: scroll;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

/* ===== INTERACTIVITY ===== */
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.select-none {
    user-select: none;
}

.pointer-events-none {
    pointer-events: none;
}

.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--tw-ring-color, rgb(59 130 246 / 0.5));
}

.focus\:ring-emerald-500:focus {
    --tw-ring-color: var(--emerald-500);
}

.focus\:border-emerald-500:focus {
    border-color: var(--emerald-500);
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

/* ===== OBJECT FIT ===== */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.object-center {
    object-position: center;
}

/* ===== HOVER STATES ===== */
.hover\:bg-gray-50:hover {
    background-color: var(--gray-50);
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-emerald-50:hover {
    background-color: var(--emerald-50);
}

.hover\:bg-emerald-600:hover {
    background-color: var(--emerald-600);
}

.hover\:bg-emerald-700:hover {
    background-color: var(--emerald-700);
}

.hover\:bg-emerald-800:hover {
    background-color: var(--emerald-800);
}

.hover\:bg-red-600:hover {
    background-color: var(--red-600);
}

.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.hover\:text-emerald-600:hover {
    color: var(--emerald-600);
}

.hover\:text-emerald-700:hover {
    color: var(--emerald-700);
}

.hover\:text-gray-700:hover {
    color: var(--gray-700);
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:border-emerald-500:hover {
    border-color: var(--emerald-500);
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

/* ===== GROUP HOVER ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:text-emerald-600 {
    color: var(--emerald-600);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* ===== SKELETON LOADER ===== */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== RESPONSIVE - SM (640px+) ===== */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

/* ===== RESPONSIVE - MD (768px+) ===== */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:inline {
        display: inline;
    }

    .md\:hidden {
        display: none;
    }

    .md\:block {
        display: block;
    }

    .md\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:p-6 {
        padding: 1.5rem;
    }

    .md\:p-8 {
        padding: 2rem;
    }

    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .md\:py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .md\:gap-6 {
        gap: 1.5rem;
    }

    .md\:gap-8 {
        gap: 2rem;
    }

    .md\:w-48 {
        width: 12rem;
    }

    .md\:w-64 {
        width: 16rem;
    }

    .md\:h-48 {
        height: 12rem;
    }

    .md\:h-64 {
        height: 16rem;
    }

    .md\:mt-0 {
        margin-top: 0;
    }
}

/* ===== RESPONSIVE - LG (1024px+) ===== */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .lg\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .lg\:p-8 {
        padding: 2rem;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:gap-8 {
        gap: 2rem;
    }

    .lg\:w-80 {
        width: 20rem;
    }

    .lg\:h-80 {
        height: 20rem;
    }
}

/* ===== RESPONSIVE - XL (1280px+) ===== */
@media (min-width: 1280px) {
    .xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ===== PRINT ===== */
@media print {
    .print\:hidden {
        display: none;
    }
}

/* ===== CUSTOM COMPONENT STYLES ===== */

/* Product Card - Premium Mobile Design */
.product-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Product Card Image */
.product-card .h-48 {
    position: relative;
}

.product-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.08);
}

/* ADD TO CART BUTTON - PROFESSIONAL STYLE */
.product-card button[onclick*="addToCart"]:not([disabled]) {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    color: white;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card button[onclick*="addToCart"]:not([disabled]):hover {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

.product-card button[onclick*="addToCart"]:not([disabled]):active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.product-card button[onclick*="addToCart"] i {
    font-size: 1.375rem;
    font-weight: 700;
}

/* Quantity Stepper - Professional Style */
.product-card .flex.items-center.bg-emerald-50 {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid var(--emerald-200);
    border-radius: 0.875rem;
    padding: 0.25rem;
    gap: 0.125rem;
}

.product-card button[onclick*="removeFromCart"] {
    background: transparent;
    color: var(--emerald-600);
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-card button[onclick*="removeFromCart"]:hover {
    background: var(--emerald-100);
}

.product-card button[onclick*="removeFromCart"]:active {
    transform: scale(0.9);
}

/* Plus button in quantity stepper */
.product-card .flex.items-center.bg-emerald-50 button[onclick*="addToCart"] {
    background: var(--emerald-600);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    box-shadow: none;
}

.product-card .flex.items-center.bg-emerald-50 button[onclick*="addToCart"]:hover {
    background: var(--emerald-700);
    transform: scale(1.05);
    box-shadow: none;
}

/* Out of Stock Button */
.product-card button[disabled] {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
}


/* ===== MOBILE-FIRST PROFESSIONAL UI ===== */

/* --- BOTTOM NAVIGATION BAR (FULL WIDTH, LARGE BUTTONS) --- */
nav.fixed.bottom-0 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
}

nav.fixed.bottom-0 .container {
    max-width: 100%;
    padding: 0;
}

nav.fixed.bottom-0 .container>div {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0.75rem;
}

/* LARGE, FULL-WIDTH NAV BUTTONS */
.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.875rem 0.5rem;
    border-radius: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    cursor: pointer;
    min-height: 72px;
    position: relative;
}

/* Large icons for visibility */
.nav-btn i {
    font-size: 1.75rem !important;
    line-height: 1;
    transition: all 0.25s ease;
}

/* Readable labels */
.nav-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
}

/* ACTIVE STATE - Prominent highlight */
.nav-btn.active,
.nav-btn.text-emerald-600,
.nav-btn[data-view="home"].text-emerald-600 {
    background: linear-gradient(135deg, var(--emerald-50) 0%, #d1fae5 100%);
    color: var(--emerald-600) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.nav-btn.active i,
.nav-btn.text-emerald-600 i,
.nav-btn[data-view="home"].text-emerald-600 i {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(16, 185, 129, 0.4));
    color: var(--emerald-600);
}

.nav-btn.active span,
.nav-btn.text-emerald-600 span {
    color: var(--emerald-700);
    font-weight: 700;
}

/* Inactive state */
.nav-btn.text-gray-400 {
    color: #64748b !important;
}

.nav-btn.text-gray-400 i {
    color: #94a3b8;
}

.nav-btn.text-gray-400 span {
    color: #64748b;
}

/* Hover effect */
.nav-btn:hover {
    background: rgba(16, 185, 129, 0.08);
}

/* Tap/Press effect - responsive feedback */
.nav-btn:active {
    transform: scale(0.96);
    background: rgba(16, 185, 129, 0.15);
}

/* Cart badge in bottom nav - LARGER & PROMINENT */
#cartNavBadge {
    position: absolute;
    top: 0.375rem;
    right: calc(50% - 1.25rem);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.5);
    animation: pulse-badge 2s infinite;
    font-size: 0.7rem;
    min-width: 1.375rem;
    height: 1.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    color: white;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.5);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 14px rgba(239, 68, 68, 0.65);
    }
}


/* --- SEARCH BAR (FIXED ICON POSITIONING) --- */
.search-container {
    background: white;
    position: sticky;
    top: 4rem;
    z-index: 30;
}

.search-container .relative {
    position: relative;
    display: block;
}

/* Search Icon - Properly Positioned */
.search-container .ri-search-line {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #64748b;
    z-index: 1;
    pointer-events: none;
    transition: color 0.2s ease;
}

/* Search Input */
.search-input {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-size: 1rem;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    transition: all 0.25s ease;
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-input:focus {
    background: #ffffff;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-input:focus+.ri-search-line,
.search-container:has(.search-input:focus) .ri-search-line {
    color: var(--emerald-600);
}


/* --- HEADER CART BUTTON (FROSTED GLASS) --- */
#cartBtn {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem 0.625rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cartBtn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

#cartBtn:active {
    transform: scale(0.95);
}

#cartBtn i {
    font-size: 1.375rem;
    color: white;
}

#cartBadge {
    background: #ef4444;
    font-size: 0.625rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--emerald-600);
}

/* --- LOGIN/SIGNUP BUTTONS IN HEADER (POLISHED) --- */
#headerUserSection button,
#headerUserSection a {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

#headerUserSection button:hover,
#headerUserSection a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#headerUserSection button:active,
#headerUserSection a:active {
    transform: scale(0.98);
}

/* --- MODAL STYLING (PROFESSIONAL LOGIN/SIGNUP FORMS) --- */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal Container */
.modal-backdrop>div {
    animation: modal-enter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    border-radius: 1.5rem;
    overflow: hidden;
}

@keyframes modal-enter {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.modal-backdrop h2,
.modal-backdrop h3 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.modal-backdrop p {
    color: #64748b;
}

/* Form Labels */
.modal-backdrop label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    display: block;
}

/* Form Inputs - Premium Style */
.modal-backdrop input[type="text"],
.modal-backdrop input[type="tel"],
.modal-backdrop input[type="password"],
.modal-backdrop input[type="number"],
.modal-backdrop textarea,
.modal-backdrop select {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.modal-backdrop input:focus,
.modal-backdrop textarea:focus,
.modal-backdrop select:focus {
    background: #ffffff;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.modal-backdrop input::placeholder,
.modal-backdrop textarea::placeholder {
    color: #94a3b8;
}

/* Submit Buttons - Gradient Style */
.modal-backdrop button[type="submit"] {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    color: white;
    border: none;
    border-radius: 0.875rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-backdrop button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.modal-backdrop button[type="submit"]:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Close Button - Clean Circle */
.modal-backdrop button:has(.ri-close-line) {
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop button:has(.ri-close-line):hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.modal-backdrop button:has(.ri-close-line) i {
    font-size: 1.25rem;
    color: #64748b;
}

/* ADMIN ACCESS SECTION - Professional Style */
#showAdminLogin,
button[onclick*="showAdminLogin"],
.admin-access-btn {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

#showAdminLogin:hover,
button[onclick*="showAdminLogin"]:hover,
.admin-access-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.4);
}

#showAdminLogin i,
.admin-access-btn i {
    font-size: 1rem;
}

/* Admin Login Modal - Special Styling */
#adminLoginModal .modal-backdrop>div,
[id*="admin"] .modal-backdrop>div {
    border: 2px solid rgba(71, 85, 105, 0.2);
}

/* Switch between Login/Signup - Link Style */
.modal-backdrop a,
.modal-backdrop button[onclick*="switch"],
.modal-backdrop span[onclick] {
    color: var(--emerald-600);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-backdrop a:hover,
.modal-backdrop button[onclick*="switch"]:hover,
.modal-backdrop span[onclick]:hover {
    color: var(--emerald-700);
    text-decoration: underline;
}

/* Form Divider */
.modal-backdrop hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

/* Error/Success Messages */
.modal-backdrop .error,
.modal-backdrop .text-red-500 {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-backdrop .success,
.modal-backdrop .text-green-500 {
    color: var(--emerald-600);
    font-size: 0.875rem;
    font-weight: 500;
}


/* --- FLOATING CART BAR --- */
#cartBar {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    box-shadow: 0 -4px 20px rgba(5, 150, 105, 0.3);
    border-radius: 1.25rem 1.25rem 0 0;
}

#cartBar button {
    background: white;
    color: var(--emerald-700);
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

#cartBar button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- CATEGORY PILLS --- */
.category-pill {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.category-pill:hover {
    border-color: var(--emerald-400);
    color: var(--emerald-700);
    transform: translateY(-2px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    color: white;
    border-color: var(--emerald-600);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* --- PHONE CALL FLOATING BUTTON --- */
a.fixed.bottom-40 {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

a.fixed.bottom-40:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Hide scrollbar for horizontal scroll areas */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== FLOATING CHECKOUT BAR ===== */
#cartBar {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    border: none !important;
}

#cartBar p {
    color: white !important;
}

#cartBar .text-sm,
#cartBar .text-gray-600 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
}

#cartBar .text-xl,
#cartBar .text-gray-900 {
    color: white !important;
    font-size: 1.5rem !important;
}

#cartBar #cartTotalItems {
    color: white !important;
    font-weight: 700 !important;
}

#cartBar .bg-emerald-500 {
    background: white !important;
}

#cartBar .bg-emerald-500 i {
    color: #059669 !important;
}

#checkoutBtn {
    background: white !important;
    color: #059669 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#checkoutBtn:hover {
    background: #f0fdf4 !important;
    transform: scale(1.02);
}

/* Bounce animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== PROFESSIONAL CHECKOUT MODAL (MOBILE + DESKTOP) ===== */

/* Modal Backdrop */
#checkoutModal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Container - MOBILE FIRST (Bottom Sheet) */
#checkoutModal>div {
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    animation: slide-up-checkout 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-up-checkout {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Container - DESKTOP (Centered Card) */
@media (min-width: 768px) {
    #checkoutModal>div {
        border-radius: 1.5rem;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
        max-height: 88vh;
        max-width: 480px;
        width: 95%;
        padding: 1.75rem;
        animation: pop-in-checkout 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes pop-in-checkout {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(20px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}

/* Checkout Header - Sticky */
#checkoutModal>div>.flex:first-child {
    position: sticky;
    top: -1.25rem;
    background: white;
    margin: -1.25rem -1.25rem 1rem -1.25rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    z-index: 10;
}

@media (min-width: 768px) {
    #checkoutModal>div>.flex:first-child {
        top: -1.75rem;
        margin: -1.75rem -1.75rem 1.25rem -1.75rem;
        padding: 1.25rem 1.75rem;
    }
}

/* Checkout Title */
#checkoutModal h2 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#checkoutModal h2::before {
    content: "🛒";
    font-size: 1.25rem;
}

/* Close Button */
#closeModal {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

#closeModal:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* Order Summary Box */
#checkoutModal .bg-gray-50 {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

#checkoutModal .bg-gray-50 h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.875rem;
}

/* Cart Item Cards */
#cartSummary {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.25rem;
}

#cartSummary>div {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.625rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

#cartSummary>div:last-child {
    margin-bottom: 0;
}

#cartSummary>div:hover {
    border-color: var(--emerald-300);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* Cart Item Image */
#cartSummary img {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 0.5rem;
    border: 1px solid #f1f5f9;
    object-fit: cover;
}

/* Cart Item Name */
#cartSummary h4 {
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Cart Item Price */
#cartSummary .text-emerald-600 {
    font-size: 0.75rem;
}

/* Total Row */
#checkoutModal .border-t {
    border-color: #e2e8f0;
    padding-top: 0.875rem;
    margin-top: 0.875rem;
}

#modalTotalPrice {
    font-size: 1.625rem;
    font-weight: 800;
}

/* Quantity Controls in Checkout */
#cartSummary .border-gray-200 {
    background: #f8fafc;
    border-radius: 0.5rem;
}

#cartSummary button {
    transition: all 0.2s ease;
}

#cartSummary button:hover {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

/* Checkout Item Cards - Clean Design */
.checkout-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.checkout-item:last-child {
    margin-bottom: 0;
}

.checkout-item:hover {
    border-color: var(--emerald-300);
}

/* Quantity +/- Buttons - Professional */
.qty-controls {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    overflow: hidden;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
}

.qty-btn:hover {
    background: var(--emerald-100);
    color: var(--emerald-600);
}

.qty-btn:active {
    transform: scale(0.9);
    background: var(--emerald-200);
}

/* Form Fields - Better Lengths */
#checkoutForm input[type="text"],
#checkoutForm input[type="tel"],
#checkoutForm textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

#checkoutForm input:focus,
#checkoutForm textarea:focus {
    background: white;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

#checkoutForm textarea {
    min-height: 80px;
    resize: vertical;
}

/* Form Labels */
#checkoutForm label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    display: block;
}

/* Desktop Form Spacing */
@media (min-width: 768px) {

    #checkoutForm input[type="text"],
    #checkoutForm input[type="tel"] {
        padding: 1rem 1.25rem;
    }

    #checkoutForm textarea {
        min-height: 100px;
    }

    #checkoutFormDetails {
        gap: 1.25rem;
    }
}

/* Delete Button */
#cartSummary .text-red-400 {
    opacity: 0.6;
    transition: all 0.2s ease;
}

#cartSummary>div:hover .text-red-400 {
    opacity: 1;
}

/* Total Price Row */
#checkoutModal .border-t {
    border-color: #e2e8f0;
}

#modalTotalPrice {
    font-size: 1.5rem;
}

/* Payment Method Radio Buttons - Premium Style */
#label-cod,
#label-upi {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#label-cod:hover,
#label-upi:hover {
    border-color: var(--emerald-300);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

#label-cod.border-emerald-500,
#label-upi.border-emerald-500 {
    border-color: var(--emerald-500);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

#label-cod span,
#label-upi span {
    font-weight: 600;
    color: #374151;
}

/* Payment Icons */
#label-cod::before {
    content: "💵";
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

#label-upi::before {
    content: "📱";
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* Radio Button Style */
#label-cod input[type="radio"],
#label-upi input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--emerald-600);
}

/* UPI Payment Step */
#upiPaymentStep {
    animation: slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#upiPaymentStep .bg-emerald-50 {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--emerald-200);
}

#upiPaymentStep img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* UPI Pay Button */
#upiPayBtn {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    border-radius: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#upiPayBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

/* Main Submit Button */
#submitBtn {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#submitBtn:hover {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
}

#submitBtn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Back Button */
#backToFormBtn {
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

#backToFormBtn:hover {
    background: #f1f5f9;
    color: var(--emerald-600);
}

/* Success Modal */
#successModal>div {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modal-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#successModal .bg-emerald-100 {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== SENIOR DEVELOPER POLISH ===== */

/* Image Lazy Load Fade-in Effect */
img {
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}

/* Header Enhanced Backdrop */
header {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Page and Hero - NO ANIMATION (prevents perceived double reload) */
/* Animations removed to fix flickering when Firebase data updates */


/* Product Grid - NO ANIMATION (prevents flicker on re-render) */
/* Animation removed to fix flickering when cart updates */
#productsGrid>div {
    opacity: 1;
    transform: none;
}


/* Professional Loading Spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Input Autofill Styling - Removes ugly yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
    -webkit-text-fill-color: #1e293b;
    transition: background-color 5000s ease-in-out 0s;
}

/* Button Press Feedback - Universal */
button:not(:disabled):active,
a:active {
    transform: scale(0.98);
}

/* Link Hover Underline Animation */
.hover\:underline:hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Toast/Alert Animation */
.toast-enter {
    animation: toast-slide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toast-slide {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple Effect for Buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.ripple:active::after {
    transform: scale(2);
}

/* Profile Avatar Hover */
.w-16.h-16.bg-emerald-600:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Floating Action Button Pulse */
a.fixed.bottom-40 {
    animation: fab-pulse 3s ease-in-out infinite;
}

@keyframes fab-pulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 12px 32px rgba(16, 185, 129, 0.6);
    }
}

/* Category Filter Smooth Scroll */
#categoryFilter {
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}

#categoryFilter>* {
    scroll-snap-align: start;
}

/* Empty State Animation */
#noResults {
    animation: empty-state 0.5s ease-out;
}

@keyframes empty-state {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Print Styles Enhancement */
@media print {

    nav.fixed.bottom-0,
    .fixed.bottom-40,
    #cartBar,
    button {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}

/* ===== MOBILE COMPACT HEADER ===== */
@media (max-width: 768px) {

    /* Thinner green header bar */
    header.bg-emerald-600 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    header.bg-emerald-600 .container {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    /* Smaller logo text */
    header h1 {
        font-size: 1.25rem !important;
    }

    header h1 i {
        font-size: 1.25rem !important;
    }

    /* Compact login/signup buttons */
    #headerUserSection button,
    #headerUserSection a {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.5rem !important;
    }

    /* Smaller cart icon */
    #cartBtn i {
        font-size: 1.5rem !important;
    }

    /* Reduce gap between elements */
    header .flex.items-center.gap-3 {
        gap: 0.5rem !important;
    }

    /* Compact search bar */
    .search-container {
        top: 3rem !important;
    }

    .search-container .py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .search-input {
        padding: 0.625rem 0.75rem 0.625rem 2.25rem !important;
        font-size: 0.875rem !important;
    }

    /* Adjust category sticky position */
    .sticky.top-32 {
        top: 6rem !important;
    }
}