upravenu katagu

This commit is contained in:
maja
2026-10-30 14:35:22 +01:00
parent 1af2d7507f
commit 5aa554e0a6

View File

@@ -990,3 +990,257 @@ h1:focus {
scroll-behavior: auto !important; scroll-behavior: auto !important;
} }
} }
/* =========================================
WEB JARMARK – NOVÝ KOMPAKTNÍ DESIGN
========================================= */
:root {
--market-navy: #142b4a;
--market-blue: #1769d2;
--market-blue-dark: #1055b0;
--market-bg: #f3f6fb;
--market-text: #182438;
--market-muted: #718096;
--market-border: #e5eaf1;
--market-green: #16834b;
--market-radius: 16px;
--market-shadow: 0 8px 28px rgba(25, 45, 75, 0.07);
}
/* Pozadí stránky */
body {
background: var(--market-bg);
color: var(--market-text);
}
/* Hlavní obsah – už ne pøes celou obrazovku */
.market-shell {
width: min(100% - 40px, 1250px);
margin: 34px auto 60px;
}
/* Nadpis katalogu */
.market-shell h1 {
color: var(--market-navy);
font-size: clamp(26px, 3vw, 36px);
font-weight: 800;
letter-spacing: -1px;
margin-bottom: 8px;
}
.market-shell h2 {
color: var(--market-navy);
font-weight: 750;
letter-spacing: -0.4px;
}
/* Vyhledávání */
.market-shell input[type="search"],
.market-shell input[type="text"] {
width: 100%;
min-height: 48px;
padding: 0 16px;
border: 1px solid var(--market-border);
border-radius: 12px;
background: #fff;
color: var(--market-text);
outline: none;
transition: border-color .2s, box-shadow .2s;
}
.market-shell input:focus {
border-color: var(--market-blue);
box-shadow: 0 0 0 4px rgba(23, 105, 210, .10);
}
/* Kategorie a filtry */
.market-shell button {
cursor: pointer;
}
.market-shell .market-category,
.market-shell .category-button {
border: 1px solid var(--market-border);
background: #fff;
color: var(--market-text);
border-radius: 10px;
padding: 10px 15px;
font-weight: 650;
transition: .2s ease;
}
.market-shell .market-category:hover,
.market-shell .category-button:hover {
border-color: var(--market-blue);
color: var(--market-blue);
}
/* Rozložení produktù */
.market-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
margin-top: 24px;
}
/* Produktová karta */
.market-card {
display: flex;
flex-direction: column;
min-width: 0;
overflow: hidden;
background: #fff;
border: 1px solid var(--market-border);
border-radius: var(--market-radius);
box-shadow: var(--market-shadow);
transition: transform .2s ease, box-shadow .2s ease;
}
.market-card:hover {
transform: translateY(-5px);
box-shadow: 0 16px 36px rgba(25, 45, 75, .13);
}
/* Obrázek produktu */
.market-product-picture {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 175px;
margin: 12px 12px 0;
border-radius: 12px;
background: linear-gradient(145deg, #f0f5fc, #e7eef9);
}
.product-icon {
font-size: 68px;
transition: transform .2s ease;
}
.market-card:hover .product-icon {
transform: scale(1.08);
}
.market-product-tag {
position: absolute;
top: 10px;
left: 10px;
padding: 5px 9px;
border-radius: 7px;
background: #fff;
color: var(--market-navy);
font-size: 11px;
font-weight: 750;
}
/* Text produktu */
.market-card-content {
display: flex;
flex: 1;
flex-direction: column;
padding: 16px;
}
.market-card h3 {
margin: 0 0 7px;
color: var(--market-navy);
font-size: 17px;
font-weight: 750;
line-height: 1.35;
}
.market-description {
margin: 0 0 14px;
color: var(--market-muted);
font-size: 13px;
}
.market-stock {
display: flex;
align-items: center;
gap: 7px;
margin-top: auto;
color: var(--market-green);
font-size: 12px;
font-weight: 650;
}
.market-stock-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #20a464;
}
/* Cena */
.market-card-bottom {
margin: 16px 0 12px;
}
.market-card-bottom strong {
color: var(--market-navy);
font-size: 23px;
font-weight: 850;
}
/* Tlaèítko do košíku */
.product-cart-button {
width: 100%;
min-height: 43px;
border: 0;
border-radius: 10px;
background: var(--market-blue);
color: white;
font-size: 14px;
font-weight: 750;
transition: background .2s ease, transform .2s ease;
}
.product-cart-button:hover:not(:disabled) {
background: var(--market-blue-dark);
transform: translateY(-1px);
}
.product-cart-button:disabled {
cursor: not-allowed;
background: #aeb8c6;
}
/* Responzivní zobrazení */
@media (max-width: 1050px) {
.market-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 750px) {
.market-shell {
width: min(100% - 28px, 600px);
margin-top: 22px;
}
.market-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.market-product-picture {
min-height: 135px;
}
.product-icon {
font-size: 52px;
}
.market-card-content {
padding: 12px;
}
}
@media (max-width: 420px) {
.market-grid {
grid-template-columns: 1fr;
}
}