Add product features, Heleket crypto payments and order status icons.

This commit is contained in:
shop
2026-06-27 16:29:33 +03:00
parent 361d35e6b4
commit 98a0bb01e2
31 changed files with 1673 additions and 126 deletions
+261 -1
View File
@@ -385,6 +385,9 @@
}
.order-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: 100px;
font-size: 0.8rem;
@@ -453,11 +456,268 @@
align-items: flex-end;
}
/* Иконки статусов */
.order-status__icon {
font-size: 0.95em;
line-height: 1;
}
/* Характеристики товара */
.product-specs {
display: grid;
gap: 8px;
margin: 16px 0;
padding: 16px;
background: #f9fafb;
border-radius: 12px;
border: 1px solid #e5e7eb;
}
.product-specs__row {
display: grid;
grid-template-columns: 120px 1fr;
gap: 12px;
font-size: 0.9rem;
}
.product-specs__row dt {
color: #6b7280;
margin: 0;
}
.product-specs__row dd {
margin: 0;
font-weight: 600;
color: #111827;
}
/* Кнопки товара */
.product-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin: 20px 0;
}
.product-actions__form {
display: flex;
gap: 8px;
align-items: center;
}
.product-reserve {
margin: 20px 0;
padding: 16px;
background: #fffbeb;
border: 1px solid #fde68a;
border-radius: 12px;
}
.product-reserve__row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.shop-input {
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 0.9rem;
min-width: 140px;
}
.shop-input--sm {
min-width: 200px;
padding: 8px 10px;
}
.btn--secondary {
background: #fef3c7;
color: #92400e;
border: 1px solid #fcd34d;
}
.btn--secondary:hover {
background: #fde68a;
}
.shop-alert--warn {
background: #fffbeb;
color: #92400e;
border: 1px solid #fcd34d;
}
.product-compare {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid #e5e7eb;
}
.product-compare__form {
display: flex;
gap: 8px;
align-items: center;
}
/* История цены */
.product-price-history {
margin-top: 32px;
}
.price-history-chart {
display: flex;
align-items: flex-end;
gap: 12px;
height: 160px;
margin: 20px 0;
padding: 0 8px;
}
.price-history-chart__bar {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
justify-content: flex-end;
min-width: 48px;
}
.price-history-chart__fill {
width: 100%;
max-width: 48px;
background: linear-gradient(180deg, #818cf8, #4f46e5);
border-radius: 6px 6px 0 0;
min-height: 8px;
}
.price-history-chart__value {
font-size: 0.7rem;
color: #4f46e5;
font-weight: 600;
margin-bottom: 4px;
}
.price-history-chart__label {
font-size: 0.7rem;
color: #9ca3af;
margin-top: 6px;
}
.price-history-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.price-history-table th,
.price-history-table td {
padding: 10px 12px;
border-bottom: 1px solid #e5e7eb;
text-align: left;
}
.price-history-table th {
color: #6b7280;
font-weight: 600;
}
/* Сравнение */
.compare-table-wrap {
overflow-x: auto;
margin-top: 24px;
}
.compare-table {
width: 100%;
border-collapse: collapse;
min-width: 600px;
}
.compare-table th,
.compare-table td {
padding: 14px 16px;
border: 1px solid #e5e7eb;
vertical-align: top;
}
.compare-table th {
background: #f9fafb;
}
.compare-table__img {
width: 80px;
height: 80px;
object-fit: cover;
border-radius: 8px;
}
.compare-table__remove {
margin-top: 8px;
}
.compare-table__spec td:first-child {
font-weight: 600;
color: #6b7280;
background: #f9fafb;
}
.checkout-payment-title {
margin: 24px 0 12px;
font-size: 1rem;
}
.checkout-payment {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 20px;
}
.checkout-payment__option {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 16px;
border: 2px solid #e5e7eb;
border-radius: 12px;
cursor: pointer;
transition: border-color 0.15s;
}
.checkout-payment__option:has(input:checked) {
border-color: #4f46e5;
background: #eef2ff;
}
.checkout-payment__label {
display: flex;
flex-direction: column;
gap: 2px;
}
.checkout-payment__label small {
color: #6b7280;
font-size: 0.85rem;
}
.order-card__payment {
font-size: 0.85rem;
color: #6b7280;
margin-top: 8px;
}
@media (max-width: 768px) {
.product-detail {
grid-template-columns: 1fr;
}
}
.cart-layout,
.checkout-layout,
.account-layout {