/* ========================================================================== Fabri-Ka — chaleur artisanale, précision éditoriale Mobile-first · palette crème/encre/terracotta/pin ========================================================================== */ :root { --bg: #FAF6F0; --ink: #1E1B16; --accent: #C4532E; --accent-dark: #A94525; --pine: #234438; --sand: #F1E9DD; --border: #E4D9C8; --white: #FFFFFF; --muted: #6E6455; --origin-a: #234438; --origin-b: #C4532E; --origin-c: #8A6D3B; --origin-d: #5B5B8A; --origin-e: #999999; --font-display: 'Fraunces', Georgia, serif; --font-body: 'Outfit', system-ui, -apple-system, sans-serif; --radius: 8px; --radius-lg: 12px; --shadow-hover: 0 6px 18px rgba(30, 27, 22, 0.08); --shadow-sheet: 0 -12px 40px rgba(30, 27, 22, 0.18); --maxw: 1280px; --header-h: 56px; --tabbar-h: 58px; --safe-b: env(safe-area-inset-bottom, 0px); --focus-ring: 0 0 0 3px rgba(196, 83, 46, 0.28); } * { box-sizing: border-box; } html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; } img { max-width: 100%; display: block; } a { color: var(--accent); text-decoration: none; } h1, h2, h3 { font-family: var(--font-display); font-weight: 900; font-optical-sizing: auto; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--ink); } button { font-family: var(--font-body); color: var(--ink); -webkit-tap-highlight-color: transparent; } button, input, select { font-family: var(--font-body); font-size: 0.95rem; } input[type='search'], input[type='number'], input[type='text'], select { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.8rem; min-height: 44px; color: var(--ink); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; width: 100%; appearance: none; -webkit-appearance: none; } select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E6455' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2.1rem; } input:focus-visible, select:focus-visible { border-color: var(--accent); box-shadow: var(--focus-ring); } /* Consistent a11y focus rings */ a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; } ::selection { background: rgba(196, 83, 46, 0.22); } .app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; } .site-main { flex: 1; width: 100%; } .page { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1rem 3.5rem; } .page-header { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; } .page-header h1, .page-header h2 { margin-bottom: 0; } /* Hover only where hover exists — touch gets :active feedback */ @media (hover: hover) { a:hover { text-decoration: underline; } } /* -------------------------------------------------------------------------- Header — slim top bar -------------------------------------------------------------------------- */ .site-header { position: sticky; top: 0; z-index: 60; background: rgba(250, 246, 240, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); } .site-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; height: var(--header-h); display: flex; align-items: center; justify-content: center; gap: 1.5rem; } .logo { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1; } .logo:hover { text-decoration: none; } .logo-dot { color: var(--accent); } /* Desktop nav — hidden on mobile (bottom tab bar takes over) */ .site-nav { display: none; gap: 0.35rem; } .site-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0.7rem; border-radius: 999px; transition: color 0.15s ease, background 0.15s ease; } @media (hover: hover) { .site-nav a:hover { text-decoration: none; color: var(--accent); background: var(--sand); } } .site-nav a.active { color: var(--accent); background: var(--sand); font-weight: 600; } .site-header-search { display: none; margin-left: auto; width: min(320px, 32vw); } @media (min-width: 768px) { .site-header-inner { justify-content: flex-start; } .site-nav { display: flex; } .site-header-search { display: block; } } /* -------------------------------------------------------------------------- Search bar -------------------------------------------------------------------------- */ .searchbar { display: flex; gap: 0.5rem; } .searchbar-field { position: relative; flex: 1; display: flex; align-items: center; } .searchbar-icon { position: absolute; left: 0.75rem; display: inline-flex; color: var(--muted); pointer-events: none; } .searchbar-field input { padding-left: 2.4rem; } .searchbar-kbd { position: absolute; right: 0.6rem; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--muted); background: var(--sand); border: 1px solid var(--border); border-radius: 5px; padding: 0.05rem 0.42rem; pointer-events: none; } .searchbar button[type='submit'] { background: var(--accent); color: var(--white); border: none; border-radius: var(--radius); padding: 0.6rem 1.3rem; min-height: 44px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; white-space: nowrap; } @media (hover: hover) { .searchbar button[type='submit']:hover { background: var(--accent-dark); } } .searchbar button[type='submit']:active { background: var(--accent-dark); transform: scale(0.98); } .searchbar-compact input { min-height: 38px; padding-top: 0.42rem; padding-bottom: 0.42rem; font-size: 0.9rem; } /* -------------------------------------------------------------------------- Bottom navigation (mobile) -------------------------------------------------------------------------- */ .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(250, 246, 240, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: var(--safe-b); height: calc(var(--tabbar-h) + var(--safe-b)); } .bottom-nav-item { appearance: none; background: none; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 6px 0 4px; color: var(--muted); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; transition: color 0.15s ease; } .bottom-nav-item svg { transition: transform 0.15s ease; } .bottom-nav-item:active svg { transform: scale(0.9); } .bottom-nav-item.active { color: var(--accent); } @media (hover: hover) { .bottom-nav-item:hover { text-decoration: none; color: var(--accent); } } @media (min-width: 768px) { .bottom-nav { display: none; } } /* Mobile search overlay (Recherche tab) */ .search-overlay { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: max(0.9rem, env(safe-area-inset-top)) 1rem 1rem; animation: overlay-in 0.18s ease; } @keyframes overlay-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .search-overlay-bar { display: flex; align-items: center; gap: 0.5rem; } .search-overlay-form { position: relative; flex: 1; display: flex; align-items: center; } .search-overlay-icon { position: absolute; left: 0.8rem; display: inline-flex; color: var(--muted); pointer-events: none; } .search-overlay-form input { padding-left: 2.5rem; min-height: 48px; font-size: 1rem; border-radius: var(--radius-lg); } .search-overlay-close { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; color: var(--ink); } .search-overlay-close:active { background: var(--sand); } .search-overlay-hint { margin: 1.1rem 0.25rem 0; color: var(--muted); font-size: 0.9rem; } /* -------------------------------------------------------------------------- Footer -------------------------------------------------------------------------- */ .site-footer { background: var(--sand); border-top: 1px solid var(--border); padding: 2.25rem 1rem 1.25rem; margin-top: 2.5rem; /* clear the mobile tab bar */ padding-bottom: calc(1.25rem + var(--tabbar-h) + var(--safe-b)); } .site-footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.75rem; } .logo-footer { font-size: 1.3rem; } .footer-brand p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; } .footer-col { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; } .footer-col-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 0.2rem; } .footer-col a { color: var(--ink); font-weight: 500; font-size: 0.95rem; padding: 0.15rem 0; } @media (hover: hover) { .footer-col a:hover { color: var(--accent); text-decoration: none; } } .footer-legal { max-width: var(--maxw); margin: 1.75rem auto 0; padding-top: 1.1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; line-height: 1.5; } @media (min-width: 768px) { .site-footer { padding: 2.75rem 1.25rem 1.5rem; } .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; } } /* -------------------------------------------------------------------------- Hero (Home) — editorial -------------------------------------------------------------------------- */ .hero { padding: 2rem 0 1.75rem; text-align: left; } .hero-eyebrow { margin: 0 0 0.7rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); display: flex; align-items: center; gap: 0.6rem; } .hero-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); flex: 0 0 auto; } .hero-title { font-size: clamp(2.35rem, 8.5vw, 4.75rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 0.55em; max-width: 18ch; } .hero-title em { font-style: italic; color: var(--accent); } .hero-sub { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.15rem); max-width: 520px; margin: 0 0 1.6rem; } .hero-search { max-width: 620px; margin: 0 0 2rem; } .hero-search input { min-height: 50px; font-size: 1rem; border-radius: var(--radius-lg); } .hero-search button { border-radius: var(--radius-lg); font-size: 0.98rem; padding: 0.85rem 1.5rem; } .hero-stats { display: flex; gap: 2.25rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--border); } .stat { display: flex; flex-direction: column; align-items: flex-start; } .stat-number { font-family: var(--font-display); font-weight: 900; font-optical-sizing: auto; font-size: clamp(1.9rem, 5vw, 2.5rem); color: var(--pine); line-height: 1.08; font-variant-numeric: tabular-nums; } .stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; margin-top: 0.15rem; } @media (min-width: 900px) { .hero { padding: 3.5rem 0 2.5rem; } } /* -------------------------------------------------------------------------- Section headers — terracotta rule accent -------------------------------------------------------------------------- */ .section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; } .section-header h2 { margin: 0; font-size: clamp(1.3rem, 3.5vw, 1.6rem); position: relative; padding-left: 0.85rem; } .section-header h2::before { content: ''; position: absolute; left: 0; top: 0.18em; bottom: 0.14em; width: 4px; border-radius: 2px; background: var(--accent); } .section-see-all { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; white-space: nowrap; min-height: 44px; } @media (hover: hover) { .section-see-all:hover { text-decoration: none; color: var(--accent-dark); } } /* -------------------------------------------------------------------------- Category chips — snap rail with icons -------------------------------------------------------------------------- */ .home-categories { margin: 1.5rem 0 0.5rem; } .category-chips { display: flex; gap: 0.55rem; overflow-x: auto; padding: 0.25rem 0 1rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; /* bleed to screen edges on mobile */ margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; } .category-chips::-webkit-scrollbar { display: none; } .chip { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 0 1rem; min-height: 44px; color: var(--ink); font-weight: 500; font-size: 0.92rem; white-space: nowrap; scroll-snap-align: start; flex: 0 0 auto; transition: border-color 0.15s ease, background 0.15s ease; } .chip-icon { display: inline-flex; color: var(--accent); } .chip:active { background: var(--sand); border-color: var(--accent); } @media (hover: hover) { .chip:hover { text-decoration: none; border-color: var(--accent); background: var(--sand); } } .chip-count { font-size: 0.72rem; font-weight: 600; color: var(--muted); background: var(--sand); border-radius: 999px; padding: 0.1rem 0.5rem; } @media (min-width: 768px) { .category-chips { margin: 0; padding-left: 0; padding-right: 0; } } /* -------------------------------------------------------------------------- Rails — horizontal snap tracks -------------------------------------------------------------------------- */ .rail { margin: 1.75rem 0; } .rail-track { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; } .rail-track::-webkit-scrollbar { display: none; } .rail-item { flex: 0 0 158px; scroll-snap-align: start; } @media (min-width: 768px) { .rail { margin: 2.5rem 0; } .rail-track { margin: 0; padding-left: 0; padding-right: 0; gap: 1rem; scrollbar-width: thin; } .rail-item { flex-basis: 205px; } } /* -------------------------------------------------------------------------- Cards & product grid — crisp 1px borders, 8px radius -------------------------------------------------------------------------- */ .card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.18s ease, box-shadow 0.18s ease; } a.card:active { border-color: var(--accent); } @media (hover: hover) { a.card:hover { text-decoration: none; border-color: #D3C4AC; box-shadow: var(--shadow-hover); } } .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; } @media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } } @media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } } @media (min-width: 1240px) { .product-grid { grid-template-columns: repeat(5, 1fr); } } .product-card { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); height: 100%; } .product-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; } .product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } /* hover: image scales, card stays put */ @media (hover: hover) { a.card:hover .product-card-media img { transform: scale(1.045); } } .image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--sand); color: var(--border); } .product-card-badge { position: absolute; top: 0.5rem; left: 0.5rem; } .product-card-body { padding: 0.6rem 0.7rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; } .product-card-title { font-family: var(--font-body); font-weight: 500; font-size: 0.86rem; line-height: 1.32; letter-spacing: 0; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .product-card-price { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; } .price-chip { font-family: var(--font-display); font-weight: 700; font-optical-sizing: auto; color: var(--accent); font-size: 1.05rem; font-variant-numeric: tabular-nums; } .price-chip-lg { font-size: 1.75rem; } .price-chip-muted { color: var(--muted); font-size: 0.85rem; font-family: var(--font-body); font-weight: 500; } .price-compare { color: var(--muted); font-size: 0.82rem; } .product-card-store { margin: auto 0 0; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @media (min-width: 640px) { .product-card-body { padding: 0.75rem 0.85rem 0.9rem; } .product-card-title { font-size: 0.92rem; } } /* -------------------------------------------------------------------------- Origin badges — circled letter -------------------------------------------------------------------------- */ .origin-badge { display: inline-flex; align-items: center; gap: 0.45rem; border-radius: 999px; font-weight: 700; color: var(--white); font-size: 0.78rem; line-height: 1; box-shadow: 0 1px 4px rgba(30, 27, 22, 0.18); } .origin-badge-letter { display: inline-flex; align-items: center; justify-content: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: inherit; font-size: 0.74rem; } .origin-badge-label { padding-right: 0.75rem; font-size: 0.76rem; letter-spacing: 0.03em; } .origin-A { background: var(--origin-a); } .origin-B { background: var(--origin-b); } .origin-C { background: var(--origin-c); } .origin-D { background: var(--origin-d); } .origin-E { background: var(--origin-e); } .unavailable-badge { background: var(--sand); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 0.28rem 0.75rem; font-size: 0.76rem; font-weight: 500; } .platform-badge { display: inline-block; background: var(--sand); border: 1px solid var(--border); border-radius: 5px; padding: 0.14rem 0.5rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; } /* -------------------------------------------------------------------------- Buttons -------------------------------------------------------------------------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: var(--radius); padding: 0.7rem 1.35rem; min-height: 44px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease; text-align: center; } .btn:hover { text-decoration: none; } .btn:active { transform: scale(0.98); } .btn-primary { background: var(--accent); color: var(--white); } @media (hover: hover) { .btn-primary:hover { background: var(--accent-dark); } } .btn-primary:active { background: var(--accent-dark); } .btn-secondary { background: var(--white); border-color: var(--border); color: var(--ink); } @media (hover: hover) { .btn-secondary:hover { border-color: var(--accent); color: var(--accent); } } .btn-secondary:active { border-color: var(--accent); color: var(--accent); } .btn-cta { font-size: 1rem; padding: 0.9rem 1.7rem; margin: 1.25rem 0; align-self: flex-start; } /* -------------------------------------------------------------------------- Catalog — sticky mobile search + layout -------------------------------------------------------------------------- */ .catalog-searchbar { position: sticky; top: var(--header-h); z-index: 40; margin: -0.5rem -1rem 0.9rem; padding: 0.65rem 1rem; background: rgba(250, 246, 240, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: padding 0.2s ease, box-shadow 0.2s ease; } .catalog-searchbar-shrunk { padding: 0.35rem 1rem; box-shadow: 0 1px 0 var(--border); } .catalog-searchbar-field { position: relative; display: flex; align-items: center; } .catalog-searchbar-field .searchbar-icon { left: 0.8rem; } .catalog-searchbar-field input { padding-left: 2.5rem; border-radius: 999px; transition: min-height 0.2s ease, border-color 0.15s ease, box-shadow 0.15s ease; } .catalog-searchbar-shrunk .catalog-searchbar-field input { min-height: 40px; padding-top: 0.4rem; padding-bottom: 0.4rem; } @media (min-width: 900px) { .catalog-searchbar { display: none; } } .catalog-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; } @media (min-width: 900px) { .catalog-layout { grid-template-columns: 260px 1fr; gap: 2rem; } } .catalog-header { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; } .catalog-header h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.1rem); } .catalog-count { color: var(--muted); margin: 0; font-size: 0.92rem; font-variant-numeric: tabular-nums; } /* -------------------------------------------------------------------------- Filters — desktop sidebar -------------------------------------------------------------------------- */ .filters { display: none; } @media (min-width: 900px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 0.25rem; scrollbar-width: thin; } } .filters-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; } .filters-title { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; } .filters-reset-link { background: none; border: none; padding: 0.2rem 0; color: var(--accent); font-weight: 600; font-size: 0.82rem; cursor: pointer; } @media (hover: hover) { .filters-reset-link:hover { text-decoration: underline; } } .filters-body { display: flex; flex-direction: column; gap: 1.4rem; } .filter-group { display: flex; flex-direction: column; gap: 0.5rem; } .filter-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); } .filter-category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; max-height: 300px; overflow-y: auto; scrollbar-width: thin; } .filter-category-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; background: transparent; border: none; border-radius: 6px; padding: 0.55rem 0.6rem; min-height: 40px; cursor: pointer; text-align: left; font-size: 0.92rem; color: var(--ink); transition: background 0.12s ease; } .filter-category-list button:active { background: var(--sand); } @media (hover: hover) { .filter-category-list button:hover { background: var(--sand); } } .filter-category-list button.active { background: var(--pine); color: var(--white); font-weight: 600; } .filter-category-list button.active .filter-count { color: rgba(255, 255, 255, 0.75); } .filter-count { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; } .filter-checkbox { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; cursor: pointer; min-height: 34px; } .filter-checkbox input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex: 0 0 auto; } .filter-price-row { display: flex; align-items: center; gap: 0.5rem; } .filter-price-row input { width: 100%; } /* -------------------------------------------------------------------------- Mobile filter pill + bottom sheet -------------------------------------------------------------------------- */ .filter-fab { position: fixed; z-index: 55; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--bg); border: none; border-radius: 999px; padding: 0 1.3rem; min-height: 46px; font-weight: 600; font-size: 0.95rem; cursor: pointer; box-shadow: 0 8px 22px rgba(30, 27, 22, 0.3); transition: transform 0.12s ease; } .filter-fab:active { transform: translateX(-50%) scale(0.96); } .filter-fab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 0.74rem; font-weight: 700; font-variant-numeric: tabular-nums; } /* tablet: tab bar is hidden, anchor the pill to the screen edge */ @media (min-width: 768px) and (max-width: 899px) { .filter-fab { bottom: calc(var(--safe-b) + 16px); } } @media (min-width: 900px) { .filter-fab { display: none; } } .sheet-root { position: fixed; inset: 0; z-index: 90; } .sheet-backdrop { position: absolute; inset: 0; background: rgba(30, 27, 22, 0.45); animation: backdrop-in 0.2s ease; } @keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } } .sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 86dvh; background: var(--bg); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-sheet); animation: sheet-up 0.28s cubic-bezier(0.22, 1, 0.36, 1); padding-bottom: var(--safe-b); } @keyframes sheet-up { from { transform: translateY(60%); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } } .sheet-handle { width: 42px; height: 4px; border-radius: 999px; background: var(--border); margin: 0.6rem auto 0; flex: 0 0 auto; } .sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1.1rem 0.65rem; border-bottom: 1px solid var(--border); flex: 0 0 auto; } .sheet-header h2 { margin: 0; font-size: 1.2rem; } .sheet-close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--sand); border: none; border-radius: 50%; cursor: pointer; color: var(--ink); } .sheet-close:active { background: var(--border); } .sheet-content { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.1rem 1.1rem 1.4rem; overscroll-behavior: contain; } .sheet-footer { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; padding: 0.75rem 1.1rem; border-top: 1px solid var(--border); background: var(--bg); } @media (min-width: 900px) { .sheet-root { display: none; } } /* -------------------------------------------------------------------------- Pagination -------------------------------------------------------------------------- */ .pagination { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 2rem 0 0.5rem; flex-wrap: wrap; } .pagination button { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 1.1rem; min-height: 44px; font-weight: 500; cursor: pointer; color: var(--ink); transition: border-color 0.15s ease, color 0.15s ease; } @media (hover: hover) { .pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); } } .pagination button:active:not(:disabled) { border-color: var(--accent); color: var(--accent); } .pagination button:disabled { opacity: 0.4; cursor: not-allowed; } .pagination-info { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; } /* -------------------------------------------------------------------------- Product detail — swipeable gallery + sticky mobile CTA -------------------------------------------------------------------------- */ .breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; } .breadcrumb a { padding: 0.25rem 0; } .product-detail { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: start; } @media (min-width: 900px) { .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; } } /* room for the sticky CTA bar on mobile */ .page-product-detail { padding-bottom: calc(3.5rem + 74px); } @media (min-width: 900px) { .page-product-detail { padding-bottom: 3.5rem; } } .product-detail-gallery { min-width: 0; } /* full-bleed swipe gallery on mobile */ .pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -1rem; background: var(--sand); } .pd-track::-webkit-scrollbar { display: none; } .pd-slide { flex: 0 0 100%; width: 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 1 / 1; background: var(--sand); } .pd-slide img { width: 100%; height: 100%; object-fit: cover; } .pd-dots { display: flex; justify-content: center; gap: 0.4rem; padding: 0.7rem 0 0.1rem; } .pd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background 0.15s ease, transform 0.15s ease; } .pd-dot-active { background: var(--accent); transform: scale(1.25); } .product-detail-thumbs { display: none; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; } @media (min-width: 900px) { .pd-track { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; } .pd-slide { border-radius: 0; } .pd-dots { display: none; } .product-detail-thumbs { display: flex; } } .thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--sand); transition: border-color 0.15s ease; } .thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb-active { border-color: var(--accent); } .product-detail-info { min-width: 0; } .product-detail-badges { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; } .product-detail-title { font-size: clamp(1.5rem, 5.5vw, 2.35rem); letter-spacing: -0.02em; } .product-detail-price { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; } .product-detail-description-wrap { margin: 0 0 1.25rem; } .product-detail-description { color: var(--ink); white-space: pre-line; margin: 0; font-size: 0.95rem; line-height: 1.65; } .product-detail-description-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; } .desc-toggle { margin-top: 0.4rem; background: none; border: none; padding: 0.4rem 0; min-height: 44px; color: var(--accent); font-weight: 600; font-size: 0.9rem; cursor: pointer; } @media (hover: hover) { .desc-toggle:hover { text-decoration: underline; } } .product-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.9rem; margin: 0 0 1.25rem; padding: 1rem; background: var(--sand); border-radius: var(--radius); } .product-detail-meta dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; } .product-detail-meta dd { margin: 0.15rem 0 0; font-weight: 500; font-size: 0.92rem; overflow-wrap: break-word; } .tag-list { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.5rem; } .tag { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.76rem; color: var(--muted); } .store-info-card { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; } .store-info-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; } .store-info-location { margin: 0; color: var(--muted); font-size: 0.88rem; } /* Sticky mobile CTA — sits above the tab bar, safe-area aware */ .pd-cta-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 50; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: rgba(250, 246, 240, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); } .pd-cta-price { flex: 0 0 auto; display: flex; flex-direction: column; } .pd-cta-price .price-chip { font-size: 1.2rem; } .pd-cta-btn { flex: 1; min-height: 48px; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* tablet: tab bar is hidden, CTA hugs the bottom edge */ @media (min-width: 768px) and (max-width: 899px) { .pd-cta-bar { bottom: 0; padding-bottom: calc(0.6rem + var(--safe-b)); } } @media (min-width: 900px) { .pd-cta-bar { display: none; } } /* -------------------------------------------------------------------------- Stores -------------------------------------------------------------------------- */ .stores-toolbar { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; } .stores-toolbar input[type='search'] { flex: 1 1 100%; } .stores-toolbar select { flex: 1 1 auto; width: auto; } @media (min-width: 640px) { .stores-toolbar input[type='search'] { flex: 1 1 240px; } .stores-toolbar select { flex: 0 1 260px; } } .toggle { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; cursor: pointer; white-space: nowrap; min-height: 44px; } .toggle input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; } .store-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; } @media (min-width: 560px) { .store-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; } } .store-card { padding: 1rem 1.1rem 1.05rem; display: flex; flex-direction: column; gap: 0.3rem; color: var(--ink); } .store-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; } .store-card-heading { flex: 1; min-width: 0; } .store-card-name { margin: 0; font-size: 1.1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .store-card-domain { margin: 0; color: var(--accent); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .store-card-location { margin: 0; display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start; background: var(--sand); border-radius: 999px; padding: 0.22rem 0.7rem 0.22rem 0.5rem; color: var(--muted); font-size: 0.8rem; font-weight: 500; margin-top: 0.25rem; } .store-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.55rem; } .store-card-count { font-size: 0.84rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; } /* -------------------------------------------------------------------------- Store logo — circular avatar with initial-letter fallback -------------------------------------------------------------------------- */ .store-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: var(--white); border: 1px solid var(--border); } .store-logo img { width: 100%; height: 100%; object-fit: cover; } .store-logo-sm { width: 28px; height: 28px; } .store-logo-md { width: 44px; height: 44px; } .store-logo-lg { width: 72px; height: 72px; } .store-logo-fallback { border: none; color: var(--white); font-family: var(--font-display); font-weight: 900; font-optical-sizing: auto; line-height: 1; user-select: none; } .store-logo-sm.store-logo-fallback { font-size: 0.82rem; } .store-logo-md.store-logo-fallback { font-size: 1.25rem; } .store-logo-lg.store-logo-fallback { font-size: 2.1rem; } .store-logo-ring { box-shadow: 0 0 0 3px var(--white), 0 4px 14px rgba(30, 27, 22, 0.18); } /* -------------------------------------------------------------------------- Store landing page — hero, stats, catalogue, similar rail -------------------------------------------------------------------------- */ /* room for the sticky CTA bar on mobile */ .page-store-detail { padding-bottom: calc(3.5rem + 74px); } @media (min-width: 900px) { .page-store-detail { padding-bottom: 3.5rem; } } .store-hero { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.4rem; } .store-hero-cover { position: relative; height: 118px; overflow: hidden; background: linear-gradient(120deg, var(--sand), #E8DBC4 55%, var(--sand)); } .store-hero-cover-img { position: absolute; inset: -28px; background-size: cover; background-position: center; filter: blur(16px) saturate(1.05); transform: scale(1.1); } .store-hero-scrim { position: absolute; inset: 0; } .store-hero-covered .store-hero-scrim { background: linear-gradient( rgba(30, 27, 22, 0.24), rgba(30, 27, 22, 0.48) ); } .store-hero-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0 1.1rem 1.15rem; /* pull the logo up so it overlaps the cover band */ margin-top: -36px; } .store-hero-name { margin: 0; font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: -0.02em; overflow-wrap: break-word; max-width: 100%; } .store-hero-chips { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; } .store-hero-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--sand); border-radius: 999px; padding: 0.24rem 0.75rem 0.24rem 0.55rem; color: var(--muted); font-size: 0.82rem; font-weight: 500; } .store-hero-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; width: 100%; margin-top: 0.35rem; } .store-hero-cta { padding: 0.75rem 1.4rem; } .store-social-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--border); border-radius: 50%; color: var(--ink); transition: border-color 0.15s ease, color 0.15s ease; } .store-social-link:active { border-color: var(--accent); color: var(--accent); } @media (hover: hover) { .store-social-link:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); } } .store-hero-domain { margin-left: auto; color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; } @media (min-width: 768px) { .store-hero { margin-bottom: 1.75rem; } .store-hero-cover { height: 190px; } .store-hero-body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.4rem; row-gap: 0.55rem; padding: 0 1.75rem 1.4rem; margin-top: -44px; align-items: start; } .store-hero-logo { grid-row: 1 / span 3; } .store-hero-name { margin-top: 0.9rem; } } /* About */ .store-about { max-width: 760px; margin: 0 0 1.5rem; } .store-about-text { margin: 0; font-size: 0.98rem; line-height: 1.65; } .store-about-text + .store-evidence { margin-top: 0.85rem; } .store-evidence { margin: 0; padding: 0.75rem 1.1rem; border-left: 3px solid var(--accent); background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--ink); font-size: 0.92rem; } /* Stats band */ .store-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0 0 1.5rem; } @media (min-width: 768px) { .store-stats { grid-template-columns: repeat(4, 1fr); gap: 0.9rem; } } .store-stat-tile { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 0.95rem; } .store-stat-value { font-family: var(--font-display); font-weight: 900; font-optical-sizing: auto; font-size: 1.55rem; color: var(--pine); line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: break-word; } .store-stat-value-sm { font-size: 1.05rem; padding-top: 0.2rem; } .store-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; } /* Category chips */ .store-categories { margin: 0 0 1.25rem; } /* Catalogue */ .store-detail-products { scroll-margin-top: calc(var(--header-h) + 12px); } .store-catalogue-toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; } .store-catalogue-search { position: relative; flex: 1 1 220px; display: flex; align-items: center; } .store-catalogue-search input { padding-left: 2.4rem; } .store-catalogue-toolbar select { flex: 0 1 220px; width: auto; } /* Similar stores rail */ .store-mini-card { flex: 0 0 250px; scroll-snap-align: start; display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 0.9rem; color: var(--ink); } .store-mini-body { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; } .store-mini-name { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .store-mini-meta { color: var(--muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Sticky mobile CTA — same pattern as the product detail bar */ .store-cta-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 50; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: rgba(250, 246, 240, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); } .store-cta-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; } .store-cta-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .store-cta-btn { flex: 0 0 auto; min-height: 48px; font-size: 0.92rem; } /* tablet: tab bar is hidden, CTA hugs the bottom edge */ @media (min-width: 768px) and (max-width: 899px) { .store-cta-bar { bottom: 0; padding-bottom: calc(0.6rem + var(--safe-b)); } } @media (min-width: 900px) { .store-cta-bar { display: none; } } /* Store info card on product detail */ .store-info-row { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.25rem; } .store-info-text { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; } /* -------------------------------------------------------------------------- About -------------------------------------------------------------------------- */ .about .about-content { max-width: 720px; } .about h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); } .about h2 { margin-top: 2rem; font-size: 1.35rem; } .about-origins { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; } .about-origins li { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; } .about-origins p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; } /* -------------------------------------------------------------------------- Skeletons & empty states -------------------------------------------------------------------------- */ .skeleton { position: relative; overflow: hidden; background: var(--sand); } .skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.65), transparent ); animation: shimmer 1.4s infinite; } @keyframes shimmer { 100% { transform: translateX(100%); } } .skeleton-square { aspect-ratio: 1 / 1; width: 100%; } .product-card-skeleton { pointer-events: none; } .empty-state { text-align: center; padding: 3.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--muted); } .empty-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sand); border: 1px solid var(--border); color: var(--pine); margin-bottom: 0.35rem; } .empty-state-error .empty-state-icon { color: var(--accent); } .empty-state-title { margin: 0; font-size: 1.3rem; color: var(--ink); } .empty-state p { margin: 0; font-size: 1rem; max-width: 40ch; } .empty-state-action { margin-top: 0.6rem; } .notfound { text-align: center; padding-top: 2rem; } .notfound h1 { font-size: clamp(4rem, 18vw, 6.5rem); margin: 0; color: var(--pine); line-height: 1; } .notfound .empty-state { padding-top: 0.5rem; } /* -------------------------------------------------------------------------- Desktop spacing -------------------------------------------------------------------------- */ @media (min-width: 768px) { .page { padding: 2rem 1.25rem 4rem; } .site-footer { padding-bottom: 1.5rem; } } /* -------------------------------------------------------------------------- Stats page — hand-rolled CSS/SVG charts in the house palette -------------------------------------------------------------------------- */ .hero-stats-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; min-height: 44px; } .stats-hero { padding: 1.5rem 0 1.25rem; } .stats-hero-title { font-size: clamp(1.9rem, 6.5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.06; max-width: 22ch; margin-bottom: 0.4em; } .stats-hero-title em { font-style: italic; color: var(--accent); } .stats-hero-sub { color: var(--muted); font-size: clamp(0.95rem, 2.2vw, 1.05rem); max-width: 560px; margin: 0; } @media (min-width: 900px) { .stats-hero { padding: 2.5rem 0 1.75rem; } } /* KPI tiles */ .stats-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1.25rem 0 0.5rem; } @media (min-width: 640px) { .stats-kpis { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; } } @media (min-width: 1000px) { .stats-kpis { grid-template-columns: repeat(6, 1fr); } } .stats-kpi { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 0.95rem; } .stats-kpi-value { font-family: var(--font-display); font-weight: 900; font-optical-sizing: auto; font-size: clamp(1.35rem, 4vw, 1.7rem); color: var(--pine); line-height: 1.12; font-variant-numeric: tabular-nums; overflow-wrap: break-word; } .stats-kpi-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); font-weight: 600; } .stats-section { margin: 2.25rem 0; } .stats-section-note { margin: -0.4rem 0 0.9rem; color: var(--muted); font-size: 0.88rem; } .stats-loading { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; } /* Shared horizontal bars — thin marks, rounded data-end, sand track */ .stats-bars { display: flex; flex-direction: column; gap: 0.55rem; } .stats-bar-row { display: grid; grid-template-columns: minmax(92px, 130px) 1fr auto; align-items: center; gap: 0.7rem; } .stats-bar-row-flat { grid-template-columns: 1fr auto; } .stats-bar-name { font-size: 0.84rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stats-bar-track { display: block; height: 14px; background: var(--sand); border-radius: 4px; overflow: hidden; } .stats-bar-fill { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); } .stats-bar-fill-terracotta { background: var(--accent); } .stats-bar-fill-pine { background: var(--pine); } .stats-bar-value { display: inline-flex; align-items: baseline; gap: 0.45rem; font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .stats-bar-value em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.76rem; min-width: 3.4em; } /* Categories — table on desktop */ .stats-cat-table-wrap { display: none; } .stats-cat-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 0.9rem; } .stats-cat-table th, .stats-cat-table td { padding: 0.6rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); } .stats-cat-table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; background: var(--sand); white-space: nowrap; } .stats-cat-table tbody tr:last-child td { border-bottom: none; } @media (hover: hover) { .stats-cat-table tbody tr:hover { background: var(--bg); } } .stats-cat-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .stats-cat-link { font-weight: 600; color: var(--ink); } @media (hover: hover) { .stats-cat-link:hover { color: var(--accent); } } .stats-cat-range { color: var(--muted); } /* Categories — stacked cards on mobile */ .stats-cat-cards { display: flex; flex-direction: column; gap: 0.6rem; } .stats-cat-card { display: block; padding: 0.85rem 1rem; color: var(--ink); } .stats-cat-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; } .stats-cat-card-head strong { font-size: 0.98rem; } .stats-cat-card-count { color: var(--accent); font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; } .stats-cat-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 0.9rem; margin: 0.6rem 0 0; } .stats-cat-card-grid dt { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; } .stats-cat-card-grid dd { margin: 0.1rem 0 0; font-weight: 500; font-size: 0.88rem; font-variant-numeric: tabular-nums; } @media (min-width: 768px) { .stats-cat-table-wrap { display: block; overflow-x: auto; } .stats-cat-cards { display: none; } } /* Regions */ .stats-regions { display: flex; flex-direction: column; gap: 0.85rem; } .stats-region-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.25rem; } .stats-region-name { font-weight: 600; font-size: 0.92rem; color: var(--ink); } @media (hover: hover) { .stats-region-name:hover { color: var(--accent); } } .stats-region-meta { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; } /* Growth SVG chart */ .stats-growth-figure { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.9rem 0.9rem 0.5rem; } .stats-growth-svg { display: block; width: 100%; height: auto; } .stats-growth-baseline { stroke: var(--border); stroke-width: 1; } .stats-growth-area { fill: var(--sand); } .stats-growth-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .stats-growth-dot { fill: var(--accent); stroke: var(--white); stroke-width: 1.5; } .stats-growth-dot-min { fill: var(--pine); } .stats-growth-label { font-size: 12px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; } .stats-growth-axis { font-size: 11px; fill: var(--muted); } /* Origin — proportional segmented bar + legend */ .stats-origin-bar { display: flex; gap: 2px; height: 30px; border-radius: 6px; overflow: hidden; margin-bottom: 0.9rem; } .stats-origin-seg { display: inline-flex; align-items: center; justify-content: center; min-width: 4px; border-radius: 3px; } .stats-origin-seg-letter { color: var(--white); font-weight: 700; font-size: 0.76rem; line-height: 1; } .stats-origin-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; } .stats-origin-legend li { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; } .stats-origin-legend-counts { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; } @media (min-width: 768px) { .stats-origin-legend { flex-direction: row; flex-wrap: wrap; gap: 0.6rem 1.75rem; } } /* Platforms */ .stats-platforms { display: flex; gap: 0.55rem; flex-wrap: wrap; } .stats-platform-chip { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; } .stats-platform-chip strong { color: var(--ink); font-weight: 600; } /* Top stores & most expensive — two columns on desktop */ @media (min-width: 900px) { .stats-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.5rem; align-items: start; } } .stats-top-stores, .stats-expensive { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .stats-top-stores li, .stats-expensive li { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); min-height: 52px; } .stats-top-stores li:last-child, .stats-expensive li:last-child { border-bottom: none; } .stats-rank { flex: 0 0 1.6rem; font-family: var(--font-display); font-weight: 900; font-optical-sizing: auto; color: var(--accent); font-size: 0.95rem; font-variant-numeric: tabular-nums; text-align: right; } .stats-top-store-id { flex: 1; min-width: 0; display: flex; flex-direction: column; } .stats-top-store-id a { color: var(--ink); font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @media (hover: hover) { .stats-top-store-id a:hover { color: var(--accent); } } .stats-top-store-region { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stats-top-store-count { font-weight: 600; font-size: 0.88rem; font-variant-numeric: tabular-nums; color: var(--pine); white-space: nowrap; } .stats-expensive-link { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); } .stats-expensive-title { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @media (hover: hover) { .stats-expensive-link:hover .stats-expensive-title { color: var(--accent); } } .stats-expensive-store { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stats-expensive-price { font-family: var(--font-display); font-weight: 700; font-optical-sizing: auto; color: var(--accent); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; } /* -------------------------------------------------------------------------- Stats — report download button -------------------------------------------------------------------------- */ .stats-hero-actions { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; } .stats-report-btn { width: 100%; } .stats-report-hint { font-size: 0.8rem; color: var(--muted); } @media (min-width: 640px) { .stats-report-btn { width: auto; } } .stats-report-footer { margin: 3rem 0 1rem; padding-top: 1.9rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.55rem; align-items: center; text-align: center; } @media (min-width: 640px) { .stats-report-footer .stats-report-btn { width: auto; } } /* KPI sub-labels */ .stats-kpi-sub { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3; } /* Price histogram caption */ .stats-hist-caption { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); } .stats-hist-caption strong { color: var(--pine); font-variant-numeric: tabular-nums; } /* Category table — inline mini bar in the Produits cell */ .stats-cat-prod-inner { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.5rem; } .stats-cat-prod-bar { width: 46px; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; flex: 0 0 auto; } .stats-cat-prod-fill { display: block; height: 100%; border-radius: 3px; background: var(--accent); } .stats-cat-prod-n { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; } /* Nouveautés — horizontal snap rail */ .stats-newest-rail { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -1rem; padding: 0.25rem 1rem 0.75rem; } .stats-newest-rail::-webkit-scrollbar { display: none; } .stats-newest-card { flex: 0 0 190px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.5rem; padding: 0.85rem 0.9rem; min-height: 138px; } .stats-newest-chip { align-self: flex-start; max-width: 100%; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); background: var(--sand); border-radius: 999px; padding: 0.2rem 0.55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stats-newest-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .stats-newest-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; } .stats-newest-price { font-family: var(--font-display); font-weight: 800; color: var(--pine); font-variant-numeric: tabular-nums; } .stats-newest-store { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @media (hover: hover) { .stats-newest-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); text-decoration: none; } } @media (min-width: 768px) { .stats-newest-rail { margin: 0; padding-left: 0; padding-right: 0; scrollbar-width: thin; } } /* Disponibilité — segmented bar */ .stats-avail-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--sand); max-width: 520px; } .stats-avail-seg { display: block; height: 100%; } .stats-avail-stock { background: var(--pine); } .stats-avail-rupture { background: var(--muted); } .stats-avail-inconnu { background: var(--border); } .stats-avail-legend { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; } .stats-avail-legend li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; color: var(--muted); } .stats-avail-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; } .stats-avail-legend strong { color: var(--ink); font-variant-numeric: tabular-nums; } .stats-avail-legend em { font-style: normal; color: var(--muted); } /* Complétude — mini progress meters */ .stats-coverage { display: grid; grid-template-columns: 1fr; gap: 1rem 1.6rem; } @media (min-width: 640px) { .stats-coverage { grid-template-columns: repeat(2, 1fr); } } .stats-meter { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; } .stats-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; } .stats-meter-label { font-size: 0.88rem; font-weight: 500; color: var(--ink); } .stats-meter-pct { font-family: var(--font-display); font-weight: 800; color: var(--pine); font-variant-numeric: tabular-nums; } .stats-meter-track { display: block; height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; } .stats-meter-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.6s ease; } .stats-meter-sub { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; } /* -------------------------------------------------------------------------- Reduced motion -------------------------------------------------------------------------- */ @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }