/*
Theme Name: Sanstor
Theme URI: https://sanstor.ru/
Author: Sanstor
Description: WordPress + WooCommerce theme preserving the original Sanstor visual system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: sanstor
*/

.wp-site-blocks,
.sanstor-page {
    min-height: 60vh;
}

.sanstor-content {
    padding-top: 30px;
    padding-bottom: 70px;
}

.preloader {
    pointer-events: none;
    animation: sanstor-preloader-fallback 0.25s ease 1.2s forwards;
}

body.loaded .preloader,
html.loaded .preloader {
    display: none !important;
}

#req {
    display: none !important;
}

.sanstor-search-main,
.sanstor-search-mini {
    position: relative;
    display: flex;
    width: 100%;
    margin: 0;
}

.sanstor-search-main input,
.sanstor-search-mini input {
    width: 100%;
    position: relative;
    background: #f3f3f3;
    border: 2px solid #f3f3f3;
    outline: none;
    padding: 8px 48px 8px 21px;
    color: #333;
    font-weight: normal;
    transition: all 0.3s;
    border-radius: 4px;
}

.sanstor-search-main button,
.sanstor-search-mini button {
    position: absolute;
    top: 2px;
    right: 5px;
    bottom: 2px;
    width: 42px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
}

.sanstor-search-main input:focus,
.sanstor-search-mini input:focus {
    border-color: var(--c1, #1f7eaa);
}

.legacy-catalog-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    min-width: 280px;
}

.legacy-catalog-menu li a {
    display: block;
    padding: 9px 18px;
    color: #333 !important;
    font-weight: 600;
}

.legacy-catalog-menu li a:hover {
    color: var(--c1, #1f7eaa) !important;
    text-decoration: none;
    background: #f5f9fb !important;
}

#submenu {
    overflow: visible !important;
}

.sanstor-megamenu {
    display: grid;
    grid-template-columns: 280px minmax(420px, 1fr);
    background: #fff;
    box-shadow: 0 16px 35px rgba(34, 60, 80, 0.18);
    min-width: 720px;
    min-height: 360px;
    max-width: min(920px, 92vw);
    border: 1px solid #eef2f4;
}

.sanstor-megamenu-left {
    border-right: 1px solid #e8ecef;
}

.sanstor-megamenu-parent {
    display: grid;
    grid-template-columns: 44px 1fr 18px;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 14px;
    border-bottom: 1px solid #eceff1;
    color: #333 !important;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.25;
    background: #fff;
}

.sanstor-megamenu-parent:hover,
.sanstor-megamenu-parent.active {
    text-decoration: none;
    background: #fbfdfe;
    color: var(--c1, #1f7eaa) !important;
}

.sanstor-megamenu-parent img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.sanstor-megamenu-parent i {
    color: var(--c1, #1f7eaa);
    font-size: 1.05rem;
}

.sanstor-megamenu-right {
    padding: 16px 20px;
    background: #fff;
}

.sanstor-megamenu-panel {
    display: none;
    align-content: flex-start;
    gap: 10px 12px;
}

.sanstor-megamenu-panel.active {
    display: flex;
    flex-wrap: wrap;
}

.sanstor-megamenu-panel a {
    display: inline-block;
    background: #f7f7f7;
    color: var(--c1, #1f7eaa) !important;
    padding: 9px 13px;
    text-transform: none;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.015em;
    line-height: 1.35;
}

.sanstor-megamenu-panel a:hover {
    background: #edf5f9;
    text-decoration: none;
}

.sanstor-megamenu-panel span {
    font-size: 0.9em;
}

/* Подсказки поиска (автодополнение с фото) */
.sanstor-search-main, .sanstor-search-mini { position: relative; }
.search_results_container, .search_results_container_mini {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 60;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    max-height: 440px;
    overflow-y: auto;
}
.search_results_container.active, .search_results_container_mini.active { display: block; }
.search_results_container .sr-item, .search_results_container_mini .sr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
}
.search_results_container .sr-item:hover, .search_results_container_mini .sr-item:hover {
    background: #f4f9fc;
    text-decoration: none;
    color: var(--c1, #1f7eaa);
}
.search_results_container .sr-img, .search_results_container_mini .sr-img {
    flex: 0 0 50px; width: 50px; height: 50px;
}
.search_results_container .sr-img img, .search_results_container_mini .sr-img img {
    width: 50px; height: 50px; object-fit: contain;
}
.search_results_container .sr-title, .search_results_container_mini .sr-title {
    font-size: 0.9rem; line-height: 1.3;
}
.search_results_container .sr-all, .search_results_container_mini .sr-all {
    display: block; text-align: center; padding: 10px;
    font-weight: 700; color: var(--c1, #1f7eaa);
    background: #f7f7f7;
}
.search_results_container .sr-all:hover { background: #edf5f9; text-decoration: none; }
.search_results_container .sr-empty, .search_results_container .sr-loading,
.search_results_container_mini .sr-empty, .search_results_container_mini .sr-loading {
    padding: 14px; color: #888; text-align: center;
}

.filtercheck {
    cursor: pointer;
    display: none;
}

.filtercheck.active {
    color: var(--c1, #1f7eaa) !important;
    font-weight: 800;
}

.filtercheck.active:before {
    content: "\f00c" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--c1, #1f7eaa) !important;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.sanstor-catalog-grid,
.sanstor-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin: 30px 0;
}

.sanstor-live-catalog {
    margin-top: 30px;
}

.sanstor-live-category {
    min-height: 190px;
    padding: 20px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.sanstor-live-category img {
    width: 100%;
    max-width: 170px;
    max-height: 140px;
    object-fit: contain;
}

.sanstor-live-category h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.sanstor-live-category .section_headlink {
    color: #333;
}

.sanstor-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sanstor-subcats .section_sublink,
.sanstor-subcats .section_subsublink {
    display: inline-block;
    background: #f7f7f7;
    color: #333;
    padding: 8px 12px;
    text-transform: none;
    font-size: 0.92rem;
    letter-spacing: 0;
}

.sanstor-section-list {
    border-top: 1px solid #e1e1e1;
    margin-bottom: 28px;
}

.sanstor-section-row {
    display: grid;
    grid-template-columns: 125px 1fr;
    align-items: center;
    gap: 20px;
    min-height: 135px;
    border-bottom: 1px solid #e1e1e1;
    color: #333;
}

.sanstor-order-page,
.sanstor-checkout-page {
    padding-top: 20px;
    padding-bottom: 60px;
}

.sanstor-order-page .btn,
.sanstor-checkout-page .btn {
    border-radius: 4px;
}

.sanstor-section-row:hover {
    color: var(--c1, #1f7eaa);
    text-decoration: none;
}

.sanstor-section-img img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.sanstor-section-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.sanstor-help-banner {
    position: sticky;
    top: 90px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--c1, #1f7eaa);
    color: #fff;
    text-align: center;
}

.sanstor-help-banner img {
    width: 100%;
    display: block;
}

.sanstor-help-title {
    position: absolute;
    top: 42px;
    left: 0;
    background: var(--c1, #1f7eaa);
    color: #fff;
    padding: 18px 24px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
}

.sanstor-help-banner button {
    width: 100%;
    border: 0;
    background: var(--c1, #1f7eaa);
    color: #fff;
    padding: 22px;
    font-size: 1.35rem;
    cursor: pointer;
}

.sanstor-filter {
    background: #f7fbfd;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    margin: 0 0 28px;
    padding: 18px;
}

.sanstor-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sanstor-filter-reset {
    border: 0;
    background: transparent;
    color: var(--c1, #1f7eaa);
    font-weight: 800;
    padding: 0;
    cursor: pointer;
}

.sanstor-filter-group {
    display: block;
    vertical-align: top;
    margin: 16px 0 0 0;
    border: 0;
    padding: 0;
}

.sanstor-filter-group span,
.sanstor-filter-group legend {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    padding: 0;
}

.sanstor-filter-items--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.sanstor-filter-group label {
    display: block;
    font-size: 0.92rem;
    margin: 4px 0;
}

.sanstor-filter-group input {
    margin-right: 6px;
}

.sanstor-filter-status {
    margin-top: 12px;
    font-weight: 700;
}

.sanstor-product-card[hidden] {
    display: none !important;
}

.sanstor-external-gallery {
    margin-bottom: 26px;
}

.sanstor-external-gallery-main {
    background: #fff;
    border: 1px solid #e5edf2;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.sanstor-external-gallery-main img {
    max-width: 100%;
    max-height: 540px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sanstor-external-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.sanstor-gallery-thumb {
    border: 1px solid #dce7ee;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
}

.sanstor-gallery-thumb.active {
    border-color: var(--c1, #1f7eaa);
    box-shadow: 0 0 0 2px rgba(31, 126, 170, 0.12);
}

.sanstor-gallery-thumb img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.sanstor-import-table {
    margin-top: 16px;
}

.sanstor-category-card,
.sanstor-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6eef3;
    border-radius: 8px;
    padding: 18px;
    color: #333;
    box-shadow: 0 8px 22px rgba(34, 60, 80, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sanstor-category-card:before,
.sanstor-product-card:before,
.woocommerce ul.products li.product:before,
.woocommerce-page ul.products li.product:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(31, 126, 170, 0.1), transparent 42%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.sanstor-category-card:hover,
.sanstor-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(31, 126, 170, 0.35);
    box-shadow: 0 18px 42px rgba(34, 60, 80, 0.16);
}

.sanstor-category-card:hover:before,
.sanstor-product-card:hover:before,
.woocommerce ul.products li.product:hover:before,
.woocommerce-page ul.products li.product:hover:before {
    opacity: 1;
}

.sanstor-product-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    margin-bottom: 14px;
    transition: transform 0.24s ease;
}

.sanstor-product-card:hover img {
    transform: scale(1.035);
}

.sanstor-product-card h3 {
    font-size: 1rem;
    min-height: 58px;
}

.sanstor-product-card .price {
    color: var(--c1, #1f7eaa);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 10px 0 14px;
}

.sanstor-product-card .sanstor-button {
    margin-top: auto;
    align-self: flex-start;
}

.contentpage table {
    width: 100%;
}

.contentpage td,
.contentpage th {
    padding: 5px 2% !important;
    font-size: 0.8em;
    border: 1px solid #ccc;
    background: #fff;
}

@keyframes sanstor-preloader-fallback {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.sanstor-hero {
    background: linear-gradient(90deg, rgba(8, 86, 122, 0.92), rgba(31, 126, 170, 0.82)), url('/images/slide01.jpg') center/cover no-repeat;
    color: #fff;
    border-radius: 18px;
    padding: 64px 54px;
    margin: 28px 0;
    overflow: hidden;
}

.sanstor-hero h1 {
    color: #fff;
    max-width: 820px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
}

.sanstor-hero p {
    max-width: 680px;
    margin: 22px 0 30px;
    font-size: 1.15rem;
}

.sanstor-button {
    display: inline-block;
    color: #fff !important;
    background: var(--c1, #1f7eaa);
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.sanstor-button:hover {
    background: var(--c0, #08567a);
    text-decoration: none;
}

.sanstor-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.sanstor-card {
    background: #fff;
    border: 1px solid #dae2e7;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(34, 60, 80, 0.08);
}

.sanstor-card h3 {
    font-weight: 800;
    margin-bottom: 12px;
}

.sanstor-footer {
    background: url('/images/footerbg.jpg') center/cover no-repeat, #08567a;
    color: #fff;
    padding: 44px 0;
}

.sanstor-footer a {
    color: #fff;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    display: flex !important;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dae2e7;
    border-radius: 12px;
    padding: 14px !important;
    box-shadow: 0 8px 20px rgba(34, 60, 80, 0.07);
    min-height: 470px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-8px);
    border-color: rgba(31, 126, 170, 0.35);
    box-shadow: 0 18px 42px rgba(34, 60, 80, 0.16);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.woocommerce div.product div.images img,
.woocommerce ul.products li.product a img {
    border-radius: 8px;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    width: 100%;
    height: 260px !important;
    object-fit: contain;
    object-position: center;
    margin-bottom: 22px !important;
    transition: transform 0.24s ease;
}

.woocommerce ul.products li.product:hover a img,
.woocommerce-page ul.products li.product:hover a img {
    transform: scale(1.035);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    min-height: 82px;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    margin-top: auto;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    align-self: flex-start;
    margin-top: 16px !important;
}

.sanstor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sanstor-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(31, 126, 170, 0.24);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--c1, #1f7eaa);
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--c0, #08567a);
    color: #fff;
}

#order_details {
    z-index: 99999;
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
}

#order_details .bg_inside {
    width: calc(100% - 32px);
    max-width: 860px;
    min-height: 0;
    margin: 8vh auto 0;
    padding: 34px 32px 36px;
    background: #fff;
    position: relative;
    color: #333;
    font-weight: 400;
    font-size: 1em;
}

#order_details h3 {
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 400;
    margin-bottom: 20px;
}

#order_details .addtocarthide {
    position: absolute;
    top: 12px;
    right: 24px;
    color: #9b9b9b;
    font-size: 2rem;
    cursor: pointer;
}

#order_details .cart_add {
    border: 1px dotted #ccc;
    margin-top: 20px;
}

#order_details .cart_add img {
    max-width: 120px;
    max-height: 86px;
    object-fit: contain;
}

#order_details .gotocart {
    display: inline-block;
    min-width: 100px;
    margin-top: 20px;
    padding: 11px 26px;
    border-radius: 32px;
    background: var(--c1, #1f7eaa);
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

#order_details .gotocart:hover {
    background: rgb(73, 182, 209);
    text-decoration: none;
}

.osbg_inside {
    position: fixed !important;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 30, 45, 0.64);
    backdrop-filter: blur(4px);
}

.osmodal {
    position: relative;
    width: min(430px, 100%);
    background: #fff;
    border-radius: 6px;
    padding: 34px 36px 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    color: #1f2529;
}

.osmodal h3 {
    margin: 0 0 24px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
}

.os_logo {
    display: block;
    width: 112px;
    max-width: 45%;
    height: auto;
    margin: 0 auto 18px;
}

.osmodal label {
    display: block;
    margin: 0 0 15px;
    color: #273038;
    font-size: 16px;
    font-weight: 600;
}

.osclose {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #7b8790;
    font-size: 28px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
}

.osclose:hover {
    background: #edf5f9;
    color: var(--c1, #1f7eaa);
}

.os_name,
.os_phone {
    width: 100%;
    height: 52px;
    border: 1px solid #d6e3eb;
    border-radius: 4px;
    margin-top: 7px;
    padding: 0 16px;
    font-size: 17px;
    outline: none;
}

.os_name:focus,
.os_phone:focus {
    border-color: var(--c1, #1f7eaa);
    box-shadow: 0 0 0 3px rgba(31, 126, 170, 0.14);
}

.os_policy {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 18px !important;
    color: #414b52 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35;
}

.os_policy input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    flex: 0 0 16px;
}

.send_os {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 4px;
    background: var(--c1, #1f7eaa);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.send_os:hover {
    background: var(--c0, #08567a);
}

.send_os:disabled {
    cursor: progress;
    opacity: 0.7;
}

.os_result {
    min-height: 22px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
}

.os_result.ok {
    color: #1f8f49;
}

.os_result.error {
    color: #bf2736;
}

.legacy-cart-row td {
    vertical-align: middle;
}

.sanstor-cart-page h1 {
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1;
    margin: 10px 0 28px;
}

.sanstor-cart-list {
    display: grid;
    gap: 24px;
}

.sanstor-cart-row {
    align-items: center;
    min-height: 190px;
    padding: 22px 24px;
    background: #f4f4f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 2px;
}

.sanstor-cart-img {
    text-align: center;
}

.sanstor-cart-img img {
    width: 100%;
    max-width: 180px;
    max-height: 150px;
    object-fit: contain;
}

.sanstor-cart-info {
    color: #282828;
}

.sanstor-cart-info .cartitemhead {
    display: inline-block;
    color: var(--c1, #1f7eaa) !important;
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 500;
    line-height: 1.18;
    margin-bottom: 8px;
}

.sanstor-cart-sku {
    color: #777;
    font-size: 1.05rem;
    margin: 6px 0;
}

.sanstor-cart-calc {
    font-size: clamp(22px, 1.8vw, 31px);
    line-height: 1.3;
    margin: 8px 0 36px;
}

.sanstor-cart-controls {
    display: flex;
    gap: 60px;
    align-items: center;
}

.sanstor-cart-minus,
.sanstor-cart-plus,
.sanstor-cart-remove {
    border: 0;
    background: transparent;
    color: #bf2736;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.16s ease, color 0.16s ease;
}

.sanstor-cart-minus,
.sanstor-cart-plus {
    font-size: 28px;
}

.sanstor-cart-remove {
    font-size: 22px;
}

.sanstor-cart-minus:hover,
.sanstor-cart-plus:hover,
.sanstor-cart-remove:hover {
    color: #e12234;
    transform: scale(1.08);
}

.sanstor-cart-remove-wrap {
    text-align: center;
}

.sanstor-cart-total {
    color: #bf2736;
    font-size: clamp(28px, 2.8vw, 44px);
    font-weight: 300;
    line-height: 1;
    text-align: center;
    margin: 48px 0 58px;
}

#order_navigation .btn {
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    font-size: clamp(16px, 1.2vw, 24px);
    line-height: 1.2;
    padding: 12px 20px;
    text-decoration: none !important;
}

.sanstor-cart-row {
    min-height: 142px;
    padding: 16px 18px;
}

.sanstor-cart-img img {
    max-width: 92px;
    max-height: 92px;
}

.sanstor-cart-info .cartitemhead {
    font-size: clamp(16px, 1.35vw, 22px);
}

.sanstor-cart-calc {
    font-size: clamp(16px, 1.2vw, 20px);
    margin: 4px 0 14px;
}

#order_details .cart_add img {
    max-width: 72px;
    max-height: 60px;
}

.sanstor-order-summary-line {
    font-size: 14px;
}

.sanstor-order-total {
    font-size: clamp(24px, 2.4vw, 40px) !important;
}

.search_results_container,
.search_results_container_mini {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    display: none;
}

.sanstor-search-results-box {
    background: #fff;
    border: 1px solid #d7e3ea;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.sanstor-search-results-title {
    padding: 10px 14px;
    color: #777;
    border-bottom: 1px solid #ececec;
}

.sanstor-search-result {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    color: var(--c1);
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
}

.sanstor-search-result:hover {
    background: #f8fbfd;
}

.sanstor-search-result-image img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.sanstor-search-result-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

#order_navigation .btn-info {
    background: #20a6b8;
}

#order_navigation .btn-success {
    background: #28a745;
}

.sanstor-floating-contacts {
    position: fixed;
    right: 22px;
    top: auto;
    bottom: 92px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: none;
    pointer-events: none;
}

.sanstor-float-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sanstor-floating-contacts.active .sanstor-float-actions,
.sanstor-floating-contacts:hover .sanstor-float-actions,
.sanstor-floating-contacts:focus-within .sanstor-float-actions {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sanstor-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.sanstor-float-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.sanstor-float-small {
    width: 58px;
    height: 58px;
    background: var(--c1, #2388b2);
    font-size: 26px;
}

.sanstor-float-small:hover {
    background: var(--c0, #08567a);
}

.sanstor-float-main {
    width: 76px;
    height: 76px;
    margin-top: 6px;
    background: #35c52a;
    font-size: 36px;
}

.sanstor-float-main:hover {
    background: #29a820;
}

.sanstor-floating-contacts:not(.active) .sanstor-float-main {
    animation: sanstor-phone-pulse 2.4s ease-in-out infinite;
}

@keyframes sanstor-phone-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(53, 197, 42, 0.38); }
    50% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 0 12px rgba(53, 197, 42, 0); }
}

@media (max-width: 991px) {
    .sanstor-card-grid {
        grid-template-columns: 1fr;
    }

    .sanstor-hero {
        padding: 42px 24px;
    }

    #maincart {
        float: none;
        margin-top: 15px;
    }

    .sanstor-catalog-grid,
    .sanstor-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sanstor-live-category,
    .sanstor-section-row {
        grid-template-columns: 1fr;
    }

    .sanstor-help-banner {
        position: relative;
        top: auto;
        margin-top: 25px;
    }

    #order_details .bg_inside {
        margin-top: 0;
        padding: 44px 14px 28px;
        max-height: 100vh;
        overflow: auto;
    }

    #order_details .gotocart {
        width: 100%;
        margin-top: 12px;
        padding-left: 12px;
        padding-right: 12px;
        letter-spacing: 1px;
    }

    .sanstor-floating-contacts {
        right: 10px;
        bottom: 74px;
        gap: 10px;
    }

    .sanstor-float-actions {
        gap: 10px;
    }

    .sanstor-float-small {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .sanstor-float-main {
        width: 56px;
        height: 56px;
        margin-top: 2px;
        font-size: 26px;
    }

    .sanstor-cart-row {
        padding: 18px 14px;
        text-align: left;
    }

    .sanstor-cart-img {
        margin-bottom: 12px;
    }

    .sanstor-cart-controls {
        gap: 42px;
    }

    .sanstor-cart-remove-wrap {
        text-align: right;
        margin-top: 12px;
    }

    .sanstor-cart-total {
        margin: 58px 0 70px;
    }
}
