/* ============================================================
   knigi-ua theme overrides
   ============================================================ */

footer {
    background-color: transparent;
    color: #141414;
}
footer hr {
    border-bottom: 1px solid #d9d9d9;
}
footer a, footer a:hover, footer a:focus {
    color: #141414;
    border-color: #d9d9d9;
}
footer a:hover, footer a:focus {
    color: #1b285e;
}
footer h5 {
    color: #141414;
}
.social_links .h3 {
    color: #141414;
}

/* Footer 4-column layout */
.footer-cols {
    padding-top: 10px;
}
.footer-cols .h5 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1b285e;
    color: #141414;
}
.footer-cols ul li a {
    border-bottom: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    padding: 3px 0;
    display: block;
}
footer .social_links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
footer .social_links a {
    border-bottom: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf7f9;
    transition: background 0.2s;
}
footer .social_links a:hover {
    background: #1b285e;
}
footer .telephone a {
    font-size: 16px;
    font-weight: 600;
    color: #1b285e;
    border-bottom: none;
}
@media (max-width: 767px) {
    .footer-cols [class*="col-xs-6"] {
        margin-bottom: 24px;
    }
}

/* ============================================================
   knigi-ua HEADER (Figma)
   ============================================================ */

/* Reset old default header */
body { padding-top: 0; }
.navbar, .navbar-default, .navbar-header, .bottomNav,
.navbar-fixed-top, .navbar-collapse { display: none !important; }
.header_cart { margin-top: 0; }

/* ── Topbar ──────────────────────────────────────────────── */
.ua-topbar {
    background: #F5FBFC;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}
.ua-topbar .container,
.ua-header .container,
.ua-catnav .container,
.ua-banner-wrap .container,
.ua-section .container,
.ua-catblock .container,
.ua-authors .container,
.ua-publishers .container,
.ua-html-section .container,
.ua-footer .container,
.up-page .container {
    width: 1400px !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 1429px) {
    .ua-topbar .container,
    .ua-header .container,
    .ua-catnav .container,
    .ua-banner-wrap .container,
    .ua-section .container,
    .ua-catblock .container,
    .ua-authors .container,
    .ua-publishers .container,
    .ua-html-section .container,
    .ua-footer .container,
    .up-page .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.ua-header .container { overflow: visible !important; }
.ua-topbar .container {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}

/* Topbar nav links */
.ua-topbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}
.ua-topbar-nav > a {
    color: #000000;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-decoration: none;
    border-bottom: none;
    padding: 0 8px;
    white-space: nowrap;
    transition: color .15s;
}
.ua-topbar-nav > a:first-child { padding-left: 0; }
.ua-topbar-nav > a:hover { color: #1b285e; }

/* "Інше" dropdown */
.ua-more-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 10px;
}
.ua-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.ua-more-btn:hover { color: #1b285e; }
.ua-more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    min-width: 180px;
    z-index: 2000;
    padding: 6px 0;
}
.ua-more-wrap.open .ua-more-dropdown { display: block; }
.ua-more-dropdown a {
    display: block;
    padding: 8px 14px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    border-bottom: none;
    transition: background .12s;
}
.ua-more-dropdown a:hover { background: #f5fafb; color: #1b285e; }

/* Topbar right */
.ua-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.ua-topbar-phone {
    font-weight: 400;
    color: #000000;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border-bottom: none;
    white-space: nowrap;
    transition: color .15s;
}
.ua-topbar-phone:hover { color: #1b285e; }

/* Social icons (Telegram + Viber) */
.ua-topbar-social {
    display: flex;
    gap: 6px;
    align-items: center;
}
.ua-social-tg, .ua-social-vb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-bottom: none;
    transition: opacity .2s;
}
.ua-social-tg { color: #2AABEE; }
.ua-social-vb { color: #7360F2; }
.ua-social-tg:hover, .ua-social-vb:hover { opacity: .75; }

/* Language switcher */
.ua-topbar-lang { font-size: 13px; }

/* Desktop button */
.ua-lang-desktop { position: relative; display: inline-block; }
.ua-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 31px;
    padding: 0 10px 0 12px;
    background: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #141414;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    white-space: nowrap;
}
.ua-lang-btn:hover { background: #f5f5f5; }
.ua-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
    overflow: hidden;
    min-width: 60px;
    z-index: 1100;
}
.ua-lang-switcher.open .ua-lang-dropdown { display: block; }
.ua-lang-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #141414;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.ua-lang-dropdown a:hover { background: #f5f5f5; color: #1b285e; }

/* Mobile nav: hide desktop switcher, show flat links */
.ua-lang-mobile { display: none; }
.ua-mobile-nav-lang .ua-lang-desktop { display: none; }
.ua-mobile-nav-lang .ua-lang-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.ua-mobile-nav-lang .ua-lang-active {
    font-size: 14px;
    font-weight: 600;
    color: #1b285e;
}
.ua-mobile-nav-lang .ua-lang-other {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    text-decoration: none;
}
.ua-mobile-nav-lang .ua-lang-other:hover { color: #1b285e; }

/* ── Main header ─────────────────────────────────────────── */
.ua-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
/* Figma: header height=112px */
.ua-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 112px;
    padding: 0;
}

/* Logo */
.ua-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-bottom: none;
    margin-right: 4px;
}
.ua-logo img {
    height: 48px;
    width: auto;
    display: block;
}
.ua-logo-text {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: #141414;
}

/* Catalog button */
.ua-catalog-wrap {
    position: relative;
    flex-shrink: 0;
}
.ua-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1b285e;
    color: #fff;
    border: none;
    border-radius: 34px;
    padding: 0 20px;
    height: 44px;
    min-width: 196px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    justify-content: center;
}
.ua-catalog-btn:hover { background: #1a9ab0; }
.ua-catalog-btn .ua-cat-chevron {
    transition: transform .2s;
    margin-left: 2px;
}
.ua-catalog-btn.open .ua-cat-chevron { transform: rotate(180deg); }

/* Catalog dropdown */
.ua-catalog-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid #e0e9f0;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    min-width: 260px;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d0e8ed transparent;
    z-index: 2000;
    padding: 8px 0;
    animation: ua-drop-in .15s ease;
}
@keyframes ua-drop-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ua-catalog-dropdown.open { display: block; }
.ua-catalog-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(0,0,0,.75);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: background .12s, color .12s;
    line-height: 1.2;
}
.ua-catalog-dropdown a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0e8ed;
    flex-shrink: 0;
    transition: background .12s, transform .12s;
}
.ua-catalog-dropdown a:hover {
    background: #f7fbfc;
    color: #1b285e;
}
.ua-catalog-dropdown a:hover::before {
    background: #1b285e;
    transform: scale(1.4);
}

/* Search */
.ua-search {
    flex: 1;
    min-width: 0;
}
.ua-search-mobile-icon { display: none; }
.ua-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e9f0;
    border-radius: 22px;
    height: 44px;
    transition: border-color .15s;
    position: relative;
}
.ua-search-form:focus-within {
    border-color: #1b285e;
}
.ua-search-form input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #141414;
    padding: 0 20px;
    outline: none;
    box-shadow: none;
    height: 100%;
    min-width: 0;
}
.ua-search-form input[type="text"]::placeholder { color: #9aa5ab; }
.ua-search-submit {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color .15s;
}
.ua-search-submit:hover { color: #1b285e; }

/* Header icons (no text labels) */
.ua-header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ua-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e0e9f0;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid #e0e9f0;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s;
}
.ua-icon-btn:hover { background: #f0fafb; border-color: #1b285e; color: #1b285e; }
.ua-icon-btn svg { display: block; flex-shrink: 0; }

/* Cart & wishlist icon count badges */
.ua-cart-btn, .ua-wishlist-btn { position: relative; }
.ua-cart-count, .ua-wishlist-count {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    padding: 0 4px; box-sizing: border-box; border-radius: 9px;
    background: #1f8a5b; color: #fff; font-size: 11px; font-weight: 700;
    line-height: 18px; text-align: center; pointer-events: none;
}

/* Плаваючий тост (наприклад, «додано в закладки») */
.ua-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 3000; max-width: 90%; min-width: 280px;
    box-shadow: 0 6px 24px rgba(0,0,0,.15); margin: 0;
}

/* Прибираємо «сирий» бар корзини у шапці — використовуємо лише модалку + бейдж на іконці */
.header_cart, .header_cart.hidden_cart {
    max-height: 0 !important; padding: 0 !important; margin: 0 !important;
    overflow: hidden !important; border: 0 !important;
}

/* Burger (mobile) */
.ua-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
}
.ua-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* Mobile nav */
.ua-mobile-nav { background: #fff; border-top: 1px solid #eee; }
.ua-mobile-nav .container { padding: 16px 16px 20px !important; }
.ua-mobile-nav nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.ua-mobile-nav nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 400;
    color: #222;
    padding: 13px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    border-right: none;
}
.ua-mobile-nav nav a::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2'%3E%3Cpolyline points='9,18 15,12 9,6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ua-mobile-nav nav a:last-child { border-bottom: none; }
.ua-mobile-nav nav a:hover { color: #1b285e; }
.ua-mobile-nav nav a:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231b285e' stroke-width='2'%3E%3Cpolyline points='9,18 15,12 9,6'/%3E%3C/svg%3E");
}
/* Mobile nav footer: phone + language */
.ua-mobile-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: 2px;
}
.ua-mobile-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.ua-mobile-nav-phone:hover { color: #1b285e; }
.ua-mobile-nav-lang .language_changer {
    display: flex;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}
.ua-mobile-nav-lang .language_changer span.active {
    color: #1b285e;
    font-weight: 600;
    font-size: 14px;
}
.ua-mobile-nav-lang .language_changer a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    border: none;
    border-bottom: none !important;
    background: none !important;
}
.ua-mobile-nav-lang .language_changer a::after { display: none !important; }
.ua-mobile-nav-lang .language_changer a:hover { color: #1b285e; }

/* Mobile auth block */
.ua-mobile-auth {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.ua-mobile-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 40px;
    border-radius: 20px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border: 1px solid #e0e9f0;
    color: #222;
    background: #fff;
    transition: border-color .15s, color .15s;
}
.ua-mobile-auth-btn:hover { border-color: #1b285e; color: #1b285e; }
.ua-mobile-auth-primary {
    background: #1b285e;
    border-color: #1b285e;
    color: #fff;
}
.ua-mobile-auth-primary:hover { background: #1a9ab0; border-color: #1a9ab0; color: #fff; }

/* ── Main content ───────────────────────────────────────── */
.ua-main { background: #f7f8fb; min-height: 400px; }

/* ── Banner / Slider (Owl Carousel v2) ──────────────────── */
.ua-banner-wrap { background: #fff; padding: 20px 0 24px; }
.ua-banner-slider { width: 100%; position: relative; }
/* Figma: border-radius 24px per side */
.ua-banner-item { display: block; border-radius: 24px; overflow: hidden; }
.ua-banner-item img { width: 100%; height: 510px; object-fit: cover; display: block; }
.ua-banner-item a { display: block; }

/* Navigation arrows — plain white arrows, no circle (Figma: 30×30, ep:arrow-left) */
.ua-banner-slider .owl-nav { position: absolute; top: 255px; width: 100%; pointer-events: none;
    transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 16px; box-sizing: border-box; }
.ua-banner-slider .owl-nav button {
    pointer-events: all; width: 30px; height: 30px; border-radius: 0;
    background: transparent !important; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: none; padding: 0;
}
.ua-banner-slider .owl-nav button:hover { opacity: .8; }
.ua-banner-slider .owl-nav button svg { display: block; }
.ua-banner-slider .owl-nav button span { display: none; }
.ua-banner-slider .owl-nav.disabled { display: none; }

/* Dots — rectangular bars (Figma: inactive 37×6px #CCC, active 39×6px #1b285e) */
.ua-banner-slider .owl-dots {
    display: flex; justify-content: center; align-items: center;
    gap: 4px; padding: 18px 0 0; width: 100%; }
.ua-banner-slider .owl-dots .owl-dot {
    display: flex; padding: 0; border: none; background: transparent; cursor: pointer; }
.ua-banner-slider .owl-dots .owl-dot span {
    width: 37px; height: 6px; background: #cccccc;
    border-radius: 5px; display: block; transition: background .2s, width .15s; }
.ua-banner-slider .owl-dots .owl-dot.active span {
    background: #1b285e; width: 39px; }

/* ── Sections (Популярні, Акції, etc.) ──────────────────── */
.ua-section { padding: 40px 0; background: #f7f8fb; }
.ua-section:nth-child(even) { background: #fff; }
.ua-section-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.ua-section-title {
    font-size: 36px; font-weight: 700; color: #141414;
    font-family: 'Lato', sans-serif; margin: 0; line-height: 1.2;
}
.ua-section-more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 18px; font-weight: 400; color: #1b285e;
    font-family: 'Inter', sans-serif; text-decoration: none;
    white-space: nowrap; transition: opacity .15s;
}
.ua-section-more:hover { opacity: .75; color: #1b285e; }
.ua-section-arrows {
    display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0;
}
.ua-arrow-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #e0e9f0; background: #fff;
    cursor: pointer; color: #141414; padding: 0;
    transition: background .15s, border-color .15s, color .15s;
}
.ua-arrow-btn:hover { background: #1b285e; border-color: #1b285e; color: #fff; }
.ua-arrow-btn svg { display: block; flex-shrink: 0; }

/* ── Product scroll row ─────────────────────────────────── */
.ua-products-scroll {
    display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none;
    -ms-overflow-style: none; padding-bottom: 4px;
    scroll-behavior: smooth;
}
.ua-products-scroll::-webkit-scrollbar { display: none; }

/* ── Product card ───────────────────────────────────────── */
.ua-product-card {
    flex: 0 0 200px; width: 200px; background: #fff;
    border-radius: 16px; border: 1px solid #e8eef3;
    display: flex; flex-direction: column; overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}
.ua-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }

.ua-product-img-wrap {
    display: block; width: 100%; aspect-ratio: 2/3;
    overflow: hidden; background: #f7f8fb;
}
.ua-product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .2s;
}
.ua-product-card:hover .ua-product-img-wrap img { transform: scale(1.03); }

.ua-product-body {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px; flex: 1;
}
.ua-product-publisher {
    font-size: 12px; color: #8a9bb0; font-family: 'Inter', sans-serif;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ua-product-publisher a {
    color: #8a9bb0; text-decoration: none; font-family: 'Inter', sans-serif;
}
.ua-product-publisher a:hover { color: #1b285e; }
.ua-product-name {
    font-size: 13px; font-weight: 500; color: #141414;
    font-family: 'Inter', sans-serif; margin: 0; line-height: 1.4;
    flex: 1;
}
.ua-product-name a { color: #141414; text-decoration: none; font-family: 'Inter', sans-serif; }
.ua-product-name a:hover { color: #1b285e; }

.ua-product-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: 4px;
}
.ua-product-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ua-price-badge {
    display: inline-flex; align-items: center;
    background: #1b285e; color: #fff; border-radius: 8px;
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    padding: 3px 8px; line-height: 1.3; white-space: nowrap;
}
.ua-price-old {
    font-size: 12px; color: #9aa5ab; font-family: 'Inter', sans-serif;
    text-decoration: line-through; white-space: nowrap;
}
.ua-price-special { background: #e84040; }
.ua-add-btn {
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 46px; border-radius: 34px; flex-shrink: 0;
    background: #1f8a5b; color: #fff; border: none; cursor: pointer;
    padding: 0; transition: background .15s;
}
.ua-add-btn:hover { background: #b8404f; }
.ua-add-btn svg { display: block; }

/* ── Footer ─────────────────────────────────────────────── */
.ua-footer { font-family: 'Inter', sans-serif; padding: 0 !important; margin-bottom: 0 !important; }
/* Kill the inherited default-theme border-bottom on all footer links */
.ua-footer a,
.ua-footer a:hover,
.ua-footer a:focus { border-bottom: none !important; padding: 0 !important; margin: 0 !important; display: inline !important; }

/* ТОП Меню section */
/* Footer top menu — Figma #F7FBFC bg, tabs=pill, links in white box border-radius:26px */
.ua-footer-topmenu { background: #f7fbfc; padding: 40px 0 32px; }
.ua-footer-tabs { display: flex; gap: 16px; margin-bottom: 0; position: relative; z-index: 2; }
.ua-footer-tab {
    display: inline-flex; align-items: center; height: 44px;
    padding: 0 28px; border-radius: 34px; border: 1px solid #e0e9f0; cursor: pointer;
    font-size: 18px; font-weight: 400; font-family: 'Inter', sans-serif;
    background: #fff; color: rgba(0,0,0,.6); transition: all .15s;
}
.ua-footer-tab.active { background: #1b285e; color: #fff; border-color: #1b285e; }
.ua-footer-tab:hover:not(.active) { border-color: #1b285e; color: #1b285e; }
/* White inner box (Figma Rectangle 108): tabs overlap top by ~23px */
.ua-footer-links-box {
    background: #fff; border-radius: 26px;
    padding: 32px 32px 28px;
    margin-top: 12px; position: relative; z-index: 1;
}
.ua-footer-tab-content { display: block; }
.ua-footer-tab-content.ua-hidden { display: none; }
.ua-footer-catlinks {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px;
}
.ua-footer-catlinks a {
    font-size: 14px; color: rgba(0,0,0,.6); text-decoration: none;
    font-family: 'Inter', sans-serif; line-height: 17px;
    display: flex; align-items: center;
    transition: color .15s;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0;
}
.ua-footer-catlinks a:hover { color: #1b285e; }

/* Main footer columns */
.ua-footer-main { background: #fff; padding: 40px 0 32px; }
.ua-footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.ua-footer-col-title {
    font-size: 18px; font-weight: 400; color: #141414;
    font-family: 'Inter', sans-serif; margin: 0 0 16px; line-height: 1.3;
}
.ua-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ua-footer-links li a {
    font-size: 18px; color: #1b285e; text-decoration: none;
    font-family: 'Inter', sans-serif; line-height: 1.4; transition: opacity .15s;
}
.ua-footer-links li a:hover { opacity: .75; }
.ua-footer-link-bold { font-weight: 600; }

/* Contacts column */
.ua-footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.ua-footer-contact-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; color: #1b285e; text-decoration: none;
    font-family: 'Inter', sans-serif; transition: opacity .15s;
}
.ua-footer-contact-row:hover { opacity: .75; }
.ua-footer-contact-row svg { flex-shrink: 0; }
.ua-footer-messengers-label {
    font-size: 13px; color: #8a9bb0; font-family: 'Inter', sans-serif; margin-top: 4px;
}
.ua-footer-messengers { display: flex; gap: 20px; margin-top: 8px; }
.ua-footer-messenger-btn {
    display: inline-flex; text-decoration: none; line-height: 0;
    transition: opacity .15s;
}
.ua-footer-messenger-btn:hover { opacity: .75; }
.ua-footer-messenger-btn svg { display: block; }

/* Socials */
.ua-footer-socials { display: flex; gap: 24px; flex-wrap: wrap; }
.ua-footer-social-btn {
    display: inline-flex; text-decoration: none; line-height: 0;
    transition: opacity .15s;
}
.ua-footer-social-btn:hover { opacity: .75; }
.ua-footer-social-btn svg { display: block; }

/* Bottom bar */
.ua-footer-bottom-bar { background: #2a2d3a; }
.ua-footer-bottom {
    padding: 14px 0; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ua-footer-copyright {
    font-size: 13px; color: #8a9bb0; font-family: 'Inter', sans-serif;
}
.ua-footer-seo {
    font-size: 13px; color: #8a9bb0; font-family: 'Inter', sans-serif;
    text-decoration: none; transition: color .15s;
}
.ua-footer-seo:hover { color: #c8d4e0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .ua-catalog-wrap { display: none; }
    .ua-burger { display: flex; }
    .ua-topbar-nav { display: none; }
    /* Поиск не растягивается на планшете — корзина прижата к нему */
    .ua-search { flex: none; }
}
@media (max-width: 767px) {
    /* Header — 76px, порядок: бургер | лого | каталог | пошук | кошик */
    .ua-header-inner {
        height: 76px;
        padding: 0 16px;
        gap: 8px;
    }
    .ua-burger {
        order: 1;
        margin-left: 0;
        display: flex;
    }
    .ua-logo { order: 2; }
    .ua-logo img { height: 36px; }

    /* Каталог — показуємо, займає простір по центру */
    .ua-catalog-wrap {
        display: flex !important;
        order: 3;
        flex: 1;
        justify-content: center;
    }
    .ua-catalog-btn {
        min-width: 0;
        width: 100%;
        max-width: 156px;
        font-size: 16px;
        height: 40px;
        padding: 0 14px;
        gap: 6px;
    }
    /* Шеврон на мобілі прибираємо */
    .ua-catalog-btn .ua-cat-chevron { display: none; }

    /* Дропдаун — фіксуємо до вікна щоб не виходив за екран */
    .ua-catalog-dropdown {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 80px;
        min-width: unset;
        width: auto;
        max-height: 60vh;
        border-radius: 16px;
    }

    /* Пошук — показуємо мобільну кнопку, ховаємо форму */
    .ua-search {
        display: block !important;
        order: 4;
        flex-shrink: 0;
    }
    .ua-search-form { display: none; }
    .ua-search-mobile-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #e0e9f0;
        background: #fff;
        color: #000;
        cursor: pointer;
    }

    /* Іконки:ховаємо акаунт і вішліст, лишаємо лише кошик */
    .ua-header-icons {
        order: 5;
        gap: 6px;
    }
    .ua-header-icons > a { display: none; }
    .ua-icon-btn { width: 40px; height: 40px; }

    /* Решта */
    .ua-topbar { display: none; }
    .ua-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .ua-footer-catlinks { grid-template-columns: repeat(2, 1fr); }
    .ua-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* ── CatNav — показуємо на мобілі (2.5 таби) ── */
    .ua-catnav { display: block !important; }
    .ua-catnav .container { padding-left: 0 !important; padding-right: 0 !important; }
    .ua-catnav-inner { height: 56px; gap: 8px; padding: 0 16px; }
    .ua-catnav-tab { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 18px; gap: 6px; }
    .ua-catnav-tab svg { width: 16px; height: 16px; }

    /* ── Слайдер — 243px, видно 1+1/3 ── */
    .ua-banner-wrap { padding: 8px 0 12px; overflow: hidden; }
    .ua-banner-wrap .container {
        padding-left: 16px !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }
    .ua-banner-item img { height: 243px; }
    .ua-banner-slider .owl-nav { top: 50%; }
    .ua-banner-slider .owl-dots { padding-top: 10px; }
    .ua-banner-slider .owl-dots .owl-dot span { width: 20px; height: 5px; }
    .ua-banner-slider .owl-dots .owl-dot.active span { width: 22px; }

    /* ── Секції товарів — padding контейнера ── */
    .ua-section .container { padding-left: 16px !important; padding-right: 16px !important; }
    .ua-section { padding: 20px 0; }
    .ua-section-title { font-size: 26px !important; font-weight: 500 !important; }
    .ua-section-more { font-size: 16px; }
    .ua-section-arrows { display: none; }
    .ua-section-head { margin-bottom: 12px; }

    /* Grid 2 колонки замість горизонтального скролу */
    .ua-products-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        overflow: visible !important;
        padding-bottom: 0;
        scroll-behavior: unset;
    }
    /* Карточка 175×342px по Figma */
    .ua-product-card {
        flex: none !important;
        width: 100% !important;
        min-height: 342px !important;
        border-radius: 16px !important;
    }
    /* Зображення: 158px висота, відступи 16px */
    .ua-product-img-wrap {
        aspect-ratio: unset !important;
        height: 158px !important;
        width: auto !important;
        padding: 16px 16px 0;
        border-radius: 0 !important;
        box-sizing: border-box;
    }
    .ua-product-img-wrap img { border-radius: 12px; height: 100%; }
    /* Текст */
    .ua-product-name a, .ua-product-name { font-size: 14px !important; font-family: 'Open Sans', sans-serif; }
    .ua-product-publisher { font-size: 12px; color: rgba(0,0,0,.6); }
    /* Ціна */
    .ua-product-bottom { padding: 8px 12px 12px; }
    .ua-product-price-block { gap: 2px; }
    .ua-product-price { font-size: 18px !important; font-weight: 600 !important; font-family: 'Open Sans', sans-serif !important; }
    .ua-price-old { font-size: 13px !important; }
    .ua-product-status { font-size: 12px; color: #5bc5ae; }
    /* Кнопка кошика */
    .ua-add-btn { border-radius: 34px !important; width: 56px !important; height: 40px !important; }

    /* ── Padding для контейнерів catblock/authors/publishers ── */
    .ua-catblock .container,
    .ua-authors .container,
    .ua-publishers .container { padding-left: 16px !important; padding-right: 16px !important; }

    /* ── Популярні категорії ── */
    .ua-catblock { padding: 20px 0; }
    .ua-catblock-title { font-size: 20px; }
    .ua-catblock-arrows { display: none; }
    .ua-catblock-head { margin-bottom: 12px; }
    .ua-catblock-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ua-catblock-item { height: 110px; border-radius: 12px; }
    .ua-catblock-label { font-size: 13px; bottom: 8px; left: 10px; line-height: 1.2; }

    /* ── Популярні автори ── */
    .ua-authors { padding: 20px 0; }
    .ua-authors-title { font-size: 20px; }
    .ua-authors-arrows { display: none; }
    .ua-authors-head { margin-bottom: 12px; }
    .ua-author-card { flex: 0 0 110px; width: 110px; }
    .ua-author-img-wrap { width: 110px; height: 140px; border-radius: 12px; }
    .ua-author-name { font-size: 13px; margin-top: 8px; }
    .ua-authors-scroll { gap: 10px; }

    /* ── Видавництва ── */
    .ua-publishers { padding: 20px 0; }
    .ua-publishers-title { font-size: 20px; }
    .ua-publishers-arrows { display: none; }
    .ua-publishers-head { margin-bottom: 12px; }
    .ua-publisher-card { flex: 0 0 110px; width: 110px; }
    .ua-publisher-img-wrap { width: 110px; height: 74px; border-radius: 10px; }
    .ua-publisher-name { font-size: 12px; margin-top: 6px; }
    .ua-publishers-scroll { gap: 10px; }
}
@media (max-width: 480px) {
    .ua-footer-grid { grid-template-columns: 1fr; }
    .ua-footer-catlinks { grid-template-columns: 1fr; }
}

/* ── Популярні запити (perelink-block) ── */
.perelink-block {
    margin-top: 16px;
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.perelink-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 130% !important;
    color: #000000 !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}
.perelink-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.perelink-list li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}
.perelink-icon {
    flex-shrink: 0;
}
.perelink-list a {
    font-family: 'Lato', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 150% !important;
    color: rgba(0, 0, 0, 0.6) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.perelink-list a:hover {
    color: #1b285e !important;
}

