@charset "utf-8";
.products-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.products-page__header {
    margin-bottom: 28px;
}

.products-page__lead {
    margin: 0;
    max-width: 850px;
}

.product-price-grid {
    display: grid;
    gap: 24px;
}

.product-price-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 22px;
    background: #fff;
    border: 1px solid #eee2d2;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.product-price-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.product-price-card__image img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    transition: transform .2s ease;
}

.product-price-card:hover .product-price-card__image img {
    transform: scale(1.04);
}

.product-price-card__body h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.25;
}

.product-price-card__body h2 a {
    color: #2f9c45;
}

.price-lines {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.price-lines p {
    margin: 0;
    font-size: 17px;
    line-height: 1;
    color: #2f2f2f;
}

.price-lines strong {
    color: #d12b2b;
    font-size: 22px;
}

.price-lines span {
    display: inline-block;
    margin-left: 8px;
    color: #6a6a6a;
    font-size: 14px;
}

.product-price-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.product-stock {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 14px 0;
    padding: 10px 12px;
    border: 1px solid #ead7bf;
    border-radius: 8px;
    background: #fffaf3;
    color: #4a3424;
    font-size: 14px;
    line-height: 1.4;
}

.product-stock strong {
    color: #315a2f;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.product-stock strong::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e6f6ea;
    color: #2f9c45;
    font-size: 13px;
    font-weight: 800;
}

.product-stock span,
.product-stock p {
    margin: 0;
}

.product-stock p {
    flex-basis: 100%;
}

.product-stock--low_stock strong {
    color: #9f5a1f;
}

.product-stock--low_stock strong::before {
    content: "!";
    background: #fff1d8;
    color: #c25f00;
}

.product-stock--expected strong {
    color: #8a5a00;
}

.product-stock--expected strong::before {
    content: "\21BB";
    background: #fff1d8;
    color: #c25f00;
}

.product-stock--out_of_stock {
    background: #fff1f1;
    border-color: #f0c4c4;
}

.product-stock--out_of_stock strong {
    color: #9d1f1f;
}

.product-stock--out_of_stock strong::before {
    content: "\2715";
    background: #ffe2e2;
    color: #b42318;
}

.product-stock--preorder,
.product-stock--out_of_stock.product-stock--preorder {
    background: #fffaf3;
    border-color: #ead7bf;
}

.product-stock--preorder strong,
.product-stock--out_of_stock.product-stock--preorder strong {
    color: #9f5a1f;
}

.product-stock--preorder strong::before {
    content: none;
    display: none;
}

.product-review-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    padding: 12px 14px;
    border: 1px solid #ead7bf;
    border-radius: 10px;
    background: #fffaf3;
    color: #4a3424;
    text-decoration: none;
    font-weight: 700;
}

.product-review-summary:hover,
.product-review-summary:focus-visible {
    border-color: #d9a56e;
    color: #990000;
    outline: none;
}

.product-review-summary__stars {
    color: #ffb400;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 1px 1px #c60;
}

.form-success {
    background: #e7f7e8;
    color: #236d2d;
}

.btn-more,
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease;
}

.btn-more {
    background: #fff3e8;
    color: #a34700;
    border: 1px solid #f0c9a6;
}

.btn-buy {
    background: #2f9c45;
    color: #fff;
    border: 0;
    cursor: pointer;
}

.btn-more:hover,
.btn-buy:hover,
.btn-more:focus-visible,
.btn-buy:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.btn-buy:hover,
.btn-buy:focus-visible {
    background: #237836;
}

.buy-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.buy-form__qty-label {
    font-size: 14px;
    color: #5d5d5d;
}

.buy-form__qty {
    width: 74px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}

.empty-state {
    padding: 28px 20px;
    border: 1px solid #eee2d2;
    border-radius: 16px;
    background: #fffaf4;
    text-align: center;
}

/* товари */

@media (max-width: 768.98px) {
    .product-price-card { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; justify-items: center; gap: 10px; text-align: center; }
    .product-price-card__body { display: contents; }
    .product-price-card__body h2,
    .product-price-card__image,
    .price-lines,
    .product-stock,
    .product-price-card__actions { grid-column: 1 / -1; width: 100%; max-width: 460px; justify-self: center; }
    .product-price-card__body h2 { order: 1; margin: 0; text-align: center; }
    .product-price-card__image { order: 2; margin: -2px 0; }
    .price-lines { order: 3; justify-items: center; text-align: center; margin: 0; gap: 6px; }
    .product-stock { order: 4; justify-content: center; text-align: center; margin: 2px 0; }
    .product-stock p { flex-basis: 100%; }
    .product-price-card__actions { order: 5; justify-content: center; align-items: center; margin-top: 2px; }
    .buy-form { justify-content: center; align-items: center; }
    .product-price-card__image img { max-width: 138px; object-fit: contain; }
}
