Files
shop-pip/app/static/css/style.css
T

826 lines
13 KiB
CSS

:root {
--bg: #e8efe9;
--bg-deep: #d5e2d8;
--ink: #12201a;
--ink-soft: #3d5248;
--accent: #0f7a4c;
--accent-hot: #e85d04;
--surface: rgba(255, 255, 255, 0.55);
--line: rgba(18, 32, 26, 0.12);
--radius: 18px;
--font-display: "Syne", sans-serif;
--font-body: "Manrope", sans-serif;
--shadow: 0 24px 60px rgba(18, 32, 26, 0.12);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
color: var(--ink);
font-family: var(--font-body);
background:
radial-gradient(1200px 700px at 10% -10%, #c8e6d3 0%, transparent 55%),
radial-gradient(900px 600px at 100% 0%, #f4d6b8 0%, transparent 45%),
linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
line-height: 1.5;
}
.noise {
pointer-events: none;
position: fixed;
inset: 0;
opacity: 0.04;
z-index: 0;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header,
main,
.site-footer {
position: relative;
z-index: 1;
}
.site-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
max-width: 1200px;
margin: 0 auto;
}
.brand {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.35rem;
letter-spacing: -0.03em;
color: var(--ink);
text-decoration: none;
}
.nav {
display: flex;
gap: 1.4rem;
}
.nav a,
.header-cta {
color: var(--ink-soft);
text-decoration: none;
font-weight: 600;
font-size: 0.95rem;
}
.header-cta {
color: var(--accent);
}
.cart-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.4rem;
height: 1.4rem;
margin-left: 0.25rem;
padding: 0 0.35rem;
border-radius: 999px;
background: var(--accent-hot);
color: #fff;
font-size: 0.75rem;
font-weight: 700;
}
.hero {
min-height: calc(100svh - 72px);
display: grid;
grid-template-columns: 1.05fr 0.95fr;
align-items: end;
gap: clamp(1.5rem, 4vw, 3rem);
max-width: 1200px;
margin: 0 auto;
padding: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
.hero-copy {
padding-bottom: clamp(1rem, 4vw, 3rem);
animation: rise 0.9s ease both;
}
.brand-mark {
margin: 0 0 0.8rem;
font-family: var(--font-display);
font-size: clamp(2.8rem, 8vw, 5.5rem);
font-weight: 800;
letter-spacing: -0.05em;
line-height: 0.9;
color: var(--ink);
}
.hero h1 {
margin: 0 0 1rem;
max-width: 14ch;
font-family: var(--font-display);
font-size: clamp(1.8rem, 4.2vw, 3rem);
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1.05;
}
.hero-lead {
margin: 0 0 1.8rem;
max-width: 34ch;
color: var(--ink-soft);
font-size: 1.08rem;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
border: 0;
border-radius: 999px;
padding: 0.85rem 1.35rem;
font: inherit;
font-weight: 700;
text-decoration: none;
cursor: pointer;
transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
transform: translateY(-2px);
}
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
transform: none;
}
.btn-primary {
background: var(--ink);
color: #f4faf6;
}
.btn-ghost {
background: transparent;
color: var(--ink);
box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-small {
padding: 0.55rem 1rem;
background: var(--accent);
color: #fff;
font-size: 0.9rem;
}
.btn-tiny {
padding: 0.4rem 0.75rem;
font-size: 0.85rem;
}
.hero-visual {
position: relative;
min-height: min(62vh, 560px);
animation: fade-in 1.1s ease 0.15s both;
}
.hero-plane {
position: absolute;
inset: 0;
background:
linear-gradient(135deg, rgba(15, 122, 76, 0.85), rgba(18, 32, 26, 0.92)),
repeating-linear-gradient(
-18deg,
transparent 0 18px,
rgba(255, 255, 255, 0.05) 18px 19px
);
clip-path: polygon(8% 0, 100% 0, 100% 88%, 0 100%);
box-shadow: var(--shadow);
}
.hero-orbit {
position: absolute;
width: 42%;
aspect-ratio: 1;
right: 12%;
top: 18%;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 50%;
animation: spin 18s linear infinite;
}
.hero-orbit::after {
content: "";
position: absolute;
width: 14px;
height: 14px;
border-radius: 50%;
background: #f4d6b8;
top: 8%;
left: 50%;
transform: translateX(-50%);
}
section,
.page-section {
max-width: 1200px;
margin: 0 auto;
padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
}
.page-section.narrow {
max-width: 640px;
}
.section-head {
margin-bottom: 1.8rem;
}
.section-head h2,
.section-head h3 {
margin: 0 0 0.35rem;
font-family: var(--font-display);
font-size: clamp(1.8rem, 3vw, 2.4rem);
letter-spacing: -0.03em;
}
.section-head p {
margin: 0;
color: var(--ink-soft);
}
.category-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
}
.category-link {
display: block;
padding: 1.2rem 1rem;
text-decoration: none;
color: inherit;
border-top: 2px solid var(--ink);
transition: background 0.2s ease;
}
.category-link:hover {
background: var(--surface);
}
.category-name {
display: block;
font-family: var(--font-display);
font-weight: 700;
margin-bottom: 0.35rem;
}
.category-desc {
color: var(--ink-soft);
font-size: 0.92rem;
}
.featured-rail {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.2rem;
margin-bottom: 1.5rem;
}
.product-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.2rem;
}
.product {
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--surface);
backdrop-filter: blur(10px);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.product-media {
display: block;
min-height: 140px;
background: linear-gradient(135deg, #0f7a4c, #1b4332);
}
.product-media.tall {
min-height: 360px;
}
.gradient-mint .product-media {
background: linear-gradient(135deg, #2d6a4f, #95d5b2);
}
.gradient-coral .product-media {
background: linear-gradient(135deg, #e85d04, #f4a261);
}
.gradient-ink .product-media {
background: linear-gradient(135deg, #12201a, #40916c);
}
.gradient-sand .product-media {
background: linear-gradient(135deg, #bc6c25, #e9c46a);
}
.product-body {
padding: 1.1rem 1.15rem 1.2rem;
display: flex;
flex-direction: column;
gap: 0.55rem;
flex: 1;
}
.product-body h3 {
margin: 0;
font-family: var(--font-display);
font-size: 1.15rem;
letter-spacing: -0.02em;
}
.product-body h3 a {
color: inherit;
text-decoration: none;
}
.product-body p {
margin: 0;
color: var(--ink-soft);
font-size: 0.94rem;
}
.product-tag {
font-size: 0.78rem !important;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--accent) !important;
}
.product-meta {
margin-top: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.8rem;
padding-top: 0.6rem;
}
.price {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.2rem;
}
.price.big {
font-size: 1.6rem;
}
.steps {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.4rem;
}
.steps li {
padding-top: 1rem;
border-top: 2px solid var(--ink);
}
.step-num {
display: block;
font-family: var(--font-display);
font-weight: 800;
color: var(--accent-hot);
margin-bottom: 0.6rem;
}
.steps h3 {
margin: 0 0 0.4rem;
font-family: var(--font-display);
}
.steps p {
margin: 0;
color: var(--ink-soft);
}
.site-footer {
max-width: 1200px;
margin: 0 auto;
padding: 2rem clamp(1.2rem, 4vw, 3rem) 3rem;
border-top: 1px solid var(--line);
}
.footer-brand {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.4rem;
margin-bottom: 0.4rem;
}
.site-footer p {
margin: 0.25rem 0;
color: var(--ink-soft);
}
.footer-copy {
margin-top: 1rem !important;
font-size: 0.9rem;
}
.reveal {
opacity: 0;
transform: translateY(18px);
transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
opacity: 1;
transform: none;
}
.empty {
grid-column: 1 / -1;
color: var(--ink-soft);
}
.back-link {
display: inline-block;
margin-bottom: 1.2rem;
color: var(--ink-soft);
text-decoration: none;
font-weight: 600;
}
.product-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: start;
}
.product-info h1 {
margin: 0 0 0.8rem;
font-family: var(--font-display);
font-size: clamp(1.8rem, 4vw, 2.6rem);
letter-spacing: -0.03em;
}
.lead {
font-size: 1.05rem;
color: var(--ink-soft);
}
.stock-line {
font-weight: 600;
}
.buy-row {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
margin-top: 1.5rem;
}
.inline-form {
display: inline-flex;
gap: 0.5rem;
align-items: center;
}
.qty-label {
display: inline-flex;
gap: 0.4rem;
align-items: center;
font-size: 0.9rem;
font-weight: 600;
}
input[type="number"],
input[type="email"],
input[type="text"],
input[type="password"],
textarea,
select {
width: 100%;
border: 1px solid var(--line);
border-radius: 12px;
padding: 0.7rem 0.85rem;
font: inherit;
background: rgba(255, 255, 255, 0.7);
color: var(--ink);
}
.inline-form input[type="number"] {
width: 4.5rem;
}
.stack-form {
display: grid;
gap: 1rem;
}
.stack-form label {
display: grid;
gap: 0.4rem;
font-weight: 600;
}
.stack-form .check {
display: flex;
align-items: center;
gap: 0.55rem;
font-weight: 600;
}
.stack-form .check input {
width: auto;
}
.table-wrap {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
background: var(--surface);
}
.data-table th,
.data-table td {
text-align: left;
padding: 0.85rem 0.75rem;
border-bottom: 1px solid var(--line);
vertical-align: top;
}
.data-table th {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--ink-soft);
}
.muted {
color: var(--ink-soft);
font-size: 0.9rem;
}
.cart-summary {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-top: 1.5rem;
}
.checkout-list {
list-style: none;
margin: 0 0 1.2rem;
padding: 0;
}
.checkout-list li {
display: flex;
justify-content: space-between;
gap: 1rem;
padding: 0.7rem 0;
border-bottom: 1px solid var(--line);
}
.flash {
padding: 0.85rem 1rem;
border-radius: 12px;
font-weight: 600;
}
.flash.error {
background: rgba(232, 93, 4, 0.12);
color: #9a3412;
}
.flash.ok {
background: rgba(15, 122, 76, 0.12);
color: var(--accent);
}
.order-item {
margin: 1.2rem 0;
padding: 1rem 0;
border-top: 1px solid var(--line);
}
.codes pre,
pre.codes {
margin: 0.5rem 0 0;
padding: 0.9rem 1rem;
border-radius: 12px;
background: #12201a;
color: #e8efe9;
overflow-x: auto;
font-size: 0.95rem;
}
.admin-body {
background:
radial-gradient(900px 500px at 0% 0%, #c8e6d3 0%, transparent 50%),
linear-gradient(165deg, #e8efe9, #d5e2d8);
}
.admin-shell {
display: grid;
grid-template-columns: 220px 1fr;
min-height: 100vh;
}
.admin-nav {
display: flex;
flex-direction: column;
gap: 0.85rem;
padding: 1.4rem 1.1rem;
border-right: 1px solid var(--line);
background: rgba(255, 255, 255, 0.35);
}
.admin-nav a {
color: var(--ink);
text-decoration: none;
font-weight: 600;
}
.admin-main {
padding: 1.5rem clamp(1rem, 3vw, 2rem);
}
.admin-login {
margin-top: 12vh;
}
.admin-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
margin-bottom: 2rem;
}
.stat {
padding: 1rem;
border-top: 2px solid var(--ink);
background: var(--surface);
}
.stat-label {
display: block;
color: var(--ink-soft);
font-size: 0.85rem;
margin-bottom: 0.35rem;
}
.stat strong {
font-family: var(--font-display);
font-size: 1.5rem;
}
.row-head {
display: flex;
justify-content: space-between;
align-items: end;
gap: 1rem;
}
.section-head.compact {
margin-top: 1rem;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
align-items: center;
}
.actions a,
.linkish {
color: var(--accent);
background: none;
border: 0;
padding: 0;
font: inherit;
font-weight: 600;
cursor: pointer;
text-decoration: none;
}
.logout-form {
margin-top: auto;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(24px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 960px) {
.hero,
.product-layout,
.admin-shell,
.admin-stats {
grid-template-columns: 1fr;
}
.hero {
min-height: auto;
}
.hero-visual {
min-height: 280px;
order: -1;
}
.category-list,
.featured-rail,
.product-grid,
.steps {
grid-template-columns: 1fr 1fr;
}
.admin-nav {
border-right: 0;
border-bottom: 1px solid var(--line);
}
}
@media (max-width: 720px) {
.nav {
display: none;
}
.category-list,
.featured-rail,
.product-grid,
.steps {
grid-template-columns: 1fr;
}
.brand-mark {
font-size: clamp(2.4rem, 12vw, 3.4rem);
}
}