html, body {
    background: #fff;
    color: #171717;
}
.kt-product {
    background: transparent;
    padding: 8px 0 36px;
}
.kt-wrap,
.kt-related {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}
.kt-crumb {
    font-size: 14px;
    margin-bottom: 14px;
}
.kt-crumb a {
    color: #333;
}
.kt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
}
.kt-gallery {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.kt-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 640px;
    overflow: auto;
}
.kt-thumbs button {
    border: 1px solid #e6e6e6;
    background: #fff;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}
.kt-thumbs img,
.kt-main img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    background: #f3f3f3;
}
.kt-main {
    position: relative;
    background: #f3f3f3;
    min-height: 280px;
}
.kt-nav, .kt-count { display: none; }
.kt-thumbs button.is-on { border-color: #111; }
.kt-cat {
    color: #0b57d0;
    font-size: 14px;
    font-weight: 700;
}
.kt-buy h1 {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #111 !important;
    font-size: 26px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin: 8px 0 !important;
    height: auto !important;
    max-height: none !important;
}
.kt-sku {
    color: #666;
    font-size: 14px;
    margin: 4px 0 12px;
}
.kt-price {
    color: #111 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 16px !important;
    padding: 6px 10px;
    background: var(--gold, #f0c43a);
    display: inline-block !important;
    position: static !important;
}
.kt-color {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.kt-color span { color: #666; }
.kt-swatches { display: flex; gap: 8px; margin-bottom: 16px; }
.kt-swatch {
    width: 54px;
    height: 54px;
    padding: 2px;
    border: 1px solid #ddd;
    background: #f3f3f3;
    cursor: pointer;
}
.kt-swatch.is-on { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.kt-swatch img { width: 100%; height: 100%; object-fit: contain; }
.kt-size-label { color: #666; margin-bottom: 8px; }
.kt-size-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kt-size {
    min-width: 52px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid #e2e2e2;
    background: #fff;
    font-weight: 650;
    cursor: pointer;
}
.kt-size.is-on { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.kt-size:disabled { color: #c5c5c5; background: #f7f7f7; cursor: not-allowed; text-decoration: line-through; }
.kt-size-grid.needs-size { outline: 1px solid var(--red, #a4161a); outline-offset: 4px; }
.kt-btn-cart {
    display: flex;
    width: 100%;
    margin-top: 14px;
    background: #111;
    color: #fff;
    border-radius: 2px;
    min-height: 52px;
    font-size: 16px;
    letter-spacing: .01em;
}
.kt-buy .kt-wa-link {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-top: 10px;
    padding: 12px 16px;
    background: #1f8a4c;
    color: #fff;
    border-radius: 2px;
    font-weight: 700;
    text-decoration: none;
}
.kt-buy .kt-wa-link svg { display: block; flex: 0 0 18px; }
.kt-note {
    color: #444;
    margin: 0 0 6px;
}
.kt-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}
.kt-options label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}
.kt-options select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}
.kt-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}
.kt-qty {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.kt-qty button,
.kt-qty input {
    width: 40px;
    height: 42px;
    border: 0;
    text-align: center;
    background: #fff;
    font-size: 16px;
}
.kt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}
.kt-btn-red {
    background: var(--red, #a4161a);
    color: #fff;
}
.kt-btn-line {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}
.kt-desc {
    margin-top: 16px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}
.kt-related {
    margin-bottom: 48px;
}
.kt-related h2 {
    font-size: 22px;
    margin: 8px 0 14px;
}
@media (max-width: 900px) {
    .kt-grid,
    .kt-gallery,
    .kt-options {
        grid-template-columns: 1fr;
    }
    .kt-thumbs { display: none; }
    .kt-main { min-height: 0; }
    .kt-nav {
        display: grid;
        place-items: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: #111;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
        cursor: pointer;
        z-index: 2;
    }
    .kt-nav.prev { left: 10px; }
    .kt-nav.next { right: 10px; }
    .kt-count {
        display: block;
        position: absolute;
        right: 12px;
        bottom: 12px;
        background: rgba(17, 17, 17, .62);
        color: #fff;
        border-radius: 999px;
        padding: 4px 9px;
        font-size: 12px;
        font-weight: 700;
    }
}
img.lazy-load,
.carousel-item img,
.card-product img {
    opacity: 1 !important;
}
.theme-inner {
    padding-top: 28px;
    padding-bottom: 48px;
}
.theme-inner h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.product-grid-theme {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.card-product .sale-price {
    font-weight: 700;
}
.sale-price {
    color: #8f1418;
    font-size: 16px;
    font-weight: 800;
}
.btn, .btn-red, .btn-dark, .btn-ghost, .btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}
.btn-red { background: var(--red, #a4161a); color: #fff; }
.btn-dark { background: #171717; color: #fff; }
.btn-ghost, .btn-yellow { background: #fff; color: #111; border: 1px solid #ddd; }
.panel, .form-card, .side-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
}
.page-title h1 { margin: 0 0 8px; }
.field { margin-bottom: 12px; }
.field label { font-weight: 700; display: block; margin-bottom: 4px; }
.field input, .field select, .field textarea, .filters select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.full { grid-column: 1 / -1; }
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { border-top: 1px solid #eee; padding: 10px 6px; vertical-align: middle; }
.cart-product { display: flex; gap: 10px; align-items: center; }
.cart-product img { width: 72px; height: 96px; object-fit: contain; }
.summary-row, .total-row { display: flex; justify-content: space-between; margin: 8px 0; }
.total-row { font-size: 20px; font-weight: 800; }
.alert { padding: 12px; border-radius: 8px; margin: 10px 0; }
.empty { padding: 24px; text-align: center; }
.cat-chips { display: flex; gap: 8px; overflow: auto; }
.cat-chips a { border: 1px solid #eee; border-radius: 999px; padding: 8px 12px; background: #fff; }
.product-page { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.gallery-main img, .thumbs img { width: 100%; object-fit: contain; background: #fafafa; }
.gallery-main { border: 1px solid #eee; border-radius: 12px; }
.thumbs button { border: 1px solid #eee; background: #fff; padding: 0; }
.prose { white-space: pre-wrap; line-height: 1.6; color: #333; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; }
.filters select { width: auto; }
.buy-panel .product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}
.store-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
.store-form input,
.store-form select,
.store-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.btn-tl {
    background: var(--red, #a4161a);
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}
.btn-line {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.alert-ok { background: #e9f8ee; color: #146c36; padding: 12px; border-radius: 8px; }
.alert-err { background: #ffecec; color: #a11212; padding: 12px; border-radius: 8px; }
.summary-box, .plain-box {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.cart-line {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-line img {
    width: 84px;
    height: 110px;
    object-fit: contain;
    background: #fafafa;
}
.two-col {
    display: grid;
    grid-template-columns: 1.4fr .7fr;
    gap: 20px;
}
.pager a {
    display: inline-block;
    margin: 16px 4px 0 0;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.pager a.active { background: var(--red, #a4161a); color: #fff; }
.pager { display: flex; flex-wrap: wrap; }
@media (max-width: 900px) {
    .two-col, .form-grid, .layout { grid-template-columns: 1fr; }
    .table { display: block; overflow-x: auto; }
    .kt-buy h1 { font-size: 22px !important; }
    .kt-price { font-size: 26px !important; }
    .kt-actions { flex-direction: column; align-items: stretch; }
    .kt-actions .kt-btn, .kt-actions .kt-qty { width: 100%; }
    .kt-qty { justify-content: center; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { padding: 12px 0; border-bottom: 1px solid #eee; }
    .cart-table td { border: 0; padding: 6px 0; }
    .cart-product { align-items: flex-start; }
    .btn, .btn-red, .kt-btn { max-width: 100%; }
}

.pay-screen { width: min(520px, 100%); max-width: 520px; margin: 28px auto 48px; }
.receipt-card { background: #fff; border: 1px solid #e6e0d6; border-radius: 16px; padding: 22px; box-shadow: 0 8px 28px rgba(28, 25, 23, .05); }
.receipt-meta { margin: 0 0 14px; color: #6b645c; }
.receipt-meta strong { color: #1c1917; }
.receipt-card .bank-box { margin-bottom: 0; }
.receipt-card .bank-box p { line-height: 1.45; }
.dekont-form { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 16px; }
.dekont-form .field { width: 100%; margin: 0; }
.dekont-form .field label { display: block; margin-bottom: 8px; }
.dekont-form .field small { display: block; margin-top: 8px; color: #6b645c; font-weight: 500; }
.dekont-form input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px dashed #c9c0b4;
    border-radius: 10px;
    background: #faf8f4;
}
.dekont-form .btn,
.dekont-form .btn-red {
    display: flex;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}
.pay-wait, .pay-result {
    background: #fff;
    border: 1px solid #e6e0d6;
    border-radius: 18px;
    padding: 32px 24px 28px;
    text-align: center;
}
.pay-result.is-shown {
    border-color: #f0c2c4;
    box-shadow: 0 16px 40px rgba(164, 22, 26, .12);
    animation: fail-shake .55s ease;
}
.fail-badge { position: relative; width: 96px; height: 96px; margin: 0 auto 8px; }
.fail-badge svg { position: relative; z-index: 1; width: 96px; height: 96px; }
.fail-badge circle, .fail-badge path { fill: none; stroke: #c4232a; stroke-width: 4; stroke-linecap: round; }
.fail-badge circle { stroke-dasharray: 190; stroke-dashoffset: 190; }
.fail-badge path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.pay-result.is-shown .fail-badge circle { animation: fail-draw .6s ease forwards; }
.pay-result.is-shown .fail-badge path { animation: fail-draw .35s .4s ease forwards; }
.fail-pulse {
    position: absolute; inset: 8px; border-radius: 50%; border: 2px solid #e24b4b; opacity: 0;
}
.pay-result.is-shown .fail-pulse { animation: fail-pulse 1.15s ease-out infinite; }
.pay-kicker { margin: 0; color: #a4161a; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.pay-result h1 { margin: 8px 0; font-size: 28px; color: #1c1917; }
.pay-lead { margin: 0 0 16px; color: #5c564f; }
.pay-facts { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; border: 1px solid #f0d6d7; border-radius: 12px; overflow: hidden; }
.pay-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff8f8; border-top: 1px solid #f3e4e4; }
.pay-facts li:first-child { border-top: 0; }
.pay-facts span { color: #6b645c; }
.pay-facts strong { color: #1c1917; }
.pay-facts .is-bad { color: #a4161a; }
.pay-result .btn-wa { display: flex; width: 100%; min-height: 48px; margin-top: 8px; background: #1f8a4c; color: #fff; }
@keyframes fail-draw { to { stroke-dashoffset: 0; } }
@keyframes fail-pulse {
    0% { transform: scale(.85); opacity: .7; }
    100% { transform: scale(1.35); opacity: 0; }
}
@keyframes fail-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}
