/* Cestepe brand v2 (Monogram: navy #1F2E4A + gold #B98B4E). Our own file, loaded last via event cs_brand. Fonts: Manrope, Playfair Display (OFL, Cyrillic, self-hosted). */
@font-face{font-family:'Manrope';src:url('fonts/manrope-var.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:'Playfair Display';src:url('fonts/playfair-var.woff2') format('woff2');font-weight:400 900;font-style:normal;font-display:swap}
:root{
 --cs-navy:#1F2E4A;--cs-navy-2:#2B3D5E;--cs-navy-dark:#16223A;--cs-gold:#B98B4E;--cs-gold-dark:#8A6634;--cs-gold-light:#E9D9BC;
 --cs-ivory:#F8F4EC;--cs-sand:#EFE5D3;--cs-ink:#1B2233;--cs-line:#E6DCCB;
 --ds-main-font:'Manrope',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
 --ds-primary-color:#1F2E4A;--ds-blue-color:#1F2E4A;--ds-links-color:#1F2E4A;--ds-interactive-color:#3D7A57;--ds-green-color:#3D7A57;--ds-red-color:#B23A3A;
 --ds-body-bg-light-color:#F8F4EC;--ds-primary-light-color-light:#F8F4EC;--ds-primary-dark-color-light:#1B2233;--ds-secondary-dark-color-light:#1F2E4A;
 --ds-border-color-light:#ECE3D3;--ds-product-actions-bg-light:#FBF8F2;--ds-popup-close-btn-bg-light:#EFE5D3;--ds-form-control-focus-color-light:#D9C49F;
 --ds-footer-bg-light-color:#1F2E4A;--swiper-theme-color:#B98B4E;
}
html body{font-family:var(--ds-main-font)!important;background:#F8F4EC!important;color:#1B2233}
body,button,input,select,textarea,.tooltip,.popover{font-family:var(--ds-main-font)!important}
/* headings */
h1,.h1,h2,.h2,#content>h1,.ds-page-title,.py-3.fw-500.dark-text.fsz-20,.ds-module-title,.ds-category-description h2,.ds-slideshow-item-title,.ds-bannerplus-item-title{font-family:'Playfair Display',Georgia,'Times New Roman',serif!important;font-weight:700!important;letter-spacing:0;color:#1F2E4A}
h3,.h3,h4,h5{font-family:var(--ds-main-font)!important;font-weight:700;color:#1F2E4A}
.py-3.fw-500.dark-text.fsz-20{font-size:24px!important}
a{color:#1F2E4A}
a:hover{color:#8A6634}
.content-block a:not(.button):hover,.ds-module-caption a:hover{color:#8A6634!important}
/* header */
header,.ds-header{background:#fff!important;border-bottom:1px solid #ECE3D3}
#logo{height:46px!important;width:auto!important;max-width:none!important;max-height:none!important}
.ds-header-catalog-button{border-color:#1F2E4A!important;color:#1F2E4A!important;background:#fff!important}
.ds-header-catalog-button:hover{background:#1F2E4A!important;color:#fff!important}
.ds-header-catalog-button:hover .button-icon{filter:brightness(0) invert(1)}
.ds-header-search input,.ds-header-search .form-control{background:#FBF8F2!important;border-color:#E6DCCB!important}
.ds-header-phone-button,.ds-header-user-button{color:#1F2E4A!important}
.ds-menu-maincategories a,.ds-menu-maincategories-item>a{color:#1B2233!important;font-weight:600}
.ds-menu-maincategories a:hover{color:#8A6634!important}
.ds-menu-catalog-item:hover,.ds-menu-catalog-item.active{color:#8A6634!important;background:#FBF6EC!important}
/* buttons */
.button-primary,.button.button-primary,.btn-primary{background:#1F2E4A!important;border-color:#1F2E4A!important;color:#fff!important}
.button-primary:hover,.btn-primary:hover{background:#16223A!important;border-color:#16223A!important}
.button-outline-primary{border-color:#1F2E4A!important;color:#1F2E4A!important;background:transparent!important}
.button-outline-primary:hover,.button-outline-primary:focus{background:#1F2E4A!important;color:#fff!important}
.button-outline-primary:hover .button-icon{filter:brightness(0) invert(1)}
.ds-module-cart-btn{border-color:#B98B4E!important;color:#8A6634!important}
.ds-module-cart-btn:hover{background:#B98B4E!important;border-color:#B98B4E!important;color:#fff!important}
.button-light{background:#EFE5D3!important;color:#1F2E4A!important}
/* cards, prices, badges */
.content-block{border-radius:12px!important}
.ds-module-item{border:1px solid #EFE6D7!important;box-shadow:0 2px 12px rgba(31,46,74,.05)!important}
.ds-module-item:hover{border-color:#D9C49F!important;box-shadow:0 6px 20px rgba(31,46,74,.10)!important}
.ds-module-price,.ds-price-new,.ds-product-price-new,.price-new,.ds-price{color:#1F2E4A!important;font-weight:800!important}
.ds-price-old,.price-old{color:#8A8F99!important}
.ds-module-stickers span,.ds-module-stickers>div,[class*="ds-sticker"]{background:#8A6634!important;color:#fff!important;border-radius:6px}
.ds-module-rating .active,.ds-rating .active{color:#B98B4E!important}
/* category tiles (tplus_catimg) */
html body .ds-subcategories-item .content-block{border:1px solid #EAE0CF!important;background:#fff!important;transition:border-color .2s,box-shadow .2s}
html body .ds-subcategories-item .content-block:hover{border-color:#B98B4E!important;box-shadow:0 6px 18px rgba(31,46,74,.10)!important}
html body .ds-subcategories-item .ds-subcategories-title{color:#1F2E4A!important;font-weight:700!important}
.ds-categories-wall-item,.ds-category-wall-item{border-color:#EAE0CF!important}
/* advantages */
.ds-advantages-item img{filter:brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(1300%) hue-rotate(190deg) brightness(92%)}
/* banners: slideshow + banner plus buttons */
.ds-slideshow-item .button{border-color:#E9D9BC!important;color:#F8F4EC!important;background:transparent!important}
.ds-slideshow-item .button:hover{background:#E9D9BC!important;border-color:#E9D9BC!important;color:#1F2E4A!important}
.swiper-pagination-bullet-active{background:#B98B4E!important}
/* breadcrumbs, tabs, forms */
.breadcrumb a{color:#5C6475!important}
.ds-product-tabs .active,.nav-link.active{color:#1F2E4A!important;border-color:#B98B4E!important}
.form-control:focus,.form-select:focus{border-color:#B98B4E!important;box-shadow:0 0 0 .2rem rgba(185,139,78,.18)!important}
.form-check-input:checked{background-color:#1F2E4A!important;border-color:#1F2E4A!important}
/* footer */
footer,.ds-footer{background:#1F2E4A!important;color:#E9DFCC!important}
footer a,.ds-footer a{color:#F3EBDD!important}
footer a:hover,.ds-footer a:hover{color:#D4B07A!important}
footer .dark-text,.ds-footer .dark-text,footer .fw-700,footer h3,footer h4,.ds-footer-title{color:#FFFFFF!important}
footer .light-text,.ds-footer .light-text,footer .gray-text{color:#C9C2B4!important}
footer .button-outline-primary,.ds-footer .button-outline-primary{border-color:#D4B07A!important;color:#F3EBDD!important}
footer .button-outline-primary:hover,.ds-footer .button-outline-primary:hover{background:#D4B07A!important;color:#1F2E4A!important}
footer .content-block,.ds-footer .content-block{background:transparent!important}
.ds-footer-logo{height:46px!important;width:auto!important}
/* font: theme defines --ds-main-font inline later; important custom property wins */
:root,html,body{--ds-main-font:'Manrope',system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important}
.popup-title,.popup-text,.modal,.modal *:not(i):not([class*="fa-"]),.iti,.iti *{font-family:var(--ds-main-font)!important}
label,.btn-social,.login-show,[class*="social"] *:not(i):not([class*="fa-"]),[id*="social"] *:not(i):not([class*="fa-"]){font-family:var(--ds-main-font)!important}
img[src*="advantages/payments-icon"],img[src*="deals/shield.svg"],img[src*="advantages/advantages-icon"]{filter:brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(1300%) hue-rotate(190deg) brightness(92%)}

/* t821u: mobile — no horizontal scroll, side catalog only via hamburger/«Каталог» */
@media (max-width: 1199.98px) {
  html { overflow-x: clip; scrollbar-gutter: auto; scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; }
  body { max-width: 100%; scrollbar-width: none; }
  .ds-menu-catalog.ds-menu-main-catalog:not(.active) {
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-100%) !important;
  }
  .ds-menu-catalog.ds-menu-main-catalog {
    width: 100% !important;
    max-width: min(460px, 100%) !important;
    left: 0 !important;
  }
  #ds_livesearch,
  .ds-mobile-bottom-nav {
    width: auto !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
  .ds-slideshow,
  .ds-slideshow.menu-active {
    padding-left: 0 !important;
    overflow: hidden;
  }
  .ds-menu-maincategories-desktop-box { display: none !important; }
}
/* desktop: the left catalog was wider than the reserved 25% padding and covered the first slide title */
@media (min-width: 1200px) {
  .ds-slideshow.menu-active { padding-left: calc(25% + 5rem) !important; }
}
@media (min-width: 1400px) {
  .ds-slideshow.menu-active { padding-left: calc(25% + 4.25rem) !important; }
}


/* t835u-t839u: mobile layout, tiles, header, footer, slider, icons */
.cs-logo-tagline{
  display:block;
  font-family:'Manrope',system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;
  font-size:clamp(9px,2.6vw,11px);
  font-weight:600;
  letter-spacing:.02em;
  color:#B98B4E!important;
  white-space:nowrap;
  line-height:1.2;
  margin-top:2px;
  max-width:100%;
}
.ds-header-left>span:has(#logo),
.ds-header-left>a:has(#logo){
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1;
}
#logo{display:block}

.cs-footer-about{
  color:#C9C2B4!important;
  font-size:13px;
  line-height:1.45;
  margin:.35rem 0 0;
  max-width:28rem;
  font-family:'Manrope',system-ui,sans-serif!important;
}
@media (max-width:767.98px){
  .cs-footer-about{text-align:center;margin-left:auto;margin-right:auto}
}

/* footer subscribe off (backup if the module still prints) */
footer .oct-subscribe,
.ds-footer-top .oct-subscribe,
#oct_subscribe,
.ds-footer-subscribe,
footer [id*="oct_subscribe"],
.ds-footer-top [class*="subscribe"]{display:none!important}

/* light/gold icons on navy footer and other dark backgrounds */
footer svg path[fill="#00171F"],
.ds-footer svg path[fill="#00171F"],
footer svg [fill="#00171F"],
.ds-footer svg [fill="#00171F"]{fill:#B98B4E!important}
footer svg path[stroke="#00171F"],
.ds-footer svg [stroke="#00171F"]{stroke:#B98B4E!important}
footer .secondary-text,
.ds-footer .secondary-text,
footer .blue-link,
.ds-footer .blue-link{color:#E8D9BE!important}
footer a.blue-link:hover,
.ds-footer a.blue-link:hover{color:#FFFFFF!important}

/* footer logo: no white plate, always the light mark */
.ds-footer-logo,
footer .ds-footer-logo{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  border:0!important;
  padding:0!important;
  border-radius:0!important;
  height:48px!important;
  width:auto!important;
  max-width:100%!important;
  object-fit:contain!important;
}

@media (max-width:1199.98px){
  html,body{max-width:100%;overflow-x:clip}
  body{width:100%;position:relative}
  img,video,iframe,svg{max-width:100%}
  header.ds-header,
  .ds-header.sticky-top,
  .ds-header{
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box;
    transform:none!important;
  }
  .ds-header>.container-xl{
    max-width:100%!important;
    width:100%!important;
  }

  /* category wall: 2-col tiles, photo + name, no side list */
  .ds-category-wall{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin-left:0!important;
    margin-right:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  .ds-category-wall-item{
    width:100%!important;
    max-width:100%!important;
    flex:none!important;
    padding:0!important;
  }
  .ds-category-wall-item .content-block{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    padding:0 0 10px!important;
    overflow:hidden;
    min-width:0!important;
  }
  .ds-category-wall-item img{
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
    flex:none!important;
  }
  .ds-category-wall-item-list{display:none!important}
  .ds-category-wall-item-links{padding:8px 10px 0!important;min-width:0!important}
  .ds-category-wall-title{
    padding-left:0!important;
    margin:8px 8px 0!important;
    align-self:flex-start!important;
    font-size:13px!important;
    line-height:1.25!important;
    text-decoration:none!important;
    white-space:normal!important;
    display:block!important;
  }

  /* hero: full width, no peek of the next slide */
  .ds-slideshow,
  .ds-slideshow.menu-active,
  #slideshow-plus-0,
  #slideshow-plus-0.swiper,
  .ds-slideshow .swiper{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    padding-left:0!important;
    margin-right:0!important;
  }
  #slideshow-plus-0 .swiper-slide,
  .ds-slideshow .swiper-slide{
    width:100%!important;
    max-width:100%!important;
    margin-right:0!important;
    box-sizing:border-box;
  }

  /* footer contacts stacked, no overflow */
  .ds-footer-phones-shedule{
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:1rem!important;
    width:100%!important;
    max-width:100%!important;
  }
  .ds-footer-phones-shedule a{white-space:normal!important}
  .ds-footer-contacts,
  .ds-footer-contacts.row,
  .ds-footer-top,
  .ds-footer-top.row{
    margin-left:0!important;
    margin-right:0!important;
    max-width:100%;
  }
  footer,.ds-footer{overflow-x:hidden;max-width:100%}
}

@media (max-width:575.98px){
  /* keep 2-col tiles even on 360; theme default was 1 col */
  .ds-category-wall{grid-template-columns:1fr 1fr!important}
  .ds-category-wall-title{font-size:12px!important;margin:6px 6px 0!important}
}


/* t835u follow-up: stack tiles on all breakpoints; mobile slider no peek (theme uses CSS grid on the wrapper) */
.ds-category-wall-item .content-block{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-width:0!important;
}
.ds-category-wall-item img{
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  flex:none!important;
}
.ds-category-wall-title{
  padding-left:0!important;
  margin:10px 12px 4px!important;
  align-self:flex-start!important;
  text-decoration:none!important;
  white-space:normal!important;
  display:block!important;
}
@media (min-width:992px){
  .ds-category-wall{
    display:grid!important;
    grid-template-columns:1fr 1fr 1fr!important;
    gap:16px!important;
  }
  .ds-category-wall-item{width:100%!important;max-width:100%!important;flex:none!important;padding:0!important}
}

@media (max-width:767.98px){
  .ds-slideshow .swiper-wrapper-grid,
  #slideshow-plus-0 .swiper-wrapper,
  #slideshow-plus-0 .swiper-wrapper-grid{
    display:flex!important;
  }
  .ds-slideshow-item-vertical:not(:last-child){margin-right:0!important}
  #slideshow-plus-0,
  #slideshow-plus-0.swiper,
  .ds-slideshow{
    overflow:hidden!important;
  }
  #slideshow-plus-0 .swiper-slide,
  .ds-slideshow .swiper-slide{
    width:100%!important;
    max-width:100%!important;
    flex:0 0 100%!important;
    margin-right:0!important;
    box-sizing:border-box;
  }
}

/* keep the phone number on one line */
a[href^="tel:"]{white-space:nowrap}

/* t882u: 5 benefit cards fill the container width evenly and line up with the slider */
@media (min-width: 992px) {
  .ds-advantages.row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
  }
  .ds-advantages.row > .ds-advantages-item {
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  /* stack icon and text so five cards fit at 1024 without overflow */
  .ds-advantages .content-block {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  .ds-advantages .ds-advantages-item-text {
    align-items: center !important;
    margin-left: 0 !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  .ds-advantages .ds-advantages-item-title,
  .ds-advantages .ds-advantages-item-text.fsz-14 {
    overflow-wrap: break-word;
  }
}

/* t883u: desktop-only (>=992px). Do not change mobile layout. */
@media (min-width: 992px) {
  /* 1+t887u: header matches content width (container-xl: 960/1140/1320,
        NOT 1440 — that made the header full-bleed at 1280) and is compact. */
  header.ds-header {
    padding-top: 6px !important;
    padding-bottom: 0 !important;
  }
  header.ds-header > .container-xl {
    max-width: 960px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* nested container for the links row must not add a second shrink */
  header.ds-header > .container-xl > .container-xl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  header.ds-header > .container-xl > .d-flex.flex-row {
    margin-bottom: 0 !important;
    min-height: 48px;
  }
  header.ds-header #logo {
    height: 36px !important;
  }
  header.ds-header .cs-logo-tagline {
    font-size: 10px !important;
    margin-top: 0 !important;
    line-height: 1.1 !important;
  }
  header.ds-header .ds-header-catalog-button {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  /* slim the Доставка / Оплата / Повернення / Контакти row */
  .ds-menu-maincategories-desktop-box,
  .ds-menu-maincategories-desktop-box .ds-menu-maincategories {
    border-top: 1px solid #ECE3D3;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
  }
  .ds-menu-maincategories-desktop-box .ds-menu-maincategories {
    border-top: 0;
    height: auto !important;
    align-items: center !important;
  }
  .ds-menu-maincategories-desktop-box .ds-menu-maincategories-item {
    padding: 5px 1.15rem 5px 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .ds-menu-maincategories-desktop-box .ds-menu-maincategories-item-title {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  /* 4) Category tiles: 4 per row, smaller images */
  .ds-category-wall {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }
  .ds-category-wall-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
  }

  /* 2) Copyright clear of #back-top (bottom:120px) and the mail button */
  footer.ds-footer { padding-bottom: 3rem !important; }
  .ds-footer-copyrights {
    margin-right: 140px !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 1;
  }

  /* 3) Hide empty "Ми у соціальних мережах" column */
  .ds-footer-socials,
  .ds-footer-contacts > .col-lg-3:has(.ds-footer-socials) {
    display: none !important;
  }

  /* 5) Hide old articles; show compact guide */
  .ds-last-news,
  .py-3.fw-500.dark-text.fsz-20:has(+ .ds-last-news) {
    display: none !important;
  }
  .cs-guide-home { display: block !important; }
  .cs-guide-home-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: #1F2E4A !important;
    margin: 0 0 12px !important;
    text-decoration: none !important;
    display: inline-block;
  }
  .cs-guide-home-title:hover { color: #8A6634 !important; }
  .cs-guide-home-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .cs-guide-home-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #EAE0CF;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: #1F2E4A !important;
    min-width: 0;
    height: 100%;
  }
  .cs-guide-home-card:hover { border-color: #B98B4E; }
  .cs-guide-home-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }
  .cs-guide-home-card span {
    display: block;
    padding: 8px 10px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    font-family: var(--ds-main-font) !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .cs-guide-home-grid { grid-template-columns: repeat(3, 1fr); }
}


@media (min-width: 1200px) {
  header.ds-header > .container-xl { max-width: 1140px !important; }
  /* theme hard-codes this row to 46px; override so it can be slim */
  .ds-header.with-categories-menu .ds-menu-maincategories-desktop-box {
    height: auto !important;
  }
}
@media (min-width: 1400px) {
  header.ds-header > .container-xl { max-width: 1320px !important; }
}
/* Guide block is desktop-only; never show it on mobile */
@media (max-width: 991.98px) {
  .cs-guide-home { display: none !important; }
}
