Files
shop10/internal/web/static/css/style.css
T

400 lines
6.2 KiB
CSS

:root {
--bg: #0f0f12;
--bg-elevated: #1a1a21;
--surface: #23232d;
--text: #f4f4f6;
--text-muted: #9b9bab;
--accent: #e8c547;
--accent-hover: #f5d76a;
--border: rgba(255, 255, 255, 0.08);
--radius: 14px;
--shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
--font: "DM Sans", system-ui, sans-serif;
--font-display: "Instrument Serif", Georgia, serif;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: var(--font);
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
.container {
width: min(1120px, 92vw);
margin-inline: auto;
}
a {
color: inherit;
text-decoration: none;
}
/* Header */
.site-header {
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(12px);
background: rgba(15, 15, 18, 0.85);
border-bottom: 1px solid var(--border);
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
padding: 1rem 0;
}
.logo {
font-family: var(--font-display);
font-size: 1.5rem;
font-weight: 400;
letter-spacing: -0.02em;
}
.logo span {
color: var(--accent);
}
.nav {
display: flex;
gap: 1.75rem;
}
.nav-link {
font-size: 0.95rem;
color: var(--text-muted);
transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
color: var(--text);
}
.header-actions {
display: flex;
gap: 0.75rem;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.55rem 1.1rem;
font-family: inherit;
font-size: 0.9rem;
font-weight: 500;
border-radius: 999px;
border: none;
cursor: pointer;
transition: background 0.2s, transform 0.15s;
}
.btn:active {
transform: scale(0.98);
}
.btn-primary {
background: var(--accent);
color: #1a1508;
}
.btn-primary:hover {
background: var(--accent-hover);
}
.btn-ghost {
background: transparent;
color: var(--text);
border: 1px solid var(--border);
}
.btn-ghost:hover {
background: var(--surface);
}
.btn-lg {
padding: 0.85rem 1.5rem;
font-size: 1rem;
}
.btn-sm {
padding: 0.4rem 0.85rem;
font-size: 0.82rem;
}
/* Hero */
.hero {
padding: 4rem 0 5rem;
background:
radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 197, 71, 0.12), transparent),
var(--bg);
}
.hero-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.eyebrow {
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.75rem;
color: var(--accent);
margin: 0 0 1rem;
}
.hero-title {
font-family: var(--font-display);
font-size: clamp(2.5rem, 5vw, 3.75rem);
font-weight: 400;
line-height: 1.1;
margin: 0 0 1.25rem;
}
.hero-title em {
font-style: italic;
color: var(--accent);
}
.hero-lead {
color: var(--text-muted);
font-size: 1.1rem;
max-width: 28ch;
margin: 0 0 2rem;
}
.hero-cta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.hero-visual {
position: relative;
min-height: 320px;
}
.hero-card {
position: absolute;
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.hero-card-a {
inset: 10% 20% 25% 0;
background: linear-gradient(145deg, #3d3d4a, #23232d);
border: 1px solid var(--border);
}
.hero-card-b {
inset: 35% 0 0 25%;
background: linear-gradient(145deg, rgba(232, 197, 71, 0.35), #2a2820);
border: 1px solid rgba(232, 197, 71, 0.25);
}
/* Sections */
.section {
padding: 4rem 0;
}
.section-title {
font-family: var(--font-display);
font-size: 2rem;
font-weight: 400;
margin: 0 0 0.5rem;
}
.section-sub {
color: var(--text-muted);
margin: 0 0 2rem;
}
.section-head {
margin-bottom: 2rem;
}
/* Categories */
.category-list {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
list-style: none;
padding: 0;
margin: 0;
}
.category-chip {
display: inline-block;
padding: 0.5rem 1rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 999px;
font-size: 0.9rem;
transition: border-color 0.2s, background 0.2s;
}
.category-chip:hover {
border-color: var(--accent);
background: var(--bg-elevated);
}
/* Products */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1.5rem;
}
.product-card {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow);
}
.product-image {
aspect-ratio: 4 / 3;
background-size: cover;
background-position: center;
background-color: var(--surface);
}
.product-body {
padding: 1.25rem;
}
.product-category {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent);
}
.product-name {
font-size: 1.1rem;
margin: 0.35rem 0 0.5rem;
}
.product-desc {
font-size: 0.88rem;
color: var(--text-muted);
margin: 0 0 1rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.product-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
}
.product-price {
font-weight: 600;
font-size: 1.05rem;
}
.empty-state {
text-align: center;
color: var(--text-muted);
padding: 3rem;
background: var(--bg-elevated);
border-radius: var(--radius);
border: 1px dashed var(--border);
}
/* Features */
.features {
background: var(--bg-elevated);
border-block: 1px solid var(--border);
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
.feature h3 {
margin: 0 0 0.5rem;
font-size: 1.1rem;
}
.feature p {
margin: 0;
color: var(--text-muted);
font-size: 0.95rem;
}
/* Footer */
.site-footer {
padding: 2.5rem 0;
border-top: 1px solid var(--border);
}
.footer-inner {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 1rem;
}
.footer-brand {
font-family: var(--font-display);
font-size: 1.25rem;
margin: 0;
}
.footer-copy {
margin: 0;
color: var(--text-muted);
font-size: 0.9rem;
}
@media (max-width: 768px) {
.nav {
display: none;
}
.hero-grid {
grid-template-columns: 1fr;
}
.hero-visual {
min-height: 200px;
}
.features-grid {
grid-template-columns: 1fr;
}
}