Spaces:
Running
Running
| /* E-Commerce Store — Premium UI */ | |
| /* Design tokens from design-skill.md */ | |
| :root { | |
| --brand-gray-400: #adb5bd; | |
| --brand-gray-500: #6c757d; | |
| --brand-primary: #2a2a3d; | |
| --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| --font-heading: 'Playfair Display', Georgia, serif; | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| font-family: var(--font-body); | |
| font-size: 16px; | |
| line-height: 1.7; | |
| color: #212529; | |
| background: #fff; | |
| margin: 0; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| .font-heading { font-family: var(--font-heading); } | |
| h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; } | |
| h1 { font-size: 2rem; } | |
| h2 { font-size: 1.5rem; } | |
| h3 { font-size: 1.25rem; } | |
| a { color: var(--brand-primary); text-decoration: none; transition: color 0.2s; } | |
| a:hover { color: #5a6a78; } | |
| /* Buttons */ | |
| .btn { | |
| display: inline-flex; align-items: center; justify-content: center; | |
| padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem; | |
| font-weight: 600; line-height: 1.5; cursor: pointer; | |
| transition: all 0.2s; border: 1px solid transparent; | |
| text-decoration: none; | |
| } | |
| .btn:active { transform: scale(0.95); } | |
| .btn-primary { | |
| background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); | |
| } | |
| .btn-primary:hover { background: #1e1e2e; border-color: #1e1e2e; color: #fff; } | |
| .btn-primary:focus { outline: none; box-shadow: 0 0 0 3px rgba(42,42,61,0.3); } | |
| .btn-outline-secondary { | |
| background: transparent; color: var(--brand-gray-500); | |
| border-color: var(--brand-gray-500); | |
| } | |
| .btn-outline-secondary:hover { background: var(--brand-gray-500); color: #fff; } | |
| .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; } | |
| .btn-lg { padding: 0.75rem 2rem; font-size: 1rem; } | |
| .btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; } | |
| .btn-danger:hover { background: #bb2d3b; } | |
| /* Forms */ | |
| .form-control { | |
| display: block; width: 100%; padding: 0.5rem 0.75rem; | |
| font-size: 0.875rem; line-height: 1.5; color: #212529; | |
| background: #fff; border: 1px solid var(--brand-gray-400); | |
| border-radius: 8px; transition: border-color 0.2s, box-shadow 0.2s; | |
| } | |
| .form-control:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(42,42,61,0.15); } | |
| .form-control::placeholder { color: var(--brand-gray-400); } | |
| .form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; color: #212529; } | |
| /* Cards */ | |
| .card { background: #fff; border-radius: 8px; } | |
| .card.border { border: 1px solid var(--brand-gray-400); } | |
| /* Utility overrides */ | |
| .max-w-7xl { max-width: 1280px; } | |
| .max-w-4xl { max-width: 896px; } | |
| .max-w-2xl { max-width: 672px; } | |
| .max-w-md { max-width: 480px; } | |
| .max-w-sm { max-width: 384px; } | |
| .max-w-full { max-width: 100%; } | |
| .max-w-xs { max-width: 320px; } | |
| .mx-auto { margin-left: auto; margin-right: auto; } | |
| .text-center { text-align: center; } | |
| .text-right { text-align: right; } | |
| .grid { display: grid; } | |
| .grid-cols-1 { grid-template-columns: repeat(1, 1fr); } | |
| .grid-cols-2 { grid-template-columns: repeat(2, 1fr); } | |
| .grid-cols-5 { grid-template-columns: repeat(5, 1fr); } | |
| .gap-3 { gap: 0.75rem; } | |
| .gap-4 { gap: 1rem; } | |
| .gap-6 { gap: 1.5rem; } | |
| .gap-8 { gap: 2rem; } | |
| @media (min-width: 640px) { | |
| .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); } | |
| .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } | |
| } | |
| @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); } | |
| } | |
| @media (min-width: 1024px) { | |
| .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); } | |
| .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); } | |
| } | |
| @media (min-width: 640px) { | |
| .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } | |
| .sm\:gap-2 { gap: 0.5rem; } | |
| .sm\:gap-3 { gap: 0.75rem; } | |
| .sm\:gap-4 { gap: 1rem; } | |
| .sm\:w-16 { width: 4rem; } | |
| .sm\:w-20 { width: 5rem; } | |
| .sm\:px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; } | |
| .sm\:text-xs { font-size: 0.75rem; } | |
| .sm\:text-sm { font-size: 0.875rem; } | |
| .sm\:text-base { font-size: 1rem; } | |
| .sm\:text-lg { font-size: 1.125rem; } | |
| .sm\:text-xl { font-size: 1.25rem; } | |
| .sm\:text-2xl { font-size: 1.5rem; } | |
| .sm\:text-3xl { font-size: 1.875rem; } | |
| .sm\:h-20 { height: 5rem; } | |
| .sm\:h-36 { height: 9rem; } | |
| .sm\:h-96 { height: 24rem; } | |
| .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; } | |
| .sm\:py-12 { padding-top: 3rem; padding-bottom: 3rem; } | |
| .sm\:mb-4 { margin-bottom: 1rem; } | |
| .sm\:mb-6 { margin-bottom: 1.5rem; } | |
| .sm\:p-3 { padding: 0.75rem; } | |
| .sm\:p-4 { padding: 1rem; } | |
| .sm\:max-h-96 { max-height: 24rem; } | |
| } | |
| /* Spacing */ | |
| .p-2\\.5 { padding: 0.625rem; } | |
| .p-2 { padding: 0.5rem; } | |
| .p-3 { padding: 0.75rem; } | |
| .p-4 { padding: 1rem; } | |
| .p-6 { padding: 1.5rem; } | |
| .px-1\\.5 { padding-left: 0.375rem; padding-right: 0.375rem; } | |
| .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } | |
| .px-4 { padding-left: 1rem; padding-right: 1rem; } | |
| .px-8 { padding-left: 2rem; padding-right: 2rem; } | |
| .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-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; } | |
| .py-8 { padding-top: 2rem; padding-bottom: 2rem; } | |
| .py-12 { padding-top: 3rem; padding-bottom: 3rem; } | |
| .py-16 { padding-top: 4rem; padding-bottom: 4rem; } | |
| .mt-0\\.5 { margin-top: 0.125rem; } | |
| .mt-1 { margin-top: 0.25rem; } | |
| .mt-1\\.5 { margin-top: 0.375rem; } | |
| .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-16 { margin-top: 4rem; } | |
| .mb-4 { margin-bottom: 1rem; } | |
| .mb-6 { margin-bottom: 1.5rem; } | |
| .mb-2 { margin-bottom: 0.5rem; } | |
| .mr-2 { margin-right: 0.5rem; } | |
| .flex { display: flex; } | |
| .flex-col { flex-direction: column; } | |
| .flex-row { flex-direction: row; } | |
| .items-center { align-items: center; } | |
| .items-start { align-items: flex-start; } | |
| .justify-between { justify-content: space-between; } | |
| .justify-center { justify-content: center; } | |
| .flex-1 { flex: 1; } | |
| .flex-shrink-0 { flex-shrink: 0; } | |
| .mt-auto { margin-top: auto; } | |
| .pt-1 { padding-top: 0.25rem; } | |
| .pt-1\\.5 { padding-top: 0.375rem; } | |
| .pt-2 { padding-top: 0.5rem; } | |
| .space-y-1 > * + * { margin-top: 0.25rem; } | |
| .space-y-2 > * + * { margin-top: 0.5rem; } | |
| .space-y-3 > * + * { margin-top: 0.75rem; } | |
| .space-y-4 > * + * { margin-top: 1rem; } | |
| footer ul { list-style: none; padding: 0; margin: 0; } | |
| .gap-1 { gap: 0.25rem; } | |
| .gap-2 { gap: 0.5rem; } | |
| .gap-4 { gap: 1rem; } | |
| .w-full { width: 100%; } | |
| .password-wrap { position: relative; } | |
| .password-wrap .form-control { padding-right: 2.5rem; } | |
| .password-toggle { | |
| position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); | |
| background: none; border: none; cursor: pointer; color: #6c757d; padding: 0.25rem; | |
| font-size: 1rem; line-height: 1; | |
| } | |
| .password-toggle:hover { color: #2a2a3d; } | |
| .alert-toast { | |
| background: #2a2a3d; color: #fff; padding: 0.75rem 1rem; border-radius: 8px; | |
| margin-bottom: 1rem; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; | |
| animation: fadeIn 0.3s ease; | |
| } | |
| @keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } } | |
| .w-12 { width: 3rem; } | |
| .w-14 { width: 3.5rem; } | |
| .w-16 { width: 4rem; } | |
| .w-20 { width: 5rem; } | |
| .w-24 { width: 6rem; } | |
| .h-14 { height: 3.5rem; } | |
| .h-16 { height: 4rem; } | |
| .h-20 { height: 5rem; } | |
| .h-28 { height: 7rem; } | |
| .h-32 { height: 8rem; } | |
| .h-36 { height: 9rem; } | |
| .h-48 { height: 12rem; } | |
| .max-h-80 { max-height: 20rem; } | |
| .max-h-96 { max-height: 24rem; } | |
| .max-h-full { max-height: 100%; } | |
| .h-72 { height: 18rem; } | |
| .h-96 { height: 24rem; } | |
| /* Typography helpers */ | |
| .text-xs { font-size: 0.75rem; } | |
| .text-sm { font-size: 0.875rem; } | |
| .text-base { font-size: 1rem; } | |
| .text-lg { font-size: 1.125rem; } | |
| .text-xl { font-size: 1.25rem; } | |
| .text-2xl { font-size: 1.5rem; } | |
| .text-3xl { font-size: 1.875rem; } | |
| .text-4xl { font-size: 2.25rem; } | |
| .text-6xl { font-size: 3.75rem; } | |
| .font-semibold { font-weight: 600; } | |
| .font-bold { font-weight: 700; } | |
| .uppercase { text-transform: uppercase; } | |
| .tracking-wide { letter-spacing: 0.05em; } | |
| .leading-relaxed { line-height: 1.7; } | |
| .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; } | |
| .text-gray-300 { color: #ced4da; } | |
| .text-gray-400 { color: var(--brand-gray-400); } | |
| .text-gray-500 { color: var(--brand-gray-500); } | |
| .text-gray-900 { color: #212529; } | |
| .bg-gray-50 { background: #f8f9fa; } | |
| .bg-gray-100 { background: #f1f3f5; } | |
| /* Borders */ | |
| .border { border: 1px solid var(--brand-gray-400); } | |
| .border-b { border-bottom: 1px solid var(--brand-gray-400); } | |
| .border-t { border-top: 1px solid var(--brand-gray-400); } | |
| .rounded { border-radius: 8px; } | |
| .rounded-lg { border-radius: 8px; } | |
| .overflow-hidden { overflow: hidden; } | |
| /* Shadows */ | |
| .shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.08); } | |
| .shadow-lg { box-shadow: 0 4px 12px rgba(0,0,0,0.1); } | |
| /* Aspect ratio */ | |
| .aspect-w-1 { position: relative; } | |
| .aspect-h-1 { padding-bottom: 100%; } | |
| .aspect-w-1 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } | |
| /* Object fit */ | |
| .object-cover { object-fit: cover; } | |
| .object-contain { object-fit: contain; } | |
| /* Transitions */ | |
| .transition-all { transition-property: all; } | |
| .transition-colors { transition-property: color, background-color, border-color; } | |
| .transition-transform { transition-property: transform; } | |
| .duration-200 { transition-duration: 0.2s; } | |
| .duration-300 { transition-duration: 0.3s; } | |
| .hover\:shadow-lg:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); } | |
| .hover\:-translate-y-1:hover { transform: translateY(-0.25rem); } | |
| .hover\:scale-105:hover { transform: scale(1.05); } | |
| .active\:scale-95:active { transform: scale(0.95); } | |
| /* Focus rings */ | |
| button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; } | |
| /* Hover effects for links */ | |
| a:hover { color: #5a6a78; } | |
| /* Badges */ | |
| .badge { display: inline-block; padding: 0.25em 0.5em; font-size: 0.75rem; font-weight: 600; border-radius: 9999px; } | |
| .text-warning { color: #ffc107; } | |
| .bg-info { background: #17a2b8; color: #fff; } | |
| .bg-success { background: #28a745; color: #fff; } | |
| .bg-warning { background: #ffc107; color: #212529; } | |
| .bg-danger { background: #dc3545; color: #fff; } | |
| /* Responsive nav */ | |
| .hidden { display: none; } | |
| .block { display: block; } | |
| .relative { position: relative; } | |
| .absolute { position: absolute; } | |
| .inset-0 { inset: 0; } | |
| .top-full { top: 100%; } | |
| .top-24 { top: 6rem; } | |
| .left-0 { left: 0; } | |
| .right-0 { right: 0; } | |
| .z-50 { z-index: 50; } | |
| .bg-white { background: #fff; } | |
| .sticky { position: sticky; } | |
| .static { position: static; } | |
| .w-40 { width: 10rem; } | |
| .rounded-full { border-radius: 9999px; } | |
| .line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } | |
| .placeholder-gray-400::placeholder { color: #ced4da; } | |
| .whitespace-nowrap { white-space: nowrap; } | |
| .inline { display: inline; } | |
| .inline-flex { display: inline-flex; } | |
| @media (min-width: 1024px) { | |
| .lg\:flex-row { flex-direction: row; } | |
| .lg\:hidden { display: none; } | |
| .lg\:flex { display: flex; } | |
| .lg\:relative { position: relative; } | |
| .lg\:static { position: static; } | |
| .lg\:w-40 { width: 10rem; } | |
| .lg\:order-1 { order: 1; } | |
| .lg\:order-2 { order: 2; } | |
| } | |
| /* Hero section */ | |
| .hero { background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%); } | |