/* ============================================================
   MicroCart v3 — Utilities & Component Layer
   ------------------------------------------------------------
   Complete Tailwind-compatible utility subset used by the views
   (the original stylesheet shipped an incomplete set, which broke
   layout: missing text-*, space-y-*, w-*, py-*, max-w-*,
   aspect-square, top-1/2 ... caused the "distorted" look).

   Also defines the component classes the views reference but that
   were never styled (main-header, nav-link, user-dropdown,
   mobile-menu, flash-* toasts, auth-* cards, admin shell/sidebar)
   — all in the MicroCart v3 design language: Inter, slate palette,
   white cards with slate-200 borders, rounded-2xl, indigo primary.

   Loaded AFTER style.css / admin.css / responsive.css so utilities
   and component fixes win the cascade.
   ============================================================ */

/* ------------------------------------------------------------
   1. Typography utilities
   ------------------------------------------------------------ */
.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; }
.text-6xl  { font-size: 3.75rem; line-height: 1; }
.text-7xl  { font-size: 4.5rem; line-height: 1; }
.text-8xl  { font-size: 6rem; line-height: 1; }
.text-9xl  { font-size: 8rem; line-height: 1; }
.text-\[120px\] { font-size: 120px; line-height: 1; }
.text-\[160px\] { font-size: 160px; line-height: 1; }
.text-\[11px\]  { font-size: 11px; }
.text-\[10px\]  { font-size: 10px; }

.font-thin       { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light      { font-weight: 300; }
.font-extrabold  { font-weight: 800; }
.font-black      { font-weight: 900; }

.tabular-nums { font-variant-numeric: tabular-nums; }
.line-through { text-decoration: line-through; }
.uppercase    { text-transform: uppercase; }
.lowercase    { text-transform: lowercase; }
.capitalize   { text-transform: capitalize; }
.not-italic   { font-style: normal; }

.whitespace-nowrap   { white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.whitespace-normal   { white-space: normal; }
.break-words { overflow-wrap: break-word; word-wrap: break-word; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list-inside  { list-style-position: inside; }
.list-outside { list-style-position: outside; }
.list-disc    { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-none    { list-style-type: none; }

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Line clamp (v3 uses line-clamp-2 on product descriptions) */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------
   2. Sizing utilities
   ------------------------------------------------------------ */
.w-4  { width: 1rem; }    .h-4  { height: 1rem; }
.w-5  { width: 1.25rem; } .h-5  { height: 1.25rem; }
.w-6  { width: 1.5rem; }  .h-6  { height: 1.5rem; }
.w-7  { width: 1.75rem; } .h-7  { height: 1.75rem; }
.w-8  { width: 2rem; }    .h-8  { height: 2rem; }
.w-9  { width: 2.25rem; } .h-9  { height: 2.25rem; }
.w-10 { width: 2.5rem; }  .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }    .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }  .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }    .h-16 { height: 4rem; }
.w-20 { width: 5rem; }    .h-20 { height: 5rem; }
.w-24 { width: 6rem; }    .h-24 { height: 6rem; }
.w-28 { width: 7rem; }    .h-28 { height: 7rem; }
.w-32 { width: 8rem; }    .h-32 { height: 8rem; }
.w-36 { width: 9rem; }    .h-36 { height: 9rem; }
.w-40 { width: 10rem; }   .h-40 { height: 10rem; }
.w-48 { width: 12rem; }   .h-48 { height: 12rem; }
.w-56 { width: 14rem; }   .h-56 { height: 14rem; }
.w-64 { width: 16rem; }   .h-64 { height: 16rem; }
.w-72 { width: 18rem; }   .h-72 { height: 18rem; }
.w-80 { width: 20rem; }   .h-80 { height: 20rem; }
.w-96 { width: 24rem; }   .h-96 { height: 24rem; }
.h-1  { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-0\.5 { height: 0.125rem; }

.w-auto  { width: auto; }    .h-auto  { height: auto; }
.w-full  { width: 100%; }    .h-full  { height: 100%; }
.w-screen { width: 100vw; }  .h-screen { height: 100vh; }
.w-fit   { width: fit-content; }
.min-h-screen { min-height: 100vh; }
.min-h-0 { min-height: 0; }
.min-w-0 { min-width: 0; }
.min-w-\[18px\] { min-width: 18px; }
.min-w-\[20px\] { min-width: 20px; }
.max-w-none { max-width: none; }
.max-w-full { max-width: 100%; }
.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-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[85vw\]   { max-width: 85vw; }
.max-w-\[140px\]  { max-width: 140px; }
.max-w-\[200px\]  { max-width: 200px; }
.max-w-\[160px\]  { max-width: 160px; }
.max-w-prose { max-width: 65ch; }

/* Aspect ratios (v3 product imagery) */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video  { aspect-ratio: 16 / 9; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }

/* ------------------------------------------------------------
   3. Spacing utilities (margins / paddings / gaps)
   ------------------------------------------------------------ */
.m-0  { margin: 0; }        .m-auto { margin: auto; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.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; }
.ml-0\.5 { margin-left: 0.125rem; }
.ml-1  { margin-left: 0.25rem; }
.ml-2  { margin-left: 0.5rem; }
.ml-3  { margin-left: 0.75rem; }
.ml-4  { margin-left: 1rem; }
.ml-auto { margin-left: auto; }
.mr-1  { margin-right: 0.25rem; }
.mr-2  { margin-right: 0.5rem; }
.mr-3  { margin-right: 0.75rem; }
.mr-auto { margin-right: auto; }
.mx-0  { margin-left: 0; margin-right: 0; }
.mx-1  { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2  { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3  { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-4  { margin-left: 1rem; margin-right: 1rem; }
.mx-8  { margin-left: 2rem; margin-right: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-1  { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2  { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4  { margin-top: 1rem; margin-bottom: 1rem; }
.my-6  { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8  { margin-top: 2rem; margin-bottom: 2rem; }
.-mt-16 { margin-top: -4rem; }
.-mt-2  { margin-top: -0.5rem; }
.-mt-1  { margin-top: -0.25rem; }
.-mb-px { margin-bottom: -1px; }

.p-0   { padding: 0; }
.p-1   { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2   { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3   { padding: 0.75rem; }
.p-4   { padding: 1rem; }
.p-5   { padding: 1.25rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }
.px-0\.5 { padding-left: 0.125rem; padding-right: 0.125rem; }
.px-1   { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2   { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3   { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.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-0   { padding-top: 0; padding-bottom: 0; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1   { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2   { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3   { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4   { padding-top: 1rem; padding-bottom: 1rem; }
.py-5   { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6   { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8   { padding-top: 2rem; padding-bottom: 2rem; }
.py-10  { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12  { padding-top: 3rem; padding-bottom: 3rem; }
.py-16  { padding-top: 4rem; padding-bottom: 4rem; }
.py-20  { padding-top: 5rem; padding-bottom: 5rem; }
.py-24  { padding-top: 6rem; padding-bottom: 6rem; }
.py-28  { padding-top: 7rem; padding-bottom: 7rem; }
.py-36  { padding-top: 9rem; padding-bottom: 9rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-0  { padding-top: 0; }
.pt-2  { padding-top: 0.5rem; }
.pt-4  { padding-top: 1rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.pl-2  { padding-left: 0.5rem; }
.pl-3  { padding-left: 0.75rem; }
.pl-4  { padding-left: 1rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-12 { padding-left: 3rem; }
.pr-2  { padding-right: 0.5rem; }
.pr-3  { padding-right: 0.75rem; }
.pr-4  { padding-right: 1rem; }
.pr-10 { padding-right: 2.5rem; }
.pr-12 { padding-right: 3rem; }

.gap-0 { gap: 0; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.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; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* space-y / space-x (margin-based, Tailwind semantics) */
.space-y-0 > * + * { margin-top: 0; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }

/* divide (border between children) */
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; border-color: var(--divide-color, var(--gray-100)); }
.divide-x > * + * { border-left-width: 1px; border-left-style: solid; border-color: var(--divide-color, var(--gray-100)); }
.divide-gray-100 { --divide-color: var(--gray-100); }
.divide-gray-200 { --divide-color: var(--gray-200); }

/* ------------------------------------------------------------
   4. Color utilities (semantic slate + status colors, v3)
   ------------------------------------------------------------ */
.bg-white  { background-color: #fff; }
.bg-black  { background-color: #000; }
.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-400 { background-color: var(--gray-400); }
.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-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/40 { background-color: rgba(255, 255, 255, 0.4); }
.bg-white\/60 { background-color: rgba(255, 255, 255, 0.6); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-gray-50\/60 { background-color: rgba(248, 250, 252, 0.6); }
.bg-gray-50\/50 { background-color: rgba(248, 250, 252, 0.5); }

.bg-red-50  { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.bg-green-50  { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-blue-50  { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-amber-50  { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-600 { background-color: #d97706; }
.bg-violet-100 { background-color: #ede9fe; }
.bg-violet-700 { background-color: #6d28d9; }
.bg-emerald-50  { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-700 { background-color: #047857; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-600 { background-color: #4f46e5; }

.bg-secondary\/10 { background-color: var(--secondary-a10); }
.bg-secondary-dark { background-color: var(--secondary-dark); }

/* brand shade utilities (v3 buttons use primary-600) */
.bg-primary-50  { background-color: var(--primary-50); }
.bg-primary-100 { background-color: var(--primary-100); }
.bg-primary-200 { background-color: var(--primary-200); }
.bg-primary-600 { background-color: var(--primary-600); }
.bg-primary-700 { background-color: var(--primary-700); }
.bg-primary-800 { background-color: var(--primary-800); }
.bg-primary-900 { background-color: var(--primary-900); }
.text-primary-50  { color: var(--primary-50); }
.text-primary-100 { color: var(--primary-100); }
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.border-primary-600 { border-color: var(--primary-600); }

.text-white  { color: #fff; }
.text-black  { color: #000; }
.text-gray-50  { color: var(--gray-50); }
.text-gray-100 { color: var(--gray-100); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.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-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-red-900 { color: #7f1d1d; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }
.text-violet-700 { color: #6d28d9; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-emerald-900 { color: #064e3b; }
.text-indigo-600 { color: #4f46e5; }
.text-secondary-light { color: var(--secondary-light); }

.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }
.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-gray-400 { border-color: var(--gray-400); }
.border-gray-500 { border-color: var(--gray-500); }
.border-gray-600 { border-color: var(--gray-600); }
.border-gray-700 { border-color: var(--gray-700); }
.border-gray-800 { border-color: var(--gray-800); }
.border-red-200 { border-color: #fecaca; }
.border-red-300 { border-color: #fca5a5; }
.border-red-500 { border-color: #ef4444; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-500 { border-color: #22c55e; }
.border-amber-200 { border-color: #fde68a; }
.border-amber-300 { border-color: #fcd34d; }

/* ------------------------------------------------------------
   5. Border / radius / shadow / outline utilities
   ------------------------------------------------------------ */
/* default border color (universal selector loses to any class, so
   .border-primary and friends always win regardless of file order) */
*, ::before, ::after { border-color: var(--gray-200); }

.border-0 { border-width: 0; border-style: solid; }
.border   { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-r-0 { border-right-width: 0; }
.border-t-0 { border-top-width: 0; }
.border-b-0 { border-bottom-width: 0; }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }

.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.rounded-b-lg { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.rounded-l-md { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.rounded-r-md { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
.rounded-l-lg { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); }
.rounded-r-lg { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.rounded-t-xl { border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); }
.rounded-t-2xl { border-top-left-radius: var(--radius-2xl); border-top-right-radius: var(--radius-2xl); }
.rounded-tl-lg { border-top-left-radius: var(--radius-lg); }

.shadow-xs { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-none { box-shadow: none; }
.shadow-secondary\/25 {
    box-shadow: 0 10px 15px -3px var(--secondary-a25), 0 4px 6px -4px var(--secondary-a25);
}

.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.ring-1 { box-shadow: 0 0 0 1px var(--gray-200); }
.ring-2 { box-shadow: 0 0 0 2px var(--primary-a30); }

/* ------------------------------------------------------------
   6. Layout: flex / grid / position / transforms
   ------------------------------------------------------------ */
.block  { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex   { display: flex; }
.inline-flex { display: inline-flex; }
.grid   { display: grid; }
.inline-grid { display: inline-grid; }
.hidden { display: none; }
.contents { display: contents; }

.flex-row    { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col    { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap   { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1  { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink { flex-shrink: 1; }
.flex-grow-0 { flex-grow: 0; }
.flex-grow { flex-grow: 1; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

.justify-start   { justify-content: flex-start; }
.justify-end     { justify-content: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.justify-evenly  { justify-content: space-evenly; }
.align-start { align-items: flex-start; }
.align-end   { align-items: flex-end; }
.align-center { align-items: center; }
.align-baseline { align-items: baseline; }
.align-stretch { align-items: stretch; }
.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }
.self-stretch { align-self: stretch; }

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-full { grid-column: 1 / -1; }
.grid-flow-row { grid-auto-flow: row; }
.auto-rows-min { grid-auto-rows: min-content; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.static   { position: static; }

.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0  { top: 0; }     .bottom-0 { bottom: 0; }
.left-0 { left: 0; }    .right-0  { right: 0; }
.top-1  { top: 0.25rem; } .bottom-1 { bottom: 0.25rem; }
.left-1 { left: 0.25rem; } .right-1 { right: 0.25rem; }
.top-2  { top: 0.5rem; }  .right-2 { right: 0.5rem; }
.top-3  { top: 0.75rem; } .right-3 { right: 0.75rem; }
.left-3 { left: 0.75rem; }
.top-4  { top: 1rem; }    .right-4 { right: 1rem; } .left-4 { left: 1rem; }
.bottom-4 { bottom: 1rem; }
.-top-1 { top: -0.25rem; } .-right-1 { right: -0.25rem; }
.-top-1\.5 { top: -0.375rem; } .-right-1\.5 { right: -0.375rem; }
.-top-4 { top: -1rem; } .-right-4 { right: -1rem; } .-left-4 { left: -1rem; } .-bottom-4 { bottom: -1rem; }
.top-1\/2 { top: 50%; }
.top-full { top: 100%; }
.top-24  { top: 6rem; }
.left-1\/2 { left: 50%; }
.bottom-full { bottom: 100%; }
.z-0   { z-index: 0; }
.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; }
.z-\[60\] { z-index: 60; }
.z-\[100\] { z-index: 100; }
.-z-10 { z-index: -10; }

.transform, .translate-x-0, .translate-x-1\/2, .translate-x-full, .-translate-x-1\/2,
.translate-y-1\/2, .-translate-y-1\/2, .-translate-y-1, .translate-y-3,
.scale-95, .scale-100, .scale-105, .rotate-180 {
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0))
               rotate(var(--tw-rotate, 0))
               scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}
.translate-x-0 { --tw-translate-x: 0; }
.translate-x-1\/2 { --tw-translate-x: 50%; }
.translate-x-full { --tw-translate-x: 100%; }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.translate-y-1\/2 { --tw-translate-y: 50%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
.-translate-y-1 { --tw-translate-y: -0.25rem; }
.translate-y-3 { --tw-translate-y: 0.75rem; }
.scale-95 { --tw-scale-x: .95; --tw-scale-y: .95; }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.rotate-180 { --tw-rotate: 180deg; }

/* overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }
.scroll-smooth { scroll-behavior: smooth; }
.overscroll-contain { overscroll-behavior: contain; }

/* object-fit */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.object-fill { object-fit: fill; }
.object-none { object-fit: none; }
.object-scale-down { object-fit: scale-down; }

/* misc */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.resize { resize: both; }
.resize-none { resize: none; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.box-border { box-sizing: border-box; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.not-sr-only {
    position: static; width: auto; height: auto; padding: 0; margin: 0;
    overflow: visible; clip: auto; white-space: normal;
}
.isolate { isolation: isolate; }

/* filter effects */
.blur-3xl { filter: blur(64px); }
.blur-2xl { filter: blur(40px); }
.blur-xl { filter: blur(24px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-all { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* ------------------------------------------------------------
   7. Interactive state variants
   ------------------------------------------------------------ */
.hover\:bg-gray-50:hover   { background-color: var(--gray-50); }
.hover\:bg-gray-50\/50:hover { background-color: rgba(248, 250, 252, 0.5); }
.hover\:bg-gray-100:hover  { background-color: var(--gray-100); }
.hover\:bg-gray-200:hover  { background-color: var(--gray-200); }
.hover\:bg-red-50:hover    { background-color: #fef2f2; }
.hover\:bg-green-50:hover  { background-color: #f0fdf4; }
.hover\:bg-secondary-dark:hover { background-color: var(--secondary-dark); }
.hover\:bg-primary-700:hover { background-color: var(--primary-700); }
.hover\:bg-primary-800:hover { background-color: var(--primary-800); }
.hover\:text-gray-600:hover { color: var(--gray-600); }
.hover\:text-gray-700:hover { color: var(--gray-700); }
.hover\:text-gray-900:hover { color: var(--gray-900); }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-white:hover   { color: #fff; }
.hover\:text-secondary-light:hover { color: var(--secondary-light); }
.hover\:underline:hover    { text-decoration: underline; }
.hover\:no-underline:hover { text-decoration: none; }
.hover\:border-gray-300:hover { border-color: var(--gray-300); }
.hover\:border-gray-400:hover { border-color: var(--gray-400); }
.hover\:border-white\/40:hover { border-color: rgba(255, 255, 255, 0.4); }
.hover\:shadow-sm:hover { box-shadow: var(--shadow-sm); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(1.05); }

.group:hover .group-hover\:text-primary { color: var(--primary); }
.group:hover .group-hover\:text-white   { color: #fff; }
.group:hover .group-hover\:bg-primary   { background-color: var(--primary); }
.group:hover .group-hover\:scale-105    { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(1.05); }
.group:hover .group-hover\:opacity-100  { opacity: 1; }

.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--primary-a30); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary-a30); }

.placeholder-gray-500::placeholder { color: var(--gray-500); }
.placeholder-gray-400::placeholder { color: var(--gray-400); }

.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ------------------------------------------------------------
   8. Responsive variants (breakpoints mirror responsive.css)
   ------------------------------------------------------------ */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:w-1\/2 { width: 50%; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .sm\:mt-0 { margin-top: 0; }
    .sm\:mb-0 { margin-bottom: 0; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-between { justify-content: space-between; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:p-8 { padding: 2rem; }
    .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .md\:-mt-20 { margin-top: -5rem; }
    .md\:mt-0 { margin-top: 0; }
    .md\:mb-0 { margin-bottom: 0; }
    .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\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-\[160px\] { font-size: 160px; line-height: 1; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:w-auto { width: auto; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:inline-flex { display: inline-flex; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:items-center { align-items: center; }
    .lg\:h-20 { height: 5rem; }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:py-36 { padding-top: 9rem; padding-bottom: 9rem; }
    .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:ml-8 { margin-left: 2rem; }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ------------------------------------------------------------
   9. v3 micro-components
   ------------------------------------------------------------ */

/* Skeleton shimmer loader (v3 product grid placeholder) */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: mc-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-lg);
}
@keyframes mc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Spinner (v3 button loading state) */
.spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mc-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* v3 order status badges */
.badge-paid { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-fulfilled, .badge-completed, .badge-delivered, .badge-shipped { background: #dbeafe; color: #1e40af; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-processing { background: #e0e7ff; color: #3730a3; }

/* v3 product card "Add to Cart" reveal */
.product-card .btn-add { opacity: 0; transition: opacity 0.15s ease; }
.product-card:hover .btn-add { opacity: 1; }
@media (hover: none) and (pointer: coarse) {
    .product-card .btn-add { opacity: 1 !important; }
}

/* v3 toast animation support (flash messages) */
@keyframes mc-toast-in {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes mc-toast-out {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* ------------------------------------------------------------
   10. Storefront shell components (v3 design language)
   ------------------------------------------------------------ */

/* --- Top strip (contact / currency) --- */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 0.8125rem;
}
.top-bar a { color: var(--gray-300); }
.top-bar a:hover { color: #fff; }

/* --- Main header / nav (v3: white, h-14, border-b, sticky) --- */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 40;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 0.25rem 0;
}
.nav-link:hover { color: var(--gray-700); }
.nav-link.active { color: var(--gray-900); font-weight: 600; }

/* --- User dropdown --- */
.user-dropdown {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }

/* --- Mobile slide-over menu --- */
.mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}
.mobile-menu-panel {
    background: #fff;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-panel.open { transform: translateX(0); }
.mobile-nav-link {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--gray-50); color: var(--primary); }

/* --- Flash messages (v3 toast style, top-right) --- */
.flash-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    max-width: 24rem;
    pointer-events: none;
}
.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: auto;
    animation: mc-toast-in 0.3s ease-out;
}
.flash-success { background: var(--success, #059669); }
.flash-error   { background: #dc2626; }
.flash-warning { background: #d97706; }
.flash-info    { background: var(--gray-800); }
.flash-icon { flex-shrink: 0; display: flex; margin-top: 1px; }
.flash-content { flex: 1; min-width: 0; }
.flash-title { margin: 0; font-size: 0.8125rem; font-weight: 700; text-transform: capitalize; }
.flash-text { margin: 0.125rem 0 0; font-size: 0.8125rem; opacity: 0.95; overflow-wrap: break-word; }
.flash-dismiss {
    flex-shrink: 0;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.125rem;
    border-radius: var(--radius-sm);
}
.flash-dismiss:hover { color: #fff; }

/* In-case flash used inline inside narrow containers (checkout) */
main .flash-messages.static, .flash-messages.static {
    position: static;
    width: auto;
    max-width: none;
    margin-bottom: 1rem;
}

/* --- Auth pages (v3 login card) --- */
.auth-layout {
    background: var(--gray-50);
    min-height: 100vh;
}
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    gap: 1.5rem;
}
.auth-card {
    width: 100%;
    max-width: 24rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}
.auth-brand { text-align: center; margin-bottom: 1.25rem; }
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}
.auth-logo-icon { border-radius: var(--radius-lg); }
.auth-logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--gray-900);
}
.auth-footer {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: center;
}

/* --- Social login buttons (v3 white bordered buttons) --- */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.social-btn:hover { background: var(--gray-50); border-color: var(--gray-400); }

/* ------------------------------------------------------------
   11. Admin shell (sidebar layout, v3 aesthetic)
   ------------------------------------------------------------ */
.admin-wrapper {
    min-height: 100vh;
    background: var(--gray-100);
}
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    background: var(--gray-900);
    color: var(--gray-300);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-sidebar.collapsed { transform: translateX(-100%); }
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.sidebar-logo { flex-shrink: 0; border-radius: var(--radius-lg); }
.sidebar-brand-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-close {
    background: none;
    border: 0;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}
.sidebar-close:hover { color: #fff; }
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-link.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar-link svg { flex-shrink: 0; }
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: var(--gray-500);
}
.sidebar-toggle {
    background: none;
    border: 0;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
}
.sidebar-toggle:hover { background: var(--gray-100); color: var(--gray-700); }

/* admin content area offsets the fixed sidebar on desktop */
@media (min-width: 1024px) {
    .admin-sidebar { transform: translateX(0) !important; }
    .admin-sidebar.collapsed { transform: translateX(-100%) !important; }
    .admin-wrapper { margin-left: 16rem; }
    .admin-wrapper.sidebar-collapsed { margin-left: 0; }
    .sidebar-close { display: none; }
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 4rem;
    padding: 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}
.admin-header-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.admin-page-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-header-right { display: flex; align-items: center; gap: 1rem; }
.admin-notifications { position: relative; }
.admin-notification-btn {
    position: relative;
    background: none;
    border: 0;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
}
.admin-notification-btn:hover { background: var(--gray-100); color: var(--gray-700); }
.notification-dot {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    width: 0.5rem;
    height: 0.5rem;
    background: #ef4444;
    border-radius: 9999px;
}
.admin-user-menu { display: flex; align-items: center; gap: 0.625rem; }
.admin-user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.admin-user-name { font-size: 0.8125rem; font-weight: 600; color: var(--gray-900); }
.admin-user-role { font-size: 0.6875rem; color: var(--gray-400); text-transform: capitalize; }
.admin-logout-btn {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.admin-logout-btn:hover { background: #fef2f2; color: #dc2626; }
.admin-content { padding: 1.5rem; max-width: 90rem; }

@media (max-width: 1023.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
}

/* --- Generic page header used by admin views --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.page-title { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin: 0; }
.page-subtitle { font-size: 0.875rem; color: var(--gray-500); margin: 0.25rem 0 0; }
.page-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* --- Product card image frame (v3 h-48 look) --- */
.product-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.product-card .product-image-frame {
    height: 12rem;
    width: 100%;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}
.product-card .product-image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --- Simple prose for CMS pages --- */
.prose { max-width: 65ch; color: var(--gray-700); line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { color: var(--gray-900); font-weight: 700; margin: 1.5em 0 0.5em; line-height: 1.3; }
.prose h1 { font-size: 1.875rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { max-width: 100%; border-radius: var(--radius-xl); }
.prose blockquote { border-left: 3px solid var(--primary-a30); padding-left: 1em; margin: 0 0 1em; color: var(--gray-500); font-style: italic; }
.prose code { background: var(--gray-100); padding: 0.125em 0.375em; border-radius: var(--radius-sm); font-size: 0.875em; }
.prose pre { background: var(--gray-900); color: var(--gray-100); padding: 1em; border-radius: var(--radius-lg); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }

/* ------------------------------------------------------------
   12. Remaining pseudo-variants & view helpers
   ------------------------------------------------------------ */
.first\:pt-0:first-child { padding-top: 0; }
.last\:pb-0:last-child { padding-bottom: 0; }
.last\:border-0:last-child { border-width: 0; }

/* :has() checked variants (payment method cards on checkout) */
.has-\[:checked\]\:border-primary:has(:checked) { border-color: var(--primary); }
.has-\[:checked\]\:bg-primary\/5:has(:checked) { background-color: var(--primary-a5); }

/* admin table checkboxes follow the brand color */
input[type="checkbox"].bulk-checkbox,
input[type="checkbox"].order-checkbox,
input[type="checkbox"].product-checkbox {
    accent-color: var(--primary);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

/* checkout stepper connector line */
.checkout-step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    border-radius: 9999px;
    min-width: 2rem;
}
.checkout-step-line.active { background: var(--primary); }
.checkout-panel { animation: mc-fade-in 0.25s ease-out; }
@keyframes mc-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* pagination wrapper (admin contacts) */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* admin order status dropdown block */
.order-status-dropdown { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* two-column admin edit forms (main + sidebar) */
.page-form-grid, .product-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .page-form-grid, .product-form-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
}

/* upload form (plugin install) */
.upload-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ============================================================
   VISIBLE CHECKBOXES & RADIOS (bug fix)
   ------------------------------------------------------------
   vendor.css strips the native appearance from EVERY checkbox
   and radio (border:none; background:transparent), which left
   bare inputs - the terms checkbox, the payment-method radios,
   "remember me", admin bulk-select boxes - completely invisible.
   Restore the native widget here with a brand-tinted accent
   colour. Custom switch components (.toggle, .switch, .checkbox,
   .radio wrappers) keep their own hand-built styling.
   ============================================================ */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: auto;
    appearance: auto;
    accent-color: var(--primary);
    border: initial;
    background: initial;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Custom-styled switch/check components opt out of the native look */
.toggle input[type="checkbox"],
.switch input[type="checkbox"],
.checkbox input[type="checkbox"],
.radio input[type="radio"],
input[type="checkbox"].toggle-input,
input[type="checkbox"].switch-input {
    -webkit-appearance: none;
    appearance: none;
}

/* Bulk-select checkboxes in admin tables: slightly larger hit target */
.bulk-checkbox {
    width: 1.05rem;
    height: 1.05rem;
}
