отображение ненужных цен за кг

This commit is contained in:
Alisa
2026-06-05 22:50:13 +03:00
parent 8f9bc92271
commit 4776769782
10 changed files with 969 additions and 89 deletions
+557 -42
View File
@@ -260,12 +260,13 @@ body {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
width: auto;
min-width: 96px;
max-width: 190px;
min-height: 38px;
min-width: 104px;
max-width: 220px;
min-height: 42px;
border-radius: 999px;
padding: 8px 13px;
padding: 8px 14px 8px 10px;
font-size: 13px;
line-height: 1.15;
font-weight: 850;
@@ -274,6 +275,10 @@ body {
white-space: normal;
}
.mega-root > span:last-child {
min-width: 0;
}
.mega-root:hover,
.mega-item:focus-within .mega-root,
.mega-item:hover .mega-root {
@@ -434,21 +439,23 @@ body {
.price-mode-bar {
border-bottom: 1px solid var(--line);
background: rgba(244, 246, 239, 0.9);
background:
linear-gradient(90deg, rgba(25, 91, 63, 0.08), rgba(207, 56, 45, 0.05)),
rgba(244, 246, 239, 0.96);
}
.price-mode-inner {
width: min(var(--page-max), calc(100% - (var(--page-gap) * 2)));
display: flex;
flex-wrap: wrap;
gap: 10px 14px;
width: min(980px, calc(100% - (var(--page-gap) * 2)));
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 8px 16px;
align-items: center;
margin: 0 auto;
padding: 10px 0;
padding: 12px 0;
}
.price-mode-inner > span {
font-size: 13px;
font-size: 14px;
font-weight: 900;
color: var(--brand-green);
}
@@ -456,15 +463,20 @@ body {
.price-mode-options {
display: flex;
flex-wrap: wrap;
gap: 6px;
gap: 8px;
justify-content: center;
}
.price-mode-button {
appearance: none;
min-height: 32px;
display: inline-flex;
gap: 8px;
align-items: center;
justify-content: center;
min-height: 36px;
border: 1px solid #cfd8c9;
border-radius: 999px;
padding: 7px 12px;
padding: 8px 14px;
font: inherit;
font-size: 13px;
font-weight: 850;
@@ -473,6 +485,24 @@ body {
cursor: pointer;
}
.price-mode-button b {
display: inline-flex;
align-items: center;
min-height: 22px;
border-radius: 999px;
padding: 3px 8px;
font-size: 11px;
line-height: 1;
color: #ffffff;
background: var(--brand-red);
white-space: nowrap;
}
.price-mode-button-cash {
border-color: rgba(25, 91, 63, 0.35);
box-shadow: 0 8px 26px rgba(25, 91, 63, 0.10);
}
.price-mode-button:hover,
.price-mode-button.is-active {
border-color: var(--brand-green);
@@ -480,8 +510,9 @@ body {
background: var(--brand-green);
}
.price-mode-inner small {
color: var(--muted);
.price-mode-button.is-active b {
color: var(--brand-red);
background: #ffffff;
}
.page {
@@ -949,7 +980,7 @@ a:hover {
.category-list {
display: grid;
gap: 7px;
gap: 2px;
margin: 0;
padding: 0;
list-style: none;
@@ -957,56 +988,189 @@ a:hover {
.category-list .category-list {
display: grid;
gap: 6px;
margin: 8px 0 0;
padding: 0 0 0 14px;
gap: 1px;
margin: 3px 0 6px;
padding: 0;
list-style: none;
}
.category-list li {
font-size: 15px;
font-weight: 700;
min-width: 0;
font-size: 14px;
font-weight: 760;
}
.category-list a,
.category-details summary {
box-sizing: border-box;
display: grid;
grid-template-columns: minmax(0, 1fr) 18px;
gap: 8px;
align-items: center;
width: 100%;
min-width: 0;
min-height: 36px;
border-radius: 8px;
padding: 7px 10px;
color: var(--ink);
}
.category-list a {
overflow-wrap: anywhere;
overflow: hidden;
text-decoration: none;
}
.category-list li.is-current > a,
.category-list a.is-current-link {
display: inline-block;
border-radius: 6px;
padding: 3px 6px;
color: #ffffff;
background: var(--brand-green);
.category-list.depth-0 > li > a,
.category-list.depth-0 > li > .category-details > summary {
grid-template-columns: 30px minmax(0, 1fr) 18px;
padding-left: 8px;
}
.category-list.depth-0 > li > a .category-icon,
.category-list.depth-0 > li > .category-details > summary .category-icon {
grid-column: 1;
}
.category-list.depth-0 > li > a span:last-child,
.category-list.depth-0 > li > .category-details > summary a {
grid-column: 2;
}
.category-list a span:last-child,
.category-details summary a {
overflow: hidden;
min-width: 0;
text-overflow: ellipsis;
white-space: nowrap;
}
.category-list.depth-0 > li {
border-bottom: 1px solid #edf1e9;
padding-bottom: 4px;
}
.category-list.depth-0 > li:last-child {
border-bottom: 0;
}
.category-list.depth-1 li {
font-size: 13px;
font-weight: 600;
font-weight: 680;
}
.category-list.depth-2 {
padding-left: 8px;
.category-list.depth-1 > li > a,
.category-list.depth-1 > li > .category-details > summary {
padding-left: 46px;
}
.category-list.depth-2 li {
font-size: 12px;
font-weight: 400;
font-weight: 560;
}
.category-list.depth-2 > li > a,
.category-list.depth-2 > li > .category-details > summary {
padding-left: 58px;
}
.category-list.depth-3 > li > a,
.category-list.depth-3 > li > .category-details > summary {
padding-left: 70px;
}
.category-list li.is-current > a,
.category-list li.is-current > .category-details > summary {
color: #ffffff;
background: var(--brand-green);
}
.category-list a.is-current-link {
color: inherit;
background: transparent;
}
.category-list li.is-current > a .category-icon,
.category-list li.is-current > .category-details > summary .category-icon {
color: #ffffff;
background: rgba(255, 255, 255, 0.14);
}
.category-list a:hover,
.category-details summary:hover {
color: var(--brand-green);
background: #eef4ea;
}
.category-list li.is-current > a:hover,
.category-list li.is-current > .category-details > summary:hover {
color: #ffffff;
background: var(--brand-green);
}
.category-details summary {
display: flex;
gap: 8px;
align-items: center;
min-height: 28px;
border-radius: 7px;
padding: 2px 4px;
position: relative;
cursor: pointer;
list-style: none;
}
.category-details summary:hover {
background: #eef4ea;
.category-details summary::-webkit-details-marker {
display: none;
}
.category-details summary::after {
grid-column: 2;
justify-self: center;
color: #8a9587;
content: ">";
transition: transform 0.16s ease;
}
.category-list.depth-0 > li > .category-details > summary::after {
grid-column: 3;
}
.category-details[open] > summary::after {
transform: rotate(90deg);
}
.category-icon {
display: inline-grid;
place-items: center;
width: 28px;
height: 28px;
border-radius: 8px;
line-height: 1;
color: var(--brand-green);
background: #edf4ea;
}
.category-icon svg {
width: 19px;
height: 19px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.9;
}
.category-icon.is-caviar svg circle,
.category-icon.is-meat svg circle,
.category-icon.is-cheese svg circle {
fill: currentColor;
stroke-width: 0;
}
.mega-category-icon {
flex: 0 0 26px;
width: 26px;
height: 26px;
border-radius: 9px;
}
.mega-category-icon svg {
width: 17px;
height: 17px;
}
.category-details summary a {
@@ -1190,6 +1354,12 @@ a:hover {
color: #2d372f;
}
.price-line.is-price-placeholder,
.package-price-note.is-price-placeholder {
visibility: hidden;
pointer-events: none;
}
.price-unit-label {
overflow: hidden;
min-width: 0;
@@ -1239,6 +1409,7 @@ a:hover {
.package-price-note {
display: block;
min-height: 15px;
margin: 3px 0 8px;
font-size: 12px;
line-height: 1.25;
@@ -1606,10 +1777,18 @@ body[data-payment-mode="cash"] .price-tier-popover:hover {
}
.variant-row b {
display: grid;
gap: 3px;
color: var(--brand-green);
text-align: right;
}
.variant-row b small {
font-size: 12px;
font-weight: 700;
color: var(--muted);
}
.variant-row .add-to-cart-button {
margin-top: 0;
}
@@ -1825,6 +2004,102 @@ body[data-payment-mode="cash"] .price-tier-popover:hover {
min-width: 0;
}
.catalog-sidebar {
position: sticky;
top: 96px;
align-self: start;
max-height: calc(100vh - 108px);
}
.catalog-side-stack {
display: grid;
gap: 12px;
max-height: inherit;
}
.catalog-menu-panel {
display: grid;
gap: 12px;
min-height: 0;
padding: 14px;
overflow: hidden;
}
.catalog-menu-panel > .category-list {
max-height: calc(100vh - 290px);
padding-right: 4px;
overflow: auto;
scrollbar-width: thin;
}
.catalog-side-heading {
display: flex;
gap: 8px;
align-items: baseline;
justify-content: space-between;
border-bottom: 1px solid var(--line);
padding-bottom: 10px;
}
.catalog-side-heading span {
font-size: 18px;
font-weight: 900;
color: var(--brand-green);
}
.catalog-side-heading small {
color: var(--muted);
font-size: 12px;
font-weight: 800;
}
.catalog-mini-cart {
display: grid;
gap: 8px;
padding: 14px;
}
.catalog-mini-cart div {
display: flex;
gap: 8px;
align-items: baseline;
justify-content: space-between;
}
.catalog-mini-cart span {
color: var(--muted);
font-size: 13px;
font-weight: 800;
}
.catalog-mini-cart strong {
color: var(--brand-green);
font-size: 18px;
}
.catalog-mini-cart p {
margin: 0;
color: var(--muted);
font-size: 13px;
}
.catalog-mini-cart a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 36px;
border-radius: 8px;
padding: 8px 12px;
font-weight: 900;
color: #ffffff;
background: var(--brand-green);
}
.catalog-mini-cart a:hover {
text-decoration: none;
background: #102f21;
}
.sticky-panel {
position: sticky;
top: 98px;
@@ -1842,7 +2117,216 @@ body[data-payment-mode="cash"] .price-tier-popover:hover {
}
.catalog-heading h1 {
margin-bottom: 0;
}
.payment-benefit-banner {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
gap: 22px;
align-items: center;
overflow: hidden;
border: 1px solid rgba(25, 91, 63, 0.16);
border-radius: 8px;
margin-bottom: 18px;
padding: 24px;
background:
radial-gradient(circle at 94% 16%, rgba(207, 56, 45, 0.12), transparent 26%),
linear-gradient(135deg, #fffdf8 0%, #eef5ea 100%);
box-shadow: var(--shadow-soft);
}
.qr-benefit-banner,
.invoice-benefit-banner {
display: none;
}
body[data-payment-mode="qr"] .cash-benefit-banner,
body[data-payment-mode="invoice"] .cash-benefit-banner {
display: none;
}
body[data-payment-mode="qr"] .qr-benefit-banner,
body[data-payment-mode="invoice"] .invoice-benefit-banner {
display: grid;
}
.qr-benefit-banner {
background:
radial-gradient(circle at 92% 18%, rgba(25, 91, 63, 0.14), transparent 28%),
linear-gradient(135deg, #fffdf8 0%, #eef6f4 100%);
}
.invoice-benefit-banner {
background:
radial-gradient(circle at 92% 18%, rgba(23, 61, 44, 0.12), transparent 28%),
linear-gradient(135deg, #fffdf8 0%, #f4f1ea 100%);
}
.cash-benefit-copy h2 {
max-width: 720px;
margin: 0 0 10px;
color: var(--brand-green);
font-size: clamp(24px, 3vw, 38px);
}
.cash-benefit-copy p:not(.eyebrow) {
max-width: 660px;
margin: 0;
color: var(--muted);
font-size: 16px;
}
.cash-receipt {
position: relative;
display: grid;
gap: 14px;
border: 1px solid #e2dfd2;
border-radius: 8px;
padding: 18px;
background: #ffffff;
box-shadow: 0 18px 44px rgba(22, 60, 43, 0.13);
}
.cash-receipt::before,
.cash-receipt::after {
position: absolute;
right: 18px;
left: 18px;
height: 1px;
background-image: linear-gradient(90deg, #d7ded2 50%, transparent 0);
background-size: 10px 1px;
content: "";
}
.cash-receipt::before {
top: 54px;
}
.cash-receipt::after {
bottom: 44px;
}
.cash-receipt-top {
display: flex;
gap: 10px;
align-items: baseline;
justify-content: space-between;
padding-bottom: 10px;
}
.cash-receipt-top span,
.cash-receipt small {
color: var(--muted);
font-size: 12px;
font-weight: 800;
}
.cash-receipt-top strong {
color: var(--brand-green);
font-size: 18px;
}
.cash-receipt dl {
display: grid;
gap: 9px;
margin: 0;
padding: 8px 0 10px;
}
.cash-receipt dl div {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
align-items: baseline;
}
.cash-receipt dt {
color: var(--ink);
font-weight: 850;
}
.cash-receipt dd {
margin: 0;
border-radius: 999px;
padding: 4px 10px;
color: #ffffff;
font-size: 16px;
font-weight: 950;
background: var(--brand-red);
}
.cash-receipt small {
justify-self: center;
padding-top: 8px;
text-align: center;
}
.payment-benefit-card {
display: grid;
place-items: center;
gap: 8px;
min-height: 190px;
border: 1px solid #e2dfd2;
border-radius: 8px;
padding: 20px;
text-align: center;
background: #ffffff;
box-shadow: 0 18px 44px rgba(22, 60, 43, 0.13);
}
.payment-benefit-card span,
.payment-benefit-card small {
color: var(--muted);
font-size: 12px;
font-weight: 850;
}
.payment-benefit-card strong {
color: var(--brand-green);
font-size: clamp(46px, 6vw, 72px);
line-height: 0.95;
}
.invoice-benefit-banner .payment-benefit-card strong {
max-width: 220px;
color: var(--brand-green);
font-size: clamp(32px, 4vw, 48px);
line-height: 1.02;
}
.payment-benefit-card p {
margin: 0;
color: var(--ink);
font-weight: 900;
}
.catalog-seo-panel {
margin-top: 26px;
border: 1px solid var(--line);
border-radius: 8px;
padding: 20px 22px;
color: #536055;
background: rgba(255, 254, 250, 0.72);
}
.catalog-seo-panel h2 {
margin-bottom: 10px;
color: var(--brand-green);
font-size: 22px;
}
.catalog-seo-content {
display: grid;
gap: 10px;
font-size: 14px;
line-height: 1.65;
}
.catalog-seo-content p,
.catalog-seo-content ul,
.catalog-seo-content ol {
margin: 0;
}
.catalog-product-grid {
@@ -2518,6 +3002,19 @@ body[data-payment-mode="cash"] .price-tier-popover:hover {
max-height: none;
}
.catalog-sidebar {
position: static;
max-height: none;
}
.catalog-side-stack {
max-height: none;
}
.catalog-menu-panel > .category-list {
max-height: 420px;
}
.info-visual {
min-height: 170px;
}
@@ -2526,6 +3023,10 @@ body[data-payment-mode="cash"] .price-tier-popover:hover {
grid-template-columns: 1fr;
}
.payment-benefit-banner {
grid-template-columns: 1fr;
}
.hero-media {
min-height: 240px;
}
@@ -2556,6 +3057,20 @@ body[data-payment-mode="cash"] .price-tier-popover:hover {
gap: 12px;
}
.price-mode-inner {
grid-template-columns: 1fr;
justify-items: stretch;
}
.price-mode-inner > span {
justify-self: center;
text-align: center;
}
.price-mode-options {
justify-content: center;
}
.brand-link {
width: 100%;
justify-content: flex-start;