taste-engine / frontend /src /index.css
mucahitkantepe's picture
outfit modal: palette strip + per-pick rationale + style summary
b4e0778
Raw History Blame Contribute Delete
28.3 kB
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0a0a0a; --card: #171717; --border: #262626; --text: #e5e5e5; --text-secondary: #a3a3a3; --text-muted: #737373; --accent: #3b82f6; --green: #22c55e; --red: #ef4444; --amber: #f59e0b; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --radius: 8px; } html { color-scheme: dark; } body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; } input, select { font-family: var(--font); color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; outline: none; transition: border-color 0.2s; } input:focus, select:focus { border-color: var(--accent); } /* ---------- Shell layout ---------- */ .app-shell { display: flex; min-height: 100vh; } .sidebar { width: 220px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--border); padding: 24px 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; } .sidebar-brand { padding: 0 20px 24px; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; border-bottom: 1px solid var(--border); margin-bottom: 12px; } .sidebar-brand span { color: var(--accent); } .sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; } .sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: background 0.15s, color 0.15s; } .sidebar nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); text-decoration: none; } .sidebar nav a.active { background: rgba(59, 130, 246, 0.12); color: var(--accent); } .sidebar nav a svg { width: 18px; height: 18px; flex-shrink: 0; } .main-content { flex: 1; padding: 32px 40px; min-width: 0; max-width: 1400px; } /* ---------- Page header ---------- */ .page-header { margin-bottom: 28px; } .page-header h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; } .page-header p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; } /* ---------- Controls bar ---------- */ .controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; } .search-input { width: 260px; } .sort-select { min-width: 150px; } /* ---------- Filter toggle + panel ---------- */ .btn-filter-toggle { font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; } .btn-filter-toggle:hover { border-color: var(--text-muted); color: var(--text); } .btn-filter-toggle.active { background: var(--accent); border-color: var(--accent); color: #fff; } .filter-panel { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 16px 20px; margin-bottom: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; } .filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 180px; } .filter-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } .filter-select { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; min-width: 180px; } .filter-price-inputs { display: flex; align-items: center; gap: 8px; } .filter-price-input { width: 100px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; } .filter-price-input::placeholder { color: var(--text-muted); } .filter-price-sep { color: var(--text-muted); } .filter-presets { display: flex; flex-wrap: wrap; gap: 6px; } .pill-sm { font-size: 12px; padding: 3px 10px; } .btn-clear-filters { align-self: flex-end; font-size: 12px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; margin-left: auto; } .btn-clear-filters:hover { color: #ef4444; border-color: #ef4444; } /* ---------- Store pills ---------- */ .store-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; } .pill { font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); transition: all 0.15s; } .pill:hover { border-color: var(--text-muted); color: var(--text); } .pill.active { background: var(--accent); border-color: var(--accent); color: #fff; } /* ---------- Category pills ---------- */ .category-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; } .pill-category { display: inline-flex; align-items: center; gap: 6px; } .pill-count { font-size: 11px; color: var(--text-muted); font-weight: 400; } .pill-category.active .pill-count { color: rgba(255, 255, 255, 0.7); } /* ---------- Product grid ---------- */ .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } .product-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; } .product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); } .product-card-img-wrap { position: relative; overflow: hidden; } .product-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 12px; } .product-card-img-zones { position: absolute; inset: 0; display: flex; } .product-card-img-zone { flex: 1; cursor: pointer; } .product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; } .product-card-brand { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); } .product-card-name { font-size: 14px; font-weight: 500; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; } .product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; } .product-card-price { font-size: 14px; font-weight: 600; color: var(--text); } .score-badge { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; color: #fff; } .score-badge.green { background: var(--green); } .score-badge.blue { background: var(--accent); } .score-badge.amber { background: var(--amber); } .product-card-store { font-size: 11px; color: var(--text-muted); padding: 0 12px 10px; } .product-card-store a { color: var(--text-muted); } .product-card-store a:hover { color: var(--accent); } /* ---------- Product card badges ---------- */ .product-card-sale-badge { position: absolute; top: 8px; left: 8px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; z-index: 2; } .product-card-oos-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; z-index: 2; } .product-card-color { font-size: 12px; color: var(--text-muted); } .product-card-original-price { text-decoration: line-through; color: var(--text-muted); margin-right: 6px; font-size: 12px; } .product-card .product-card-price { display: flex; align-items: baseline; gap: 0; } /* ---------- Pagination ---------- */ .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; } .pagination button { padding: 8px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; background: var(--card); border: 1px solid var(--border); color: var(--text-secondary); transition: all 0.15s; } .pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--text); } .pagination button:disabled { opacity: 0.35; cursor: default; } .pagination span { font-size: 14px; color: var(--text-secondary); padding: 0 8px; } /* ---------- Stats cards ---------- */ .stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; } .stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; flex: 1; min-width: 160px; } .stat-card-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; } .stat-card-value { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; } /* ---------- Profile page ---------- */ .profile-stats { display: flex; gap: 16px; margin-bottom: 28px; } .profile-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-align: center; min-width: 120px; } .profile-stat .value { font-size: 28px; font-weight: 700; } .profile-stat .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; } .profile-stat.liked .value { color: var(--green); } .profile-stat.disliked .value { color: var(--red); } /* ---------- Upload zone ---------- */ .upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-muted); cursor: pointer; transition: border-color 0.2s, background 0.2s; margin-bottom: 28px; } .upload-zone:hover, .upload-zone.dragging { border-color: var(--accent); background: rgba(59, 130, 246, 0.05); } .upload-zone p { font-size: 14px; } .upload-zone .upload-icon { font-size: 32px; margin-bottom: 8px; } .upload-zone .upload-hint { font-size: 12px; margin-top: 4px; } /* ---------- Rating grid ---------- */ .rating-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } .rating-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; } .rating-card img { width: 100%; aspect-ratio: 1; object-fit: cover; } .rating-card-actions { display: flex; gap: 4px; padding: 8px; justify-content: center; } .rating-card-actions button { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid var(--border); background: var(--bg); transition: all 0.15s; } .rating-card-actions button:hover { border-color: var(--text-muted); } .rating-card-actions button.liked { background: rgba(34, 197, 94, 0.15); border-color: var(--green); color: var(--green); } .rating-card-actions button.disliked { background: rgba(239, 68, 68, 0.15); border-color: var(--red); color: var(--red); } .rating-card-actions button.remove:hover { border-color: var(--red); color: var(--red); } .rating-card-name { font-size: 11px; color: var(--text-muted); padding: 0 8px 4px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ---------- Dashboard table ---------- */ .table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; margin-bottom: 28px; } .table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; } .table-wrap th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); } .table-wrap td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); } .table-wrap tr:last-child td { border-bottom: none; } .table-wrap tr:hover td { background: rgba(255, 255, 255, 0.02); } /* ---------- Scan area ---------- */ .scan-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; } .scan-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; } .btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: all 0.15s; } .btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: #2563eb; } .btn-primary:disabled { opacity: 0.5; cursor: default; } .progress-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 12px; } .progress-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s ease; } .scan-step { font-size: 13px; color: var(--text-secondary); margin-top: 8px; } .scan-error { font-size: 13px; color: var(--red); margin-top: 8px; } /* ---------- Loading / empty ---------- */ .loading { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; } .empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; } /* ---------- Discover / Swipe page ---------- */ .discover-container { display: flex; flex-direction: column; align-items: center; max-width: 500px; margin: 0 auto; padding: 0 16px; } .discover-header { text-align: center; margin-bottom: 16px; } .discover-header h1 { font-size: 1.6em; margin-bottom: 4px; } .discover-stats-bar { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; } .discover-stat { font-size: 13px; color: var(--text-muted); padding: 4px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; } .like-stat { color: var(--green); border-color: rgba(34,197,94,0.3); } .dislike-stat { color: var(--red); border-color: rgba(239,68,68,0.3); } .skip-stat { color: var(--amber); border-color: rgba(245,158,11,0.3); } .swipe-area { position: relative; width: 100%; max-width: 400px; aspect-ratio: 3/4; margin-bottom: 24px; } .swipe-card { position: absolute; inset: 0; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); user-select: none; touch-action: none; cursor: grab; } .swipe-card:active { cursor: grabbing; } .swipe-card img { width: 100%; height: 70%; object-fit: contain; background: #fff; padding: 8px; } .swipe-card-behind { transform: scale(0.95); filter: brightness(0.7); z-index: 0; } .swipe-card-active { z-index: 1; } .swipe-card-info { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; } .swipe-brand { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); } .swipe-name { font-size: 16px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .swipe-meta { display: flex; gap: 12px; margin-top: 4px; } .swipe-store { font-size: 12px; color: var(--accent); font-weight: 500; } .swipe-price { font-size: 13px; font-weight: 600; color: var(--text); } .swipe-score { font-size: 12px; color: var(--green); font-weight: 600; } .swipe-indicator { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 32px; font-weight: 900; letter-spacing: 4px; padding: 8px 24px; border: 4px solid; border-radius: 12px; z-index: 10; pointer-events: none; background: rgba(0,0,0,0.5); } .swipe-match-badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; z-index: 5; } .swipe-details { display: flex; align-items: center; gap: 8px; margin-top: 4px; } .swipe-store-badge { font-size: 11px; padding: 2px 8px; background: rgba(59,130,246,0.2); color: var(--accent); border-radius: 4px; font-weight: 600; } .swipe-view-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; opacity: 0.7; } /* Multi-image navigation */ .swipe-image-wrap { position: relative; overflow: hidden; } .img-nav { position: absolute; top: 0; bottom: 0; width: 35%; cursor: pointer; z-index: 2; } .img-nav-prev { left: 0; } .img-nav-next { right: 0; } .img-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; } .img-dots.browse-dots { bottom: 6px; } .img-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background 0.15s; } .img-dot.active { background: #fff; box-shadow: 0 0 3px rgba(0,0,0,0.3); } .swipe-buttons { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; } .swipe-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); background: var(--card); color: var(--text-secondary); transition: all 0.2s; cursor: pointer; } .swipe-btn:hover { transform: scale(1.1); } .swipe-btn.like { border-color: var(--green); color: var(--green); } .swipe-btn.like:hover { background: rgba(34,197,94,0.15); } .swipe-btn.dislike { border-color: var(--red); color: var(--red); } .swipe-btn.dislike:hover { background: rgba(239,68,68,0.15); } .swipe-btn.skip { border-color: var(--amber); color: var(--amber); width: 48px; height: 48px; } .swipe-btn.skip:hover { background: rgba(245,158,11,0.15); } .swipe-btn.undo { border-color: var(--text-muted); color: var(--text-muted); width: 44px; height: 44px; } .swipe-btn.undo:hover { background: rgba(163,163,163,0.1); border-color: var(--text-secondary); } .swipe-btn:disabled { opacity: 0.25; cursor: default; transform: none !important; } .discover-shortcuts { font-size: 12px; color: var(--text-muted); text-align: center; } .discover-shortcuts kbd { display: inline-block; padding: 2px 6px; background: var(--card); border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 11px; } .discover-loading, .discover-empty { text-align: center; padding: 80px 20px; color: var(--text-muted); } .discover-empty h2 { color: var(--text); margin-bottom: 8px; } /* ---------- Mobile bottom tab bar ---------- */ .mobile-tab-bar { display: none; } /* ---------- Responsive ---------- */ @media (max-width: 768px) { .sidebar { display: none; } .mobile-tab-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); z-index: 100; padding: 4px 0; padding-bottom: env(safe-area-inset-bottom, 4px); } .tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--text-muted); text-decoration: none; font-size: 10px; transition: color 0.15s; } .tab-item svg { width: 22px; height: 22px; } .tab-item.active { color: var(--accent); } .main-content { padding: 16px 12px; padding-bottom: 80px; /* space for tab bar */ } .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .product-card-img { padding: 6px; } .product-card-body { padding: 8px; } .product-card-name { font-size: 12px; } .product-card-price { font-size: 12px; } .score-badge { font-size: 10px; padding: 2px 6px; } /* Browse controls */ .filters { gap: 6px; } .filters button { padding: 6px 12px; font-size: 12px; } .search-sort { flex-direction: column; gap: 8px; } .search-sort input, .search-sort select { width: 100%; } /* Stats */ .stats-row { gap: 8px; } .stat-card { padding: 14px 16px; min-width: 0; } .stat-card-value { font-size: 22px; } /* Profile */ .profile-stats { gap: 8px; } .profile-stat { padding: 12px; min-width: 0; } .profile-stat .value { font-size: 22px; } .upload-zone { padding: 24px 16px; } .rating-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } /* Dashboard table */ .table-wrap { font-size: 13px; } .table-wrap th, .table-wrap td { padding: 10px 10px; } /* Discover — fit everything in viewport without scrolling */ .discover-container { padding: 0 8px; height: calc(100dvh - 56px - 16px); /* viewport minus tab bar minus top padding */ display: flex; flex-direction: column; overflow: hidden; } .discover-header { margin-bottom: 8px; } .discover-header h1 { font-size: 1.3em; margin-bottom: 2px; } .discover-header .subtitle { font-size: 12px; } .discover-stats-bar { gap: 6px; margin-bottom: 8px; } .discover-stat { font-size: 11px; padding: 3px 8px; } .swipe-area { flex: 1; min-height: 0; max-width: 100%; aspect-ratio: unset; margin-bottom: 10px; } .swipe-card { position: absolute; inset: 0; } .swipe-card img { height: 60%; } .swipe-card-info { padding: 8px 12px; } .swipe-name { font-size: 14px; } .swipe-buttons { gap: 14px; margin-bottom: 6px; } .swipe-btn { width: 52px; height: 52px; } .swipe-btn.skip { width: 42px; height: 42px; } .swipe-btn.undo { width: 38px; height: 38px; } .swipe-btn svg { width: 24px; height: 24px; } .discover-shortcuts { display: none; /* keyboard hints not useful on mobile */ } /* Pagination */ .pagination { margin-top: 20px; margin-bottom: 12px; } .pagination button { padding: 6px 12px; font-size: 13px; } } /* ============================================================ Shop-the-look button + outfit modal ============================================================ */ .shop-the-look-btn { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(8px); padding: 8px 14px; background: rgba(255, 255, 255, 0.95); color: #111; border: none; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s; white-space: nowrap; z-index: 3; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); } .product-card:hover .shop-the-look-btn { opacity: 1; transform: translateX(-50%) translateY(0); } .shop-the-look-btn:hover { background: #fff; } .outfit-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; animation: outfit-fade-in 0.18s ease-out; } @keyframes outfit-fade-in { from { opacity: 0; } to { opacity: 1; } } .outfit-modal { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 16px; max-width: 1100px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); } .outfit-modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; } .outfit-modal-head h2 { margin: 0 0 4px 0; font-size: 22px; font-weight: 600; color: #fff; } .outfit-modal-subtitle { margin: 0; font-size: 13px; color: #999; } .outfit-modal-close { background: none; border: none; color: #888; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 8px; transition: color 0.15s; } .outfit-modal-close:hover { color: #fff; } .outfit-modal-state { padding: 48px 24px; text-align: center; color: #999; font-size: 14px; } .outfit-modal-state.error { color: #ef6c6c; } .outfit-modal-empty { padding: 24px; text-align: center; color: #888; font-size: 13px; background: #111; border-radius: 10px; margin-top: 8px; } .outfit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; } .outfit-tile { display: flex; flex-direction: column; background: #111; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; } .outfit-tile:hover { border-color: #4a4a4a; transform: translateY(-2px); } .outfit-tile.anchor { border-color: #6f8fff; box-shadow: 0 0 0 2px rgba(111, 143, 255, 0.18); } .outfit-tile-label { padding: 8px 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #999; background: #0c0c0c; border-bottom: 1px solid #1c1c1c; } .outfit-tile.anchor .outfit-tile-label { color: #aab9ff; } .outfit-tile-img-wrap { position: relative; aspect-ratio: 3 / 4; background: #1c1c1c; overflow: hidden; } .outfit-tile-img { width: 100%; height: 100%; object-fit: cover; } .outfit-tile-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; } .outfit-tile-brand { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #aaa; } .outfit-tile-name { font-size: 13px; color: #ddd; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .outfit-tile-price { font-size: 14px; font-weight: 600; color: #fff; margin-top: 4px; } .outfit-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #0c0c0c; border: 1px solid #2a2a2a; border-radius: 10px; font-size: 14px; color: #aaa; } .outfit-total-amount { font-size: 18px; font-weight: 700; color: #fff; } @media (max-width: 600px) { .outfit-modal { padding: 20px; border-radius: 12px; } .outfit-modal-head h2 { font-size: 18px; } .outfit-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } } /* Step-9: palette + rationale + style summary */ .outfit-palette { display: flex; align-items: center; gap: 6px; margin: 12px 0 16px; padding: 8px 12px; background: #0c0c0c; border: 1px solid #2a2a2a; border-radius: 8px; } .outfit-palette-chip { display: inline-block; width: 24px; height: 24px; border-radius: 4px; border: 1px solid #2a2a2a; flex-shrink: 0; } .outfit-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; } .outfit-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 12px; border: 1px solid #2a2a2a; background: #0c0c0c; color: #aaa; } .outfit-tag.scandi { background: linear-gradient(180deg, #1d2a25, #131e1a); border-color: #2c4a3d; color: #b9e8d2; } .outfit-tag.axes { border-color: #3a3a3a; color: #ddd; } .outfit-tag.muted { color: #888; } .outfit-tile-rationale { margin-top: 6px; font-size: 11px; color: #999; line-height: 1.4; font-style: italic; }
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #0a0a0a;
--card: #171717;
--border: #262626;
--text: #e5e5e5;
--text-secondary: #a3a3a3;
--text-muted: #737373;
--accent: #3b82f6;
--green: #22c55e;
--red: #ef4444;
--amber: #f59e0b;
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--radius: 8px;
}
html {
color-scheme: dark;
}
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
button {
font-family: var(--font);
cursor: pointer;
border: none;
background: none;
color: inherit;
}
input,
select {
font-family: var(--font);
color: var(--text);
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 8px 12px;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
input:focus,
select:focus {
border-color: var(--accent);
}
/* ---------- Shell layout ---------- */
.app-shell {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 220px;
flex-shrink: 0;
background: var(--card);
border-right: 1px solid var(--border);
padding: 24px 0;
display: flex;
flex-direction: column;
position: sticky;
top: 0;
height: 100vh;
}
.sidebar-brand {
padding: 0 20px 24px;
font-size: 18px;
font-weight: 700;
color: var(--text);
letter-spacing: -0.3px;
border-bottom: 1px solid var(--border);
margin-bottom: 12px;
}
.sidebar-brand span {
color: var(--accent);
}