/* =========================================================
   Miss Doors shop — product cards & responsive layout
   Palette aligned with site buttons: #5e5c5c
   ========================================================= */

/* ---------- Product grid ---------- */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    width: 100%;
}

@media (min-width: 576px) {
    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .shop-product-grid--home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .shop-product-grid--home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .shop-product-grid--related {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- Category grid (home) ---------- */
.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .shop-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .shop-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

.shop-category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.shop-category-card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.shop-category-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    overflow: hidden;
}

.shop-category-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease;
}

.shop-category-card:hover .shop-category-card__img {
    transform: scale(1.03);
}

.shop-category-card__title {
    display: block;
    padding: 12px 10px 14px;
    text-align: center;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.shop-category-card__title:hover {
    color: #111;
    text-decoration: none;
}

/* ---------- Product card ---------- */
.shop-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.shop-product-card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

.shop-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
    text-decoration: none;
}

.shop-product-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .28s ease;
}

.shop-product-card:hover .shop-product-card__img {
    transform: scale(1.04);
}

.shop-product-card__view {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(94, 92, 92, .92);
    color: #fff;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 8px 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    white-space: nowrap;
}

.shop-product-card:hover .shop-product-card__view {
    opacity: 1;
}

.shop-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #5e5c5c;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 8px;
}

.shop-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 10px 10px 12px;
    text-align: center;
}

.shop-product-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    min-height: 3.9em;
    margin: 0 0 4px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    width: 100%;
}

.shop-product-card__title:hover {
    color: #111;
    text-decoration: none;
}

.shop-product-card__cat {
    color: #999;
    font-size: 11px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-product-card__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.shop-product-card__price {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

.shop-product-card__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    cursor: pointer;
    border: 0;
    white-space: nowrap;
}

.shop-product-card__btn .fa {
    font-size: 13px;
}

/* Mobile: compact button text optional, keep touch target */
@media (max-width: 379px) {
    .shop-product-card__btn-text {
        display: none;
    }

    .shop-product-card__btn {
        min-height: 40px;
        padding: 10px !important;
    }

    .shop-product-card__title {
        font-size: 12px;
        min-height: 3.6em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .shop-product-card__price {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .shop-product-card__body {
        padding: 12px 12px 14px;
    }

    .shop-product-card__title {
        font-size: 14px;
        min-height: 4.2em;
    }

    .shop-product-card__price {
        font-size: 16px;
    }

    .shop-product-card__btn {
        padding: 11px 14px !important;
        font-size: 13px !important;
    }
}

/* Touch devices: always show subtle view cue via badge only; hide hover overlay */
@media (hover: none) {
    .shop-product-card__view {
        display: none;
    }

    .shop-product-card:hover {
        box-shadow: none;
    }

    .shop-product-card:hover .shop-product-card__img,
    .shop-category-card:hover .shop-category-card__img {
        transform: none;
    }
}

/* ---------- Catalog layout ---------- */
.shop-catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .shop-catalog-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }
}

.shop-catalog-aside {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 14px 16px;
}

.shop-catalog-aside h4 {
    margin: 0 0 12px;
    font-size: 16px;
}

.shop-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (min-width: 992px) {
    .shop-cat-list {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }
}

.shop-cat-list li {
    margin: 0;
}

.shop-cat-list__child a {
    padding-left: 22px !important;
    font-size: 12px !important;
    color: #777 !important;
    border-top: 0 !important;
}

.shop-cat-list li a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    padding: 7px 10px;
    border: 1px solid #e6e6e6;
    background: #fff;
}

@media (min-width: 992px) {
    .shop-cat-list li a {
        border: 0;
        border-bottom: 1px solid #eee;
        background: transparent;
        padding: 8px 0;
    }

    .shop-cat-list li:last-child a {
        border-bottom: 0;
    }
}

.shop-cat-list li.active a,
.shop-cat-list li a:hover {
    color: #111;
    font-weight: 500;
    border-color: #5e5c5c;
}

@media (min-width: 992px) {
    .shop-cat-list li.active a,
    .shop-cat-list li a:hover {
        border-color: #eee;
    }
}

.shop-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
}

.shop-search-row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    font-size: 15px !important;
    height: 42px;
    box-sizing: border-box;
}

.shop-search-row .bx_filter_search_button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 18px !important;
    white-space: nowrap;
}

.shop-catalog-meta {
    margin: 0 0 14px;
    color: #777;
    font-size: 13px;
}

.shop-category-seo {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #ececec;
    color: #444;
    font-size: 14px;
    line-height: 1.55;
}

.shop-category-seo p:last-child {
    margin-bottom: 0;
}

.shop-page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.shop-page-header h3 {
    margin: 0;
    float: none !important;
    width: 100%;
}

.shop-breadcrumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35em;
    width: 100%;
    box-sizing: border-box;
    order: -1;
    margin: 0;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    overflow-x: auto;
    color: #555;
    background: #f5f5f5;
    border-left: 3px solid #c9a46a;
    float: none !important;
}

.shop-breadcrumbs a {
    color: #333;
    text-decoration: none;
    flex-shrink: 0;
}

.shop-breadcrumbs a:hover,
.shop-breadcrumbs a:focus {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-breadcrumbs__sep {
    color: #aaa;
    flex-shrink: 0;
    margin: 0 0.1em;
}

.shop-breadcrumbs__current {
    color: #222;
    flex-shrink: 0;
}

/* ---------- Product detail ---------- */
.shop-product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 768px) {
    .shop-product-detail {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 28px;
    }
}

@media (min-width: 992px) {
    .shop-product-detail {
        gap: 40px;
    }
}

.shop-product-gallery {
    background: #f5f5f5;
    border: 1px solid #ececec;
    padding: 18px;
}

.shop-product-gallery__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: #fff;
}

.shop-product-gallery__main {
    width: 100%;
    max-width: 100%;
    max-height: min(62vh, 520px);
    height: auto;
    object-fit: contain;
}

.shop-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.shop-thumb {
    border: 1px solid #ddd;
    background: #fff;
    padding: 3px;
    cursor: pointer;
    line-height: 0;
}

.shop-thumb.is-active {
    border-color: #222;
}

.shop-thumb img {
    height: 58px;
    width: 58px;
    object-fit: contain;
    margin: 0;
}

@media (min-width: 768px) {
    .shop-thumb img {
        height: 68px;
        width: 68px;
    }
}

.shop-product-info .tovar_view_title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 600;
    color: #1f1f1f;
}

@media (min-width: 768px) {
    .shop-product-info .tovar_view_title {
        font-size: 26px;
    }
}

.shop-product-meta {
    margin: 0 0 6px;
    color: #888;
    font-size: 13px;
}

.shop-price-block {
    margin: 18px 0 8px;
    padding: 14px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.shop-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.shop-price-label {
    font-size: 14px;
    color: #666;
}

.shop-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.shop-price-value--kit {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.shop-price-note {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.shop-price-old {
    margin: 6px 0 0;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.shop-option-block {
    margin: 18px 0;
}

.shop-option-label {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.shop-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.shop-color-swatch.is-active {
    border-color: #111;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}

a.shop-color-swatch {
    display: inline-block;
    text-decoration: none;
}

.shop-option-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #999;
}

.shop-material-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-material-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 14px;
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #333;
    font-size: 13px;
    text-decoration: none !important;
}

.shop-material-btn.is-active {
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
}

.shop-variants-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 520px) {
    .shop-variants-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.shop-variant-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
}

.shop-variant-card.is-active {
    border-color: #1f1f1f;
}

.shop-variant-card__img {
    display: block;
    aspect-ratio: 1 / 1.15;
    background: #f5f5f5;
    overflow: hidden;
}

.shop-variant-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-variant-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 42px;
}

.shop-variant-card__name {
    font-size: 12px;
    line-height: 1.35;
    color: #333;
}

.shop-variant-card__name small {
    display: block;
    color: #888;
    font-size: 11px;
}

.shop-variant-card__price {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.shop-size-list,
.shop-side-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-size-btn,
.shop-side-btn {
    min-width: 88px;
    padding: 10px 12px;
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.shop-size-btn.is-active,
.shop-side-btn.is-active {
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
}

.shop-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.shop-product-actions .product-quantity-input {
    width: 72px;
    height: 48px;
    margin: 0;
    text-align: center;
    border-width: 2px !important;
}

.shop-product-actions .bx_filter_search_button {
    margin: 0 !important;
    padding: 14px 20px !important;
    border: 0;
    flex: 1 1 auto;
    text-align: center;
    min-width: 140px;
    color: #fff !important;
    background-color: #333 !important;
    text-decoration: none !important;
}

.shop-product-actions .bx_filter_search_button:hover,
.shop-product-actions .bx_filter_search_button:focus {
    color: #fff !important;
    background-color: #1f1f1f !important;
}

.shop-product-actions .bx_filter_search_button .fa {
    color: #fff !important;
}

.shop-btn-buy {
    background-color: #222 !important;
}

.shop-btn-buy:hover,
.shop-btn-buy:focus {
    background-color: #111 !important;
}

.shop-service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
}

@media (min-width: 480px) {
    .shop-service-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shop-service-card {
    display: block;
    padding: 12px;
    border: 1px solid #ececec;
    background: #fafafa;
    text-decoration: none !important;
    color: inherit;
}

.shop-service-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #222;
}

.shop-service-card span {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.shop-product-tabs {
    margin-top: 40px;
    border-top: 1px solid #ececec;
    padding-top: 8px;
}

.shop-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 18px;
}

.shop-tab {
    border: 0;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    color: #777;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.shop-tab.is-active {
    color: #111;
    border-bottom-color: #111;
    font-weight: 600;
}

.shop-tab-panel {
    display: none;
}

.shop-tab-panel.is-active {
    display: block;
}

.shop-specs-table {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
}

.shop-specs-table th,
.shop-specs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}

.shop-specs-table th {
    width: 42%;
    color: #777;
    font-weight: 500;
    background: #fafafa;
}

.shop-muted {
    color: #888;
    font-size: 14px;
}

.shop-product-info__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    white-space: pre-wrap;
}

.shop-cart-opts {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.shop-related {
    margin-top: 48px;
}

.shop-related h3 {
    margin-bottom: 16px;
}

/* ---------- Cart / checkout helpers ---------- */
.shop-card-price {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 8px 0 10px;
}

.shop-add-btn {
    display: inline-block !important;
    margin-top: 4px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    cursor: pointer;
    border: 0;
}

.shop-pagination {
    margin-top: 28px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.shop-pagination a {
    display: inline-block;
    min-width: 36px;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    box-sizing: border-box;
}

.shop-pagination a.active,
.shop-pagination a:hover {
    background: #5e5c5c;
    color: #fff;
    border-color: #5e5c5c;
}

.shop-cart-table th {
    border-bottom: 2px solid #eee;
    font-size: 13px;
    color: #777;
}

.shop-cart-table td {
    vertical-align: middle !important;
    font-size: 14px;
}

@media (max-width: 767px) {
    .shop-cart-table thead {
        display: none;
    }

    .shop-cart-table,
    .shop-cart-table tbody,
    .shop-cart-table tr,
    .shop-cart-table td {
        display: block;
        width: 100%;
    }

    .shop-cart-table tr {
        border: 1px solid #eee;
        margin-bottom: 12px;
        padding: 10px;
        background: #fff;
    }

    .shop-cart-table td {
        border: 0 !important;
        padding: 6px 0 !important;
        text-align: left !important;
    }

    .shop-cart-table td:first-child {
        text-align: center !important;
    }

    .shop-cart-table td:first-child img {
        height: 90px !important;
    }
}

.shop-order-list {
    list-style: none;
    padding: 0;
}

.shop-order-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.shop-toast {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: #5e5c5c;
    color: #fff;
    padding: 12px 16px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    text-align: center;
}

@media (min-width: 576px) {
    .shop-toast {
        left: auto;
        right: 24px;
        bottom: 24px;
        min-width: 200px;
        text-align: left;
    }
}

.checkout-form .form-control,
#checkout-form .form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    box-shadow: none;
    margin-bottom: 4px;
    height: auto;
    min-height: 42px;
}

#checkout-form label {
    font-weight: 500;
    font-size: 13px;
    margin-top: 10px;
}

.product-quantity-input {
    width: 70px;
    height: 48px;
    display: inline-block;
    vertical-align: top;
    margin-right: 8px;
}

/* ---------- Info pages (about / delivery / contacts) ---------- */
.shop-info-card {
    border: 1px dashed #a0a0a0;
    border-radius: 12px;
    padding: 24px 20px 28px;
    margin: 10px 0 28px;
    background: #fff;
}

@media (min-width: 768px) {
    .shop-info-card {
        padding: 36px 40px 40px;
    }
}

.shop-info-text {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}

.shop-info-text ul {
    padding-left: 18px;
    margin: 10px 0 16px;
}

.shop-info-text p {
    margin-bottom: 12px;
}

.shop-feature p {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.shop-feature .fa {
    margin-right: 4px;
}

.shop-feature span {
    font-size: 14px;
    color: #666;
}

.seo-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0 24px;
}

.seo-landing-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    color: inherit;
    text-decoration: none;
}

.seo-landing-card:hover {
    border-color: #c8c8c8;
    background: #fff;
}

.seo-landing-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.seo-landing-card span {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.seo-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.seo-landing-cta {
    margin-top: 20px;
}

.seo-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-bottom: 20px;
    font-size: 12px;
    line-height: 1.4;
}

.seo-foot-links a {
    color: #888;
}

.seo-foot-links a:hover {
    color: #555;
}

.seo-keywords {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.seo-faq details {
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.seo-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.seo-faq details p {
    margin: 8px 0 0;
}

.shop-map-block {
    margin: 0 0 28px;
}

.shop-yamap {
    width: 100%;
    height: 280px;
    margin-top: 12px;
    border: 1px solid #eee;
}

@media (min-width: 768px) {
    .shop-yamap {
        height: 380px;
    }
}

.shop-contact-form-wrap {
    max-width: 640px;
    margin: 10px auto 40px;
}

.shop-contact-form-wrap h2 {
    margin-bottom: 18px;
    font-size: 22px;
}

.shop-contact-form .form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    box-shadow: none;
    margin-bottom: 10px;
    min-height: 42px;
}

.shop-contact-form textarea.form-control {
    min-height: 110px;
}

/* ---------- Header / nav mobile polish for shop pages ---------- */
@media (max-width: 991px) {
    .menu_block .navmenu {
        clear: both;
        width: 100%;
        margin-top: 8px;
        text-align: center;
    }

    .menu_block .navmenu > li {
        display: inline-block;
        float: none;
    }

    .menu_block .logo {
        max-width: 100% !important;
        float: none;
    }

    .top_info .phone_top {
        float: none;
        text-align: center;
        padding: 6px 0;
    }

    .top_info .secondary_menu {
        float: none;
        text-align: center;
        margin-bottom: 4px;
    }
}

@media (max-width: 575px) {
    .menu_block .navmenu > li > a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }

    .page_header h3 {
        font-size: 20px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Home mirror hero adjustments */
.shop-home-main {
    position: relative;
}

body.homepage .header--main-big.shop-home-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    box-shadow: none;
}

body.homepage .shop-home-header__bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 40px 0;
    position: relative;
    z-index: 51;
}

body.homepage .shop-home-header .header__logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    flex: 0 0 auto;
}

body.homepage .shop-home-header .header__logo-link {
    display: block;
    width: 200px !important;
    max-width: 42vw;
}

body.homepage .shop-home-header .header__logo-image {
    width: 100%;
    height: auto;
    display: block;
}

body.homepage .shop-home-nav {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    height: auto !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    background: transparent !important;
}

body.homepage .shop-home-nav__list {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 2px;
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    text-transform: none;
}

body.homepage .shop-home-nav .header__nav-item {
    float: none !important;
    position: relative;
    display: block;
    line-height: 1.2;
}

body.homepage .shop-home-nav .header__nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 12px rgba(0, 0, 0, .35);
    padding: 12px 14px !important;
    display: inline-block;
    width: auto !important;
    height: auto !important;
    border-radius: 2px;
    transition: background-color .2s ease, color .2s ease;
}

body.homepage .shop-home-nav .header__nav-link:before {
    display: none !important;
}

body.homepage .shop-home-nav .header__nav-link:hover,
body.homepage .shop-home-nav .header__nav-link:focus {
    color: #fff !important;
    background: rgba(0, 0, 0, .35);
    text-decoration: none !important;
}

body.homepage .shop-home-nav .basket_cnt {
    display: inline-block;
    min-width: 1.4em;
    margin-left: 2px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    font-size: 12px;
    vertical-align: middle;
}

body.homepage .shop-home-nav .menu-hamburger {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

body.homepage .shop-home-nav .menu-hamburger__line {
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* Catalog / hits headings — visible on dark homepage background */
body.homepage .tovar_section > .container > h2.mobile_center,
body.homepage .new_arrivals > .container > h2.mobile_center,
body.homepage #sections h2,
body.homepage .new_arrivals h2 {
    color: #f2f2f2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

body.homepage .tovar_section,
body.homepage .new_arrivals {
    color: #e8e8e8;
}

body.homepage .shop-category-card__title,
body.homepage .shop-product-card__title {
    color: #222;
}

@media (max-width: 1100px) {
    body.homepage .shop-home-header__bar {
        padding: 18px 24px 0;
    }

    body.homepage .shop-home-nav .header__nav-link {
        font-size: 13px;
        padding: 10px 10px !important;
    }
}

@media (max-width: 960px) {
    body.homepage .shop-home-header__bar {
        padding: 14px 16px 0;
        align-items: center;
    }

    body.homepage .shop-home-nav {
        position: static !important;
        width: auto;
        height: auto !important;
    }

    body.homepage .shop-home-nav .menu-hamburger {
        display: block;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        z-index: 60;
    }

    body.homepage .shop-home-nav__list {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        margin-top: 10px;
        padding: 10px !important;
        flex-direction: column !important;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 2px;
        width: auto !important;
        background: rgba(28, 28, 28, .94) !important;
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.homepage .shop-home-nav.--js-open .shop-home-nav__list {
        display: flex !important;
    }

    body.homepage .shop-home-nav .header__nav-item {
        width: 100%;
        text-align: left;
        padding: 0;
        float: none !important;
    }

    body.homepage .shop-home-nav .header__nav-link {
        display: block !important;
        width: 100% !important;
        padding: 14px 16px !important;
        color: #fff !important;
        font-size: 15px;
        text-shadow: none;
        border-radius: 4px;
    }

    body.homepage .shop-home-nav .header__nav-link:hover,
    body.homepage .shop-home-nav .header__nav-link:focus {
        background: rgba(255, 255, 255, .12);
    }
}

@media (max-width: 600px) {
    body.homepage .shop-home-header .header__logo-link {
        width: 140px !important;
    }
}

/* ---------- Opening logo preloader (from original mirror) ---------- */
.preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: #fff;
    pointer-events: none;
}

.preloader__logo {
    position: absolute;
    width: 240px;
    height: 90px;
    top: 50%;
    left: 50%;
    margin: -45px 0 0 -120px;
    z-index: 10;
    text-align: center;
}

.preloader__logo-svg img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
}

.preloader__triangle {
    width: 0;
    height: 0;
    position: absolute;
}

.preloader__triangle.--top-left {
    left: 0;
    top: 0;
    border-top: 101vh solid #fff;
    border-right: 101vw solid transparent;
}

.preloader__triangle.--bottom-left {
    left: 0;
    bottom: 0;
}

.preloader__triangle.--bottom-right {
    right: 0;
    bottom: 0;
    border-bottom: 101vh solid #fff;
    border-left: 101vw solid transparent;
}

@keyframes openLogo {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.openLogo {
    animation: openLogo 1s ease-out both;
}

@keyframes closeSVG {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(1.25); }
}

.closeSVG {
    animation: closeSVG .8s ease-out both;
}

@keyframes preloaderOpacity {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.preloaderOpacity {
    animation: preloaderOpacity .8s ease-out both;
}

@keyframes triangleToLeftTop {
    from {
        border-top: 101vh solid #fff;
        border-right: 101vw solid transparent;
    }
    to {
        border-top: 0 solid #fff;
        border-right: 0 solid transparent;
        opacity: 0;
    }
}

.triangleToLeftTop {
    animation: triangleToLeftTop .8s ease-out both;
}

@keyframes triangleToRightBottom {
    from {
        border-bottom: 101vh solid #fff;
        border-left: 101vw solid transparent;
    }
    to {
        border-bottom: 0 solid #fff;
        border-left: 0 solid transparent;
        opacity: 0;
    }
}

.triangleToRightBottom {
    animation: triangleToRightBottom .8s ease-out both;
}

.triangleToLeftBottom {
    animation: triangleToRightBottom .8s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .preloader { display: none !important; }
}
