баги с превью

This commit is contained in:
Alisa
2026-06-05 19:57:23 +03:00
parent 98987b5355
commit 8f9bc92271
6 changed files with 338 additions and 45 deletions
+132 -3
View File
@@ -1069,6 +1069,49 @@ a:hover {
min-height: 0;
}
.product-card.is-unavailable {
background: linear-gradient(180deg, rgba(245, 246, 242, 0.94), rgba(232, 236, 227, 0.94));
}
.product-card.is-unavailable .product-card-image img,
.product-card.is-unavailable .product-card-image-placeholder {
filter: grayscale(0.9) blur(0.4px);
opacity: 0.68;
}
.product-card.is-unavailable h3,
.product-card.is-unavailable .price-line,
.product-card.is-unavailable .package-price-line,
.product-card.is-unavailable .variant-choice {
opacity: 0.72;
}
.product-card-unavailable-note {
display: grid;
place-items: center start;
min-height: 72px;
border-top: 1px solid #d8ded2;
margin: 6px 0 10px;
padding-top: 10px;
font-size: 13px;
font-weight: 800;
color: #687266;
}
.product-unavailable-badge {
position: absolute;
top: 12px;
left: 12px;
z-index: 2;
border-radius: 999px;
padding: 6px 9px;
font-size: 11px;
font-weight: 900;
color: #ffffff;
background: rgba(80, 89, 78, 0.9);
box-shadow: 0 8px 20px rgba(24, 34, 24, 0.12);
}
.product-card-image {
display: block;
overflow: hidden;
@@ -1138,7 +1181,7 @@ a:hover {
.price-line {
display: grid;
grid-template-columns: minmax(0, 1fr) auto 22px;
grid-template-columns: minmax(0, 1fr) auto;
gap: 6px;
align-items: center;
min-height: 30px;
@@ -1156,7 +1199,7 @@ a:hover {
.price-unit-values {
display: inline-flex;
gap: 6px;
gap: 5px;
align-items: baseline;
justify-content: flex-end;
min-width: 0;
@@ -1186,7 +1229,7 @@ a:hover {
.package-price-values {
display: inline-flex;
gap: 6px;
gap: 5px;
align-items: baseline;
justify-content: flex-end;
min-width: 0;
@@ -1342,6 +1385,28 @@ a:hover {
padding: 0 3px;
}
.notify-arrival-button {
appearance: none;
grid-column: 1 / -1;
width: 100%;
min-height: 40px;
border: 1px solid #c7d0c0;
border-radius: 8px;
padding: 10px 12px;
font: inherit;
font-size: 13px;
font-weight: 900;
color: #435044;
background: #ffffff;
cursor: pointer;
}
.notify-arrival-button:hover,
.notify-arrival-button.is-sent {
color: #ffffff;
background: #5e6a5d;
}
.price-tier-trigger {
appearance: none;
display: none;
@@ -1402,6 +1467,7 @@ body[data-payment-mode="cash"] .price-tier-trigger {
}
body[data-payment-mode="cash"] .price-line:has(.price-tier-trigger:hover) ~ .price-tier-popover,
body[data-payment-mode="cash"] .package-price-line:has(.price-tier-trigger:hover) ~ .price-tier-popover,
body[data-payment-mode="cash"] .price-tier-popover:hover {
opacity: 1;
visibility: visible;
@@ -1783,6 +1849,69 @@ body[data-payment-mode="cash"] .price-tier-popover:hover {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.catalog-count-panel {
display: flex;
gap: 12px;
align-items: center;
justify-content: space-between;
border: 1px solid var(--line);
border-radius: 8px;
margin-bottom: 14px;
padding: 12px 14px;
color: var(--muted);
background: var(--paper);
box-shadow: var(--shadow-soft);
}
.catalog-count-panel span {
font-weight: 800;
}
.catalog-count-panel a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
border-radius: 8px;
padding: 8px 12px;
font-weight: 900;
color: #ffffff;
background: var(--brand-green);
}
.catalog-count-panel a:hover {
text-decoration: none;
background: #102f21;
}
.catalog-pagination {
display: flex;
flex-wrap: wrap;
gap: 7px;
justify-content: center;
margin-top: 18px;
}
.catalog-pagination a {
display: inline-grid;
place-items: center;
min-width: 36px;
min-height: 36px;
border: 1px solid #cfd8c9;
border-radius: 8px;
padding: 6px 9px;
font-weight: 900;
color: var(--brand-green);
background: #ffffff;
}
.catalog-pagination a:hover,
.catalog-pagination a.is-current {
color: #ffffff;
text-decoration: none;
background: var(--brand-green);
}
.text-page {
width: min(var(--page-max), 100%);
margin: 0 auto;