/* ==========================================================
   MADELSON — GLOBAL STYLES
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}
html,
body,
button,
input,
textarea,
select {
    font-family: "Nunito", Arial, Helvetica, sans-serif;
}
img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1380px;
    }
}


.site-footer {
    width: 100%;
    margin-top: 0;
    color: #071f4d;
   background-color: rgb(243, 245, 248);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    min-height: 125px;
    padding: 20px 0;
}

.footer-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
}

.footer-social img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-social a:last-child,
.footer-social a:last-child img {
    width: 28px;
    height: 28px;
}

.footer-phone {
    text-align: right;
}

.footer-phone a {
    color: #071f4d;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    text-decoration: none;
}

.footer-phone a:hover {
    color: #375793;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}




.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 50px;
    padding: 50px 0 55px;
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    margin: 0 0 22px;
    color: #071f4d;
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin: 0 0 12px;
    padding: 0;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    color: #555b65;
    font-size: 15px;
    line-height: 21px;
    font-weight: 400;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-menu a:hover {
    color: #375793;
}

.footer-contacts p {
    max-width: 270px;
    margin: 0 0 18px;
    padding: 0;
    color: #555b65;
    font-size: 15px;
    line-height: 22px;
}

.footer-contacts p:last-child {
    margin-bottom: 0;
}

.footer-copyright {
    border-top: 1px solid #e5e7eb;
}

.footer-copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 30px;
}

.footer-copyright-text {
    color: #777f8c;
    font-size: 14px;
    line-height: 20px;
}

.footer-payment img {
    display: block;
    width: 188px;
    height: 40px;
    object-fit: contain;
}

/* Планшет */

@media (max-width: 991px) {

    .footer-top {
        grid-template-columns: 1fr 1fr;
        row-gap: 25px;
    }

    .footer-logo {
        grid-column: 1;
    }

    .footer-social {
        grid-column: 2;
        justify-content: flex-end;
    }

    .footer-phone {
        grid-column: 1 / -1;
        text-align: left;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 30px;
    }
}

/* Телефон */

@media (max-width: 575px) {

    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding: 35px 0;
    }

    .footer-logo img {
        width: 170px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-phone {
        text-align: left;
    }

    .footer-phone a {
        font-size: 19px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 0;
    }

    .footer-column-title {
        margin-bottom: 17px;
    }

    .footer-copyright-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 15px;
        padding: 25px 0;
    }
}

/* =========================================================
   CATALOG CATEGORY
   ========================================================= */

.catalog-page {
    width: 100%;
    padding: 0px 0 70px;
}


/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.catalog-heading {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
}

.catalog-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-right: 10px;
    color: #071f4d;
    text-decoration: none;
}

.catalog-back-arrow {
    display: block;
    font-size: 35px;
    line-height: 35px;
    font-weight: 300;
}

.catalog-title {
    margin: 0;
    padding: 0;
    color: #071f4d;
    font-size: 38px;
    line-height: 48px;
    font-weight: 400;
}


/* ---------------------------------------------------------
   BREADCRUMBS + RESULTS
   --------------------------------------------------------- */

.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e3e7;
}

.catalog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #071f4d;
    font-size: 15px;
    line-height: 20px;
}

.catalog-breadcrumbs a {
    color: #9297a1;
    text-decoration: none;
}

.catalog-breadcrumbs a:hover {
    color: #375793;
}

.catalog-results {
    color: #071f4d;
    font-size: 15px;
    line-height: 20px;
}


/* ---------------------------------------------------------
   TOOLBAR
   --------------------------------------------------------- */

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
}

.catalog-filter-opener {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #30343a;
    font-family: inherit;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
}

.catalog-filter-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 18px;
}

.catalog-filter-icon span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #30343a;
}

.catalog-filter-icon span:nth-child(2) {
    width: 13px;
}

.catalog-filter-icon span:nth-child(3) {
    width: 9px;
}


/* ---------------------------------------------------------
   SORT
   --------------------------------------------------------- */

.catalog-sort {
    position: relative;
}

.catalog-sort select {
    width: 237px;
    height: 44px;
    padding: 0 38px 0 20px;
    border: 1px solid #e1e3e7;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #30343a;
    font-family: inherit;
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.catalog-sort::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-55%);
    color: #a1a5ac;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}


/* ---------------------------------------------------------
   FILTERS PANEL
   --------------------------------------------------------- */

.catalog-filters-panel {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 0 0 30px;
    padding: 25px;
    border: 1px solid #e1e3e7;
    border-radius: 8px;
    background: #fff;
}

.catalog-filters-panel.is-open {
    display: grid;
}

.catalog-filter-item {
    min-width: 0;
}

.catalog-filter-title {
    margin: 0 0 15px;
    color: #071f4d;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.catalog-price-fields {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-price-fields input {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #071f4d;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.catalog-price-fields span {
    color: #9297a1;
}

.catalog-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.catalog-filter-apply {
    padding: 11px 25px;
    border: 0;
    border-radius: 7px;
    background: #375793;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.catalog-filter-reset {
    padding: 10px 20px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #fff;
    color: #555b65;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}


/* ---------------------------------------------------------
   PRODUCTS
   --------------------------------------------------------- */

.mfilter-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px 32px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1199px) {

    .catalog-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 30px 20px;
    }

}

@media (max-width: 991px) {

    .catalog-heading {
        margin-bottom: 35px;
    }

    .catalog-meta {
        align-items: flex-start;
        gap: 15px;
    }

    .catalog-results {
        white-space: nowrap;
    }

    .catalog-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-filters-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .mfilter-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px 32px;
}

}

@media (max-width: 767px) {
    
    .mfilter-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 32px;
}

    .catalog-page {
        padding: 0px 0 45px;
    }

    .catalog-heading {
        margin-bottom: 30px;
    }

    .catalog-title {
        font-size: 30px;
        line-height: 38px;
    }

    .catalog-back {
        width: 38px;
        height: 38px;
        margin-right: 5px;
    }

    .catalog-back-arrow {
        font-size: 30px;
    }

    .catalog-meta {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px;
    }

    .catalog-toolbar {
        min-height: 80px;
    }

    .catalog-sort select {
        width: 210px;
    }

    .catalog-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 15px;
    }

    .catalog-filters-panel {
        grid-template-columns: 1fr;
    }

    .catalog-filter-actions {
        grid-column: auto;
    }

}

@media (max-width: 480px) {

    .catalog-title {
        font-size: 27px;
        line-height: 35px;
    }

    .catalog-results {
        font-size: 14px;
    }

    .catalog-toolbar {
        flex-wrap: wrap;
        min-height: 95px;
        padding: 10px 0;
    }

    .catalog-sort {
        width: 100%;
    }

    .catalog-sort select {
        width: 100%;
    }

    .catalog-products {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   CATALOG FILTER DRAWER
   ========================================================= */

.catalog-filter-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .70);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.catalog-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    width: 380px;
    max-width: 90vw;
    background: #fff;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}


/* ---------------------------------------------------------
   OPEN
   --------------------------------------------------------- */

body.catalog-filter-open {
    overflow: hidden;
}

body.catalog-filter-open .catalog-filter-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.catalog-filter-open .catalog-filter-drawer {
    transform: translateX(0);
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.catalog-filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 72px;
    padding: 0 30px;
    border-bottom: 1px solid #e1e3e7;
    box-sizing: border-box;
}

.catalog-filter-close {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #071f4d;
    font-family: inherit;
    font-size: 15px;
    line-height: 22px;
    cursor: pointer;
}

.catalog-filter-close > span:first-child {
    font-size: 29px;
    line-height: 22px;
    font-weight: 300;
}


/* ---------------------------------------------------------
   BODY
   --------------------------------------------------------- */

.catalog-filter-drawer-body {
    width: 100%;
}


/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */

.catalog-filter-section {
    width: 100%;
    padding: 0 31px;
    box-sizing: border-box;
}

.catalog-filter-categories {
    padding-top: 34px;
    padding-bottom: 27px;
    border-bottom: 1px solid #e1e3e7;
}

.catalog-filter-section-title {
    margin: 0 0 22px;
    color: #071f4d;
    font-size: 18px;
    line-height: 25px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   CATEGORY ROWS
   --------------------------------------------------------- */

.catalog-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
}

.catalog-category-row a {
    color: #071f4d;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
}

.catalog-category-row.is-active a {
    font-weight: 500;
}

.catalog-category-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-category-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 24px;
    padding: 0 9px;
    border: 1px solid #dfe3e8;
    border-radius: 20px;
    box-sizing: border-box;
    color: #9297a1;
    font-size: 13px;
    line-height: 24px;
}

.catalog-category-row.is-active .catalog-category-count {
    border-color: #375793;
    background: #375793;
    color: #fff;
}

.catalog-category-arrow {
    color: #a1a5ac;
    font-size: 17px;
    line-height: 20px;
}


/* ---------------------------------------------------------
   COLLAPSE FILTERS
   --------------------------------------------------------- */

.catalog-filter-collapse {
    padding: 0;
    border-bottom: 1px solid #e1e3e7;
}

.catalog-filter-collapse-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 94px;
    padding: 0 31px;
    border: 0;
    background: #fff;
    color: #071f4d;
    font-family: inherit;
    font-size: 18px;
    line-height: 25px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.catalog-filter-plus {
    color: #071f4d;
    font-size: 32px;
    line-height: 32px;
    font-weight: 300;
}

.catalog-filter-collapse-content {
    display: none;
    padding: 0 31px 25px;
}

.catalog-filter-collapse.is-open
.catalog-filter-collapse-content {
    display: block;
}

.catalog-filter-collapse.is-open .catalog-filter-plus {
    font-size: 0;
}

.catalog-filter-collapse.is-open .catalog-filter-plus::after {
    content: "−";
    font-size: 28px;
    line-height: 28px;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575px) {

    .catalog-filter-drawer {
        width: 380px;
        max-width: 100vw;
    }

    .catalog-filter-drawer-head {
        height: 64px;
        padding: 0 25px;
    }

    .catalog-filter-categories {
        padding: 30px 25px 25px;
    }

    .catalog-filter-collapse-button {
        min-height: 85px;
        padding: 0 25px;
    }

    .catalog-filter-collapse-content {
        padding-left: 25px;
        padding-right: 25px;
    }

}


/* =========================================================
   CATALOG PRODUCT CARD
   ========================================================= */

.catalog-product {
    min-width: 0;
    position: relative;

    padding: 16px;
    margin: -16px;

    border-radius: 14px;
    background: transparent;

    box-shadow: none;

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.catalog-product:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    transform: translateY(-4px);
    z-index: 5;
}

.catalog-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f5f7;
}

.catalog-product-image > a {
    display: block;
    width: 100%;
}

.catalog-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.catalog-product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #fff;
    color: #233f72;

    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 38px;
    font-weight: 300;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.catalog-product-content {
    padding-top: 13px;
}

.catalog-product-title {
    min-height: 24px;

    margin: 0 0 18px;
    padding: 0;

    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.catalog-product-title a {
    color: #071f4d;
    text-decoration: none;
}

.catalog-product-title a:hover {
    color: #375793;
}

.catalog-product-params {
    min-height: 43px;

    color: #777f8c;

    font-size: 14px;
    line-height: 21px;
}

.catalog-product-params div {
    margin: 0;
}

.catalog-product-params span {
    color: #071f4d;
}

.catalog-product-params small {
    color: #777f8c;
    font-size: 13px;
}

.catalog-product-price {
    margin-top: 18px;

    color: #071f4d;

    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.catalog-product-buy {
    display: block;

    width: 100%;
    margin-top: 16px;
    padding: 11px 15px;

    border-radius: 7px;

    background: #071f4d;
    color: #fff;

    font-size: 14px;
    line-height: 20px;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    box-sizing: border-box;

    transition: background .2s ease;
}

.catalog-product-buy:hover {
    background: #375793;
    color: #fff;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1199px) {

    .catalog-product-title {
        font-size: 15px;
    }

    .catalog-product-params {
        font-size: 13px;
    }

}

@media (max-width: 767px) {

    .catalog-product-content {
        padding-top: 11px;
    }

    .catalog-product-title {
        min-height: 0;
        margin-bottom: 12px;
    }

    .catalog-product-price {
        margin-top: 12px;
    }

    .catalog-product-buy {
        margin-top: 12px;
    }

}

@media (max-width: 480px) {

    .catalog-product-title {
        font-size: 16px;
    }

    .catalog-product-params {
        font-size: 14px;
    }

}

.text-page {
    padding: 0px 0 80px;
}

.text-page-heading {
    margin-bottom: 35px;
}

.text-page-title {
    margin: 0 0 17px;
    color: #071f4d;
    font-size: 34px;
    line-height: 42px;
    font-weight: 600;
}

.text-page-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #071f4d;
    font-size: 15px;
    line-height: 22px;
}

.text-page-breadcrumbs a {
    color: #9297a1;
    text-decoration: none;
}

.text-page-breadcrumbs a:hover {
    color: #375793;
}

.text-page-content {
    max-width: 100%;
}

.text-page-section {
    margin: 0 0 35px;
}

.text-page-section:last-child {
    margin-bottom: 0;
}

.text-page-section h2 {
    margin: 0 0 15px;
    color: #071f4d;
    font-size: 24px;
    line-height: 26px;
    font-weight: 700;
}

.text-page-section p {
    max-width: 100%;
    margin: 0 0 20px;
    color: #031236;
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
}

.text-page-section ul,
.text-page-section ol {
    max-width: 100%;
    margin: 0 0 25px;
    padding-left: 25px;
    color: #031236;
    font-size: 15px;
    line-height: 24px;
}

.text-page-section li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.text-page-section li:last-child {
    margin-bottom: 0;
}

.text-page-section a {
    color: #375793;
    text-decoration: none;
}

.text-page-section a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .text-page {
        padding: 25px 0 50px;
    }

    .text-page-heading {
        margin-bottom: 40px;
    }

    .text-page-title {
        margin-bottom: 18px;
        font-size: 30px;
        line-height: 38px;
    }

    .text-page-breadcrumbs {
        font-size: 14px;
    }

    .text-page-section {
        margin-bottom: 45px;
    }

    .text-page-section h2 {
        margin-bottom: 20px;
        font-size: 24px;
        line-height: 32px;
    }

    .text-page-section p,
    .text-page-section ul,
    .text-page-section ol {
        font-size: 15px;
        line-height: 1.65;
    }

}


.contacts-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 22px;
}

.contacts-info-item {
    min-width: 0;
    min-height: 175px;
    padding: 30px 34px;

    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.contacts-info-item h2 {
    margin: 0 0 8px;
    padding: 0;

    color: #071f4d;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.contacts-info-item p {
    margin: 0;
    padding: 0;

    color: #071f4d;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================================
   CONTACTS — DETAILS + MAP
   ========================================================= */

.contacts-details {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 55px;

    margin-top: 45px;
}

.contacts-requisites {
    padding: 0 5px;
}

.contacts-requisites p {
    margin: 0 0 28px;
    padding: 0;

    color: #071f4d;

    font-size: 16px;
    line-height: 1.7;
}

.contacts-requisites p:last-child {
    margin-bottom: 0;
}

.contacts-requisites-title {
    margin-bottom: 28px !important;
}

.contacts-map {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 991px) {

    .contacts-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-map,
    .contacts-map iframe {
        height: 400px;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575px) {

    .contacts-details {
        margin-top: 35px;
        gap: 30px;
    }

    .contacts-requisites {
        padding: 0;
    }

    .contacts-requisites p {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 22px;
    }

    .contacts-map,
    .contacts-map iframe {
        height: 320px;
    }

}


.faq {
    width: 100%;
}

.faq-item {
    margin-bottom: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.faq-question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 78px;
    padding: 20px 32px 20px 24px;
    border: 0;
    background: #fff;
    color: #071f4d;
    text-align: left;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    cursor: pointer;
}

.faq-question span:first-child {
    padding-right: 30px;
}

.faq-icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: #aeb4bc;
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 28px;
    color: #071f4d;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 18px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0 0 20px;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 10px;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

@media (max-width: 575px) {
    .faq-question {
        min-height: 65px;
        padding: 18px 20px;
        font-size: 18px;
        line-height: 26px;
    }

    .faq-answer {
        padding: 0 20px 22px;
        font-size: 15px;
    }
}

.catalog-product-image .catalog-product-wishlist {
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.catalog-product-image:hover .catalog-product-wishlist {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   MADelSON — FILTER
   ========================================= */

.catalog-filter-drawer {
    width: 390px;
    max-width: 90vw;
    background: #fff;
    color: #111;
}

/* Шапка */

.catalog-filter-drawer-head {
    height: 70px;
    padding: 0 25px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
}

.catalog-filter-close {
    border: 0;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111;
    font-size: 14px;
    cursor: pointer;
}

.catalog-filter-close span:first-child {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}


/* Тело */

.catalog-filter-drawer-body {
    padding: 10px 25px 40px;
}


/* Фильтр */

.catalog-filter-drawer .mfilter-block {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* Заголовок фильтра */

.catalog-filter-drawer .mfilter-block .card-header {
    padding: 18px 0 !important;
    background: #fff !important;
    border: 0 !important;
}

.catalog-filter-drawer .mfilter-block .card-header > span {
    font-size: 16px;
    font-weight: 400;
    color: #111;
}


/* Убираем синий badge со счётчиком */

.catalog-filter-drawer .mfilter-block .badge {
    display: none !important;
}


/* Убираем Bootstrap стрелку/лишнее */

.catalog-filter-drawer .mfilter-chevron {
    width: 12px;
    height: 12px;
}


/* Содержимое */

.catalog-filter-drawer .card-body {
    padding: 0 0 18px !important;
}


/* Список */

.catalog-filter-drawer .mfilter-items {
    max-height: 255px !important;
    overflow-y: auto;
    padding-right: 5px;
}


/* Элементы */

.catalog-filter-drawer .mfilter-item {
    margin: 0 0 12px !important;
    padding: 0 !important;
}


/* Label */

.catalog-filter-drawer .mfilter-item .form-check-label {
    display: flex !important;
    align-items: center;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
}


/* Чекбокс */

.catalog-filter-drawer .mfilter-item .form-check-input {
    width: 19px;
    height: 19px;
    margin: 0 10px 0 0 !important;
    border: 1px solid #9ca3af;
    border-radius: 2px;
    box-shadow: none !important;
    flex: 0 0 auto;
}


/* Текст */

.catalog-filter-drawer .mfilter-item .form-check-label > span:first-child {
    flex: 1;
}


/* Количество */

.catalog-filter-drawer .mfilter-count {
    margin-left: auto !important;
    padding: 0 !important;
    background: none !important;
    color: #999 !important;
    font-size: 13px;
    font-weight: 400;
}


/* Сброс / кнопки */

.catalog-filter-drawer .mfilter-buttons {
    margin-top: 20px !important;
}

.catalog-filter-drawer .mfilter-buttons button {
    border-radius: 0 !important;
    min-height: 45px;
}


/* Скролл */

.catalog-filter-drawer .mfilter-items::-webkit-scrollbar {
    width: 5px;
}

.catalog-filter-drawer .mfilter-items::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.catalog-filter-drawer .mfilter-items::-webkit-scrollbar-thumb {
    background: #aaa;
}


/* Мобильная версия */

@media (max-width: 600px) {

    .catalog-filter-drawer {
        width: 100%;
        max-width: 100%;
    }

    .catalog-filter-drawer-body {
        padding-left: 20px;
        padding-right: 20px;
    }

}

.catalog-product-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;

    display: none;

    padding: 6px 10px;

    border-radius: 20px;

    background: #f5c400;
    color: #fff;

    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}


.catalog-product-price-old {
    

    margin-right: 6px;

    color: #aeb4bd;
    font-size: 14px;
    line-height: 24px;

    text-decoration: line-through;
}

.catalog-product-price-current {
    color: #071f4d;
}

.product-description {
    margin-top: 60px;
}

.product-description-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.product-description-block:nth-child(even) {
    flex-direction: row-reverse;
}

.product-description-text,
.product-description-image {
    width: 50%;
}

.product-description-text {
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

.product-description-text p {
    margin: 0 0 18px;
}

.product-description-text p:last-child {
    margin-bottom: 0;
}

.product-description-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .product-description-block,
    .product-description-block:nth-child(even) {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }

    .product-description-text,
    .product-description-image {
        width: 100%;
    }
}


/* =========================================================
   PRODUCT TOP
   ========================================================= */

.product-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    gap: 44px;
    align-items: start;
    margin-top: 25px;
}


/* =========================================================
   GALLERY
   ========================================================= */

.product-gallery {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.product-gallery-thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-gallery-thumb {
    display: block;
    width: 108px;
    height: 108px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #f3f4f6;
    cursor: pointer;
}

.product-gallery-thumb.active {
    border-color: #071f4d;
}

.product-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #f5f6f8;
    color: #071f4d;
    cursor: pointer;
}

.product-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
    aspect-ratio: 1 / 1;
}

.product-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-zoom {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #071f4d;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
}


/* =========================================================
   PRODUCT INFO
   ========================================================= */

.product-info {
    min-width: 0;
}

.product-title {
    margin: 0;
    color: #071f4d;
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 22px 0 23px;
}

.product-price-current {
    color: #071f4d;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
}

.product-price-old {
    color: #aeb4bd;
    font-size: 15px;
    line-height: 24px;
    text-decoration: line-through;
}

.product-intro {
    margin-bottom: 21px;
    color: #071f4d;
    font-size: 14px;
    line-height: 21px;
}

.product-intro p {
    margin: 0 0 14px;
}

.product-intro p:last-child {
    margin-bottom: 0;
}

.product-description-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #071f4d;
    font-size: 14px;
    line-height: 20px;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   SELECTORS
   ========================================================= */

.product-selector {
    margin-bottom: 18px;
}

.product-selector-title {
    margin-bottom: 8px;
    color: #071f4d;
    font-size: 14px;
    line-height: 20px;
}

.product-selected-color,
.product-selected-size {
    font-weight: 400;
}


/* COLORS */

.product-color-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-color-option {
    position: relative;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
}

.product-color-option.active {
    border-color: #071f4d;
    box-shadow: inset 0 0 0 3px #fff;
}

.product-color-option-biscuit {
    background: #d8c2a6;
}

.product-color-option-graphite {
    background: #615d5f;
}

.product-color-option-purple {
    background: #8a7f8e;
}


/* SIZES */

.product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-size-option {
    min-width: 56px;
    padding: 7px 9px;
    border: 1px solid #e1e3e7;
    border-radius: 5px;
    background: #fff;
    color: #071f4d;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.product-size-option:hover {
    border-color: #375793;
}

.product-size-option.active {
    border-color: #071f4d;
    background: #071f4d;
    color: #fff;
}


/* CLEAR */

.product-clear-selection {
    display: block;
    margin: -4px 0 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #8d929a;
    font-size: 12px;
    cursor: pointer;
}


/* =========================================================
   VARIANT INFO
   ========================================================= */

.product-variant-info {
    margin-bottom: 18px;
}

.product-variant-info .product-property {
    display: none;
}


/* =========================================================
   BUY
   ========================================================= */

.product-buy-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 10px;
}

.product-quantity {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    height: 46px;
    border: 1px solid #e0e2e6;
    border-radius: 5px;
    overflow: hidden;
}

.product-quantity button {
    padding: 0;
    border: 0;
    background: #fff;
    color: #071f4d;
    font-size: 17px;
    cursor: pointer;
}

.product-quantity-input {
    width: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid #e0e2e6;
    border-right: 1px solid #e0e2e6;
    background: #fff;
    color: #071f4d;
    text-align: center;
    font-size: 14px;
    outline: none;
    appearance: textfield;
}

.product-quantity-input::-webkit-inner-spin-button,
.product-quantity-input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.product-buy-button {
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #375793;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease;
}

.product-buy-button:hover {
    background: #071f4d;
}


/* =========================================================
   WISHLIST
   ========================================================= */

.product-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 43px;
    margin-top: 17px;
    padding: 0 15px;
    border: 0;
    border-radius: 5px;
    background: #f3f5f8;
    color: #071f4d;
    font-size: 13px;
    cursor: pointer;
}

.product-wishlist span {
    margin-right: 5px;
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   ACCORDIONS
   ========================================================= */

.product-info-accordions {
    margin-top: 35px;
    border: 1px solid #e0e2e6;
    border-radius: 5px;
    overflow: hidden;
}

.product-info-accordion {
    border-bottom: 1px solid #e0e2e6;
}

.product-info-accordion:last-child {
    border-bottom: 0;
}

.product-info-accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 57px;
    padding: 0 27px;
    border: 0;
    background: #fff;
    color: #071f4d;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.product-info-accordion-button span:last-child {
    color: #b0b4bb;
    font-size: 18px;
    font-weight: 300;
}

.product-info-accordion-content {
    display: none;
    padding: 0 27px 20px;
    color: #68717e;
    font-size: 13px;
    line-height: 20px;
}

.product-info-accordion.open
.product-info-accordion-content {
    display: block;
}


/* =========================================================
   HIDE TECHNICAL MS3 VARIANTS
   ========================================================= */

.product-variants-source {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.product-variants-source .ms3-variant-row {
    display: none !important;
}


/* =========================================================
   DESKTOP WIDTH
   ========================================================= */

@media (min-width: 1200px) {

    .product-top {
        grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
        gap: 44px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .product-top {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-info {
        max-width: 700px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .product-gallery {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .product-gallery-thumb {
        width: 70px;
        height: 70px;
    }

    .product-buy-row {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .product-title {
        font-size: 20px;
        line-height: 26px;
    }

}

.product-details {
    margin-top: 65px;
    padding: 30px 35px 25px;
    border-radius: 10px;
    background: #f3f5f8;
}

.product-details-head {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin-bottom: 25px;
}

.product-details-tab {
    position: relative;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    color: #071f4d;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.product-details-tab.active {
    font-weight: 500;
}

.product-details-tab.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #375793;
}

.product-details-table {
    width: 100%;
}

.product-detail-row {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px solid #dfe3e8;
    color: #071f4d;
    font-size: 14px;
    line-height: 19px;
}

.product-detail-row:last-child {
    border-bottom: 0;
}

.product-detail-name {
    padding: 8px 15px 8px 0;
    color: #071f4d;
}

.product-detail-value {
    padding: 8px 0 8px 15px;
    color: #071f4d;
    font-weight: 400;
    text-align: right;
}


/* На мобильном */

@media (max-width: 767px) {

    .product-details {
        margin-top: 40px;
        padding: 22px 18px;
    }

    .product-details-head {
        gap: 25px;
    }

    .product-detail-row {
        grid-template-columns: 45% 55%;
        font-size: 13px;
    }

    .product-detail-value {
        padding-left: 10px;
    }

}

.product-related {
    margin-top: 55px;
}

.product-related-heading {
    margin: 0 0 20px;
    color: #071f4d;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.product-related-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.product-related-card {
    min-width: 0;
}

.product-related-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #f3f5f8;
}

.product-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.product-related-image:hover img {
    transform: scale(1.03);
}

.product-related-title {
    margin: 10px 0 5px;
    min-height: 38px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
}

.product-related-title a {
    color: #071f4d;
    text-decoration: none;
}

.product-related-title a:hover {
    color: #375793;
}

.product-related-meta {
    min-height: 30px;
    overflow: hidden;
    color: #7d8590;
    font-size: 10px;
    line-height: 15px;
}

.product-related-price {
    margin-top: 8px;
    color: #071f4d;
    font-size: 13px;
    line-height: 20px;
}

.product-related-buy {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 4px;
    background: #375793;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
}

.product-related-buy:hover {
    background: #071f4d;
    color: #fff;
}

@media (max-width: 991px) {
    .product-related-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .product-related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-related-price {
    margin-top: 8px;
    min-height: 22px;
    color: #071f4d;
    font-size: 13px;
    line-height: 22px;
}

.product-related-price-old {
    display: none;
    margin-right: 6px;
    color: #aeb4bd;
    font-size: 12px;
    text-decoration: line-through;
}

.product-related-price-current {
    color: #071f4d;
    font-size: 13px;
    font-weight: 500;
}


/* =========================================
   MINI CART
   ========================================= */


/* =========================================
   MINI CART — MADelSON
   ========================================= */

#header-mini-cart .mini-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

#header-mini-cart .mini-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999999;

    display: flex;
    flex-direction: column;

    width: 380px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;

    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .12);

    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
}

/* Открытая корзина */
#header-mini-cart.mini-cart-open .mini-cart-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#header-mini-cart.mini-cart-open .mini-cart-panel {
    transform: translateX(0);
    visibility: visible;
}

/* Иконка корзины остаётся поверх затемнения */
#header-mini-cart > .header-action.header-cart {
    position: relative;
    z-index: 101;
}

/* Шапка панели */
#header-mini-cart .mini-cart-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 71px;
    padding: 0 20px;

    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

#header-mini-cart .mini-cart-title {
    color: #071f4d;
    font-size: 21px;
    line-height: 28px;
    font-weight: 600;
}

#header-mini-cart .mini-cart-close {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0;
    border: 0;
    background: transparent;

    color: #071f4d;
    font-size: 16px;
    cursor: pointer;
}

#header-mini-cart .mini-cart-close-icon {
    font-size: 27px;
    line-height: 1;
    font-weight: 300;
}

/* Область товаров */
#header-mini-cart .mini-cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

/* Отменяем оформление таблицы полной корзины */
#header-mini-cart .mini-cart-body .table-responsive {
    width: 100%;
    overflow: visible;
}

#header-mini-cart .mini-cart-body table,
#header-mini-cart .mini-cart-body tbody {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
}

#header-mini-cart .mini-cart-body .ms-header,
#header-mini-cart .mini-cart-body .ms-footer {
    display: none !important;
}

#header-mini-cart .mini-cart-body tbody > tr:not(.ms-footer):not(.ms-header) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 24px;
    align-items: start;
    gap: 8px;

    width: 100%;
    margin: 0;
    padding: 0 0 20px;

    border: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

#header-mini-cart .mini-cart-body tbody > tr + tr:not(.ms-footer):not(.ms-header) {
    padding-top: 20px;
}

/* Ячейки */
#header-mini-cart .mini-cart-body td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    vertical-align: top;
}

/* Название и картинка */
#header-mini-cart .mini-cart-body td.ms-title {
    grid-column: 1;
    grid-row: 1 / span 2;
}

#header-mini-cart .mini-cart-body td.ms-title > .d-flex {
    display: flex !important;
    align-items: flex-start;
    gap: 12px !important;
}

#header-mini-cart .mini-cart-body .ms-image {
    flex: 0 0 80px;
    width: 80px;
    max-width: 80px;
    padding: 0 !important;
    margin: 0;
}

#header-mini-cart .mini-cart-body .ms-image img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f6f8;
}

#header-mini-cart .mini-cart-body td.ms-title > .d-flex > .ms-title {
    min-width: 0;
    padding: 0;
    color: #071f4d;
    font-size: 14px;
    line-height: 20px;
}

#header-mini-cart .mini-cart-body td.ms-title a {
    color: #071f4d;
    text-decoration: none;
}

#header-mini-cart .mini-cart-body td.ms-title a:hover {
    color: #375793;
}

/* Цена */
#header-mini-cart .mini-cart-body td.ms-price {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
    color: #375793;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

/* Удаление */
#header-mini-cart .mini-cart-body td.ms-remove {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
}

#header-mini-cart .mini-cart-body td.ms-remove form {
    margin: 0;
}

#header-mini-cart .mini-cart-body td.ms-remove button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #071f4d;

    font-size: 22px;
    line-height: 1;
    font-weight: 300;
}

#header-mini-cart .mini-cart-body td.ms-remove button:hover {
    background: #f1f3f6;
}

/* Скрываем очистку полной корзины */
#header-mini-cart .mini-cart-body > form {
    display: none !important;
}

/* Нижняя часть панели */
#header-mini-cart .mini-cart-footer {
    flex: 0 0 auto;
    padding: 18px 19px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/* Итог */
#header-mini-cart .mini-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 18px;
    color: #071f4d;
    font-size: 21px;
    line-height: 28px;
}

#header-mini-cart .mini-cart-total-price {
    color: #375793;
    font-size: 21px;
    font-weight: 500;
    white-space: nowrap;
}

/* Кнопки */
#header-mini-cart .mini-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;
    margin: 0 0 10px;
    padding: 10px 15px;

    box-sizing: border-box;
    border: 0;
    border-radius: 6px;
    background: #375793;
    color: #fff;

    font-size: 16px;
    line-height: 20px;
    text-align: center;
    text-decoration: none;

    transition: background .2s ease;
}

#header-mini-cart .mini-cart-button:last-child {
    margin-bottom: 0;
}

#header-mini-cart .mini-cart-button:hover {
    background: #294778;
    color: #fff;
}

/* Пустая корзина */
#header-mini-cart .mini-cart-empty {
    padding: 25px 0;
    color: #777f8c;
    font-size: 15px;
    line-height: 22px;
}

/* Блокируем прокрутку страницы при открытой корзине */
body.mini-cart-open {
    overflow: hidden;
}

/* Мобильная версия */
@media (max-width: 575px) {
    #header-mini-cart .mini-cart-panel {
        width: 100%;
    }

    #header-mini-cart .mini-cart-body {
        padding: 18px 20px;
    }

    #header-mini-cart .mini-cart-footer {
        padding: 18px 20px 20px;
    }
} 


/* ==========================================
   КОРЗИНА И ОФОРМЛЕНИЕ ЗАКАЗА
   MADelson
   ========================================== */

.text-page-content {
    color: #071f4d;
}

.text-page-content,
.text-page-content * {
    box-sizing: border-box;
}

/* Основная сетка */
.text-page-content > .row.align-items-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 24px;
    margin: 30px 0 60px;
    align-items: start;
}

.text-page-content > .row.align-items-top > [class*="col-"] {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
}

/* ==========================================
   ТАБЛИЦА КОРЗИНЫ
   ========================================== */

.text-page-content .table-responsive {
    overflow-x: auto;
    border: 1px solid #e5e8ed;
    border-radius: 10px;
    background: #fff;
}

.text-page-content .table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #071f4d;
    font-size: 13px;
}

.text-page-content .table > tbody > tr.ms-header {
    background: #f5f6f8;
}

.text-page-content .table > tbody > tr.ms-header th {
    padding: 14px 10px;
    border-bottom: 1px solid #e5e8ed;
    color: #5c6678;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.text-page-content .table > tbody > tr > td {
    padding: 16px 10px;
    border-bottom: 1px solid #e5e8ed;
    vertical-align: middle;
}

.text-page-content .table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.text-page-content .table .ms-title {
    color: #071f4d;
}

.text-page-content .table .ms-title a {
    color: #071f4d;
    text-decoration: none;
}

.text-page-content .table .ms-title a:hover {
    color: #375793;
}

/* Изображение товара */
.text-page-content .ms-image {
    flex: 0 0 85px;
    width: 85px;
    max-width: 85px;
    padding: 0 !important;
}

.text-page-content .ms-image img {
    display: block;
    width: 85px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f6f8;
}

/* Название товара */
.text-page-content td.ms-title > .d-flex > .ms-title {
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Выбор размера */
.text-page-content .ms3-cart-options-select {
    width: 100%;
    max-width: 150px;
    min-height: 36px;
    margin-top: 10px;
    padding: 6px 10px;
    border: 1px solid #dce1e8;
    border-radius: 5px;
    background-color: #fff;
    color: #071f4d;
    font-size: 13px;
}

/* Количество */
.text-page-content .quantity {
    gap: 4px;
    white-space: nowrap;
}

.text-page-content .quantity .qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    padding: 0;
    border: 1px solid #dce1e8;
    border-radius: 5px;
    background: #fff;
    color: #071f4d;
}

.text-page-content .quantity .qty-btn:hover {
    border-color: #375793;
    background: #f3f5f9;
}

.text-page-content .quantity .qty-input {
    width: 42px;
    min-width: 42px;
    height: 34px;
    padding: 4px;
    border: 1px solid #dce1e8;
    border-radius: 5px;
    text-align: center;
    color: #071f4d;
}

/* Цена */
.text-page-content .ms-price,
.text-page-content .ms-cost {
    color: #071f4d;
    font-size: 13px;
    white-space: nowrap;
}

.text-page-content .ms3_cost,
.text-page-content .ms3_total_cost {
    font-weight: 600;
}

/* Удаление товара */
.text-page-content .ms-remove form {
    margin: 0;
}

.text-page-content .ms-remove button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e5e8ed;
    border-radius: 50%;
    background: #fff;
    color: #071f4d;
    font-size: 20px;
    line-height: 1;
}

.text-page-content .ms-remove button:hover {
    border-color: #d7a1a1;
    background: #fff5f5;
    color: #b42318;
}

/* Итог таблицы */
.text-page-content .table > tbody > tr.ms-footer {
    background: #f5f6f8;
}

.text-page-content .table > tbody > tr.ms-footer th {
    padding: 14px 10px;
    border-top: 1px solid #e5e8ed;
    color: #071f4d;
    font-size: 13px;
    font-weight: 500;
}

/* Очистить корзину */
.text-page-content > .row > [class*="col-"] > form:not(.ms3_order_form) {
    margin-top: 14px;
}

.text-page-content button.btn-danger {
    border: 1px solid #e5e8ed;
    border-radius: 6px;
    background: #fff;
    color: #596579;
    font-size: 13px;
}

.text-page-content button.btn-danger:hover {
    border-color: #d7a1a1;
    background: #fff5f5;
    color: #b42318;
}

/* ==========================================
   БЛОК ОФОРМЛЕНИЯ ЗАКАЗА
   ========================================== */

.text-page-content .summary-inner {
    position: static !important;
    top: auto !important;
    padding: 24px !important;
    border: 1px solid #e5e8ed;
    border-radius: 10px;
    background: #fff;
}

/* Заголовки секций */
.text-page-content .order-section {
    min-width: 0;
}

.text-page-content .order-section h4 {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e8ed;
    color: #071f4d;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.text-page-content .order-section h4 i {
    color: #375793;
}

/* Подписи полей */
.text-page-content .form-label {
    display: block;
    margin-bottom: 7px;
    color: #34425a;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.text-page-content .required-star {
    color: #d94841;
}

/* Поля ввода */
.text-page-content .order-section .form-control,
.text-page-content .order-section .form-select {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dce1e8;
    border-radius: 5px;
    background-color: #fff;
    color: #071f4d;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.text-page-content .order-section textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.text-page-content .order-section .form-control::placeholder {
    color: #9aa3b2;
}

.text-page-content .order-section .form-control:focus,
.text-page-content .order-section .form-select:focus {
    border-color: #375793;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(55, 87, 147, .1);
}

/* Расстояния между полями */
.text-page-content .order-section .mb-3 {
    margin-bottom: 16px !important;
}

/* Оплата и доставка */
.text-page-content .payment-methods,
.text-page-content .delivery-methods {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.text-page-content .payment-option,
.text-page-content .delivery-option {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}

.text-page-content .payment-option:has(input:checked),
.text-page-content .delivery-option:has(input:checked) {
    border-color: #375793;
    background: #f3f6fc;
}

.text-page-content .payment-option .form-check-input,
.text-page-content .delivery-option .form-check-input {
    position: absolute;
    top: 14px;
    left: 12px;
    margin: 0;
    accent-color: #375793;
}

.text-page-content .payment-option .form-check-label,
.text-page-content .delivery-option .form-check-label {
    display: block;
    padding: 12px 12px 12px 36px;
    color: #071f4d;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.text-page-content .payment-name,
.text-page-content .delivery-name {
    font-weight: 500 !important;
}

/* Подсказки */
.text-page-content .form-text {
    margin-top: 7px;
    color: #788397;
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================
   ИТОГ ЗАКАЗА
   ========================================== */

.text-page-content .order-summary {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e5e8ed;
    border-radius: 8px;
    background: #f7f8fa;
}

.text-page-content .cost-breakdown {
    color: #071f4d;
    font-size: 14px;
    line-height: 1.5;
}

.text-page-content .cost-breakdown .text-muted {
    color: #788397 !important;
}

.text-page-content .cost-breakdown hr {
    border-color: #dce1e8;
    opacity: 1;
}

.text-page-content #ms3_order_cost {
    color: #375793;
    font-size: 22px;
    font-weight: 600;
}

/* Кнопки оформления */
.text-page-content .btn-primary {
    border: 1px solid #375793;
    border-radius: 6px;
    background: #375793;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, border-color .2s ease;
}

.text-page-content .btn-primary:hover {
    border-color: #294778;
    background: #294778;
    color: #fff;
}

.text-page-content .order-summary .btn-lg {
    min-height: 46px;
    padding: 12px 20px;
}

/* Сообщения об ошибках */
.text-page-content .invalid-feedback {
    font-size: 12px;
}

/* ==========================================
   АДАПТИВ
   ========================================== */

@media (max-width: 767px) {
    .text-page-content > .row.align-items-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 20px;
    }

    .text-page-content .summary-inner {
        padding: 18px !important;
    }

    .text-page-content .table {
        min-width: 620px;
    }

    .text-page-content .order-summary {
        padding: 16px;
    }

    .text-page-content .order-summary .row > [class*="col-"] {
        width: 100%;
    }

    .text-page-content .order-summary .d-flex.gap-2 {
        flex-direction: column;
    }

    .text-page-content .order-summary .d-flex.gap-2 form,
    .text-page-content .order-summary .d-flex.gap-2 button {
        width: 100%;
    }
}


/* Новая структура оформления заказа */

.checkout-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.checkout-customer-column,
.checkout-order-column {
    min-width: 0;
}

.checkout-customer-column,
.checkout-order-column {
    padding: 24px;
    border: 1px solid #e5e8ed;
    border-radius: 10px;
    background: #fff;
}

.checkout-customer-column .order-section + .order-section,
.checkout-order-column .order-section + .order-section {
    margin-top: 28px;
}

.checkout-form .order-section h4,
.checkout-total-section h4 {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e8ed;
    color: #071f4d;
    font-size: 18px;
    font-weight: 600;
}

.checkout-contacts-grid,
.checkout-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkout-contacts-grid .mb-3,
.checkout-address-grid .mb-3 {
    min-width: 0;
}

.checkout-building-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.checkout-building-grid .mb-3 {
    min-width: 0;
}

.checkout-building-grid .form-control {
    min-width: 0;
}

.checkout-payment-section {
    padding-top: 24px;
    border-top: 1px solid #e5e8ed;
}

.checkout-order-column .delivery-methods,
.checkout-order-column .payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checkout-order-column .delivery-option,
.checkout-order-column .payment-option {
    min-width: 0;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    background: #fff;
}

.checkout-order-column .delivery-option:has(input:checked),
.checkout-order-column .payment-option:has(input:checked) {
    border-color: #375793;
    background: #f3f6fc;
}

.checkout-order-column .delivery-option .form-check-label,
.checkout-order-column .payment-option .form-check-label {
    padding: 12px 10px 12px 32px;
    font-size: 12px;
    line-height: 1.5;
}

.checkout-order-column .form-check-input {
    left: 10px;
}

.checkout-total-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #dce1e8;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: #071f4d;
    font-size: 14px;
}

.checkout-grand-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dce1e8;
    font-size: 18px;
    font-weight: 600;
}

.checkout-grand-total span:last-child {
    color: #375793;
    white-space: nowrap;
}

.checkout-submit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.checkout-submit .btn {
    width: 100%;
    min-height: 46px;
}

@media (max-width: 991px) {
    .checkout-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .checkout-customer-column,
    .checkout-order-column {
        padding: 16px;
    }

    .checkout-contacts-grid,
    .checkout-address-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .checkout-building-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-order-column .delivery-methods,
    .checkout-order-column .payment-methods {
        grid-template-columns: minmax(0, 1fr);
    }
}


.checkout-page {
    width: 100%;
}

.checkout-cart-section {
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e8ed;
}

.checkout-cart-products .table-responsive {
    overflow-x: visible;
}

.checkout-cart-products table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.checkout-cart-products .ms-header,
.checkout-cart-products .ms-weight,
.checkout-cart-products .ms-count,
.checkout-cart-products .ms-footer,
.checkout-cart-products .ms-price,
.checkout-cart-products .ms-remove form input[name="ms3_action"][value="cart/clean"] {
    /* Скрываем ненужные элементы отдельно ниже */
}

.checkout-cart-products .ms-header,
.checkout-cart-products .ms-weight,
.checkout-cart-products .ms-count,
.checkout-cart-products .ms-footer,
.checkout-cart-products .ms-price {
    display: none;
}

.checkout-cart-products tr {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #e5e8ed;
}

.checkout-cart-products td {
    display: block;
    padding: 0;
    border: 0;
}

.checkout-cart-products td.ms-title {
    grid-column: 1 / 3;
}

.checkout-cart-products td.ms-remove {
    grid-column: 3;
    grid-row: 1;
}

.checkout-cart-products td.ms-title > .d-flex {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
}

.checkout-cart-products .ms-image {
    width: 64px;
    padding: 0 !important;
}

.checkout-cart-products .ms-image img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.checkout-cart-products td.ms-title .ms-title {
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-cart-products td.ms-title a {
    color: #071f4d;
    text-decoration: none;
}

.checkout-cart-products td.ms-title form {
    display: none;
}

.checkout-cart-products td.ms-remove button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #071f4d;
    font-size: 20px;
    line-height: 1;
}

.checkout-cart-products > form,
.checkout-cart-products form:has(input[value="cart/clean"]) {
    display: none;
}

/* ВАРИАНТЫ ДОСТАВКИ */
.checkout-order-column .delivery-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checkout-order-column .delivery-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 50px;
    margin: 0;
    padding: 0;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}

.checkout-order-column .delivery-option:has(input:checked) {
    border-color: #375793;
    background: #f2f5fb;
}

.checkout-order-column .delivery-option .form-check-input {
    position: absolute;
    top: 15px;
    left: 12px;
    float: none;
    margin: 0;
}

.checkout-order-column .delivery-option .form-check-label {
    display: block;
    padding: 12px 12px 12px 34px;
    color: #071f4d;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.checkout-order-column .delivery-option .delivery-desc {
    color: #7b8492;
    font-size: 12px;
    line-height: 1.4;
}

/* СПОСОБЫ ОПЛАТЫ */
.checkout-order-column .payment-methods {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.checkout-order-column .payment-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 50px;
    margin: 0;
    padding: 0;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}

.checkout-order-column .payment-option:has(input:checked) {
    border-color: #375793;
    background: #f2f5fb;
}

.checkout-order-column .payment-option .form-check-input {
    position: absolute;
    top: 15px;
    left: 12px;
    float: none;
    margin: 0;
}

.checkout-order-column .payment-option .form-check-label {
    display: block;
    padding: 12px 12px 12px 34px;
    color: #071f4d;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.checkout-order-column .payment-option .payment-desc {
    color: #7b8492;
    font-size: 12px;
    line-height: 1.4;
}

/* Мобильная версия */
@media (max-width: 575px) {
    .checkout-order-column .delivery-methods {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Скрываем стандартные радиокнопки */
.checkout-order-column .delivery-option .form-check-input,
.checkout-order-column .payment-option .form-check-input {
    display: none !important;
}

/* Убираем отступ, оставшийся под радиокнопку */
.checkout-order-column .delivery-option .form-check-label,
.checkout-order-column .payment-option .form-check-label {
    padding-left: 16px;
}



/* Блок товаров — оформление в стиле Madelson */
.checkout-cart-products {
    width: 100%;
    min-width: 0;
}

.checkout-cart-list {
    width: 100%;
    color: #071f4d;
}

/* Заголовок Товар / Сумма */
.checkout-cart-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 12px;
    align-items: center;
    padding: 0 0 16px;
    border-bottom: 1px solid #dce1e8;
    font-size: 13px;
    line-height: 20px;
}

.checkout-cart-table-head span:last-child {
    text-align: right;
}

/* Одна строка товара */
.checkout-cart-item {
    display: grid;
    grid-template-columns: 14px 72px minmax(0, 1fr) 90px;
    gap: 12px;
    align-items: center;
    position: relative;
    padding: 18px 0;
    border-bottom: 1px solid #e5e8ed;
}

/* Крестик удаления */
.checkout-cart-remove {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: center;
}

.checkout-cart-remove button {
    display: block;
    width: 14px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #071f4d;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
}

.checkout-cart-remove button:hover {
    color: #375793;
}

/* Изображение */
.checkout-cart-image {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f5f7;
}

.checkout-cart-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Название и характеристики */
.checkout-cart-info {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.checkout-cart-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px;
    line-height: 1.5;
}

.checkout-cart-title {
    color: #071f4d;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.checkout-cart-title:hover {
    color: #375793;
}

.checkout-cart-size,
.checkout-cart-count {
    color: #071f4d;
    font-size: 13px;
}

.checkout-cart-article {
    margin-top: 7px;
    color: #737d8c;
    font-size: 12px;
    line-height: 1.4;
}

/* Сумма товара */
.checkout-cart-cost {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    color: #071f4d;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

/* Общая сумма товаров */
.checkout-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #dce1e8;
    color: #071f4d;
    font-size: 14px;
}

.checkout-cart-total .ms3_total_cost {
    color: #375793;
    white-space: nowrap;
}

/* Пустая корзина */
.checkout-cart-empty {
    padding: 20px 0;
    color: #737d8c;
    font-size: 14px;
}

@media (max-width: 575px) {
    .checkout-cart-item {
        grid-template-columns: 14px 58px minmax(0, 1fr);
        gap: 9px;
    }

    .checkout-cart-image {
        width: 58px;
        height: 58px;
    }

    .checkout-cart-cost {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        padding-top: 5px;
        text-align: left;
    }
}

.checkout-cart-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.checkout-cart-remove button {
    display: block;
    width: 14px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none;
    box-shadow: none;
    background: transparent !important;
    color: #071f4d;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
    appearance: none;
}

.checkout-cart-remove button:hover {
    color: #375793;
}


/* Сердечко избранного */
.catalog-product-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #777;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

/* Наведение */
.catalog-product-wishlist:hover {
    color: #e53950;
    transform: scale(1.08);
}

/* Товар добавлен в избранное */
.catalog-product-wishlist.ms3f--active {
    color:#375793;
    background: #fff0f2;
}

/* Наведение на активное сердечко */
.catalog-product-wishlist.ms3f--active:hover {
    color: #375793;
}

/* Мобильные устройства */
@media (hover: none) {
    .catalog-product-wishlist:hover {
        transform: none;
    }
}

.catalog-product-wishlist.ms3f--active {
    font-size: 0;
}

.catalog-product-wishlist.ms3f--active::before {
    content: "♥";
    font-size: 24px;
    line-height: 1;
}


/* Карточка избранного */
.wishlist-product {
    position: relative;
    min-width: 0;
}

/* Кнопка удаления над карточкой */
.wishlist-product-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 34px;
    margin-bottom: 10px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: color .2s ease;
}

.wishlist-product-remove:hover {
    color: #e34438;
}

.wishlist-product-remove:first-letter {
    font-size: 20px;
}

/* Сердечко в избранном не показываем */
.wishlist-product .catalog-product-wishlist {
    display: none !important;
}


/* Избранное: сетка карточек */
#ms3f-page-items .ms3f-page__server-list {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
   gap: 35px 32px;
    width: 100%;
    margin: 0;
}



/* Удаление над карточкой */
#ms3f-page-items .wishlist-product-remove {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17315f;
    font: inherit;
    cursor: pointer;
}

#ms3f-page-items .wishlist-product-remove:hover {
    color: #e5443b;
}

@media (max-width: 991px) {
    #ms3f-page-items .ms3f-page__server-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 575px) {
    #ms3f-page-items .ms3f-page__server-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


.product-wishlist {
    cursor: pointer;
    transition: color .2s ease;
}

.product-wishlist span {
    font-size: 18px;
    margin-right: 6px;
    transition: color .2s ease;
}

.product-wishlist.ms3f--active {
    color: #375793;
}

.product-wishlist.ms3f--active span {
    color: #375793;
}


/* ========================================
   ЛИЧНЫЙ КАБИНЕТ — ВХОД И РЕГИСТРАЦИЯ
   ======================================== */

.cabinet-page {
   
    margin: 0 auto;
    padding-top: 35px;
    padding-bottom: 45px;
}

.cabinet-page > h1 {
    margin-bottom: 45px;
}

/* Убираем заголовок и вкладки */
.cabinet-page .ms3-auth-header,
.cabinet-page .ms3-auth-tabs {
    display: none !important;
}

/* Две колонки */
.cabinet-page .ms3-auth-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
}

/* Показываем обе формы одновременно */
.cabinet-page .ms3-auth-content > .tab-pane {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* Разделитель между формами */
.cabinet-page .ms3-auth-content > .tab-pane:first-child {
    padding-right: 45px;
    border-right: 1px solid #e1e3e7;
}

/* Заголовки форм */
.cabinet-page .ms3-auth-content > .tab-pane::before {
    display: block;
    margin-bottom: 24px;
    color: #142b50;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
}

.cabinet-page #login-form::before {
    content: "ВХОД";
}

.cabinet-page #register-form::before {
    content: "РЕГИСТРАЦИЯ";
}

/* Сбрасываем стандартные отступы */
.cabinet-page .ms3-auth-form {
    width: 100%;
    margin: 0;
}

.cabinet-page .ms3-auth-form .mb-3 {
    margin-bottom: 22px !important;
}

/* Подписи */
.cabinet-page .ms3-auth-form .form-label {
    display: block;
    margin-bottom: 9px;
    color: #142b50;
    font-size: 15px;
    line-height: 1.4;
}

/* Поля ввода */
.cabinet-page .ms3-auth-form .form-control {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 11px 16px;
    border: 1px solid #dedfe3;
    border-radius: 5px;
    background: #fff;
    color: #142b50;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none;
    box-sizing: border-box;
}

.cabinet-page .ms3-auth-form .form-control:focus {
    border-color: #385a9b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 90, 155, 0.10);
}

.cabinet-page .ms3-auth-form .form-control::placeholder {
    color: #9299a4;
    opacity: 1;
}

/* Поля имени и фамилии — друг под другом */
.cabinet-page .ms3-auth-form .row {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.cabinet-page .ms3-auth-form .row > * {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Чекбоксы */
.cabinet-page .ms3-auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    margin-top: 24px;
    margin-bottom: 24px !important;
}

.cabinet-page .ms3-auth-form .form-check-input {
    position: static;
    float: none;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.cabinet-page .ms3-auth-form .form-check-label {
    color: #142b50;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}

/* Кнопки */
.cabinet-page .ms3-auth-form .btn-primary {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 11px 20px;
    border: 1px solid #385a9b;
    border-radius: 5px;
    background: #385a9b;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cabinet-page .ms3-auth-form .btn-primary:hover {
    border-color: #29477f;
    background: #29477f;
}

/* Ссылка восстановления пароля */
.cabinet-page #forgot-password-link {
    color: #385a9b;
    font-size: 15px;
    text-decoration: none;
}

.cabinet-page #forgot-password-link:hover {
    text-decoration: underline;
}

/* Сообщения авторизации */
.cabinet-page .ms3-messages:empty {
    display: none;
}

/* Текст под полями регистрации */
.cabinet-page .ms3-auth-form .form-text {
    display: block;
    margin-top: 7px;
    color: #68758a;
    font-size: 13px;
}

/* Адаптация для планшетов и телефонов */
@media (max-width: 767px) {
    .cabinet-page {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .cabinet-page > h1 {
        margin-bottom: 30px;
    }

    .cabinet-page .ms3-auth-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .cabinet-page .ms3-auth-content > .tab-pane:first-child {
        padding-right: 0;
        padding-bottom: 35px;
        border-right: 0;
        border-bottom: 1px solid #e1e3e7;
    }

    .cabinet-page .ms3-auth-content > .tab-pane::before {
        font-size: 23px;
    }
}

/* ========================================
   MADelson — ЛИЧНЫЙ КАБИНЕТ
   ======================================== */

.cabinet-page .ms3-customer-account {
    color: #142b50;
}

.cabinet-page .ms3-customer-account > .container {
    max-width: 1320px;
    padding: 0;
}

.cabinet-page .ms3-customer-account > .container > .row {
    --bs-gutter-x: 24px;
    align-items: stretch;
}

/* Левая панель */
.cabinet-page .ms3-customer-sidebar {
    height: 100%;
    padding: 26px 16px;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    background: #fff;
}

/* Аватар */
.cabinet-page .customer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #edf1f7;
    color: #142b50;
    font-size: 24px;
    font-weight: 500;
}

/* Данные покупателя */
.cabinet-page .customer-info {
    padding: 0 0 24px;
    text-align: center;
}

.cabinet-page .customer-name {
    margin-bottom: 7px !important;
    color: #142b50;
    font-size: 20px;
    font-weight: 500;
}

.cabinet-page .customer-email {
    margin-bottom: 14px !important;
    color: #142b50 !important;
    font-size: 15px !important;
    overflow-wrap: anywhere;
}

.cabinet-page .verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* Навигация */
.cabinet-page .ms3-customer-sidebar .nav {
    gap: 5px;
}

.cabinet-page .ms3-customer-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 8px;
    color: #142b50;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.cabinet-page .ms3-customer-sidebar .nav-link:hover {
    background: #f3f6fb;
}

.cabinet-page .ms3-customer-sidebar .nav-link.active {
    background: #eaf2ff;
    color: #244f94;
    font-weight: 500;
}

.cabinet-page .ms3-customer-sidebar .nav-link svg {
    flex-shrink: 0;
}

.cabinet-page .ms3-customer-sidebar .nav-item hr {
    margin: 14px 2px !important;
    border-color: #e1e6ee;
    opacity: 1;
}

.cabinet-page .ms3-customer-sidebar .nav-link.text-danger {
    color: #c83d42 !important;
}

/* Карточка профиля */
.cabinet-page .ms3-customer-profile .card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: none !important;
}

/* Заголовок карточки */
.cabinet-page .ms3-customer-profile .card-header {
    padding: 26px 24px 18px;
    border: 0;
    background: #fff !important;
    color: #142b50 !important;
}

.cabinet-page .ms3-customer-profile .card-header h5 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
}

/* Внутренняя часть */
.cabinet-page .ms3-customer-profile .card-body {
    padding: 10px 24px 26px;
}

/* Информационный блок */
.cabinet-page .ms3-customer-profile-form::before {
    content: "ⓘ   Здесь вы можете изменить основные данные, которые используются при оформлении заказов.";
    display: block;
    margin-bottom: 30px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #edf5ff;
    color: #244574;
    font-size: 15px;
    line-height: 1.6;
}

/* Подписи полей */
.cabinet-page .ms3-customer-profile-form .form-label {
    display: block;
    margin-bottom: 9px;
    color: #142b50;
    font-size: 15px;
}

/* Поля ввода */
.cabinet-page .ms3-customer-profile-form .form-control {
    min-height: 51px;
    padding: 12px 15px;
    border: 1px solid #dce2eb;
    border-radius: 6px;
    background: #fff;
    color: #142b50;
    font-family: inherit;
    font-size: 16px;
    box-shadow: none;
}

.cabinet-page .ms3-customer-profile-form .form-control:focus {
    border-color: #385a9b;
    box-shadow: 0 0 0 2px rgba(56, 90, 155, .1);
}

/* Поля email и телефона */
.cabinet-page .ms3-customer-profile-form .input-group {
    flex-wrap: nowrap;
    gap: 12px;
}

.cabinet-page .ms3-customer-profile-form .input-group .form-control {
    min-width: 0;
}

.cabinet-page .ms3-customer-profile-form .input-group .btn {
    border-radius: 6px;
    white-space: nowrap;
}

.cabinet-page .ms3-customer-profile-form .btn-outline-warning {
    border-color: #385a9b;
    color: #385a9b;
}

.cabinet-page .ms3-customer-profile-form .btn-outline-warning:hover {
    background: #edf5ff;
    color: #244574;
}

.cabinet-page .ms3-customer-profile-form .input-group-text {
    border: 0;
    border-radius: 6px;
    background: #edf0f5 !important;
    font-size: 14px;
}

/* Подсказки и статусы */
.cabinet-page .ms3-customer-profile-form .form-text {
    margin-top: 7px;
    color: #8995a8;
    font-size: 13px;
}

.cabinet-page .ms3-customer-profile-form .text-warning {
    color: #d99a00 !important;
}

/* Разделитель перед сохранением */
.cabinet-page .ms3-customer-profile-form .d-flex.justify-content-end {
    padding-top: 20px;
    border-top: 1px solid #e1e6ee;
}

/* Кнопка сохранения */
.cabinet-page .ms3-customer-profile-form button[type="submit"] {
    min-width: 260px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid #385a9b;
    border-radius: 6px;
    background: #385a9b;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    transition: background .2s;
}

.cabinet-page .ms3-customer-profile-form button[type="submit"]:hover {
    border-color: #29477f;
    background: #29477f;
}

/* Планшеты */
@media (max-width: 991px) {
    .cabinet-page .ms3-customer-sidebar {
        padding: 22px 14px;
    }

    .cabinet-page .ms3-customer-profile .card-header {
        padding: 22px 20px 16px;
    }

    .cabinet-page .ms3-customer-profile .card-body {
        padding: 10px 20px 22px;
    }

    .cabinet-page .ms3-customer-profile-form .input-group {
        flex-wrap: wrap;
    }
}

/* Телефоны */
@media (max-width: 767px) {
    .cabinet-page .ms3-customer-account > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .cabinet-page .ms3-customer-sidebar {
        margin-bottom: 20px;
    }

    .cabinet-page .ms3-customer-profile .card-header h5 {
        font-size: 24px;
    }

    .cabinet-page .ms3-customer-profile-form .row {
        --bs-gutter-x: 12px;
    }

    .cabinet-page .ms3-customer-profile-form .input-group {
        flex-wrap: wrap;
    }

    .cabinet-page .ms3-customer-profile-form .input-group .btn {
        width: 100%;
    }

    .cabinet-page .ms3-customer-profile-form button[type="submit"] {
        width: 100%;
        min-width: 0;
    }
}

/* ========================================
   ЛИЧНЫЙ КАБИНЕТ — ИСПРАВЛЕНИЕ СЕТКИ
   ======================================== */

/* Контейнер личного кабинета */
.cabinet-page .ms3-customer-account > .container {
    width: 100%;
    max-width: 1320px;
    padding: 0;
}

/* Две колонки: меню и профиль */
@media (min-width: 768px) {
    .cabinet-page .ms3-customer-account > .container > .row {
        display: grid !important;
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 24px;
        margin: 0;
    }

    .cabinet-page .ms3-customer-account > .container > .row > .col-lg-3,
    .cabinet-page .ms3-customer-account > .container > .row > .col-md-4 {
        float: none !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cabinet-page .ms3-customer-account > .container > .row > .col-lg-9,
    .cabinet-page .ms3-customer-account > .container > .row > .col-md-8 {
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Карточки одинаково оформлены */
.cabinet-page .ms3-customer-sidebar,
.cabinet-page .ms3-customer-profile .card {
    box-sizing: border-box;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    background: #fff;
}

/* Меню занимает всю высоту своей колонки */
.cabinet-page .ms3-customer-sidebar {
    min-height: 100%;
}

/* Поля имени и фамилии в две колонки */
.cabinet-page .ms3-customer-profile-form > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 20px !important;
}

.cabinet-page .ms3-customer-profile-form > .row > div {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Поля занимают доступную ширину */
.cabinet-page .ms3-customer-profile-form .form-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Email и телефон */
.cabinet-page .ms3-customer-profile-form .input-group {
    display: flex;
    width: 100%;
    align-items: center;
}
.mb-3{margin-bottom:15px;}
.cabinet-page .ms3-customer-profile-form .input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.cabinet-page .ms3-customer-profile-form .input-group .btn {
    flex: 0 0 auto;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .cabinet-page .ms3-customer-account > .container > .row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin: 0;
    }

    .cabinet-page .ms3-customer-profile-form > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

/* Убираем маркеры списка в меню личного кабинета */
.cabinet-page .ms3-customer-sidebar ul,
.cabinet-page .ms3-customer-sidebar ul li {
    list-style: none !important;
}

.cabinet-page .ms3-customer-sidebar ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.cabinet-page .ms3-customer-sidebar ul li::marker {
    content: "" !important;
}

/* ========================================
   ЛИЧНЫЙ КАБИНЕТ — АДРЕСА И ЗАКАЗЫ
   ======================================== */

/* Карточка содержимого справа.
   Не затрагиваем страницу профиля */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) {
    min-width: 0;
    min-height: 100%;
    padding: 28px 30px;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    background: #fff;
    color: #142b50;
    box-sizing: border-box;
}

/* Заголовки разделов */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h2,
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h3,
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h4,
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h5 {
    margin: 0 0 22px;
    color: #142b50;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.4;
}

/* Основной текст */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) p {
    color: #142b50;
    line-height: 1.7;
}

/* Ссылки */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) a {
    color: #385a9b;
    text-decoration: none;
}

.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) a:hover {
    color: #29477f;
}

/* Кнопки */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

/* Основная синяя кнопка */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .btn-primary {
    border: 1px solid #385a9b;
    background: #385a9b;
    color: #fff;
}

.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .btn-primary:hover {
    border-color: #29477f;
    background: #29477f;
}

/* Светлая кнопка */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .btn-outline-primary {
    border: 1px solid #385a9b;
    background: #fff;
    color: #385a9b;
}

.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .btn-outline-primary:hover {
    background: #edf5ff;
}

/* Поля форм адреса */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .form-control,
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .form-select {
    min-height: 47px;
    border: 1px solid #dce2eb;
    border-radius: 6px;
    color: #142b50;
    box-shadow: none;
}

.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .form-control:focus,
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .form-select:focus {
    border-color: #385a9b;
    box-shadow: 0 0 0 2px rgba(56, 90, 155, .1);
}

/* Карточки адресов и заказов, если они предусмотрены шаблоном */
.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .card {
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    box-shadow: none;
}

.cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) .card-header {
    border-bottom: 1px solid #e1e6ee;
    background: #f8faff;
    color: #142b50;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) {
        padding: 20px 16px;
    }

    .cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h2,
    .cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h3,
    .cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h4,
    .cabinet-page .ms3-customer-content:not(:has(.ms3-customer-profile)) h5 {
        font-size: 22px;
    }
}

/* =========================================
   ЛИЧНЫЙ КАБИНЕТ — ФОРМА ДОБАВЛЕНИЯ АДРЕСА
   ========================================= */

.ms3-customer-address-form {
    width: 100%;
    min-width: 0;
    color: #172f55;
    font-size: 15px;
}

/* Карточка формы */
.ms3-customer-address-form > .card {
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: none !important;
    overflow: hidden;
}

/* Заголовок карточки */
.ms3-customer-address-form .card-header {
    padding: 22px 28px;
    background: #fff !important;
    color: #172f55 !important;
    border-bottom: 1px solid #e7ebf2;
}

.ms3-customer-address-form .card-header h5 {
    margin: 0;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 500;
}

/* Внутренняя область */
.ms3-customer-address-form .card-body {
    padding: 28px;
}

/* Подписи полей */
.ms3-customer-address-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: #172f55;
    font-size: 14px;
    font-weight: 400;
}

/* Звёздочки обязательных полей */
.ms3-customer-address-form .text-danger {
    color: #d94a55 !important;
}

/* Поля ввода */
.ms3-customer-address-form .form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #dfe5ed;
    border-radius: 6px;
    background-color: #fff;
    color: #172f55;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ms3-customer-address-form .form-control:focus {
    border-color: #35599b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 89, 155, .10);
}

.ms3-customer-address-form .form-control::placeholder {
    color: #9ba8ba;
}

/* Поле комментария */
.ms3-customer-address-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Подсказки */
.ms3-customer-address-form .form-text {
    margin-top: 7px;
    color: #8a98aa;
    font-size: 12px;
    line-height: 1.5;
}

/* Расстояние между полями */
.ms3-customer-address-form form > .mb-3,
.ms3-customer-address-form form > .row {
    margin-bottom: 22px !important;
}

/* Отступы между колонками */
.ms3-customer-address-form .row {
    --bs-gutter-x: 20px;
}

/* Кнопки */
.ms3-customer-address-form .btn {
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

/* Основная кнопка */
.ms3-customer-address-form .btn-primary {
    border: 1px solid #35599b;
    background: #35599b;
    color: #fff;
}

.ms3-customer-address-form .btn-primary:hover {
    border-color: #294981;
    background: #294981;
    color: #fff;
}

/* Кнопка отмены */
.ms3-customer-address-form .btn-secondary {
    border: 1px solid #dfe5ed;
    background: #fff;
    color: #53647b;
}

.ms3-customer-address-form .btn-secondary:hover {
    border-color: #c7d1df;
    background: #f5f7fa;
    color: #172f55;
}

/* Кнопки внизу формы */
.ms3-customer-address-form form > .d-flex {
    padding-top: 22px;
    border-top: 1px solid #e7ebf2;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .ms3-customer-address-form .card-header {
        padding: 18px 20px;
    }

    .ms3-customer-address-form .card-header h5 {
        font-size: 20px;
    }

    .ms3-customer-address-form .card-body {
        padding: 20px;
    }

    .ms3-customer-address-form .row {
        --bs-gutter-x: 12px;
    }

    .ms3-customer-address-form form > .d-flex {
        flex-direction: column-reverse;
        gap: 10px !important;
    }

    .ms3-customer-address-form form > .d-flex .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   ЛИЧНЫЙ КАБИНЕТ — МОИ ЗАКАЗЫ
   ========================================= */

/* Общая карточка содержимого */
.ms3-customer-content > .card,
.ms3-customer-content .card {
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: none !important;
    overflow: hidden;
}

/* Заголовки карточек */
.ms3-customer-content .card-header {
    padding: 20px 24px;
    background: #fff !important;
    color: #172f55 !important;
    border-bottom: 1px solid #e7ebf2;
}

.ms3-customer-content .card-header h4,
.ms3-customer-content .card-header h5 {
    margin: 0;
    color: #172f55;
    font-size: 22px;
    font-weight: 500;
}

/* Внутренние отступы */
.ms3-customer-content .card-body {
    padding: 24px;
}

/* Заголовки страниц */
.ms3-customer-content h3,
.ms3-customer-content h4,
.ms3-customer-content h5 {
    color: #172f55;
}

/* =========================================
   ФИЛЬТР ЗАКАЗОВ
   ========================================= */

.ms3-customer-content select,
.ms3-customer-content input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #dfe5ed;
    border-radius: 6px;
    background-color: #fff;
    color: #172f55;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

.ms3-customer-content select:focus,
.ms3-customer-content input:focus {
    border-color: #35599b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 89, 155, .10);
}

/* =========================================
   ТАБЛИЦЫ ЗАКАЗОВ
   ========================================= */

.ms3-customer-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e6ef;
    border-radius: 10px;
}

.ms3-customer-content table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #172f55;
    font-size: 14px;
}

.ms3-customer-content table th {
    padding: 16px 14px;
    background: #f7f9fc;
    color: #172f55;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid #e0e6ef;
}

.ms3-customer-content table td {
    padding: 17px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #e7ebf2;
}

.ms3-customer-content table tbody tr:last-child td {
    border-bottom: 0;
}

.ms3-customer-content table tbody tr:hover {
    background: #f8faff;
}

/* Ссылки на номера заказов */
.ms3-customer-content table a {
    color: #35599b;
    text-decoration: none;
}

.ms3-customer-content table a:hover {
    color: #24467f;
    text-decoration: underline;
}

/* =========================================
   СТАТУСЫ ЗАКАЗОВ
   ========================================= */

.ms3-customer-content .badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #edf3ff;
    color: #35599b;
    font-size: 12px;
    font-weight: 500;
}

/* =========================================
   КНОПКИ
   ========================================= */

.ms3-customer-content .btn {
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .2s ease,
                border-color .2s ease,
                color .2s ease;
}

.ms3-customer-content .btn-primary {
    border: 1px solid #35599b;
    background: #35599b;
    color: #fff;
}

.ms3-customer-content .btn-primary:hover {
    border-color: #294981;
    background: #294981;
    color: #fff;
}

.ms3-customer-content .btn-secondary {
    border: 1px solid #dfe5ed;
    background: #fff;
    color: #53647b;
}

.ms3-customer-content .btn-secondary:hover {
    background: #f5f7fa;
    color: #172f55;
}

.ms3-customer-content .btn-outline-primary {
    border: 1px solid #35599b;
    background: #fff;
    color: #35599b;
}

.ms3-customer-content .btn-outline-primary:hover {
    background: #35599b;
    color: #fff;
}

.ms3-customer-content .btn-outline-danger,
.ms3-customer-content .btn-danger {
    border: 1px solid #e1bfc3;
    background: #fff;
    color: #c74450;
}

.ms3-customer-content .btn-outline-danger:hover,
.ms3-customer-content .btn-danger:hover {
    border-color: #c74450;
    background: #c74450;
    color: #fff;
}

/* Иконки-кнопки в таблице */
.ms3-customer-content table .btn {
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
}

/* =========================================
   ДЕТАЛИ ЗАКАЗА
   ========================================= */

/* Ссылка «Назад к списку» */
.ms3-customer-content a:not(.btn) {
    color: #35599b;
}

.ms3-customer-content a:not(.btn):hover {
    color: #24467f;
}

/* Информационные блоки заказа */
.ms3-customer-content .order-info,
.ms3-customer-content .order-details,
.ms3-customer-content .order-address,
.ms3-customer-content .order-delivery,
.ms3-customer-content .order-payment {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    background: #fff;
}

/* Подписи в деталях заказа */
.ms3-customer-content .text-muted {
    color: #8593a6 !important;
}

/* Итоговая стоимость */
.ms3-customer-content .order-total,
.ms3-customer-content .total-cost {
    color: #172f55;
    font-size: 16px;
    font-weight: 600;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */

@media (max-width: 767px) {
    .ms3-customer-content .card-header {
        padding: 17px 18px;
    }

    .ms3-customer-content .card-header h4,
    .ms3-customer-content .card-header h5 {
        font-size: 19px;
    }

    .ms3-customer-content .card-body {
        padding: 16px;
    }

    .ms3-customer-content table {
        min-width: 620px;
    }

    .ms3-customer-content .btn {
        font-size: 13px;
    }

    .ms3-customer-content .table-responsive {
        margin-bottom: 12px;
    }
}


/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ — КАРТОЧКА ЗАКАЗА
   ========================================================= */

.ms3-customer-order-details {
    color: #233f72;
    font-size: 15px;
}

/* Карточки */
.ms3-customer-order-details .card {
    border: 1px solid #dfe6f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: none !important;
    margin-bottom: 24px;
}

/* Заголовок карточки заказа */
.ms3-customer-order-details > .card > .card-header {
    padding: 20px 24px;
    background: #f5f8fd !important;
    color: #233f72 !important;
    border-bottom: 1px solid #dfe6f0;
}

.ms3-customer-order-details .card-header h5 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #233f72;
}

/* Кнопка назад */
.ms3-customer-order-details > .mb-3 {
    margin-bottom: 20px !important;
}

.ms3-customer-order-details .btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border: 1px solid #dfe6f0;
    border-radius: 8px;
    background: #fff;
    color: #233f72;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.ms3-customer-order-details .btn-outline-secondary:hover {
    background: #edf4ff;
    border-color: #c8d9f4;
    color: #315ca5;
}

/* Кнопка отмены заказа */
.ms3-customer-order-details .ms3-order-cancel {
    padding: 8px 14px;
    border: 1px solid #f0caca;
    border-radius: 8px;
    background: #fff;
    color: #c74747;
    transition: background .2s, border-color .2s;
}

.ms3-customer-order-details .ms3-order-cancel:hover {
    background: #fff1f1;
    border-color: #e8aaaa;
    color: #b52f2f;
}

/* Статус заказа */
.ms3-customer-order-details .card-header .badge {
    padding: 7px 12px;
    border: 1px solid #d5e4fb;
    border-radius: 20px;
    background: #eaf2ff !important;
    color: #315ca5 !important;
    font-size: 13px;
    font-weight: 500;
}

/* Основная часть карточки */
.ms3-customer-order-details > .card > .card-body {
    padding: 24px;
}

.ms3-customer-order-details .text-muted {
    color: #8290a5 !important;
}

.ms3-customer-order-details .card-body > p:first-child {
    margin-bottom: 20px !important;
}

/* =========================================================
   ТАБЛИЦА ТОВАРОВ
   ========================================================= */

.ms3-customer-order-details .table-responsive {
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    overflow-x: auto;
}

.ms3-customer-order-details .ms3-order-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #233f72;
    vertical-align: middle;
}

.ms3-customer-order-details .ms3-order-table > thead > tr > th {
    padding: 16px 18px;
    background: #f5f8fd;
    color: #233f72;
    border-bottom: 1px solid #dfe6f0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.ms3-customer-order-details .ms3-order-table > tbody > tr > td {
    padding: 20px 18px;
    background: #fff;
    border-bottom: 1px solid #e9edf4;
    font-size: 14px;
}

.ms3-customer-order-details .ms3-order-table > tbody > tr:last-child > td {
    border-bottom: 1px solid #e9edf4;
}

.ms3-customer-order-details .ms3-order-table > tbody > tr:hover > td {
    background: #f9fbff;
}

.ms3-customer-order-details .ms3-order-table .fw-semibold {
    color: #233f72;
    font-size: 15px;
    font-weight: 600;
}

.ms3-customer-order-details .ms3-order-table .small.text-muted {
    margin-top: 7px !important;
    color: #8290a5 !important;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Количество */
.ms3-customer-order-details .ms3-order-table .badge {
    padding: 7px 11px;
    border-radius: 6px;
    background: #edf4ff !important;
    color: #315ca5 !important;
    font-size: 13px;
    font-weight: 500;
}

/* Цена */
.ms3-customer-order-details .ms3-order-table .fw-bold,
.ms3-customer-order-details .ms3-order-table .fw-semibold {
    color: #233f72;
}

/* Итоговая часть таблицы */
.ms3-customer-order-details .ms3-order-table > tfoot > tr > td {
    padding: 12px 18px;
    background: #f9fbff;
    border-top: 0;
    color: #536783;
    font-size: 14px;
}

.ms3-customer-order-details .ms3-order-table > tfoot > tr:last-child > td {
    padding-top: 17px;
    padding-bottom: 17px;
    background: #edf4ff;
    color: #233f72;
    font-size: 17px;
    font-weight: 700;
    border-top: 1px solid #dfe6f0;
}

/* =========================================================
   АДРЕС, ДОСТАВКА И ОПЛАТА
   ========================================================= */

.ms3-customer-order-details > .card.mb-4:not(:first-of-type) .card-header,
.ms3-customer-order-details .row > [class*="col-"] .card-header {
    padding: 17px 20px;
    background: #f5f8fd !important;
    color: #233f72;
    border-bottom: 1px solid #e1e7f0;
}

.ms3-customer-order-details .card-header h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #233f72;
    font-size: 16px;
    font-weight: 600;
}

.ms3-customer-order-details .card-header svg {
    flex-shrink: 0;
    color: #315ca5;
}

.ms3-customer-order-details .row > [class*="col-"] .card-body {
    padding: 20px;
}

.ms3-customer-order-details .row > [class*="col-"] .card-body p {
    margin: 0;
    color: #536783;
    line-height: 1.7;
}

/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */

@media (max-width: 767px) {
    .ms3-customer-order-details > .card > .card-header {
        padding: 16px;
    }

    .ms3-customer-order-details > .card > .card-body {
        padding: 15px;
    }

    .ms3-customer-order-details .card-header h5 {
        font-size: 19px;
    }

    .ms3-customer-order-details .ms3-order-table > thead > tr > th,
    .ms3-customer-order-details .ms3-order-table > tbody > tr > td,
    .ms3-customer-order-details .ms3-order-table > tfoot > tr > td {
        padding: 12px;
    }

    .ms3-customer-order-details .ms3-order-table .col-count,
    .ms3-customer-order-details .ms3-order-table .col-price,
    .ms3-customer-order-details .ms3-order-table .col-cost {
        white-space: nowrap;
    }

    .ms3-customer-order-details .card-header .d-flex {
        align-items: flex-start !important;
    }

    .ms3-customer-order-details .ms3-order-cancel {
        font-size: 13px;
    }
}



/* =========================================================
   HEADER ACTIONS — АККАУНТ, ИЗБРАННОЕ, КОРЗИНА
   ========================================================= */

/* Общий контейнер */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* Обёртки элементов */
.header-actions > .header-action,
.header-actions > #header-mini-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin: 0;
    padding: 0;
}

/* Ссылки */
.header-actions .header-action > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e5ec;
    border-radius: 50%;
    background: #fff;
    color: #233f72;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .2s ease,
                border-color .2s ease,
                color .2s ease;
}

/* Единый размер иконок */
.header-actions .header-action-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    line-height: 1;
    box-sizing: border-box;
}

/* Аккаунт */
.header-actions .header-account-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233f72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3.5'/%3E%3Cpath d='M4.5 21v-2a7.5 7.5 0 0 1 15 0v2z'/%3E%3C/svg%3E");
}

/* Избранное */
.header-actions .header-wishlist-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233f72' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8l1.1 1.1L12 21l7.8-7.5 1.1-1.1a5.5 5.5 0 0 0-.1-7.8z'/%3E%3C/svg%3E");
}

/* Корзина — синяя кнопка */
.header-actions #header-mini-cart .header-cart > a {
    background: #315ca5;
    border-color: #315ca5;
    color: #fff;
}

.header-actions .header-cart-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.5 11.5a2 2 0 0 0 2 1.5h7.8a2 2 0 0 0 1.9-1.5L21 8H6'/%3E%3Ccircle cx='10' cy='21' r='1'/%3E%3Ccircle cx='18' cy='21' r='1'/%3E%3C/svg%3E");
}

/* Убираем возможные старые псевдоиконки */
.header-actions .header-action-icon::before,
.header-actions .header-action-icon::after {
    content: none !important;
    display: none !important;
}

/* Счётчики */
.header-actions .header-counter {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    width: auto;
    height: 19px;
    padding: 0 4px;
    border: 1px solid #e0e5ec;
    border-radius: 10px;
    background: #fff;
    color: #233f72;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
}

/* Наведение */
.header-actions .header-action > a:hover {
    background: #edf4ff;
    border-color: #cbdaf1;
}

.header-actions #header-mini-cart .header-cart > a:hover {
    background: #274d8c;
    border-color: #274d8c;
}

/* Не даём корзине и её обёртке смещать элементы */
#header-mini-cart {
    position: relative;
    flex-shrink: 0;
}

#header-mini-cart .header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
}

/* Мобильная версия */
@media (max-width: 575px) {
    .header-actions {
        gap: 8px;
    }

    .header-actions > .header-action,
    .header-actions > #header-mini-cart {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .header-actions .header-action > a,
    .header-actions #header-mini-cart .header-cart > a {
        width: 42px;
        height: 42px;
    }

    .header-actions .header-action-icon {
        width: 20px;
        height: 20px;
    }

    #header-mini-cart .header-cart {
        width: 42px;
        height: 42px;
    }
}

/* =========================================
   ГАЛЕРЕЯ ТОВАРА — УВЕЛИЧЕННЫЕ МИНИАТЮРЫ
   ========================================= */

.product-gallery {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.product-gallery-thumbs {
    width: 100px;
    min-width: 0;
    max-height: 620px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-gallery-thumbs-list {
    width: 100%;
    height: 520px;
    max-height: 520px;
    min-height: 0;
    flex: 0 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.product-gallery-thumb {
    width: 100%;
    height: 100px;
    min-height: 100px;
    flex: 0 0 100px;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background: #fff;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-gallery-thumb.active {
    border-color: #345ba0;
}

.product-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 100%;
    height: 32px;
    cursor: pointer;
}

.product-gallery-main {
    min-width: 0;
}

.product-gallery-image {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .product-gallery {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
    }

    .product-gallery-thumbs {
        width: 64px;
        max-height: 380px;
    }

    .product-gallery-thumbs-list {
        height: 300px;
        max-height: 300px;
    }

    .product-gallery-thumb {
        height: 64px;
        min-height: 64px;
        flex-basis: 64px;
    }

    .product-gallery-image {
        max-height: 380px;
    }
}


.product-related-characteristics {
    margin: 12px 0;
    color: #7b8492;
    font-size: 14px;
    line-height: 1.6;
}

.product-related-characteristic {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-related-characteristic > span:first-child {
    color: #233f72;
}

.product-related-characteristic > span:last-child {
    min-width: 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.certificate-item {
    min-width: 0;
}

.certificate-link {
    display: block;
    overflow: hidden;
    border: 1px solid #e1e4e8;
    background: #fff;
    cursor: zoom-in;
}

.certificate-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.certificate-link:hover img {
    transform: scale(1.02);
}

/* Модальное окно */

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
}

.certificate-modal.is-open {
    display: flex;
}

.certificate-modal-image {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.certificate-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 991px) {
    .certificates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificate-modal {
        padding: 15px;
    }

    .certificate-modal-image {
        max-width: 95vw;
        max-height: 90vh;
    }
}