/* ═══════════════════════════════════════════════════════
   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; }
}
