/* ===== Бренд: POLOTNO (Льон і натуральні тканини: спокій, повітря, природні відтінки) ===== */
:root {
  --c-dark: #3B3A36; --c-dark2: #2E2D2A; --c-accent: #7A8B6F; --c-accent-ink: #FFFFFF;
  --c-price: #8C5E3C; --c-bg: #FBF9F5; --c-soft: #F1ECE3; --c-text: #3B3A36;
  --c-header: #F3EEE6; --c-header-ink: #3B3A36;
  --f-head: 'Cormorant Garamond', serif; --f-body: 'Montserrat', sans-serif;
  --r: 2px; --r-btn: 0px;
}
body { background: var(--c-bg); color: var(--c-text); font-family: var(--f-body); }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .tt-title, .box-heading, .page-title { font-family: var(--f-head); }
a:hover, a:focus { color: var(--c-accent); }

/* ---- Шапка ---- */
.full-header, .full-header.fixed { background: var(--c-header) !important; }
.full-header a, .full-header .material-icons, .full-header .ttuserheading, .full-header #cart .btn,
.full-header .ttsearch_button i, #search .ttsearch_button .icon-search, .header-left-cms a,
.main-menu > ul > li > a, .tt-megamenu .menu-item > a, #ttmegamenu .top-level > a { color: var(--c-header-ink) !important; }
#logo img { max-height: 52px; width: auto; }
.header_user_info .ttuserheading, .header_user_info .ttuserheading::before, .header_user_info .ttuserheading::after { border-color: var(--c-header-ink) !important; }
.ttcart #cart #cart-total { background: var(--c-accent) !important; color: var(--c-accent-ink) !important; }
.header-top-cms { background: var(--c-accent); }
.bm-announce { background: var(--c-accent); color: var(--c-accent-ink); text-align: center; font: 600 13px/20px var(--f-body);
  letter-spacing: .04em; padding: 9px 16px; }
.header-content-title .parallex { background-color: var(--c-soft); }
.header-content-title .page-title, .header-content-title .breadcrumb a, .header-content-title .breadcrumb > li::after,
.header-content-title .breadcrumb > li + li::before { color: var(--c-text) !important; }
/* сторінка товару: показувати головне фото, коли додаткових немає (тема ховає його завжди) */
.product-product .product-image.single .thumbnail { display: block; }

/* ---- Кнопки ---- */
.btn, .btn-primary, .btn-default, #button-cart, .buy_now { border-radius: var(--r-btn) !important; text-transform: uppercase; letter-spacing: .08em; }
.btn-primary, .product-details #button-cart { background: var(--c-dark); color: #fff; }
.btn-default { background: var(--c-accent); color: var(--c-accent-ink); }
.product-thumb .price, .product-details ul.product-price h2 { color: var(--c-price); font-style: normal; }

/* ---- Футер ---- */
.footer-container { background: var(--c-dark); }
.bottom-footer { background: var(--c-dark2); }
.footer-top-cms { background: var(--c-soft); }
#goToTop { background: var(--c-accent); color: var(--c-accent-ink); border-radius: var(--r-btn); }

/* ---- Слайдер на всю ширину ---- */
.slideshow-panel { width: 100% !important; float: none; padding: 0; }
.slideshow-panel .swiper-viewport, .slideshow-panel img { border-radius: 0; }
.newslatter-img { background-image: url("../../../../../image/catalog/brand/newsletter.jpg") !important; background-size: cover !important; background-position: center !important; }

/* Блок розсилки без анімації «виїзду справа»: вона розширювала сторінку на мобільному */
.newletter-subscribe.hb-animate-element { animation: none !important; -webkit-animation: none !important; opacity: 1 !important; }
.footer-top-cms { overflow: hidden; }

/* ---- Розкладка головної ---- */
.tt-home #content { min-height: 0; }
.content-top > .html-content, .content-top > .ttproduct-main { clear: both; float: left; width: 100%; }
.box-heading, .tthometab-title, .ttproduct-main h3, .footer-top-cms .tt-title { font-family: var(--f-head) !important; font-style: normal !important; }
.footer-top-cms .btn, .footer-top-cms .button { background: var(--c-accent) !important; color: var(--c-accent-ink) !important; }

/* ---- Блоки головної (bm-*) ---- */
.bm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.bm-section { padding: 64px 0; clear: both; }
.bm-section.soft { background: var(--c-soft); }
.bm-h { font: 700 36px/1.15 var(--f-head); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; color: var(--c-text); }
.bm-sub { font: 400 17px/1.6 var(--f-body); opacity: .8; margin: 0 0 36px; max-width: 640px; }
.bm-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bm-service { display: flex; gap: 14px; align-items: flex-start; }
.bm-service .material-icons { font-size: 30px; color: var(--c-accent); flex: none; }
.bm-service b { display: block; font: 700 16px/1.3 var(--f-head); margin-bottom: 4px; }
.bm-service span { font: 400 14px/1.5 var(--f-body); opacity: .75; }
.bm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bm-tile { position: relative; display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 5/6; background: var(--c-soft); }
.bm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bm-tile:hover img { transform: scale(1.04); }
.bm-tile .bm-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
.bm-tile .bm-tile-cap b { display: block; font: 700 26px/1.15 var(--f-head); text-transform: uppercase; }
.bm-tile .bm-tile-cap span { font: 500 14px/1.4 var(--f-body); opacity: .9; }
.bm-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.bm-story img { width: 100%; border-radius: var(--r); aspect-ratio: 5/4; object-fit: cover; object-position: center 20%; }
.bm-tile img { object-position: center 20%; }
/* Головний банер з фото товарів */
.bm-hero { clear: both; background: #F1ECE3; color: #3B3A36; overflow: hidden; }
.bm-hero-in { max-width: 1440px; margin: 0 auto; padding: 56px 48px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.bm-hero-k { font: 600 15px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: #7A8B6F; margin-bottom: 22px; }
.bm-hero h1 { font: italic 600 clamp(38px, 4.6vw, 72px)/1.04 var(--f-head); color: inherit; margin: 0 0 22px; text-transform: none !important; letter-spacing: 0; }
.bm-hero p { font: 400 19px/1.5 var(--f-body); opacity: .85; margin: 0 0 32px; max-width: 480px; color: inherit; }
.bm-hero-ph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.bm-hero-ph a { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 3/4.6; background: var(--c-soft); }
.bm-hero-ph a:nth-child(2) { margin-top: 48px; }
.bm-hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .6s ease; }
.bm-hero-ph a:hover img { transform: scale(1.04); }
@media (max-width: 991px) {
  .bm-hero-in { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px; }
  .bm-hero-ph { gap: 10px; } .bm-hero-ph a:nth-child(2) { margin-top: 24px; }
}
.bm-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.bm-point { border-top: 2px solid var(--c-accent); padding-top: 14px; }
.bm-point b { display: block; font: 700 17px/1.3 var(--f-head); margin-bottom: 6px; }
.bm-point span { font: 400 14px/1.5 var(--f-body); opacity: .75; }
.bm-promo { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px;
  border-radius: var(--r); background: var(--c-dark); color: #fff; }
.bm-promo .bm-h { color: #fff; margin: 0 0 8px; }
.bm-promo p { margin: 0; color: #fff; opacity: .85; font: 400 17px/1.5 var(--f-body); }
.bm-btn { display: inline-block; padding: 15px 32px; border-radius: var(--r-btn); background: var(--c-accent); color: var(--c-accent-ink) !important;
  font: 700 15px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.bm-btn:hover { filter: brightness(1.08); color: var(--c-accent-ink) !important; }
.bm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bm-step { background: #fff; border-radius: var(--r); padding: 30px; }
.bm-step i { display: inline-block; font: 800 15px/1 var(--f-head); font-style: normal; padding: 8px 12px; border-radius: 999px;
  background: var(--c-accent); color: var(--c-accent-ink); margin-bottom: 18px; }
.bm-step b { display: block; font: 700 21px/1.25 var(--f-head); margin-bottom: 8px; }
.bm-step span { font: 400 15px/1.55 var(--f-body); opacity: .8; }
.bm-about p { font-size: 16px; line-height: 1.75; margin-bottom: 16px; }
@media (max-width: 991px) {
  .bm-services { grid-template-columns: repeat(2, 1fr); }
  .bm-story { grid-template-columns: 1fr; gap: 28px; }
  .bm-tiles, .bm-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bm-section { padding: 40px 0; }
  .bm-h { font-size: 26px; }
  .bm-services, .bm-tiles, .bm-steps, .bm-points { grid-template-columns: 1fr; }
  .bm-promo { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}

/* POLOTNO: тонкі лінії, багато повітря, серифні заголовки курсивом */
.bm-h { font-style: italic; font-weight: 600; font-size: 44px; text-transform: none; letter-spacing: 0; }
.bm-section { padding: 88px 0; }
.bm-tile { border: 1px solid rgba(59,58,54,.15); }
.bm-tile .bm-tile-cap { background: rgba(251,249,245,.92); color: var(--c-text); left: 16px; right: 16px; bottom: 16px; text-align: center; }
.bm-tile .bm-tile-cap b { font-style: italic; text-transform: none; }
.bm-point { border-top-width: 1px; }
.footer-container { background: #3B3A36; }

/* ===== Розкладка: editorial ===== */
@media (min-width: 992px) {
  /* Шапка у два рівні: логотип по центру, меню окремим рядком під ним */
  .full-header { display: grid !important; grid-template-columns: 1fr auto 1fr; grid-template-areas: ". logo icons" "menu menu menu";
    padding: 0 48px !important; border-bottom: 1px solid rgba(59,58,54,.14); }
  .full-header .header-left { grid-area: logo; float: none; justify-self: center; }
  .full-header #logo { float: none; padding: 26px 0 18px; width: auto; }
  .full-header .header-top-right { grid-area: icons; float: none; justify-self: end; align-self: center; }
  .full-header .header-top-left { grid-area: menu; display: block; border-top: 1px solid rgba(59,58,54,.10); }

  .full-header .header-top-left, .full-header .header-left-cms { height: auto !important; width: auto; }
  .full-header .header-top-left #header-left, .full-header .header-top-left .main-category-list, .full-header .header-top-left .tt-menu { float: none !important; width: 100% !important; }
  .full-header .header-top-left .tt-menu ul.ul-top-items { display: flex !important; justify-content: center; flex-wrap: wrap; float: none; }
  .full-header .header-top-left .tt-menu .ul-top-items .li-top-item { padding: 0 !important; float: none; }
  .full-header .header-top-left .tt-menu .a-top-link { line-height: 20px !important; float: none; display: block; }

  .full-header .header-top-left .tt-menu .a-top-link { padding: 14px 24px !important; font-style: italic; font-size: 17px; letter-spacing: .02em; text-transform: none; }
  /* Слайдер усередині поля сторінки, з відступами, як обкладинка журналу */
  .slideshow-panel { padding: 28px 48px 0 !important; }
  .bm-hero { margin: 28px 48px 0; }
}
.slideshow-panel .swiper-pager { display: none !important; }
.ttfooter-logo img { content: url("../../../../../image/catalog/brand/logo-light-bg.png"); }
/* Заголовки секцій: зліва, з тонкою лінією замість «# … #» */
.box-heading h3::before, .box-heading h3::after, .title_block h3::before, .title_block h3::after { display: none !important; }
.tthometab-title { text-align: left !important; border-bottom: 1px solid rgba(59,58,54,.18); margin-bottom: 8px !important; padding-bottom: 14px; }
.tthometab-title h3 { font-style: italic; font-size: 40px !important; text-transform: none !important; text-align: left !important; }
.TTProduct-Tab .tab-box-heading { text-align: left !important; border: 0 !important; }
.TTProduct-Tab .tab-box-heading .nav-tabs { border: 0; }
.TTProduct-Tab .tab-box-heading .tab-title { font-style: italic; text-decoration: underline; text-underline-offset: 6px; }

.product-thumb .thumb-description .caption > h4, .product-thumb .thumb-description .caption > .price { float: none !important; width: 100% !important; display: block; }
/* Картки: без фону, назва по центру курсивом, кнопка з'являється текстом */
.TTProduct-Tab .product-thumb, .product-layout .product-thumb { background: transparent !important; box-shadow: none !important; border: 0 !important; text-align: center; }
.product-thumb .image img { aspect-ratio: 3/4; object-fit: cover; }
.product-thumb .thumb-description .caption h4 { margin-top: 14px; }
.product-thumb h4 a { font-style: italic !important; font-size: 19px !important; line-height: 1.3 !important; text-transform: none !important; }
.product-thumb .price { font-size: 15px; letter-spacing: .06em; }
.product-thumb .product-countdown { display: none !important; }
.product-thumb .sale-icon, .product-thumb .percent { background: transparent !important; color: var(--c-text) !important; border: 1px solid currentColor; border-radius: 0 !important; font-style: italic; }

/* --- товари сіткою замість каруселі --- */
.TTProduct-Tab .owl-stage { transform: none !important; width: auto !important; display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.TTProduct-Tab .owl-item { width: auto !important; margin: 0 !important; }
.TTProduct-Tab .products-carousel:not(.owl-loaded) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.TTProduct-Tab .products-carousel:not(.owl-loaded) > .product-layouts { width: auto; float: none; }
.TTProduct-Tab .customNavigation, .TTProduct-Tab .owl-nav, .TTProduct-Tab .owl-dots { display: none !important; }
.TTProduct-Tab .product-layouts { padding: 0 !important; margin: 0 !important; }
.product-thumb h4 a { white-space: normal !important; font-style: normal; }
@media (max-width: 991px) {
  .TTProduct-Tab .owl-stage, .TTProduct-Tab .products-carousel:not(.owl-loaded) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 767px) {
  .TTProduct-Tab .owl-stage, .TTProduct-Tab .products-carousel:not(.owl-loaded) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .TTProduct-Tab .tab-content { padding: 0 14px; }
  .TTProduct-Tab .product-thumb .button-group { display: none !important; }
  .TTProduct-Tab .product-thumb .ttproducthover { position: static !important; opacity: 1 !important; transform: none !important; margin-top: 6px; }
  .TTProduct-Tab .product-thumb .thumb-description .caption { display: block !important; }
  .TTProduct-Tab .product-thumb .thumb-description .caption > h4 { width: 100% !important; text-align: inherit !important; }
  .TTProduct-Tab .product-thumb .btn-cart { font-size: 12px; padding: 6px 0; white-space: nowrap; }
  .tthometab-title h3 { font-size: 26px !important; line-height: 1.2 !important; }
}

/* Розсилка і футер світлі, у кольорі льону, все по центру */
.footer-top-cms { background: var(--c-bg) !important; border-top: 1px solid rgba(59,58,54,.14); }
.footer-top-cms .newletter-title, .footer-top-cms .newleter-content { float: none !important; width: 100% !important; text-align: center; }
.footer-top-cms #form_subscribe { max-width: 560px; margin: 14px auto 0; float: none; }
.footer-top-cms .tt-title { font-style: italic; }
.footer-container { background: var(--c-soft) !important; color: var(--c-text); border-top: 1px solid rgba(59,58,54,.14); }
.footer-container h5, .footer-container a, .footer-container span, .footer-container li, .footer-container .material-icons { color: var(--c-text) !important; }
.footer-container h5 { font-style: italic; text-transform: none !important; font-size: 19px !important; }
.bottom-footer { background: var(--c-soft) !important; border-top: 1px solid rgba(59,58,54,.12); }
.bottom-footer, .bottom-footer a, .bottom-footer p { color: var(--c-text) !important; }

/* ---- Міні-кошик: читабельний текст і кнопки «Переглянути кошик» / «Оформити замовлення» ---- */
#cart .dropdown-menu a, #cart .dropdown-menu .material-icons, #cart .dropdown-menu .btn { color: var(--c-text) !important; }
#cart .header-cart-toggle .table > tbody > tr > td.text-right.amount { color: var(--c-price) !important; }
#cart .dropdown-menu li p.text-right { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; }
#cart .dropdown-menu li p a, #cart .dropdown-menu li p a:first-child { float: none; width: 100%; display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 14px; margin: 0; border-radius: var(--r-btn); font: 600 14px/1.25 var(--f-body); letter-spacing: .01em;
  text-transform: none; text-align: center; white-space: normal; box-sizing: border-box; transition: background-color .2s, color .2s, filter .2s; }
#cart .dropdown-menu li p a strong { font: inherit; letter-spacing: inherit; color: inherit !important; }
#cart .dropdown-menu li p a::after { display: none !important; }
#cart .dropdown-menu li p a:last-child { order: -1; background: var(--c-accent) !important; color: var(--c-accent-ink) !important; border: 1px solid var(--c-accent); }
#cart .dropdown-menu li p a:last-child:hover, #cart .dropdown-menu li p a:last-child:focus { background: var(--c-accent) !important; color: var(--c-accent-ink) !important; filter: brightness(.9); }
#cart .dropdown-menu li p a:first-child { background: transparent !important; color: var(--c-dark) !important; border: 1px solid var(--c-dark); }
#cart .dropdown-menu li p a:first-child:hover, #cart .dropdown-menu li p a:first-child:focus { background: var(--c-dark) !important; color: #fff !important; }
