/* ═══════════════════════════════════════════════════════
   Gustehcentr — WordPress-specific overrides
   Оригинальный CSS: assets/css/main.min.css
   Этот файл только для WP-адаптации
   ═══════════════════════════════════════════════════════ */

/* WP admin bar fix */
body.admin-bar .header-top-bar { margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .header-top-bar { margin-top: 46px; } }

/* ═══ HEADER ═══ */

/* Header sticky — original uses sticky + fixed fallback */
.header-info {
    z-index: 150;
    position: sticky;
    top: 0;
}
body.admin-bar .header-info { top: 32px; }

/* Header phone icon — color from main.min.css via icon-stroke-main */

/* Search form — match original box-shadow style */
.search-form {
    position: relative;
    border-radius: 4px;
    height: 54px;
    background-color: #fff;
    box-shadow: 0 0 0 1px #b9bfcb;
    display: flex;
    align-items: center;
}
.search-form__input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}
.search-form__input {
    height: 54px;
    line-height: 52px;
    padding-left: 16px;
    padding-right: 16px;
    background-color: transparent;
    font-size: 14px;
    width: 100%;
    outline: 0;
    border: none;
    font-family: 'Montserrat', sans-serif;
}
.search-form__input::placeholder { color: #b9bfcb; }
.search-form__btn {
    border: none;
    background: transparent;
    color: #7f8a9f;
    font-size: 16px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
    flex-shrink: 0;
}
.search-form__btn:hover { color: #4f56d3; }

/* ═══ NAVIGATION ═══ */

/* WP nav — submenu hover (original uses SmartMenus JS, we use CSS) */
.menu__item { position: relative; }
.menu__item > .menu__list { display: none; position: absolute; top: 100%; left: 0; z-index: 200; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); border-radius: 4px; min-width: 200px; padding: 8px 0; }
.menu__item:hover > .menu__list { display: block; }
.menu__list .menu__link { padding: 8px 16px !important; display: block; }
.menu__list .menu__link:hover { background: #f4f5f6; color: #4f56d3; }

/* Navigation bar shadow */
.header-nav {
    box-shadow: 0 4px 10px 0 rgba(35,39,47,.15);
}

/* Nav menu items — horizontal layout matching original */
.menu.menu_desktop {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
    gap: 0;
}
.menu_desktop > .menu__item {
    display: flex;
    align-items: center;
    height: 100%;
    float: none !important;
}
.menu_desktop > .menu__item > .menu__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px 0 0;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 400;
    color: #23272f;
    text-decoration: none;
    transition: color .25s;
}
/* Last item — no right padding */
.menu_desktop > .menu__item:last-child > .menu__link { padding-right: 0; }
.menu_desktop > .menu__item > .menu__link:hover { color: #4f56d3; }

/* ═══ HEADER CONTROLS (Войти, Избранное, Корзина) ═══ */

/* Controls wrapper — original uses negative margin + item padding */
.header-info__contol-wrapper {
    margin: 0 -12px;
}
.header-info__contol-wrapper-item {
    padding: 0 12px;
}

/* Header controls — all items aligned to center */
.header-info__contol-wrapper-item {
    display: flex;
    align-items: center;
    height: 46px;
    align-self: center;
}

/* ═══ ADVANTAGES SECTION ═══ */

/* Advantages blocks — ensure proper height and padding */
.advantages-block {
    height: 100%;
    padding: 24px;
}
@media (min-width: 768px) {
    .advantages-block { padding: 32px; }
}

/* ═══ CERTIFICATES / TGS SECTION ═══ */

/* Certificate images — use own classes to avoid conflict with tgs-picture from main.min.css */
.cert-link {
    display: block;
    text-decoration: none;
    cursor: zoom-in;
}
.cert-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: opacity .25s;
}
.cert-link:hover .cert-img { opacity: 0.85; }

/* Swiper certificates slider — override main.min.css conflicts */
.certificates-slider {
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}
.certificates-slider .swiper-slide {
    height: auto !important;
}
.certificates-slider .swiper-button-next,
.certificates-slider .swiper-button-prev {
    color: #4f56d3;
}
.certificates-slider .swiper-button-next::after,
.certificates-slider .swiper-button-prev::after {
    font-size: 24px;
}

/* TGS section */
.tgs { padding: 48px 0; }
.tgs-section__heading {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 20px;
}
@media (min-width: 768px) {
    .tgs-section__heading { font-size: 24px; }
}

/* Fancybox fixes — z-index above sticky header + image display */
.fancybox__container { z-index: 9999 !important; }
.fancybox__container img {
    position: relative !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    height: auto !important;
    display: block !important;
}
.fancybox__content {
    padding: 0 !important;
}
.fancybox__backdrop {
    background: rgba(24,26,32,.98) !important;
}

/* ═══ PRODUCT SLIDERS (Popular / New) ═══ */

/* Slider container */
.products-slider {
    position: relative;
}
.products-slider .swiper-slide {
    height: auto !important;
    box-sizing: border-box;
}

/* Swiper nav buttons — visible, positioned on sides */
.products-slider .swiper-button-next,
.products-slider .swiper-button-prev {
    color: #4f56d3;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 10;
}
.products-slider .swiper-button-next::after,
.products-slider .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* Product tile body — padding from original */
.product-tile__body { padding: 16px; }

/* Product price — smaller for demo */
.product-tile__price-new {
    font-size: 16px;
    color: #4f56d3;
    font-weight: 700;
}

/* Pagination dots */
.products-slider .swiper-pagination {
    position: relative;
    margin-top: 24px;
}
.products-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #b9bfcb;
    opacity: 1;
}
.products-slider .swiper-pagination-bullet-active {
    background: #4f56d3;
}

/* Card separation — shadow */
.product-tile {
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: 8px;
}

/* Section dark background for "Новинки" */
.section-padding { padding: 48px 0; }
.section-padding__darken { background-color: #f4f5f6; }

/* Teaser info */
.homepage-product-slider__inner-teaser-info {
    padding: 32px;
    position: relative;
    z-index: 1;
}
.homepage-product-slider__inner-teaser-info-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ═══ CONTENT TEXT SECTION ═══ */
.page-section .content {
    text-align: justify;
    line-height: 1.6;
    color: #4f5869;
}
.page-section .content p { margin-bottom: 16px; }
.page-section .content p:last-child { margin-bottom: 0; }

/* ═══ CROSS OFFER (callback form) ═══ */

/* CF7 form in cross-offer — match original grid (5+5+2) */
.cross-offer .wpcf7-form { margin: 0; }
.cross-offer .wpcf7-form-control-wrap { display: block; width: 100%; }
.cross-offer .cross-offer__field p { margin: 0; }
.cross-offer .cross-offer__fields.row {
    margin-bottom: 16px;
}
.cross-offer .cross-offer__field {
    margin-bottom: 16px;
}

.cross-offer .wpcf7 input[type="text"],
.cross-offer .wpcf7 input[type="tel"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #b9bfcb;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #4f5869;
    box-sizing: border-box;
    line-height: 52px;
}
.cross-offer .wpcf7 input[type="text"]::placeholder,
.cross-offer .wpcf7 input[type="tel"]::placeholder {
    color: #b9bfcb;
}
.cross-offer .wpcf7 input[type="submit"],
.cross-offer .wpcf7-submit {
    width: 100%;
    height: 52px;
    background: #23272f;
    color: #fff;
    padding: 8px 20px;
    border: 2px solid #23272f;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background .25s;
    white-space: nowrap;
    box-sizing: border-box;
}
.cross-offer .wpcf7 input[type="submit"]:hover { background: #393f4c; border-color: #393f4c; }
.cross-offer .wpcf7-response-output { color: #fff; }
/* Privacy checkbox — centered, like original */
.cross-offer .cross-offer__privacy {
    margin-top: 8px;
    text-align: center;
}
.cross-offer .cross-offer__privacy label,
.cross-offer .cross-offer__privacy .wpcf7-list-item-label {
    color: rgba(255,255,255,.7);
    font-size: 14px;
}
.cross-offer .cross-offer__privacy .wpcf7-list-item {
    margin: 0;
}
.cross-offer .cross-offer__privacy a { color: #fff; text-decoration: underline; }
.cross-offer .cross-offer__privacy input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #4f56d3;
}

/* ═══ FOOTER ═══ */

/* WP footer nav menus */
.footer__nav { list-style: none; padding: 0; margin: 0; }
.footer__nav li { margin-bottom: 10px; }
.footer__nav a { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; transition: color .25s; }
.footer__nav a:hover { color: #fff; }

/* Footer social icons — colors per original */
.footer__social-link_vk { background: #4d76a1 !important; }
.footer__social-link_whatsapp { background: #43d854 !important; }
.footer__social-link_viber { background: #665cac !important; }
.footer__social-link_telegram { background: #0088cc !important; }
.footer__social-link-ico { width: 20px; height: 20px; }
.footer__social-link img.footer__social-link-ico { filter: brightness(0) invert(1); }

/* Footer — compact layout like original */
.footer__main { padding: 32px 0; }
.footer__inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 32px;
}
.footer__column { margin-bottom: 0; flex: 0 0 auto; }
.footer__column_extra { flex: 0 0 300px; margin-right: 32px; }
.footer__column_nav { flex: 1 1 auto; }
.footer__column_nav-last { flex: 0 0 280px; }

/* Footer logo size — original is 220x60 */
.footer__logo { margin-bottom: 16px; }
.footer__logo img { max-height: 60px; width: auto; }

/* Footer social — compact like original */
.footer__socials { margin-top: 16px; gap: 8px; }
.footer__social-link { width: 40px; height: 40px; font-size: 16px; }

/* Footer bottom — dark strip */
.footer__bottom {
    background-color: #1a1d23;
    padding: 12px 0;
    color: rgba(255,255,255,.5);
    font-size: 13px;
}
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__copyright { color: rgba(255,255,255,.5); }
.footer__credits { color: rgba(255,255,255,.3); font-size: 12px; }

/* Scroll to top — hide duplicate */
footer + .scroll-top { display: none; }

/* ═══ WP BREADCRUMBS ═══ */

.breadcrumbs { padding: 16px 0; background: #f4f5f6; }
.breadcrumbs__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
    font-size: 14px;
}
.breadcrumbs__list li::after { content: '/'; margin-left: 6px; color: #b9bfcb; }
.breadcrumbs__list li:last-child::after { display: none; }
.breadcrumbs__list a { color: #4f56d3; text-decoration: none; }
.breadcrumbs__list a:hover { text-decoration: underline; }

/* ═══ WOOCOMMERCE ═══ */

.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

/* ═══ WP RESET FIXES ═══ */

/* Remove default WP margins */
.entry-content, .page-content { margin: 0; }

/* WP block editor content in pages */
.page-content img { max-width: 100%; height: auto; }

/* Fix intro slider ratio on WP (no Swiper JS) */
.intro-slide__image-wrapper.ratio {
    position: relative;
    overflow: hidden;
    padding-top: 31.25%;
}
.intro-slide__image-wrapper.ratio .ratio__element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.intro-slide__inner {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: calc(100% - 32px);
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: left;
    padding: 0 16px;
}
@media (min-width: 992px) {
    .intro-slide__inner {
        max-width: 1504px;
        padding: 0 32px;
    }
}
.intro-slide__inner-title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #23272f;
}
.intro-slide__inner-control {
    margin-top: 32px;
    text-align: left;
}

/* ═══ MOBILE ═══ */

@media (max-width: 991.98px) {
    /* Hide desktop nav on mobile */
    .header-nav { display: none; }

    /* Adjust header for mobile */
    .header-info__search-wrapper { display: none; }
    .header-info__contacts-wrapper { display: none; }
    .header-info__contol-wrapper { display: none; }

    /* Show only logo and catalog on mobile */
    .header-info__inner {
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .advantages-block { padding: 16px; }

    .cross-offer .wpcf7-form { flex-direction: column; }

    .footer__inner { flex-direction: column; }
    .footer__column { margin-bottom: 24px; }
}

/* ═══ SINGLE PRODUCT PAGE ═══ */

/* Specs table */
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.product-specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8eaed;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
}
.product-specs-table tr:last-child td {
    border-bottom: none;
}
.product-specs-table td:first-child {
    width: 38%;
    color: #5a6072;
    font-weight: 400;
}
.product-specs-table td:first-child strong {
    font-weight: 600;
    color: #23272f;
}
.product-specs-table td:last-child {
    color: #23272f;
}
.product-specs-table tr:nth-child(even) {
    background: #f8f9fb;
}
.product-specs-table td[colspan="2"] {
    background: #eef0f5;
    font-weight: 600;
    color: #23272f;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .3px;
    padding: 8px 16px;
    width: 100%;
}

/* Product content headings */
.product-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #23272f;
    margin: 0 0 16px;
}
.product-content ul {
    padding-left: 20px;
    margin-bottom: 24px;
}
.product-content ul li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #3a3f4b;
}

/* ═══ Product Gallery Swiper ═══ */
.product-gallery {
    margin-bottom: 24px;
}
.product-gallery__main-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.product-gallery__main-slider .swiper-slide {
    background: #f5f6fa;
}
.product-gallery__main-slider .swiper-slide a {
    display: block;
    position: relative;
    padding-top: 80%; /* 5:4 aspect ratio like original */
}
.product-gallery__main-slider .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery__main-slider .swiper-button-prev,
.product-gallery__main-slider .swiper-button-next {
    color: #4f56d3;
    background: rgba(255,255,255,.85);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.product-gallery__main-slider .swiper-button-prev::after,
.product-gallery__main-slider .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}
.product-gallery__main-slider .swiper-pagination-bullet-active {
    background: #4f56d3;
}

/* Thumbs slider */
.product-gallery__thumbs-slider {
    overflow: hidden;
}
.product-gallery__thumbs-slider .swiper-slide {
    width: 80px !important;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e8eaed;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
    flex-shrink: 0;
}
.product-gallery__thumbs-slider .swiper-slide-thumb-active {
    border-color: #4f56d3;
    opacity: 1;
}
.product-gallery__thumbs-slider .swiper-slide:hover {
    border-color: #4f56d3;
    opacity: 1;
}
.product-gallery__thumbs-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__empty {
    background: #f5f6fa;
    border-radius: 8px;
    padding: 80px;
    text-align: center;
    color: #999;
}

/* Product labels */
.product-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.label-hit { background: #ff6b35; }
.label-new { background: #4f56d3; }

/* Product callback form */
.product-callback-form {
    margin-top: 32px;
    padding: 24px;
    background: #f5f6fa;
    border-radius: 12px;
}
.product-callback-form__title {
    display: block;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Product inquiry form inside CF7 */
.product-callback-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-callback-form .wpcf7-form input[type="text"],
.product-callback-form .wpcf7-form input[type="tel"],
.product-callback-form .wpcf7-form input[type="email"],
.product-callback-form .wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}
.product-callback-form .wpcf7-form input[type="submit"] {
    padding: 12px 32px;
    background: #23272f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
}
.product-callback-form .wpcf7-form input[type="submit"]:hover {
    background: #4f56d3;
}

/* Remove default WooCommerce single-product styles that conflict */
.woocommerce-product-gallery,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product form.cart {
    display: none !important;
}

/* Contacts page */
.contacts-page h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.contacts-page h4 {
    font-size: 16px;
    font-weight: 600;
}
.contacts-page a {
    color: #4f56d3;
    text-decoration: none;
}
.contacts-page a:hover {
    text-decoration: underline;
}

/* About page */
.about-page h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}
.about-page h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}
.about-page ul {
    padding-left: 20px;
}
.about-page ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ═══ CATALOG PAGE ═══ */

/* Page heading */
.page-heading {
    padding: 24px 0 8px;
}
.page-heading__title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Layout: sidebar + content */
.catalog-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.catalog-sidebar {
    width: 280px;
    flex-shrink: 0;
}
.catalog-content {
    flex: 1;
    min-width: 0;
}
@media (max-width: 991px) {
    .catalog-layout {
        flex-direction: column;
    }
    .catalog-sidebar {
        width: 100%;
    }
}

/* ═══ Sidebar filter blocks ═══ */
.catalog-filter-block {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.catalog-filter-block__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #23272f;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.catalog-filter-block__title:hover {
    background: #f8f9fb;
}
.catalog-filter-block__arrow {
    transition: transform .2s;
    flex-shrink: 0;
}
.catalog-filter-block__title.collapsed .catalog-filter-block__arrow {
    transform: rotate(-90deg);
}
.catalog-filter-block__body {
    padding: 0 20px 20px;
}
.catalog-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.catalog-nav__item {
    margin-bottom: 4px;
}
.catalog-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #3a3f4b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.catalog-nav__link:hover {
    background: #f5f6fa;
    color: #4f56d3;
    text-decoration: none;
}
.catalog-nav__item.active > .catalog-nav__link {
    background: #4f56d3;
    color: #fff;
}
.catalog-nav__item.active > .catalog-nav__link .catalog-nav__count {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.catalog-nav__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    background: #f0f1f5;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #5a6072;
}
.catalog-nav__sub {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 4px 0 0;
}
.catalog-nav__sub .catalog-nav__link {
    font-size: 13px;
    padding: 8px 12px;
}

/* ═══ Price filter ═══ */
.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.price-filter-slider {
    margin: 8px 6px 0;
}
/* jQuery UI slider overrides */
.price-filter-slider.ui-slider {
    height: 6px;
    background: #e8eaed;
    border: none;
    border-radius: 3px;
}
.price-filter-slider .ui-slider-range {
    background: #4f56d3;
    border-radius: 3px;
}
.price-filter-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    top: -7px;
    margin-left: -10px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4f56d3;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.price-filter-slider .ui-slider-handle:hover,
.price-filter-slider .ui-slider-handle:focus {
    background: #f0f0ff;
}
.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-filter-field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}
.price-filter-field__label {
    font-size: 12px;
    color: #999;
    margin-right: 6px;
    flex-shrink: 0;
}
.price-filter-field__input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #23272f;
    background: transparent;
    -moz-appearance: textfield;
}
.price-filter-field__input::-webkit-outer-spin-button,
.price-filter-field__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-filter-field__currency {
    font-size: 13px;
    color: #999;
    margin-left: 4px;
    flex-shrink: 0;
}
.price-filter-sep {
    color: #999;
    flex-shrink: 0;
}
.price-filter-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #4f56d3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    text-align: center;
}
.price-filter-btn:hover {
    background: #3d44b8;
}

/* ═══ Sorting toolbar ═══ */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fb;
    border-radius: 10px;
    gap: 16px;
    flex-wrap: wrap;
}
.catalog-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.catalog-toolbar__label {
    font-size: 13px;
    color: #5a6072;
    white-space: nowrap;
}
.catalog-toolbar__select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6072' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 14px;
    color: #23272f;
    cursor: pointer;
    min-width: 200px;
}
.catalog-toolbar__select:focus {
    outline: none;
    border-color: #4f56d3;
}
.catalog-toolbar__count {
    font-size: 13px;
    color: #5a6072;
}
@media (max-width: 575px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .catalog-toolbar__select {
        width: 100%;
    }
}

/* Products grid — 3 columns like original */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 767px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 479px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Product tile / card — scoped to catalog grid only (not homepage sliders) */
.catalog-grid .product-tile {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.catalog-grid .product-tile:hover {
    border-color: #4f56d3;
    box-shadow: 0 4px 20px rgba(79, 86, 211, .1);
}
.catalog-grid .product-tile__image-link {
    display: block;
    position: relative;
    text-decoration: none;
}
.catalog-grid .product-tile__image {
    position: relative;
    padding-top: 100%; /* 1:1 square */
    overflow: hidden;
    background: #f8f9fb;
}
.catalog-grid .product-tile__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.catalog-grid .product-tile:hover .product-tile__image img {
    transform: scale(1.05);
}
.catalog-grid .product-tile__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}
.badge-hit { background: #f9a322; }
.badge-new { background: #69b1b7; }
.catalog-grid .product-tile__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.catalog-grid .product-tile__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px;
    flex: 1;
}
.catalog-grid .product-tile__title a {
    color: #23272f;
    text-decoration: none;
}
.catalog-grid .product-tile__title a:hover {
    color: #4f56d3;
}
.catalog-grid .product-tile__price {
    font-size: 22px;
    font-weight: 700;
    color: #4f56d3;
    margin-bottom: 12px;
}
.catalog-grid .product-tile__btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #4f56d3;
    border-radius: 8px;
    color: #4f56d3;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background .15s, color .15s;
    align-self: flex-start;
}
.catalog-grid .product-tile__btn:hover {
    background: #4f56d3;
    color: #fff;
    text-decoration: none;
}

/* Catalog SEO text */
.catalog-seo-text {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e8eaed;
}

/* WooCommerce pagination override */
.woocommerce nav.woocommerce-pagination {
    margin-top: 32px;
}
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    color: #3a3f4b;
    font-size: 14px;
    text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: #4f56d3;
    color: #4f56d3;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #4f56d3;
    border-color: #4f56d3;
    color: #fff;
}

/* Hide default WooCommerce sorting/result count on archive */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none;
}

/* ═══════════════════════════════════════════════════════
   WooCommerce Block Pages (Cart, Checkout) — product grid
   ═══════════════════════════════════════════════════════ */

/* Product grid on empty cart / new-in-store */
.wc-block-grid.has-4-columns .wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
    list-style: none;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}
.wc-block-grid__product {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}
.wc-block-grid__product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}
.wc-block-grid__product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
.wc-block-grid__product-title {
    padding: 12px 16px 4px;
    font-size: 15px !important;
    font-weight: 600;
    text-align: center;
}
.wc-block-grid__product-title a {
    color: #23272f;
    text-decoration: none;
}
.wc-block-grid__product-title a:hover {
    color: #3b42ce;
}
.wc-block-grid__product-title {
    flex-grow: 1;
}
.wc-block-grid__product .wp-block-button,
.wc-block-grid__product-add-to-cart {
    padding: 8px 16px 16px;
    text-align: center;
    margin-top: auto;
}
.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product-add-to-cart .wp-element-button,
.wc-block-grid__product-add-to-cart a {
    background: #4f56d3 !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 10px 24px !important;
    font-size: 14px !important;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    border: none;
}
@media (max-width: 767px) {
    .wc-block-grid.has-4-columns .wc-block-grid__products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
}

/* ═══════════════════════════════════════════════════════
   Catalog Dropdown Navigation
   ═══════════════════════════════════════════════════════ */

/* Dropdown container — hidden by default */
.desktop-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 180;
}
.desktop-nav.desktop-nav_open {
    display: block;
}

/* Backdrop overlay */
.desktop-nav__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 179;
}

/* Content area */
.desktop-nav__content {
    background: #fff;
    position: relative;
    z-index: 181;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.desktop-nav__inner {
    display: flex;
    padding: 20px 0;
    position: relative;
}
/* Override main.min.css — let content determine height, allow panels to overflow */
.desktop-nav__list {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

/* Left sidebar list */
.desktop-nav__list {
    list-style: none;
    margin: 0;
    padding: 0 20px 0 0;
    width: 300px;
    min-width: 300px;
    border-right: 1px solid #dbdbdb;
}

.desktop-nav__list-item {
    position: static;
}

.desktop-nav__list-link {
    display: block;
    padding: 10px 16px;
    color: #3b42ce;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
}
.desktop-nav__list-link:hover,
.desktop-nav__list-link.desktop-nav__list-link_active {
    background: #f8f8f8;
    color: #3b42ce;
}

/* Right panel with subcategories */
.desktop-nav__panel {
    display: none;
    position: absolute;
    left: 320px;
    top: 0;
    width: calc(100vw - 620px);
    max-width: 1000px;
    padding: 0 0 0 20px;
}
.desktop-nav__panel.desktop-nav__panel_active {
    display: block;
}

/* Panel header */
.nav-panel__name {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.nav-panel__name-link {
    font-size: 24px;
    font-weight: 400;
    color: #23272f;
    text-decoration: none;
}
.nav-panel__name-link:hover {
    color: #3b42ce;
}
.nav-panel__name-cats {
    font-size: 16px;
    color: #787ddd;
    text-decoration: none;
}
.nav-panel__name-cats:hover {
    text-decoration: underline;
}

/* Override main.min.css fixed dimensions */
.nav-panel {
    height: auto !important;
    overflow: visible !important;
}

/* Category grid (multi-column) */
.nav-panel__categories {
    columns: 4;
    column-gap: 20px;
}
.nav-panel__category {
    break-inside: avoid;
    margin-bottom: 16px;
}
.nav-panel__category-title {
    font-size: 18px;
    font-weight: 700;
    color: #23272f;
    text-decoration: none;
}
.nav-panel__category-title:hover {
    color: #3b42ce;
}

/* Catalog button open state */
.catalog-link.catalog-link_open {
    background-color: #3037bf;
}

/* Header open state */
.header-top-bar.header-top-bar_catalog_open,
.header-info.header-info_catalog_open {
    position: relative;
    z-index: 200;
}
