/* ═══════════════════════════════════════════════════════════
   FIGMA OVERRIDES — knigi-ua homepage
   ═══════════════════════════════════════════════════════════ */

/* Fix container overflow that clips horizontal scroll */
.ua-section > .container,
.ua-section .container { overflow: visible !important; }

/* Arrow buttons: prev=white, next=teal */
/* Featured sections: #1b285e per Figma */
.ua-arrow-btn.ua-arrow-next {
    background: #1b285e !important;
    border-color: #1b285e !important;
    color: #fff !important;
}
/* Categories + Authors sections: #5BB9C5 per Figma */
.ua-catblock .ua-arrow-btn.ua-arrow-next,
.ua-authors .ua-arrow-btn.ua-arrow-next {
    background: #5bb9c5 !important;
    border-color: #5bb9c5 !important;
}
/* Last card padding fix */
.ua-products-scroll { padding-right: 4px !important; }

/* ── Product card — Figma exact (267×448) ──────────────── */
.ua-product-card {
    flex: 0 0 267px !important;
    width: 267px !important;
    min-height: 448px;
    border-radius: 16px !important;
    border: 1px solid #e0e9f0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s;
    background: #fff !important;
}
.ua-product-card:hover { transform: none !important; box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* Image area: 235×259 with 16px top+side padding, bg #f7f8fb */
.ua-product-img-wrap {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 235px !important;
    height: 259px !important;
    aspect-ratio: unset !important;
    margin: 16px auto 0 !important;
    background: #f7f8fb !important;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 12px;
}
.ua-product-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}
.ua-product-card:hover .ua-product-img-wrap img { transform: none !important; }

/* Card body: 18px top gap matches Figma (image bottom 275px → author at 293px) */
.ua-product-body {
    padding: 18px 16px 0 !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

/* Author: Lato/Open Sans 15px rgba(0,0,0,.6) — Figma */
.ua-product-publisher {
    font-size: 15px !important;
    line-height: 18px !important;
    color: rgba(0,0,0,.6) !important;
    font-family: 'Lato', sans-serif !important;
    margin-bottom: 4px !important;
}
.ua-product-publisher a {
    font-size: 15px !important;
    color: rgba(0,0,0,.6) !important;
    font-family: 'Lato', sans-serif !important;
}
.ua-product-publisher a:hover { color: #1b285e !important; }

/* Title: Lato 18px/130% #000 */
.ua-product-name {
    font-size: 18px !important; font-weight: 400 !important;
    line-height: 1.3 !important; font-family: 'Lato', sans-serif !important;
    color: #000 !important;
    flex: 1 !important;
}
.ua-product-name a {
    font-size: 18px !important; font-weight: 400 !important;
    color: #000 !important; font-family: 'Lato', sans-serif !important;
}
.ua-product-name a:hover { color: #1b285e !important; }

/* Card bottom: price + status + cart — 20px bottom gap (Figma: 4.46%×448=20px) */
.ua-product-bottom {
    display: flex;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 20px;
}
.ua-product-price-block {
    flex: 1;
    padding: 8px 0 0 16px;
}
/* Price: Open Sans 600 24px — Figma */
.ua-product-price {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    font-family: 'Open Sans', sans-serif;
    line-height: 33px;
}
/* Status: Lato 400 12px #5bc5ae — Figma */
.ua-product-status {
    font-size: 12px;
    line-height: 14px;
    color: #5bc5ae;
    margin-top: 2px;
    font-family: 'Lato', sans-serif;
}
.ua-product-status--out { color: #000 !important; }

/* Cart button: 72×46 pill, #1f8a5b (Figma) */
.ua-add-btn {
    width: 72px !important;
    height: 46px !important;
    border-radius: 34px !important;
    background: #1f8a5b !important;
    color: #fff !important;
    flex-shrink: 0;
    align-self: flex-end;
    padding: 0 !important;
    margin-right: 16px !important;
    transition: background .15s !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.ua-add-btn:hover { background: #b8404f !important; transform: none !important; }
.ua-add-btn svg { display: block; width: 24px !important; height: 24px !important; }

/* ── Category nav bar ───────────────────────────────────── */
.ua-catnav {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}
.ua-catnav .container { overflow: visible !important; }
.ua-catnav-inner {
    display: flex;
    align-items: center;
    height: 90px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ua-catnav-inner::-webkit-scrollbar { display: none; }
.ua-catnav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1b285e;
    background: #fff;
    border: 1.5px solid #dce8ec;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s;
}
.ua-catnav-tab:hover { background: #f0fafb !important; border-color: #1b285e !important; color: #1b285e !important; }
.ua-catnav-tab--popular {
    background: #cd5265 !important;
    color: #fff !important;
    border-color: #cd5265 !important;
}
.ua-catnav-tab--popular:hover { background: #b34057 !important; border-color: #b34057 !important; color: #fff !important; }
.ua-catnav-tab svg { flex-shrink: 0; }

/* ── Footer bottom bar — Figma #505a6d ──────────────────── */
.ua-footer-bottom-bar { background: #505a6d !important; }
.ua-footer-copyright { color: #fff !important; font-size: 16px !important; }
.ua-footer-seo { color: rgba(255,255,255,.75) !important; font-size: 16px !important; }
.ua-footer-seo:hover { color: #fff !important; }


/* ── Slideshow: two panels side by side (Figma) ─────────── */
.ua-banner-wrap .owl-item { padding: 0 8px; }
.ua-banner-wrap .owl-item:first-child { padding-left: 0; }
.ua-banner-wrap .owl-item:last-child { padding-right: 0; }
@media (max-width: 991px) {
    .ua-banner-wrap .owl-item { padding: 0; }
    .ua-banner-item img { height: 280px !important; }
}

/* ── SEO / HTML module block (Figma: bg=#f2f4f7, collapsible) */
.ua-html-section {
    background: #f2f5f8;
    padding: 48px 0;
}
.ua-html-inner {
    position: relative;
}
/* Title: Lato 500 36px #000 */
.ua-html-title {
    font-size: 36px; font-weight: 500; color: #000;
    font-family: 'Lato', sans-serif; margin: 0 0 24px; line-height: 43px;
}
.ua-html-body {
    max-height: 300px;
    overflow: hidden;
    font-size: 16px; line-height: 1.5; color: #000;
    font-family: 'Open Sans', sans-serif;
    transition: max-height .4s ease;
}
.ua-html-body--open { max-height: 9999px; }
/* Sub-headings: Lato 500 24px */
.ua-html-body h1 { font-size: 36px; font-weight: 500; color: #000; font-family: 'Lato', sans-serif; margin: 0 0 16px; line-height: 1.2; }
.ua-html-body h2 { font-size: 24px; font-weight: 500; color: #000; font-family: 'Lato', sans-serif; margin: 24px 0 12px; line-height: 1.2; }
.ua-html-body h3 { font-size: 18px; font-weight: 600; color: #000; font-family: 'Lato', sans-serif; margin: 16px 0 8px; }
.ua-html-body p { margin: 0 0 16px; }
.ua-html-body strong { font-weight: 600; }
.ua-html-body ul { padding-left: 0; list-style: none; margin: 12px 0; }
.ua-html-body ul li {
    padding-left: 28px; position: relative; margin-bottom: 8px;
}
.ua-html-body ul li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: #1b285e; font-weight: 700; font-size: 16px;
}
.ua-html-body p { margin: 10px 0; }
.ua-html-body a { color: #1b285e; }
.ua-html-fade {
    position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to bottom, transparent, #f2f4f7);
    pointer-events: none;
}
.ua-html-more {
    display: flex; align-items: center; gap: 6px; margin: 24px auto 0;
    background: none; border: none; cursor: pointer;
    font-size: 16px; font-weight: 600; color: #1b285e;
    font-family: 'Inter', sans-serif; transition: color .15s;
}
.ua-html-more:hover { color: #1a9ab0; }
.ua-html-more svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   ПОПУЛЯРНІ КАТЕГОРІЇ
   ══════════════════════════════════════════════════════════ */
.ua-catblock {
    background: #fff;
    padding: 40px 0;
}
.ua-catblock .container { overflow: visible !important; padding: 0 !important; }
.ua-catblock-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.ua-catblock-title {
    font-family: 'Lato', sans-serif;
    font-size: 36px; font-weight: 500; color: #000; margin: 0; line-height: 1.2;
}
.ua-catblock-arrows { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.ua-catblock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ua-catblock-item {
    position: relative;
    height: 279px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e9f0;
    display: block;
    text-decoration: none;
}
.ua-catblock-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.ua-catblock-item:hover .ua-catblock-img { transform: scale(1.04); }
.ua-catblock-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.12);
    transition: background .2s;
}
.ua-catblock-item:hover .ua-catblock-overlay { background: rgba(0,0,0,.22); }
.ua-catblock-label {
    position: absolute; bottom: 20px; left: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px; font-weight: 600; color: #fff;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
/* placeholder bg colours when no image */
.ua-catblock-item--1 { background: linear-gradient(135deg,#f7a25c,#e85d5d); }
.ua-catblock-item--2 { background: linear-gradient(135deg,#4ecdc4,#44a3d0); }
.ua-catblock-item--3 { background: linear-gradient(135deg,#764ba2,#667eea); }

/* ══════════════════════════════════════════════════════════
   ПОПУЛЯРНІ АВТОРИ
   ══════════════════════════════════════════════════════════ */
.ua-authors {
    background: #f7f8fb;
    padding: 40px 0;
}
.ua-authors .container { overflow: visible !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.ua-authors-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.ua-authors-title {
    font-family: 'Lato', sans-serif;
    font-size: 36px; font-weight: 700; color: #141414; margin: 0; line-height: 1.2;
}
.ua-authors-arrows { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.ua-authors-scroll {
    display: flex; gap: 16px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.ua-authors-scroll::-webkit-scrollbar { display: none; }
.ua-author-card {
    flex: 0 0 267px; width: 267px;
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: inherit;
}
.ua-author-img-wrap {
    width: 267px; height: 337px;
    border-radius: 16px;
    border: 1px solid #e0e9f0;
    overflow: hidden;
    background: #e8eef3;
    flex-shrink: 0;
}
.ua-author-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .3s;
}
.ua-author-card:hover .ua-author-img-wrap img { transform: scale(1.04); }
.ua-author-name {
    margin-top: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 20px; font-weight: 500; color: #000;
    text-align: center; line-height: 1.3;
}
/* placeholder avatars */
.ua-author-avatar {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Lato', sans-serif; font-size: 56px; font-weight: 700;
    color: #fff;
}
.ua-author-img-wrap--1 { background: linear-gradient(160deg,#8b9bbc,#5a6a8a); }
.ua-author-img-wrap--2 { background: linear-gradient(160deg,#7aa6b8,#4a7a90); }
.ua-author-img-wrap--3 { background: linear-gradient(160deg,#b8a0c8,#8060a0); }
.ua-author-img-wrap--4 { background: linear-gradient(160deg,#9ab8a0,#507060); }
.ua-author-img-wrap--5 { background: linear-gradient(160deg,#b8a08a,#806050); }

/* ══════════════════════════════════════════════════════════
   ВИДАВНИЦТВА
   ══════════════════════════════════════════════════════════ */
.ua-publishers {
    background: #fff;
    padding: 40px 0;
}
.ua-publishers .container { overflow: visible !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.ua-publishers-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.ua-publishers-title {
    font-family: 'Lato', sans-serif;
    font-size: 36px; font-weight: 700; color: #141414; margin: 0; line-height: 1.2;
}
.ua-publishers-arrows { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.ua-publishers-scroll {
    display: flex; gap: 16px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.ua-publishers-scroll::-webkit-scrollbar { display: none; }
.ua-publisher-card {
    flex: 0 0 267px; width: 267px;
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: inherit;
}
.ua-publisher-img-wrap {
    width: 267px; height: 179px;
    border-radius: 16px;
    border: 1px solid #e0e9f0;
    overflow: hidden;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ua-publisher-img-wrap img {
    width: 100%; height: 100%; object-fit: contain; display: block;
    transition: transform .3s;
}
.ua-publisher-card:hover .ua-publisher-img-wrap img { transform: scale(1.04); }
.ua-publisher-name {
    margin-top: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 20px; font-weight: 500; color: #000;
    text-align: center; line-height: 1.3;
}
/* placeholder colours */
.ua-publisher-img-wrap--1 { background: linear-gradient(135deg,#e8f4f8,#c8e8f0); }
.ua-publisher-img-wrap--2 { background: linear-gradient(135deg,#f8ede8,#f0d0c0); }
.ua-publisher-img-wrap--3 { background: linear-gradient(135deg,#e8f0e8,#c8e0c8); }
.ua-publisher-img-wrap--4 { background: linear-gradient(135deg,#f0e8f8,#d8c8f0); }
.ua-publisher-img-wrap--5 { background: linear-gradient(135deg,#f8f0e8,#f0d8c0); }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE  (up-*)   Figma node 282:4225
   Container: 1400px | Left col: 455px | Gap: 41px | Right: 904px
   ═══════════════════════════════════════════════════════════════ */
.up-page { background: #F5FBFC; padding: 24px 0 60px; }
/* Просмотренные товары під картками товару — той самий фон, що й сторінка */
.up-content-bottom { background: #F5FBFC; }
.up-content-bottom .ua-section,
.up-content-bottom .ua-section:nth-child(even) { background: transparent; padding-top: 0; }
.up-page .container { overflow: visible !important; }

/* Breadcrumb */
.up-breadcrumb {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    padding: 0 0 20px;
}
.up-breadcrumb a {
    font-family: 'Lato', sans-serif; font-size: 14px; line-height: 130%;
    color: rgba(0,0,0,.6); text-decoration: none; transition: color .12s;
}
.up-breadcrumb a:hover { color: #1b285e; }
.up-breadcrumb span { font-family: 'Lato', sans-serif; font-size: 14px; color: rgba(0,0,0,.6); }
.up-bc-sep { margin: 0 2px; }

/* Main 2-column layout */
.up-main { display: flex; align-items: flex-start; gap: 41px; }

/* ── Gallery ── */
.up-gallery { flex: 0 0 455px; width: 455px; position: sticky; top: 128px; align-self: flex-start; }
.up-main-img {
    width: 455px; height: 503px; border-radius: 12px;
    border: 1px solid #E5E5E5; overflow: hidden;
    background: #fff; display: flex; align-items: center; justify-content: center;
}
.up-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.up-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.up-thumb-item {
    display: block; flex: 0 0 calc((100% - 24px) / 4); width: calc((100% - 24px) / 4);
    height: 118px; border-radius: 12px;
    border: 1px solid #E5E5E5; overflow: hidden;
    background: #fff; cursor: pointer; transition: border-color .12s;
}
.up-thumb-item img { width: 100%; height: 100%; object-fit: contain; }
.up-thumb-item:hover, .up-thumb-item.up-thumb-active { border-color: #1b285e; }

/* ── Right info column ── */
.up-info-col {
    flex: 0 0 904px; width: 904px;
    display: flex; flex-direction: column; gap: 20px;
}

/* Info card */
.up-info-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.04); overflow: hidden;
}
.up-info-top { padding: 28px 40px 0; }
.up-author {
    display: inline-block; margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif; font-size: 18px; line-height: 25px;
    color: rgba(0,0,0,.6); text-decoration: none; transition: color .12s;
}
.up-author:hover { color: #1b285e; }
.up-title {
    font-family: 'Lato', sans-serif; font-size: 36px; font-weight: 700;
    line-height: 43px; color: #141414; margin: 0;
}

/* Price + buttons band */
.up-price-band {
    background: #F5FBFC; margin-top: 24px;
    padding: 0 40px; min-height: 148px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.up-price-block { display: flex; flex-direction: column; }
.up-price {
    font-family: 'Open Sans', sans-serif; font-size: 50px; font-weight: 700;
    line-height: 68px; color: #1b285e;
}
.up-price-old {
    font-family: 'Open Sans', sans-serif; font-size: 18px;
    color: rgba(0,0,0,.4); text-decoration: line-through; line-height: 1.3;
}
.up-price-unavail {
    font-family: 'Open Sans', sans-serif; font-size: 20px; color: rgba(0,0,0,.5);
}
.up-buttons { display: flex; gap: 16px; margin-left: auto; }
.up-btn-wish {
    display: inline-flex; align-items: center; gap: 8px;
    width: 195px; height: 68px; border-radius: 9px;
    border: 1px solid #1b285e; background: transparent;
    font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 600; line-height: 110%;
    color: #1b285e; cursor: pointer; justify-content: center;
    transition: background .15s;
}
.up-btn-wish:hover { background: #edf8fa; }
.up-btn-buy {
    display: inline-flex; align-items: center; gap: 8px;
    width: 195px; height: 68px; border-radius: 9px; border: none;
    background: #1b285e;
    font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 600; line-height: 110%;
    color: #fff; cursor: pointer; justify-content: center;
    transition: background .15s;
}
.up-btn-buy:hover { background: #1a9ab0; }
.up-btn-out { opacity: .5; cursor: not-allowed; }

/* Attributes grid */
.up-meta {
    padding: 28px 40px 32px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    row-gap: 24px; column-gap: 0;
}
.up-meta-collapsed .up-meta-item:nth-child(n+9) { display: none; }
.up-meta-item { display: flex; flex-direction: column; gap: 3px; }
.up-meta-label {
    font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 19px;
    color: rgba(0,0,0,.6);
}
.up-meta-value {
    font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 22px;
    color: #000;
}
.up-meta-value a { color: #000; text-decoration: underline; }
.up-meta-value a:hover { color: #1b285e; }
.up-meta-more-row { padding: 12px 40px 20px; }
.up-all-params {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: 'Open Sans', sans-serif; font-size: 16px; color: #000;
    text-decoration: underline; text-underline-offset: 2px;
    transition: color .12s;
}
.up-all-params:hover { color: #1b285e; }

/* Description card */
.up-desc-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    padding: 32px 40px;
}
.up-desc-title {
    font-family: 'Lato', sans-serif; font-size: 24px; font-weight: 700;
    line-height: 29px; color: #141414; margin: 0 0 16px;
}
.up-desc-text {
    font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 400;
    line-height: 150%; color: #000;
}
.up-desc-collapsed {
    max-height: 180px; overflow: hidden;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.up-desc-expanded { max-height: none; mask-image: none; -webkit-mask-image: none; }
.up-desc-toggle {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
    background: none; border: none; cursor: pointer;
    font-family: 'Open Sans', sans-serif; font-size: 15px; color: #1b285e;
    padding: 0; text-decoration: underline;
}

/* Variants card */
.up-variants-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    padding: 28px 40px;
}
.up-variants-title {
    font-family: 'Lato', sans-serif; font-size: 24px; font-weight: 700;
    line-height: 29px; color: #141414; margin: 0 0 16px;
}
.up-variants-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.up-variant-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 120px; text-decoration: none; transition: opacity .12s;
}
.up-variant-item:hover { opacity: .8; }
.up-variant-img {
    width: 120px; height: 150px; border-radius: 8px; border: 2px solid #e0e9f0;
    overflow: hidden; background: #f7f8fb;
}
.up-variant-active .up-variant-img { border-color: #1b285e; }
.up-variant-img img { width: 100%; height: 100%; object-fit: contain; }
.up-variant-label { font-size: 13px; font-family: 'Lato', sans-serif; color: rgba(0,0,0,.7); text-align: center; }
.up-variant-price { font-size: 14px; font-family: 'Open Sans', sans-serif; font-weight: 600; color: #1b285e; }

/* ── Категорії card ── */
.up-cats-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    padding: 28px 40px;
}
.up-cats-title {
    font-family: 'Lato', sans-serif; font-size: 24px; font-weight: 700;
    line-height: 29px; color: #141414; margin: 0 0 16px;
}
.up-cats-list { display: flex; flex-wrap: wrap; gap: 12px; }
.up-cat-pill {
    display: inline-flex; align-items: center; padding: 12px 20px;
    border: 1px solid #E0E9F0; border-radius: 37px;
    font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1;
    color: #1b285e; text-decoration: none; transition: background .12s, color .12s;
}
.up-cat-pill:hover { background: #1b285e; color: #fff; }

/* ── Відгуки card ── */
.up-reviews-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    padding: 28px 40px;
}
.up-reviews-title {
    font-family: 'Lato', sans-serif; font-size: 24px; font-weight: 700;
    line-height: 29px; color: #141414; margin: 0 0 16px;
}
.up-reviews-list:empty { display: none; }
.up-reviews-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 20px; text-align: center;
}
.up-reviews-empty-text {
    max-width: 600px; margin: 0;
    font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 19px;
    color: rgba(0,0,0,.6);
}
.up-review-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 24px; height: 68px; flex: 0 0 auto;
    border: 1px solid #1b285e; border-radius: 9px;
    font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 600; line-height: 110%;
    color: #1b285e; text-decoration: none; cursor: pointer;
    transition: background .12s, color .12s;
}
.up-review-btn:hover { background: #1b285e; color: #fff; }
.up-review-form-body { margin-top: 24px; max-width: 560px; }
.up-review-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.up-review-field label {
    font-family: 'Open Sans', sans-serif; font-size: 14px; color: rgba(0,0,0,.7);
}
.up-review-field input[type="text"],
.up-review-field textarea {
    width: 100%; padding: 12px 14px; box-sizing: border-box;
    border: 1px solid #E0E9F0; border-radius: 9px;
    font-family: 'Open Sans', sans-serif; font-size: 15px; color: #000;
    resize: vertical;
}
.up-review-field input[type="text"]:focus,
.up-review-field textarea:focus { outline: none; border-color: #1b285e; }
.up-rating-bar { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.up-rating-bar input { display: none; }
.up-rating-bar label {
    font-size: 26px; line-height: 1; color: #d6dee6; cursor: pointer; transition: color .12s;
}
.up-rating-bar label:hover,
.up-rating-bar label:hover ~ label,
.up-rating-bar input:checked ~ label { color: #f5b301; }
.up-review-submit {
    padding: 0 28px; height: 48px; border: none; border-radius: 9px;
    background: #1b285e; color: #fff; cursor: pointer;
    font-family: 'Lato', sans-serif; font-size: 18px; font-weight: 600;
    transition: background .12s;
}
.up-review-submit:hover { background: #2b94a3; }
.up-review-submit:disabled { opacity: .6; cursor: default; }
.up-review-login { font-family: 'Open Sans', sans-serif; font-size: 15px; color: rgba(0,0,0,.7); }
.up-review-alert {
    margin-top: 12px; padding: 10px 14px; border-radius: 9px;
    font-family: 'Open Sans', sans-serif; font-size: 14px;
}
.up-review-alert-error { background: #fdecec; color: #c0392b; }
.up-review-alert-success { background: #e8f8f0; color: #1e8a5b; }

/* ── Related products carousel ── */
.up-rel-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
    padding: 28px 40px 60px;
}
.up-rel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.up-rel-title {
    font-family: 'Lato', sans-serif; font-size: 24px; font-weight: 700;
    line-height: 29px; color: #141414; margin: 0;
}
.up-rel-arrows { display: flex; gap: 12px; }
.up-rel-arrow {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #E0E9F0; background: #fff; color: #000;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.up-rel-arrow:hover { border-color: #1b285e; color: #1b285e; }
.up-rel-arrow-next { background: #1b285e; border-color: #1b285e; color: #fff; }
.up-rel-arrow-next:hover { background: #2b94a3; border-color: #2b94a3; color: #fff; }
.up-rel-scroll {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none;
}
.up-rel-scroll::-webkit-scrollbar { display: none; }
.up-rel-item {
    flex: 0 0 222px; width: 222px; height: 369px; box-sizing: border-box;
    border: 1px solid #E0E9F0; border-radius: 16px; padding: 16px;
    display: flex; flex-direction: column;
}
.up-rel-img-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 174px; height: 192px; flex-shrink: 0; border-radius: 12px; background: #F7F8FB;
    overflow: hidden; margin: 0 auto 14px;
}
.up-rel-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.up-rel-author {
    font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 20px;
    color: rgba(0,0,0,.6); text-decoration: none; margin-bottom: 4px;
}
.up-rel-author:hover { color: #1b285e; }
.up-rel-name {
    margin: 0 0 14px; font-family: 'Lato', sans-serif; font-size: 18px;
    font-weight: 400; line-height: 130%; flex: 1 1 auto;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.up-rel-name a { color: #000; text-decoration: none; }
.up-rel-name a:hover { color: #1b285e; }
.up-rel-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.up-rel-price-block { display: flex; flex-direction: column; gap: 2px; }
.up-rel-price {
    font-family: 'Open Sans', sans-serif; font-size: 24px; font-weight: 600;
    line-height: 33px; color: #000;
}
.up-rel-price-old {
    font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 1;
    color: rgba(0,0,0,.4); text-decoration: line-through;
}
.up-rel-status {
    font-family: 'Lato', sans-serif; font-size: 12px; line-height: 14px; color: #5BC5AE;
}
.up-rel-status--out { color: rgba(0,0,0,.6); }
.up-rel-add {
    width: 72px; height: 46px; flex: 0 0 auto; border: none; border-radius: 34px;
    background: #1f8a5b; color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .12s;
}
.up-rel-add:hover { background: #b8404f; }
.up-rel-add svg { display: block; width: 28px; height: 28px; }

/* ── Product page responsive ──────────────────────────────── */
@media (max-width: 1429px) {
    .up-info-col { flex: 1; width: auto; min-width: 0; }
    .up-main-img { width: 100%; height: auto; aspect-ratio: 455 / 503; }
}

@media (max-width: 960px) {
    .up-gallery { flex: 0 0 300px; width: 300px; }
    .up-main { gap: 20px; }
    .up-info-top { padding: 20px 24px 0; }
    .up-price-band { padding: 0 24px; min-height: auto; }
}

@media (max-width: 767px) {
    .up-main { flex-direction: column; gap: 20px; }
    .up-gallery { flex: 0 0 auto; width: 100%; max-width: 455px; margin: 0 auto; position: static; }
    .up-main-img { width: 100%; }
    .up-info-col { flex: 0 0 auto; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   CART POPUP (#cart_modal)  Figma node 244:1141
   ═══════════════════════════════════════════════════════════════ */
.ua-cart-modal .modal-dialog {
    width: 1255px !important; max-width: 96% !important; min-width: 0 !important; margin: 28px auto;
}
.ua-cart-modal .modal-content {
    border-radius: 28px; border: none; overflow-y: auto; padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    max-height: calc(100vh - 56px);
}
.ua-cart-modal .modal-body {
    padding: 0; position: relative; text-align: left;
}

/* ── Header ── */
.ua-cmodal-head {
    flex-shrink: 0; display: flex; align-items: center;
    padding: 32px 40px 20px; border-bottom: 1px solid #F3F3F3;
}
.ua-cart-title {
    margin: 0; flex: 1;
    font-family: 'Lato', sans-serif; font-size: 36px; font-weight: 700; line-height: 43px; color: #000;
}
.ua-cart-close {
    flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: none; background: none;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: .6;
}
.ua-cart-close:hover { opacity: 1; }

/* ── Scrollable zone ── */
.ua-cmodal-scroll { /* desktop: natural block flow, whole modal scrolls */ }

/* ── Free-shipping band ── */
.ua-cart-ship { background: #F7FBFC; padding: 32px 40px; box-sizing: border-box; flex-shrink: 0; }
.ua-cart-ship-text {
    text-align: center; margin-bottom: 16px;
    font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.2; color: #000;
}
.ua-cart-ship-text.active { color: #4FC3C0; }
.ua-cart-ship-bar { position: relative; height: 5px; border-radius: 4px; background: #E7E7E7; }
.ua-cart-ship-fill { position: absolute; left: 0; top: 0; height: 5px; border-radius: 4px; background: #4FC3C0; max-width: 100%; }
.ua-cart-ship-labels { position: relative; margin-top: 10px; height: 22px; }
.ua-cart-ship-labels span,
.ua-css-start, .ua-css-end, .ua-css-cur {
    font-family: 'Lato', sans-serif; font-size: 18px; font-weight: 500; color: #000;
}
.ua-cart-ship-start, .ua-css-start { position: absolute; left: 0; }
.ua-cart-ship-end,   .ua-css-end   { position: absolute; right: 0; }
.ua-cart-ship-cur,   .ua-css-cur   { position: absolute; transform: translateX(-50%); font-weight: 700 !important; white-space: nowrap; color: #1b285e !important; }

/* ── Items ── */
.ua-cart-items { padding: 0 40px 8px; }
.ua-cart-item {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 0; border-bottom: 1px solid #F3F3F3;
}
.ua-cart-item:last-child { border-bottom: none; }
.ua-cart-item-img {
    flex: 0 0 auto; width: 72px; height: 96px;
    border: 1px solid #E5E5E5; border-radius: 4px;
    overflow: hidden; background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.ua-cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ua-cart-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ua-cart-item-author {
    font-family: 'Open Sans', sans-serif; font-size: 15px; color: rgba(0,0,0,.5); line-height: 1.3;
}
.ua-cart-item-name {
    display: block; min-width: 0;
    font-family: 'Lato', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3;
    color: #000; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ua-cart-item-name:hover { color: #1b285e; }
.ua-cart-item-qty { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ua-qty-btn {
    width: 45px; height: 45px; border: 1px solid #F3F3F3; background: #F9F9FA; border-radius: 9px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
    transition: background .12s; flex-shrink: 0;
}
.ua-qty-btn:hover { background: #eef0f2; }
.ua-qty-val {
    min-width: 24px; text-align: center;
    font-family: 'Lato', sans-serif; font-size: 24px; font-weight: 500; color: #000;
}

/* ── Item right: remove + price ── */
.ua-cart-item-right {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end;
    gap: 8px; min-width: 100px;
}
.ua-cart-item-remove {
    width: 24px; height: 24px; padding: 0; border: none; background: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; opacity: .4;
    transition: opacity .12s;
}
.ua-cart-item-remove:hover { opacity: 1; }
.ua-ci-price {
    font-family: 'Open Sans', sans-serif; font-size: 24px; font-weight: 600; color: #000;
    white-space: nowrap;
}
.ua-ci-price-old {
    font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 400; color: #A0A0A0;
    text-decoration: line-through; white-space: nowrap;
}

/* ── Footer: [continue] ·· right:[Разом] / [checkout] ── */
.ua-cmodal-foot {
    display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px;
    padding: 28px 40px 40px; border-top: 1px solid #F3F3F3; border-bottom: 1px solid #F3F3F3; background: #fff;
    flex-shrink: 0;
}
.ua-cmodal-foot-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 22px;
}
.ua-cart-summary {
    display: flex; align-items: baseline; gap: 12px; justify-content: flex-end;
}
.ua-cart-total-label {
    font-family: 'Open Sans', sans-serif; font-size: 24px; font-weight: 700; color: #000;
}
.ua-cart-total-val {
    font-family: 'Open Sans', sans-serif; font-size: 24px; font-weight: 700; color: #000;
}
.ua-cart-btn-continue {
    flex: 0 0 399px; width: 399px; height: 68px; padding: 0 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #E2E2E2; border-radius: 12px; background: #F9FAFC; cursor: pointer;
    font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 600; color: #141414;
    transition: background .12s;
}
.ua-cart-btn-continue:hover { background: #eef2f7; }
.ua-cart-btn-checkout {
    width: 399px; height: 68px; padding: 0 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #1b285e; border-radius: 9px; text-decoration: none; border: none;
    font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 600; color: #fff;
    transition: background .12s;
}
.ua-cart-btn-checkout:hover { background: #2b94a3; color: #fff; }

/* ── Similar products ── */
.ua-cart-similar {
    padding: 20px 0 28px;
    flex-shrink: 0;
    border-top: 1px solid #F3F3F3;
}
.ua-cart-similar-head {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 12px; padding: 0 40px;
}
.ua-cart-similar-title {
    margin: 0; font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 700; color: #141414;
}
.ua-cart-similar-more {
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400; color: #5BA9C5; text-decoration: none; margin-left: auto;
}
.ua-cart-similar-more:hover { text-decoration: underline; }
.ua-cart-similar-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 40px 4px;
}
.ua-cart-similar-grid::-webkit-scrollbar { display: none; }
.ua-cart-similar-grid .ua-product-card {
    flex: 0 0 170px !important;
    width: 170px !important;
    min-height: 260px !important;
    border-radius: 12px;
    border: 1px solid #E0EDF0;
}
.ua-cart-similar-grid .ua-product-img-wrap {
    width: calc(100% - 20px) !important;
    height: 130px !important;
    aspect-ratio: unset !important;
    margin: 10px auto 0 !important;
}
.ua-cart-similar-grid .ua-product-img-wrap img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
}
.ua-price-old {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(0,0,0,.45);
    text-decoration: line-through;
    line-height: 1.2;
}

@media (max-width: 1320px) {
    .ua-cart-modal .modal-dialog { width: 96% !important; }
}
@media (max-width: 960px) {
    .ua-cmodal-foot { flex-wrap: wrap; gap: 12px; }
    .ua-cart-btn-continue, .ua-cart-btn-checkout { flex: 1 1 auto; width: auto; height: 56px; font-size: 17px; }
    .ua-cmodal-foot-right { flex: 1 1 auto; }
    .ua-cart-summary { justify-content: flex-end; }
}
@media (max-width: 767px) {
    .ua-cart-modal .modal-dialog { width: 100% !important; margin: 0 !important; }
    .ua-cart-modal .modal-content { border-radius: 20px 20px 0 0; max-height: 92vh; }
    .ua-cmodal-head { padding: 20px 20px 14px; }
    .ua-cart-title { font-size: 26px; }
    .ua-cart-items { padding: 0 20px; }
    .ua-cart-ship { padding: 16px 20px 20px; }
    .ua-cart-ship-text { font-size: 15px; }
    .ua-cmodal-foot { padding: 16px 20px 20px; flex-direction: column; gap: 10px; }
    .ua-cart-btn-continue, .ua-cart-btn-checkout { flex: none; width: 100%; height: 52px; font-size: 17px; }
    .ua-cmodal-foot-right { width: 100%; }
    .ua-cart-summary { justify-content: space-between; }
    .ua-cart-item-name-row { flex-wrap: wrap; }
}

/* Confirm-remove modal (#are_you_sure) */
#are_you_sure .modal-dialog { width: 440px; max-width: 92%; }
#are_you_sure .modal-content { border-radius: 16px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
#are_you_sure .modal-body { padding: 32px 32px 8px; position: relative; }
#are_you_sure .title {
    font-family: 'Lato', sans-serif; font-size: 20px; font-weight: 600; color: #000; line-height: 1.3;
}
#are_you_sure .modal-footer { border-top: none; padding: 16px 32px 28px; }
#are_you_sure .modal-footer > div { display: flex; gap: 12px; justify-content: center; }
#are_you_sure .modal-footer .btn {
    flex: 1 1 0; height: 48px; border-radius: 9px; border: 1px solid #E2E2E2; background: #F9FAFC;
    font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 600; color: #000; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: background .12s, color .12s;
}
#are_you_sure .modal-footer > div > div { flex: 1 1 0; display: flex; }
#are_you_sure .modal-footer .btn-default {
    background: #1f8a5b; border-color: #1f8a5b; color: #fff; width: 100%;
}
#are_you_sure .modal-footer .btn-default:hover { background: #b8404f; border-color: #b8404f; }
#are_you_sure .modal-footer .btn-different:hover { background: #eef2f7; }
#are_you_sure .close { position: absolute; top: 14px; right: 16px; opacity: .5; }

/* Empty cart */
.ua-cart-modal--empty .modal-dialog { width: 560px; max-width: 96%; }
.ua-cart-modal--empty .ua-cart-title { padding-bottom: 0; }
.ua-cart-empty-icon {
    display: flex; align-items: center; justify-content: center;
    margin: 32px auto 0; width: 100px; height: 100px;
    background: #F0FAFB; border-radius: 50%;
}
.ua-cart-empty { padding: 20px 40px 8px; text-align: center; }
.ua-cart-empty-title {
    font-family: 'Lato', sans-serif; font-size: 22px; font-weight: 700; color: #141414;
    margin-bottom: 8px;
}
.ua-cart-empty-hint {
    font-family: 'Lato', sans-serif; font-size: 16px; color: #6F6F6F; line-height: 1.5;
}
.ua-cart-empty-hint a { color: #1b285e; text-decoration: none; }
.ua-cart-empty-hint a:hover { text-decoration: underline; }
.ua-cart-modal--empty .ua-cmodal-foot {
    padding: 20px 40px 40px;
}
.ua-cart-modal--empty .ua-cart-btn-continue {
    min-width: 0; width: 100%; height: 56px; font-size: 18px;
    background: #1b285e; color: #fff; border-color: #1b285e; border-radius: 12px;
}
.ua-cart-modal--empty .ua-cart-btn-continue:hover { background: #2b94a3; border-color: #2b94a3; }

@media (max-width: 1320px) {
    .ua-cart-modal .modal-dialog { width: 96%; }
}
@media (max-width: 767px) {
    .ua-cart-title { font-size: 26px; padding: 24px 20px 0; }
    .ua-cart-items, .ua-cart-foot, .ua-cart-ship, .ua-cart-similar { padding-left: 20px; padding-right: 20px; }
    .ua-cart-divider { margin-left: 20px; margin-right: 20px; }
    .ua-cart-item { flex-wrap: wrap; gap: 12px; }
    .ua-cart-item-main { flex: 1 1 100%; }
    .ua-cart-foot { flex-wrap: wrap; }
    .ua-cart-similar-title { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGE  (Figma node 332:6099)
   ═══════════════════════════════════════════════════════════════ */
/* Ряд підкатегорій-пілюль (Frame 15) */
.ua-cat-subcats-wrap { padding: 24px 0 8px; }
.ua-cat-subcats-row { position: relative; }
.ua-cat-subcats {
    display: flex; align-items: center; gap: 16px;
    overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
}
.ua-cat-subcats::-webkit-scrollbar { display: none; }
.ua-cat-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 36px; height: 36px; border-radius: 50%; padding: 0;
    border: 1px solid #E0E9F0; background: #fff; color: #141414; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: background .12s, color .12s, border-color .12s;
}
.ua-cat-arrow.is-visible { display: inline-flex; }
.ua-cat-arrow:hover { background: #1b285e; border-color: #1b285e; color: #fff; }
.ua-cat-arrow-prev { left: -6px; }
.ua-cat-arrow-next { right: -6px; }
.ua-cat-pill {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 20px; box-sizing: border-box;
    background: #fff; border: 1px solid #E0E9F0; border-radius: 37px;
    font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1; color: #1b285e;
    text-decoration: none; white-space: nowrap;
    transition: background .12s, color .12s, border-color .12s;
}
.ua-cat-pill:hover { background: #1b285e; color: #fff; border-color: #1b285e; }
@media (max-width: 767px) {
    .ua-cat-pill { height: 38px; padding: 0 16px; font-size: 15px; }
}

/* ── Фільтр категорії (OCFilter 4.8, Figma Group 322) ── */
.ocf-container.ocf-theme-light {
    background: #fff; border: 1px solid #E0E9F0; border-radius: 16px;
    padding: 20px 20px 24px; box-shadow: none;
}
.ocf-container.ocf-theme-light .ocf-header,
.ocf-container.ocf-theme-light .ocf-filter-header > .ocf-filter-name:first-child { padding: 0; }
/* Заголовок "Фільтр" */
.ocf-container .ocf-header,
.ocf-container .ocf-header .ocf-filter-name {
    font-family: 'Lato', sans-serif !important; font-size: 24px !important; font-weight: 600 !important;
    color: #000 !important; line-height: 1.3;
}
/* Групи фільтрів */
.ocf-container .ocf-filter { border: none !important; padding: 14px 0 !important; margin: 0 !important; }
.ocf-container .ocf-filter + .ocf-filter { border-top: 1px solid #F3F3F3 !important; }
.ocf-container .ocf-filter-header { padding: 0 !important; margin-bottom: 10px; background: none !important; }
.ocf-container .ocf-filter-name {
    font-family: 'Lato', sans-serif !important; font-size: 16px !important; font-weight: 600 !important; color: #000 !important;
}
/* Значення (рядок: чекбокс + назва + лічильник) */
.ocf-container .ocf-value {
    display: flex !important; align-items: center !important; gap: 8px !important;
    padding: 5px 0 !important; text-decoration: none !important;
}
.ocf-container .ocf-value-name {
    flex: 1 1 auto !important; min-width: 0 !important;
    font-family: 'Lato', sans-serif !important; font-size: 14px !important; color: rgba(0,0,0,.6) !important; font-weight: 400 !important;
}
.ocf-container .ocf-value-append { margin-left: auto !important; }
.ocf-container .ocf-value-count {
    font-family: 'Lato', sans-serif !important; font-size: 14px !important; color: rgba(0,0,0,.3) !important;
    background: transparent !important; border: none !important; border-radius: 0 !important;
    padding: 0 !important; min-width: 0 !important; box-shadow: none !important;
}
.ocf-container .ocf-active-label .ocf-value-name { color: #000 !important; }
/* Чекбокс-квадрат (Rectangle 111-114) */
/* Контейнер — тільки розмір і позиціонування, без власного бордера (щоб ::before не давав «круг у квадраті») */
.ocf-container .ocf-value-input,
.ocf-container .ocf-value-input.ocf-value-input-radio,
.ocf-container .ocf-value-input.ocf-value-input-checkbox {
    display: inline-block !important; flex: 0 0 auto !important;
    width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important;
    box-sizing: border-box !important; margin: 0 !important; padding: 0 !important;
    border: none !important; background: transparent !important;
    position: relative !important;
}
/* ::before — візуальний чекбокс, квадратний для обох типів */
.ocf-container .ocf-value-input::before,
.ocf-container .ocf-value-input.ocf-value-input-radio::before,
.ocf-container .ocf-value-input.ocf-value-input-checkbox::before {
    border-radius: 4px !important;
    border: 1px solid #D9D9D9 !important;
    background-color: #fff !important;
}
/* Вибрано — тіл колір #1b285e */
.ocf-container .ocf-selected .ocf-value-input::before {
    border-color: #1b285e !important;
    background-color: #1b285e !important;
}
/* ::after — галочка (для radio ховаємо вбудований OCFilter-dot, показуємо свою галочку) */
.ocf-container .ocf-selected .ocf-value-input-radio::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important; background-position: center !important; background-size: 8px !important;
    border-radius: 0 !important;
    width: 100% !important; height: 100% !important;
}
/* Активний рядок (ocf-active-label) — той самий тіл колір */
.ocf-container .ocf-active-label .ocf-value-input::before {
    border-color: #1b285e !important; background-color: #1b285e !important;
}
/* Посилання "Дивитись всі" */
.ocf-container .ocf-btn-link {
    color: #1b285e !important; text-decoration: underline !important;
    font-family: 'Lato', sans-serif !important; font-size: 14px !important; font-weight: 400 !important; padding: 0 !important;
}
/* Значення — одна колонка на всю ширину (OCFilter за замовч. робить grid у 2 колонки) */
.ocf-container .ocf-value-list-body,
.ocf-container .ocf-value-list-body.ocf-auto-column,
.ocf-container .ocf-value-list-body.ocf-column-2,
.ocf-container .ocf-value-list-body.ocf-column-3 {
    display: block !important; grid-template-columns: none !important; column-count: 1 !important;
}
.ocf-container .ocf-value {
    width: 100% !important; float: none !important; display: flex !important;
}
/* Ціна — інпути */
.ocf-container .ocf-slider-input-group .ocf-form-control {
    border: 1px solid #E0E9F0 !important; border-radius: 16px !important;
    font-family: 'Lato', sans-serif !important; font-size: 14px !important;
    color: rgba(0,0,0,.6) !important; height: 31px !important; box-shadow: none !important;
}
/* Слайдер ціни — прибрано: тільки інпути + кнопка ОК */
.ocf-container .ocf-value-slider { display: none !important; }
/* OCFilter desktop.css форсує text-transform:uppercase на заголовки — скидаємо */
.ocf-container .ocf-filter-header { text-transform: none !important; font-size: 16px !important; }
.ocf-container .ocf-filter-name { text-transform: none !important; }
/* Ховаємо " грн" суфікс після інпута макс-ціни */
.ocf-container .ocf-slider .ocf-input-group .ocf-input-group-addon:last-child { display: none !important; }
/* Ховаємо "92 - 1133 грн" в заголовку групи ціни */
.ocf-container .ocf-slider .ocf-active-label { display: none !important; }

/* Інлайн-ряд: [інпут]-[інпут] [ОК] */
.ocf-container .ocf-slider .ocf-value-list {
    display: flex !important; flex-direction: row !important;
    align-items: center !important; flex-wrap: nowrap !important; gap: 0 !important;
}
.ocf-container .ocf-slider .ocf-input-group {
    display: flex !important; align-items: center !important;
    flex: 1 1 auto !important; margin: 0 !important; gap: 6px !important;
    border-collapse: unset !important;
}
.ocf-container .ocf-slider .ocf-input-group .ocf-form-control {
    width: 72px !important; flex: 0 0 72px !important;
    padding: 0 10px !important; text-align: center !important;
}
.ocf-container .ocf-slider .ocf-input-group .ocf-input-group-addon {
    flex: 0 0 auto !important; display: flex !important; align-items: center !important;
    padding: 0 !important; background: none !important; border: none !important;
    font-size: 13px !important; color: rgba(0,0,0,.3) !important;
    width: auto !important; border-radius: 0 !important; box-shadow: none !important;
}

/* Контейнер кнопки ОК (.ocf-mobile = display:none на десктопі — показуємо явно)
   Скидаємо: ocf-text-right → text-align:right; ocf-btn-search-slider → padding-top:25px (mobile) */
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider {
    display: flex !important; align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 0 0 8px !important;   /* скидає padding-top:25px */
    text-align: left !important;      /* скидає ocf-text-right text-align:right */
}

/* Кнопка ОК — базовий вигляд */
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider .ocf-search-btn-static {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    height: 31px !important; padding: 0 14px !important;
    border: none !important; border-radius: 16px !important;
    font-family: 'Lato', sans-serif !important; font-size: 0 !important;
    white-space: nowrap !important; cursor: pointer !important;
    transition: background .15s, opacity .15s !important;
}
/* Підпис "ОК" через pseudo (ховаємо оригінальний текст font-size:0) */
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider .ocf-search-btn-static::before {
    content: 'ОК';
    font-size: 14px !important; font-family: 'Lato', sans-serif !important;
    font-weight: 500 !important; line-height: 1 !important;
}

/* СТАН: disabled — кнопка завжди виглядає активною */
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider .ocf-search-btn-static.ocf-disabled {
    background: #1b285e !important;
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider .ocf-search-btn-static.ocf-disabled::before {
    color: #fff !important;
}

/* СТАН: active — значення змінено, можна застосувати */
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider .ocf-search-btn-static:not(.ocf-disabled) {
    background: #1b285e !important;
    opacity: 1 !important;
}
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider .ocf-search-btn-static:not(.ocf-disabled)::before {
    color: #fff !important;
}
.ocf-container .ocf-slider .ocf-mobile.ocf-btn-search-slider .ocf-search-btn-static:not(.ocf-disabled):hover {
    background: #2b94a3 !important;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY PAGE — product grid, sort bar, pagination
   ═══════════════════════════════════════════════════════════ */

/* Category page container — расширяем до 1400px как остальные секции темы */
.ua-cat-container {
    width: 1400px !important;
    max-width: 100% !important;
}

/* Outer row spacing (replaces .section padding) */
.ua-cat-layout-row { padding: 24px 0 48px; }

/* Remove Bootstrap text-center from content col */
#content.ua-cat-content { text-align: left; }
/* content_top мобільна кнопка «Категорії» — ховаємо на десктопі */
@media (min-width: 992px) {
    .ua-cat-content .collapse_arrow.collapse_button { display: none !important; }
    .ua-cat-content .list_category_left { display: none !important; }
}

/* ── Sort / count toolbar ── */
.ua-cat-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: nowrap;
}
.ua-cat-head { flex: 1; min-width: 0; }
.ua-cat-h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-cat-h1 {
    font-family: 'Lato', sans-serif; font-size: 28px; font-weight: 700;
    color: #141414; margin: 0 0 4px; line-height: 1.2;
}
.ua-cat-count {
    font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(0,0,0,.45);
}
.ua-cat-filter-btn { display: none; }
.ua-cat-sort-wrap {
    position: relative; display: flex; align-items: center; flex-shrink: 0;
}
.ua-cat-sort {
    -webkit-appearance: none; appearance: none;
    height: 44px; padding: 0 42px 0 18px;
    border: 1px solid #E0E9F0; border-radius: 37px;
    font-family: 'Inter', sans-serif; font-size: 14px; color: #141414;
    background: #fff; cursor: pointer; outline: none;
    transition: border-color .12s; min-width: 200px;
}
.ua-cat-sort:focus { border-color: #1b285e; }
.ua-cat-sort-icon {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: #8a9bb0;
    display: flex; align-items: center;
}

/* ── Product grid (CSS grid, 4 col in col-md-9) ── */
.ua-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
/* Override fixed 267px width from scroll context */
.ua-cat-grid .ua-product-card {
    flex: none !important;
    width: 100% !important;
    min-height: 360px;
}
/* Image: fluid width, Figma ratio 235:259 */
.ua-cat-grid .ua-product-img-wrap {
    width: calc(100% - 32px) !important;
    height: auto !important;
    aspect-ratio: 235 / 259 !important;
}
/* Card typography — Figma specs */
.ua-cat-grid .ua-product-name {
    font-size: 18px !important;
    font-family: 'Lato', sans-serif !important;
    line-height: 1.3 !important;
}
.ua-cat-grid .ua-product-publisher {
    font-size: 15px !important;
    font-family: 'Open Sans', sans-serif !important;
}

/* "In cart" badge on card image */
.ua-card-incart {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #1b285e; color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.ua-product-img-wrap { position: relative; }

/* Low stock status */
.ua-product-status--low { color: #f0874a !important; }

/* ── Pagination ── */
.ua-cat-pager {
    margin-top: 32px; display: flex; justify-content: center;
}
.ua-cat-pager .pagination {
    display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap;
}
.ua-cat-pager .pagination > li > a,
.ua-cat-pager .pagination > li > span {
    display: flex; align-items: center; justify-content: center;
    min-width: 46px; height: 46px; border-radius: 8px;
    border: 1px solid #E0E9F0; background: #fff;
    font-family: 'Lato', sans-serif; font-size: 14px; color: #141414;
    text-decoration: none; transition: background .12s, border-color .12s, color .12s;
    padding: 0 12px;
}
/* Nav buttons (Наступна / Минула) are wider */
.ua-cat-pager .pagination > li.ua-pager-prev > a,
.ua-cat-pager .pagination > li.ua-pager-next > a {
    gap: 6px; padding: 0 16px;
}
.ua-cat-pager .pagination > li.active > a,
.ua-cat-pager .pagination > li.active > span {
    background: #1b285e; color: #fff; border-color: #1b285e;
}
.ua-cat-pager .pagination > li > a:hover {
    background: #f0fafb; border-color: #1b285e; color: #1b285e;
}
.ua-cat-pager .pagination > li.disabled > a,
.ua-cat-pager .pagination > li.disabled > span {
    opacity: .45; cursor: not-allowed;
    background: #fff; color: #8a9bb0; border-color: #E0E9F0;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .ua-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .ua-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .ua-cat-grid .ua-product-name { font-size: 15px !important; }
}
@media (max-width: 767px) {
    .ua-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ua-cat-toolbar { flex-direction: column; gap: 12px; }
    .ua-cat-sort { min-width: 0; width: 100%; }
    .ua-cat-sort-wrap { width: 100%; }
    .ua-cat-h1 { font-size: 22px; }
    .ua-cat-grid .ua-product-name { font-size: 14px !important; }
    /* Hide text labels on nav buttons on small screens */
    .ua-cat-pager .pagination > li.ua-pager-prev > a .ua-pager-label,
    .ua-cat-pager .pagination > li.ua-pager-next > a .ua-pager-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Live Search dropdown — override live_search.css
   ═══════════════════════════════════════════════════════════════ */
.ua-search { position: relative; }

.live-search {
    border-radius: 16px !important;
    border: 1px solid #E0E9F0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
    overflow: hidden !important;
    top: calc(100% + 6px) !important;
}
.live-search ul li {
    min-height: 44px !important;
    height: auto !important;
    background: #fff !important;
}
.live-search ul li:nth-child(even) { background: #fafcfd !important; }
.live-search ul li:hover { background: #f0fafb !important; }
.live-search ul li:first-child { border-radius: 0 !important; }
.live-search ul li > a {
    padding: 10px 14px !important;
    gap: 12px !important;
    align-items: center !important;
}
.live-search ul li .product-image {
    min-width: 52px !important; width: 52px !important;
    height: 52px !important; margin-left: 0 !important;
    background: #f7f8fb; border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.live-search ul li .product-image > img {
    height: 48px !important; width: auto; object-fit: contain;
}
.live-search .name_manufacturer {
    flex-direction: column !important; align-items: flex-start !important;
    gap: 1px !important; flex: 1; min-width: 0;
}
.live-search ul li .product-manufacturer p {
    font-size: 13px !important; font-family: 'Open Sans', sans-serif;
    color: rgba(0,0,0,.5) !important; margin: 0 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.live-search ul li .product-name {
    font-size: 14px !important; font-weight: 600 !important;
    font-family: 'Lato', sans-serif !important;
    color: #141414 !important; line-height: 1.3 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.live-search ul li > a:hover .product-name,
.live-search ul li > a:hover .product-manufacturer p { color: #1b285e !important; }
.live-search ul li .product-price {
    font-size: 14px !important; font-weight: 700 !important;
    font-family: 'Lato', sans-serif !important;
    white-space: nowrap; flex-shrink: 0; text-align: right;
}
.live-search ul li .product-price .price { color: #141414 !important; }
.live-search ul li .product-price .special {
    font-size: 12px !important; font-weight: 400 !important;
    color: rgba(0,0,0,.4) !important;
}
.live-search ul li .product-price .priceCurrency { font-size: 12px !important; font-weight: 400 !important; }
.live-search .result-text {
    border-radius: 0 !important; border-top: 1px solid #E0E9F0 !important;
    padding: 0 !important;
}
.live-search .result-text .btn {
    display: block; width: 100% !important; margin: 0 !important;
    background: #f7f8fb; border: none; border-radius: 0;
    color: #1b285e !important; font-family: 'Lato', sans-serif;
    font-size: 14px !important; font-weight: 600;
    padding: 12px 16px !important; text-decoration: none;
    transition: background .12s;
}
.live-search .result-text .btn:hover { background: #edf9fb !important; }

/* Нейтралізуємо старі .search стилі коли live_search.js додає клас до #search.ua-search */
.ua-search.search,
.ua-search.search_page {
    display: block !important;   /* скидає .search{display:flex} щоб form розтяглась на 100% */
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
}
/* .search input перебиває наш інпут (font-size:18px, padding:12px...) — скидаємо */
.ua-search.search input[name="search"] {
    font-size: 16px !important;
    padding: 0 20px !important;
    height: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   Search results page — form
   ═══════════════════════════════════════════════════════════════ */
.ua-search-page-form {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 28px; flex-wrap: wrap;
}
.ua-spf-input-wrap {
    position: relative; flex: 1; min-width: 200px;
}
.ua-spf-input-wrap input {
    width: 100%; height: 48px;
    padding: 0 44px 0 18px;
    border: 1px solid #E0E9F0; border-radius: 37px;
    font-family: 'Lato', sans-serif; font-size: 15px; color: #141414;
    outline: none; background: #fff;
    transition: border-color .12s;
}
.ua-spf-input-wrap input:focus { border-color: #1b285e; }
.ua-spf-icon {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: #8a9bb0; pointer-events: none;
}
.ua-spf-cat {
    height: 48px; padding: 0 36px 0 16px;
    border: 1px solid #E0E9F0; border-radius: 37px;
    font-family: 'Lato', sans-serif; font-size: 14px; color: #141414;
    background: #fff; cursor: pointer; outline: none;
    -webkit-appearance: none; appearance: none;
    min-width: 160px;
    transition: border-color .12s;
}
.ua-spf-cat:focus { border-color: #1b285e; }
.ua-spf-btn {
    height: 48px; padding: 0 28px;
    background: #1b285e; color: #fff;
    border: none; border-radius: 37px;
    font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: background .12s;
}
.ua-spf-btn:hover { background: #28939f; }
/* ── Empty search state ── */
.ua-search-empty-state {
    padding: 48px 0 32px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.ua-search-empty-state svg { opacity: .6; }
.ua-search-empty-state .ua-cat-h1 { margin: 0; }
.ua-search-empty {
    font-family: 'Lato', sans-serif; font-size: 15px; color: rgba(0,0,0,.45);
    margin: 0;
}

/* ── Recall form (no results) ── */
.ua-search-recall {
    border: 1px solid #E0E9F0; border-radius: 16px;
    padding: 24px 28px; margin-bottom: 32px;
    background: #f7f8fb;
}
.ua-search-recall-title {
    font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 600;
    color: #141414; margin: 0 0 16px;
}
.ua-search-recall-form {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.ua-search-recall-form input[type="text"],
.ua-search-recall-form input[type="tel"] {
    flex: 1; min-width: 160px; height: 44px;
    padding: 0 16px;
    border: 1px solid #E0E9F0; border-radius: 37px;
    font-family: 'Lato', sans-serif; font-size: 14px; color: #141414;
    background: #fff; outline: none;
    transition: border-color .12s;
}
.ua-search-recall-form input:focus { border-color: #1b285e; }
@media (max-width: 767px) {
    .ua-search-recall-form { flex-direction: column; }
    .ua-search-recall-form input, .ua-search-recall-form .ua-spf-btn { width: 100%; }
}
@media (max-width: 767px) {
    .ua-search-page-form { gap: 8px; }
    .ua-spf-input-wrap { min-width: 0; }
    .ua-spf-cat { min-width: 0; width: 100%; }
    .ua-spf-btn { width: 100%; }
}

/* ── Information page ───────────────────────────────────── */
.ua-info-container {
    max-width: 860px !important;
    padding-top: 32px;
    padding-bottom: 64px;
}
.ua-info-title {
    font-family: 'Lato', sans-serif;
    font-size: 28px; font-weight: 700;
    color: #141414; margin: 0 0 28px;
    line-height: 1.2;
}
@media (max-width: 767px) { .ua-info-title { font-size: 22px; } }

.ua-info-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px; line-height: 1.7;
    color: #2a2a2a;
}
.ua-info-body h2, .ua-info-body h3, .ua-info-body h4 {
    font-family: 'Lato', sans-serif; font-weight: 700;
    color: #141414; margin: 28px 0 10px;
    text-transform: none;
}
.ua-info-body h2 { font-size: 20px; }
.ua-info-body h3 { font-size: 17px; }
.ua-info-body h4 { font-size: 15px; }
.ua-info-body p { margin: 0 0 14px; }
.ua-info-body ul, .ua-info-body ol {
    padding-left: 24px; margin: 0 0 14px;
}
.ua-info-body li { margin-bottom: 6px; }
.ua-info-body a { color: #1b285e; }
.ua-info-body a:hover { color: #2b94a3; text-decoration: underline; }
.ua-info-body strong, .ua-info-body b { font-weight: 700; color: #141414; }
.ua-info-body table {
    width: 100%; border-collapse: collapse; margin: 0 0 20px;
    font-size: 14px;
}
.ua-info-body table td, .ua-info-body table th {
    padding: 10px 14px; border: 1px solid #E0E9F0; vertical-align: top;
}
.ua-info-body table th {
    background: #f7f8fb; font-family: 'Lato', sans-serif;
    font-weight: 600; color: #141414;
}
.ua-info-body table tr:nth-child(even) td { background: #fafcfd; }
.ua-info-body img { max-width: 100%; border-radius: 8px; }
.ua-info-body hr {
    border: none; border-top: 1px solid #E0E9F0; margin: 24px 0;
}

/* ── Author/Manufacturer page ───────────────────────────── */
.ua-author-hero {
    display: flex; align-items: flex-start; gap: 24px;
    margin-bottom: 28px;
}
.ua-author-photo {
    flex-shrink: 0; width: 120px; height: 120px;
    border-radius: 12px; overflow: hidden;
    border: 1px solid #E0E9F0; background: #f7f8fb;
}
.ua-author-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ua-author-info { flex: 1; min-width: 0; }
.ua-author-info .ua-cat-h1 { margin-bottom: 12px; }
.ua-author-desc {
    font-family: 'Open Sans', sans-serif; font-size: 14px;
    line-height: 1.6; color: rgba(0,0,0,.6);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ua-author-title-row { margin-bottom: 8px; }
@media (max-width: 767px) {
    .ua-author-hero { flex-direction: column; }
    .ua-author-photo { width: 80px; height: 80px; }
}

/* ── Account page ────────────────────────────────────────── */
.ua-account-page { padding: 32px 0 48px; }
.ua-account-alert { margin-bottom: 24px; border-radius: 12px; }

.ua-account-hero {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
}
.ua-account-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: #eef9fb; border: 1px solid #d0edf2;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ua-account-title {
    font-family: 'Lato', sans-serif; font-size: 26px; font-weight: 700;
    color: #141414; margin: 0 0 4px;
}
.ua-account-sub {
    font-family: 'Open Sans', sans-serif; font-size: 14px;
    color: rgba(0,0,0,.45); margin: 0;
}

.ua-account-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 767px) {
    .ua-account-grid { grid-template-columns: 1fr; }
}

.ua-account-card {
    background: #fff; border: 1px solid #E0E9F0; border-radius: 16px;
    padding: 24px 24px 8px; overflow: hidden;
}
.ua-account-card-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.ua-account-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #eef9fb; border: 1px solid #d0edf2;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ua-account-card-title {
    font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 700;
    color: #141414; margin: 0;
}

.ua-account-links { list-style: none; padding: 0; margin: 0; }
.ua-account-links li { border-top: 1px solid #F0F4F8; }
.ua-account-links li:first-child { border-top: none; }

.ua-account-link {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 4px; text-decoration: none;
    font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 500;
    color: #141414; transition: color .15s;
    border-bottom: none !important;
}
.ua-account-link:hover { color: #1b285e; text-decoration: none; }
.ua-account-link svg:first-child { flex-shrink: 0; color: rgba(0,0,0,.4); }
.ua-account-link:hover svg:first-child { color: #1b285e; }
.ua-account-link span { flex: 1; }
.ua-account-link-arrow { margin-left: auto; color: rgba(0,0,0,.2); flex-shrink: 0; }
.ua-account-link:hover .ua-account-link-arrow { color: #1b285e; }

.ua-account-link--logout { color: rgba(0,0,0,.5); }
.ua-account-link--logout:hover { color: #1f8a5b; }
.ua-account-link--logout:hover svg { color: #1f8a5b !important; }

/* ── Wishlist page ───────────────────────────────────────── */
.ua-wishlist-page { padding: 32px 0 48px; }

.ua-product-card { position: relative; }

.ua-wl-remove {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: 1px solid #E0E9F0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,0,0,.4); text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.ua-wl-remove:hover { background: #fff; border-color: #1f8a5b; color: #1f8a5b; }

.ua-wl-continue-btn {
    display: inline-flex; align-items: center;
    height: 44px; padding: 0 24px; border-radius: 22px;
    background: #1b285e; color: #fff !important; border: none;
    font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 600;
    text-decoration: none; margin-top: 8px;
    transition: background .15s;
}
.ua-wl-continue-btn:hover { background: #2b94a3; text-decoration: none; }

/* ── Category SEO text block ─────────────────────────────── */
.ua-cat-seo {
    background: #F2F5F8;
    padding: 48px 0 40px;
    margin-top: 48px;
}
.ua-cat-seo-body {
    position: relative;
    max-height: 220px;
    overflow: hidden;
    transition: max-height .45s ease;
}
.ua-cat-seo-body::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, #F2F5F8);
    pointer-events: none;
    transition: opacity .3s;
}
.ua-cat-seo-body.expanded {
    max-height: 9999px;
}
.ua-cat-seo-body.expanded::after { opacity: 0; }

/* Heading overrides (inline styles have font-size:22px — use !important) */
.ua-cat-seo .heading-fix {
    display: block !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    color: #000 !important;
    margin: 28px 0 12px !important;
    text-transform: none !important;
}
.ua-cat-seo .heading-fix:first-child {
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 43px !important;
    margin-top: 0 !important;
}
/* Paragraphs */
.ua-cat-seo p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px; line-height: 150%;
    color: #000; margin: 0 0 14px;
}
/* UL with teal checkmarks */
.ua-cat-seo ul {
    list-style: none; padding: 0; margin: 0 0 16px;
}
.ua-cat-seo ul > li {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px; line-height: 150%;
    color: #000; padding-left: 36px;
    position: relative; margin-bottom: 10px;
}
.ua-cat-seo ul > li::before {
    content: '';
    position: absolute; left: 0; top: 4px;
    width: 20px; height: 20px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,6 9,17 4,12' stroke='%231b285e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px 20px;
}
/* OL */
.ua-cat-seo ol {
    padding-left: 24px; margin: 0 0 16px;
}
.ua-cat-seo ol > li {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px; line-height: 150%;
    color: #000; margin-bottom: 10px;
    padding-left: 6px;
}
.ua-cat-seo ol > li::marker { color: #1b285e; font-weight: 700; }

/* Toggle button */
.ua-cat-seo-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px; font-weight: 600;
    color: #000; background: none; border: none;
    cursor: pointer; padding: 16px 0 0;
    transition: color .15s;
}
.ua-cat-seo-toggle:hover { color: #1b285e; }
.ua-seo-chevron { transition: transform .3s; flex-shrink: 0; }

/* ===================== 404 PAGE ===================== */
.ua-404-section {
    padding: 64px 0 80px;
}
.ua-404-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.ua-404-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    user-select: none;
}
.ua-404-num {
    font-family: 'Lato', sans-serif;
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: #E8F4F6;
    letter-spacing: -4px;
    -webkit-text-stroke: 3px #1b285e;
}
.ua-404-book {
    flex-shrink: 0;
    margin: 0 4px;
    filter: drop-shadow(0 4px 16px rgba(50,170,187,.18));
}
.ua-404-title {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #141414;
    margin: 0 0 16px;
    line-height: 1.25;
}
.ua-404-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(0,0,0,.6);
    margin: 0 0 40px;
}
.ua-404-text mark {
    background: none;
    color: #1b285e;
    font-weight: 600;
}
.ua-404-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.ua-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 24px;
    border-radius: 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.ua-404-btn--primary {
    background: #1b285e;
    color: #fff;
    border: 2px solid #1b285e;
}
.ua-404-btn--primary:hover {
    background: #2b94a3;
    border-color: #2b94a3;
    color: #fff;
}
.ua-404-btn--secondary {
    background: #fff;
    color: #1b285e;
    border: 2px solid #1b285e;
}
.ua-404-btn--secondary:hover {
    background: #E8F4F6;
    color: #2b94a3;
    border-color: #2b94a3;
}
@media (max-width: 480px) {
    .ua-404-num { font-size: 80px; }
    .ua-404-book svg { width: 80px; height: 80px; }
    .ua-404-title { font-size: 22px; }
    .ua-404-text { font-size: 14px; }
    .ua-404-btn { width: 100%; justify-content: center; }
    .ua-404-actions { width: 100%; }
}

