/**
 * Cafe Leo brand overrides — loaded after site CSS bundles.
 * Replaces legacy accent #ED1C24 with Cafe Leo orange.
 * See docs/BRAND.md
 */
:root {
  --cafeleo-primary: #FB8B00;
  --cafeleo-secondary: #FFBC6D;
  --cafeleo-primary-rgb: 251, 139, 0;
  --cafeleo-secondary-rgb: 255, 188, 109;
  /* Hero product — scaled below 112%, no crop */
  --cafeleo-hero-product-height: 86%;
  --cafeleo-hero-product-offset-y: 16px;
  --cafeleo-logo-padding-y: 10px;
  --cafeleo-logo-height: 68px;
  --cafeleo-logo-loader-scale: 3;
  --cafeleo-logo-loader-height: calc(var(--cafeleo-logo-height) * var(--cafeleo-logo-loader-scale));
  --cafeleo-logo-loader-duration: 1.2s;
  --cafeleo-loader-dx: 0px;
  --cafeleo-loader-dy: 0px;
  --cafeleo-header-height: 84px;
  /* Page horizontal inset (20 / 40 / 120) */
  --cafeleo-page-inset-x: 20px;
  --cafeleo-page-inset-y: 20px;
}

@media screen and (min-width: 1024px) {
  :root {
    --cafeleo-header-height: 96px;
    --cafeleo-page-inset-x: 40px;
    --cafeleo-page-inset-y: 40px;
  }
}

@media screen and (min-width: 1366px) {
  :root {
    --cafeleo-page-inset-x: 120px;
    --cafeleo-page-inset-y: 40px;
  }
}

/* —— Primary brand orange —— */

a {
  color: var(--cafeleo-primary);
}

.primary_btn {
  background: var(--cafeleo-primary) !important;
}

.secondary_btn {
  outline-color: var(--cafeleo-primary) !important;
  color: var(--cafeleo-primary) !important;
}

.content_tiker {
  outline-color: var(--cafeleo-primary) !important;
}

/* Seamless marquee — two duplicate groups, -50% loop */
@keyframes cafeleo-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.cafeleo-marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  direction: ltr;
  animation: cafeleo-marquee var(--cafeleo-marquee-duration, 20s) linear infinite;
}

.cafeleo-marquee__track > ul {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: none !important;
}

html[dir="rtl"] .cafeleo-marquee__track > ul {
  direction: rtl;
}

html[dir="rtl"] .content_tiker,
html[dir="rtl"] .footer_slogan {
  direction: ltr;
  text-align: inherit;
}

.cafeleo-marquee.content_tiker li > span:not(.icon_block) {
  white-space: nowrap;
}

.cafeleo-marquee.footer_slogan li .bold {
  white-space: nowrap;
}

/* Product cards — pill shape, no grey/orange fill; coffee-bean SVG overlays photo on hover */
.product_section .product_list .product_image,
.product_section .product_list .product_block:hover .product_image {
  background: transparent !important;
  border: none !important;
  border-radius: 200px !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden !important;
}

.product_block:hover .product_image {
  background: transparent !important;
}

/* Category headings overlap the grid — keep them above card images */
.product_section .product_group {
  position: relative;
  padding-top: 32px;
}

.product_section .product_group + .product_group {
  padding-top: 64px;
}

.product_section .product_title {
  position: relative;
  z-index: 10 !important;
  pointer-events: none;
  margin-top: 20px !important;
  margin-bottom: -24px !important;
}

@media screen and (min-width: 768px) {
  .product_section .product_group {
    padding-top: 40px;
  }

  .product_section .product_group + .product_group {
    padding-top: 80px;
  }

  .product_section .product_title {
    margin-top: 28px !important;
    margin-bottom: -28px !important;
  }
}

@media screen and (min-width: 1200px) {
  .product_section .product_group {
    padding-top: 48px;
  }

  .product_section .product_group + .product_group {
    padding-top: 96px;
  }

  .product_section .product_title {
    margin-top: 36px !important;
    margin-bottom: -32px !important;
  }
}

.product_section .product_list {
  position: relative;
  z-index: 1;
}

.product_section .product_list .product_image::before {
  display: none !important;
}

.product_section .product_list .product_image::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  top: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  background-image: url(/media/images/ui/cafeleo-asset-coffee-bean.svg);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top left;
  transition:
    margin-top 0.75s ease-out,
    opacity 0.75s ease-out;
}

.product_section .product_list .product_block:hover .product_image::after {
  margin-top: -35%;
  opacity: 1;
}

.product_section .product_list .product_image img {
  position: relative;
  z-index: 2;
}

/* Link hovers */
.web .header .menu_block a:hover,
.web .product_popup .popup_close:hover,
.web .footer .contacts_list div:hover,
.web .footer .contacts_list a:hover,
.touch .header .menu_block a:active,
.touch .product_popup .popup_close:active,
.touch .footer .contacts_list div:active,
.touch .footer .contacts_list a:active {
  color: var(--cafeleo-primary) !important;
}

/* —— Secondary accents —— */

.secondary_btn:hover {
  background: rgba(var(--cafeleo-secondary-rgb), 0.12) !important;
}

@media (hover: hover) and (pointer: fine) {
  .product_types button:hover {
    border-color: var(--cafeleo-secondary) !important;
    color: var(--cafeleo-secondary) !important;
  }

  .product_types button:hover:after,
  .assortment_section .view_more:hover span:after {
    box-shadow: 0 0 0 0 var(--cafeleo-secondary) !important;
  }
}

.product_popup.showed .popup_inner {
  cursor: pointer;
}

.product_popup .popup_container {
  cursor: default;
}

/* —— Modal shells: viewport-locked overlay, scroll inside the card —— */
.product_popup.showed,
.cart_popup.showed {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

.product_popup .popup_inner,
.cart_popup .popup_inner {
  height: 100%;
  max-height: 100dvh;
  min-height: 0 !important;
  overflow: hidden;
  overscroll-behavior: none;
  align-items: center;
}

.product_popup .popup_container,
.cart_popup .popup_container {
  max-height: min(calc(100dvh - 48px), calc(100svh - 48px));
  overflow-x: hidden;
  border: 1px solid rgba(var(--cafeleo-primary-rgb), 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.45);
}

/* iOS momentum scroll — must live on the element that actually scrolls */
.cafeleo-ios-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.cafeleo-ios-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.cafeleo-ios-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.cafeleo-ios-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.more_btn:hover {
  border-color: var(--cafeleo-secondary) !important;
}

/* Soft glow on category tab wave — desktop hover only */

/* —— Sticky category menu: blur gradient, scroll / fit-all layout —— */
.product_types.cafeleo-category-tabs {
  align-items: stretch !important;
  height: auto !important;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  isolation: isolate;
}

.product_types.cafeleo-category-tabs::before,
.product_types.cafeleo-category-tabs::after {
  display: none !important;
  content: none !important;
  flex: 0 0 0 !important;
}

.cafeleo-category-tabs__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cafeleo-category-tabs__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 24, 24, 0.18) 0%,
    rgba(24, 24, 24, 0.52) 42%,
    rgba(24, 24, 24, 0.9) 100%
  );
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 100%);
}

.cafeleo-category-tabs__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 28%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 28%, rgba(0, 0, 0, 1) 100%);
}

.cafeleo-category-tabs__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.cafeleo-category-tabs__track {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  align-content: center;
  gap: clamp(4px, 0.55vw, 8px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 22px 12px 10px !important;
  overflow: hidden !important;
  box-sizing: border-box;
  cursor: default;
}

.cafeleo-category-tabs__track li {
  flex: 1 1 calc(10% - clamp(4px, 0.55vw, 8px));
  min-width: clamp(52px, 8.5vw, 88px);
  max-width: calc(50% - clamp(4px, 0.55vw, 8px));
  padding: 0 !important;
}

.cafeleo-category-tabs__track button {
  width: 100%;
  height: 100%;
  min-height: 2.6em;
  font-size: clamp(9px, 0.82vw, 14px) !important;
  line-height: 1.15 !important;
  padding: clamp(6px, 0.75vw, 10px) clamp(3px, 0.45vw, 8px) !important;
  white-space: normal;
  max-width: 100%;
  text-align: center;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cafeleo-category-tabs__track button.is-active,
.cafeleo-category-tabs__track button[aria-current="true"] {
  border-color: var(--cafeleo-primary) !important;
  color: var(--cafeleo-primary) !important;
  background: rgba(var(--cafeleo-primary-rgb), 0.14) !important;
}

/* Touch: tap leaves a sticky :hover — only the scroll-spy active tab keeps accent */
@media (hover: none) {
  .product_types.cafeleo-category-tabs .cafeleo-category-tabs__track button:not(.is-active):not([aria-current="true"]):hover {
    border-color: #cccccc !important;
    color: #ccc !important;
    background: #181818 !important;
  }

  .web .product_types.cafeleo-category-tabs .cafeleo-category-tabs__track button:not(.is-active):not([aria-current="true"]):hover:after {
    animation: none !important;
  }
}

@media screen and (min-width: 1680px) {
  .cafeleo-category-tabs__track button {
    font-size: clamp(10px, 0.72vw, 15px) !important;
    padding: 10px 8px !important;
  }
}

@media screen and (max-width: 767px) {
  .cafeleo-category-tabs__track {
    gap: 4px;
    padding: 18px 8px 10px !important;
  }

  .cafeleo-category-tabs__track button {
    font-size: clamp(8px, 2.2vw, 12px) !important;
    padding: 6px 3px !important;
    min-height: 2.4em;
  }
}

html[dir="rtl"] .cafeleo-category-tabs__track {
  direction: rtl;
}


/* Main-page hero — brand title + slogan */
.assortment_section .hero_slogan {
  margin: 12px 0 0;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--cafeleo-secondary);
}

/* Hero CTA — gap between label and arrow (margin fix in RTL) */
.assortment_section .view_more {
  gap: 16px;
}

.assortment_section .view_more span {
  margin-left: 0 !important;
  flex-shrink: 0;
}

@media screen and (max-width: 1023px) {
  .assortment_section .view_more {
    gap: 14px;
  }
}

@media screen and (max-width: 767px) {
  .assortment_section .view_more {
    gap: 12px;
  }
}

/* Ticker / footer slogan — space between copy and icon blocks */
.content_tiker .icon_block {
  margin-inline: 16px;
}

.footer_slogan .icon_block {
  margin-inline: 16px;
}

.assortment_section .image_inner picture {
  transform: translateY(var(--cafeleo-hero-product-offset-y));
}

.assortment_section .image_inner picture img,
.assortment_section .image_inner > img {
  height: var(--cafeleo-hero-product-height) !important;
}

@media screen and (max-width: 767px) {
  :root {
    --cafeleo-hero-product-height: 80%;
    --cafeleo-hero-product-offset-y: 10px;
    --cafeleo-logo-padding-y: 8px;
  }
}

/* —— Logo: loader splash → glide into header —— */

.cafeleo-logo-img,
.header .main_logo img,
.footer .logo_block img {
  display: block;
  width: auto !important;
  height: var(--cafeleo-logo-height) !important;
  padding-top: var(--cafeleo-logo-padding-y) !important;
  padding-bottom: var(--cafeleo-logo-padding-y) !important;
  box-sizing: content-box;
  margin: 0 !important;
}

.page_loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
  background: #0d0d0d;
}

body:not(.logo-settled) .page_wrapper {
  visibility: hidden;
}

.page_loader .cafeleo-logo-img--loader,
.page_loader .cafeleo-logo-img.cafeleo-logo-img--loader {
  position: fixed;
  top: 50%;
  left: 50%;
  width: auto !important;
  height: var(--cafeleo-logo-loader-height) !important;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition:
    transform var(--cafeleo-logo-loader-duration) cubic-bezier(0.33, 1, 0.32, 1),
    height var(--cafeleo-logo-loader-duration) cubic-bezier(0.33, 1, 0.32, 1) !important;
  will-change: transform, height;
}

body.loaded .page_loader .cafeleo-logo-img--loader,
body.loaded .page_loader .cafeleo-logo-img.cafeleo-logo-img--loader {
  height: var(--cafeleo-logo-height) !important;
  transform: translate(
    calc(-50% + var(--cafeleo-loader-dx)),
    calc(-50% + var(--cafeleo-loader-dy))
  );
}

.header .main_logo img,
.header .main_logo .cafeleo-logo-img {
  animation: none !important;
  -webkit-animation: none !important;
  opacity: 0;
  transition: opacity 0s;
}

body.loaded .header .main_logo {
  opacity: 1 !important;
  transition: none !important;
}

body.logo-settled .header .main_logo .cafeleo-logo-img {
  opacity: 1;
}

body.logo-settled .page_loader {
  visibility: hidden;
  pointer-events: none;
}

/* Header chrome hidden during loader */
body:not(.logo-settled) .cafeleo-header .header_nav_desktop,
body:not(.logo-settled) .cafeleo-header .lang_switcher_header,
body:not(.logo-settled) .cafeleo-header .cafeleo-header_actions,
body:not(.logo-settled) .cafeleo-header .cafeleo-header_mobile_actions,
body:not(.logo-settled) .cafeleo-header .cafeleo-header__drawer {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.logo-settled) .cafeleo-header.header {
  background: transparent !important;
  backdrop-filter: none !important;
}

/* —— Sticky / fixed header (outside virtual-scroll wrapper) —— */

.cafeleo-header.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(24, 24, 24, 0.96);
  backdrop-filter: blur(8px);
}

.cafeleo-header .inner_container {
  height: auto !important;
  min-height: var(--cafeleo-header-height);
  align-items: center;
}

.page_wrapper .content {
  padding-top: var(--cafeleo-header-height);
}

/* Virtual scroll — GPU transform, no top transition lag */
.page_wrapper {
  top: 0 !important;
  transition: none !important;
  will-change: transform;
}

html.cafeleo-programmatic-scroll {
  scroll-snap-type: none !important;
}

html.cafeleo-programmatic-scroll .cafeleo-footer-zone {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

/* —— Desktop: logo left · nav center · lang right (one row) —— */

.header_nav_desktop {
  display: none;
}

@media screen and (min-width: 1024px) {
  .cafeleo-header .inner_container {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center !important;
    justify-content: unset !important;
    column-gap: 24px;
  }

  .cafeleo-header .main_logo {
    grid-column: 1;
    justify-self: start;
    position: relative;
    top: auto;
    left: auto;
  }

  .header_nav_desktop {
    display: flex;
    grid-column: 2;
    justify-self: center;
    align-items: center;
    gap: 0;
    margin: 0;
    min-height: 0;
    min-width: 0;
  }

  .header_nav_desktop .main_menu,
  .header_nav_desktop .second_menu {
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header_nav_desktop .main_menu li,
  .header_nav_desktop .second_menu li {
    padding: 0 16px;
    margin: 0;
  }

  .header_nav_desktop .main_menu a,
  .header_nav_desktop .second_menu a {
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: inherit;
    text-decoration: none;
  }

  .lang_switcher_header {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    margin: 0;
  }

  .cafeleo-header_actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
  }

  .cafeleo-header_actions .lang_switcher_header {
    grid-column: auto;
    justify-self: auto;
  }

  .cafeleo-header_mobile_actions {
    display: none !important;
  }

  .lang_switcher_header ul {
    gap: 10px;
    align-items: center;
  }

  .lang_switcher_header a,
  .lang_switcher_header .lang_current {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.4;
  }

  .mobile_menu_block,
  .mobile_menu_btn {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  .header_nav_desktop,
  .lang_switcher_header,
  .cafeleo-header_actions {
    display: none !important;
  }

  .cafeleo-header .inner_container.cafeleo-header__bar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: var(--cafeleo-header-height);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Template pins logo with top:8px — align vertically in the bar, keep on the start edge */
  .cafeleo-header .main_logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 !important;
    align-self: center;
    max-width: min(48vw, 200px);
  }

  .cafeleo-header .main_logo a {
    display: block;
  }

  .cafeleo-header_mobile_actions {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
    flex-shrink: 0;
  }

  /* Legacy slide menu — replaced by cafeleo-header__drawer */
  .mobile_menu_block {
    display: none !important;
  }
}

/* —— Mobile dropdown drawer (panel below header bar) —— */

@media screen and (max-width: 1023px) {
  .cafeleo-header .header_inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .cafeleo-header__drawer {
    display: block;
    box-sizing: border-box;
    width: calc(100% + (2 * var(--cafeleo-page-inset-x)));
    max-width: none;
    margin-inline: calc(-1 * var(--cafeleo-page-inset-x));
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(24, 24, 24, 0.96);
    backdrop-filter: blur(8px);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease;
  }

  .cafeleo-header__drawer.is-open {
    display: flex;
    flex-direction: column;
    max-height: min(85vh, 520px);
    opacity: 1;
    pointer-events: auto;
    border-bottom: 1px solid var(--cafeleo-secondary);
  }

  .cafeleo-header__drawer:not(.is-open) .cafeleo-header__drawer-nav,
  .cafeleo-header__drawer:not(.is-open) .cafeleo-header__drawer-lang-row {
    visibility: hidden;
  }

  .cafeleo-header__drawer-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
  }

  .cafeleo-header__drawer-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: clamp(0.35rem, 1.1vw, 0.75rem) clamp(0.5rem, 1.5vw, 1rem);
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 0.5rem;
    max-width: 100%;
  }

  .cafeleo-header__drawer-list > li {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .cafeleo-header__drawer-list a {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
    text-decoration: none;
    padding: 4px 2px;
    white-space: nowrap;
  }

  .cafeleo-header__drawer-list a:hover,
  .cafeleo-header__drawer-list a:focus-visible {
    color: var(--cafeleo-secondary);
  }

  .cafeleo-header__drawer-list .is-active a {
    color: var(--cafeleo-primary);
  }

  /* Lang row — second row, smaller type */
  .cafeleo-header__drawer-lang-row {
    display: none;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.65rem 16px 1rem;
    box-sizing: border-box;
  }

  .cafeleo-header__drawer.is-open .cafeleo-header__drawer-lang-row {
    display: flex;
  }

  .cafeleo-header__drawer-lang-row .lang_switcher_drawer {
    width: 100%;
  }

  .cafeleo-header__drawer-lang-row .lang_switcher_drawer ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 2vw, 0.85rem);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .cafeleo-header__drawer-lang-row .lang_switcher_drawer a,
  .cafeleo-header__drawer-lang-row .lang_switcher_drawer .lang_current {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }

  .cafeleo-header__drawer-lang-row .lang_switcher_drawer a:hover,
  .cafeleo-header__drawer-lang-row .lang_switcher_drawer a:focus-visible {
    color: var(--cafeleo-secondary);
  }

  .cafeleo-header__drawer-lang-row .lang_switcher_drawer .lang_current {
    color: var(--cafeleo-primary);
    cursor: default;
  }

  /* Page scrolls while drawer is open; scroll dismisses menu */
  body.menu_opened {
    overflow: auto !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
  }

  /* Burger → X while open (no full-page backdrop) */
  body.menu_opened .cafeleo-header.header::before {
    height: 0 !important;
    opacity: 0 !important;
  }
}

@media screen and (min-width: 1024px) {
  .cafeleo-header__drawer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cafeleo-header__drawer {
    transition: none;
  }
}

/* Language switcher — mobile slide menu */
.lang_switcher ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.lang_switcher a,
.lang_switcher .lang_current {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.lang_switcher .lang_current {
  color: var(--cafeleo-primary);
}

.menu_block .lang_switcher_menu {
  margin-top: 0;
}

@media screen and (min-width: 1024px) {
  .lang_switcher_menu {
    display: none;
  }
}

.footer_lockup {
  font-weight: 600;
}

/* Footer middle — two columns between marquee rails (info + map) */
.footer_top .page_container.cafeleo-footer__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding-block: var(--cafeleo-page-inset-y);
}

.cafeleo-footer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(18px, 2.8vh, 32px);
  min-width: 0;
  min-height: 100%;
  text-align: start;
}

.cafeleo-footer__info .logo_block {
  flex: 0 0 auto;
  margin: 0 !important;
  max-width: none !important;
  padding-bottom: 0 !important;
  align-self: start;
}

.cafeleo-footer__info .logo_block img {
  height: clamp(88px, 14vh, 128px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cafeleo-footer__contacts {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  flex-flow: column nowrap !important;
  align-items: flex-start !important;
  align-self: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: none;
  text-align: start;
}

.footer .contacts_list.cafeleo-footer__contacts {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.footer .contacts_list.cafeleo-footer__contacts li {
  margin-right: 0 !important;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: inherit;
}

.cafeleo-footer__contacts :is(a, span) {
  display: block;
  width: auto;
  max-width: 100%;
  text-align: inherit;
  white-space: normal;
}

.cafeleo-footer__contacts a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  text-align: left;
  align-self: flex-start;
}

.cafeleo-footer__contacts :is(a, span)::before {
  display: none !important;
  content: none !important;
}

.cafeleo-footer__instagram span {
  display: inline;
  width: auto;
  max-width: 100%;
}

.cafeleo-footer__instagram-handle {
  display: inline !important;
  width: auto !important;
  direction: ltr;
  unicode-bidi: isolate;
  color: #ccc;
  text-decoration: none;
}

.web .cafeleo-footer__instagram-handle:hover,
.touch .cafeleo-footer__instagram-handle:active {
  color: var(--cafeleo-secondary);
}

html[dir="ltr"] .cafeleo-footer__info,
html[dir="ltr"] .cafeleo-footer__contacts {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .cafeleo-footer__info,
html[dir="rtl"] .cafeleo-footer__contacts,
html[lang="fa"] .cafeleo-footer__info,
html[lang="fa"] .cafeleo-footer__contacts {
  direction: rtl;
  text-align: right;
  align-items: flex-start;
}

html[dir="rtl"] .footer .contacts_list.cafeleo-footer__contacts,
html[lang="fa"] .footer .contacts_list.cafeleo-footer__contacts {
  align-items: flex-start !important;
}

html[dir="rtl"] .cafeleo-footer__info .logo_block,
html[lang="fa"] .cafeleo-footer__info .logo_block {
  align-self: flex-start;
}

html[dir="rtl"] .cafeleo-footer__contacts a[href^="tel:"],
html[lang="fa"] .cafeleo-footer__contacts a[href^="tel:"] {
  align-self: flex-start;
}

.cafeleo-footer__contacts li {
  margin: 0 !important;
  padding: 0 !important;
}

.cafeleo-footer__contacts li:not(:first-child) {
  padding-top: clamp(6px, 1vh, 10px) !important;
}

.cafeleo-footer__contacts :is(a, span) {
  font-size: clamp(13px, 1.35vw, 16px) !important;
  line-height: 1.45 !important;
  color: #ccc;
}

.cafeleo-footer__contacts a:hover {
  color: var(--cafeleo-secondary);
}

.cafeleo-footer__map {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
}

.cafeleo-footer__map-link {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #242424;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cafeleo-footer__map-link:hover,
.cafeleo-footer__map-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.cafeleo-footer__map-link:focus-visible {
  outline: 2px solid var(--cafeleo-primary);
  outline-offset: 3px;
}

.cafeleo-footer__map-stack {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.cafeleo-footer__map-stack .cafeleo-footer__map-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.cafeleo-footer__map-stack .cafeleo-footer__map-image--color-spot {
  filter: none;
  clip-path: circle(9% at 50% 57%);
  pointer-events: none;
}

.cafeleo-footer__map-link:hover .cafeleo-footer__map-stack .cafeleo-footer__map-image:not(.cafeleo-footer__map-image--color-spot),
.cafeleo-footer__map-link:focus-visible .cafeleo-footer__map-stack .cafeleo-footer__map-image:not(.cafeleo-footer__map-image--color-spot) {
  filter: grayscale(100%);
}

.cafeleo-footer__map-card {
  position: absolute;
  left: 50%;
  top: 49%;
  bottom: auto;
  width: min(58%, 240px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.cafeleo-footer__map-cta {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--cafeleo-font-body, montserrat-medium, sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #181818;
  background: var(--cafeleo-secondary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 1023px) {
  .footer_top .page_container.cafeleo-footer__grid {
    grid-template-columns: 1fr;
  }

  .cafeleo-footer__map {
    max-width: 520px;
    height: auto;
    min-height: clamp(180px, 32vh, 280px);
  }

  .cafeleo-footer-zone .cafeleo-footer__map-link {
    height: 100%;
    min-height: clamp(180px, 32vh, 280px);
  }
}

@media screen and (max-width: 767px) {
  .cafeleo-footer__map {
    max-width: none;
  }

  .cafeleo-footer__map-card {
    width: min(46%, 150px);
    max-width: 150px;
  }
}

@media screen and (max-width: 479px) {
  .cafeleo-footer__map-card {
    width: min(42%, 118px);
    max-width: 118px;
    top: 47%;
  }
}

/* Footer zone — ticker + footer fill viewport below sticky header */
.cafeleo-footer-zone {
  --cafeleo-footer-visible-height: calc(100dvh - var(--cafeleo-header-height));
  min-height: var(--cafeleo-footer-visible-height);
  min-height: calc(100svh - var(--cafeleo-header-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: var(--cafeleo-header-height);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y proximity;
  }
}

.cafeleo-footer-zone > .footer {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cafeleo-footer-zone > .footer .footer_top {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cafeleo-footer-zone .footer_top .page_container.cafeleo-footer__grid {
  flex: 1 1 auto;
  min-height: 0;
}

.product_listing {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Footer zone — compact vertical rhythm inside full-viewport shell */
.content_tiker {
  margin-block: clamp(12px, 2.5vh, 28px) clamp(10px, 1.8vh, 16px) !important;
  margin-inline: -8px !important;
  padding-block: clamp(6px, 1.2vh, 12px) !important;
}

.content_tiker li {
  font-size: clamp(1.75rem, 3.8vw, 3rem) !important;
  line-height: 1.12 !important;
}

.content_tiker .icon_block {
  width: auto !important;
  margin-inline: 8px !important;
  padding: 0 4px !important;
}

.content_tiker .icon_block img {
  max-height: clamp(28px, 4.5vh, 40px) !important;
}

.footer .logo_block {
  margin-right: clamp(12px, 2vw, 20px) !important;
}

.footer .logo_block img {
  height: clamp(36px, 5.5vh, 48px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cafeleo-footer-zone .cafeleo-footer__info .logo_block img {
  height: clamp(88px, 14vh, 128px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.contacts_list li:not(:first-child) {
  padding-top: 4px !important;
}

.contacts_list li {
  margin-right: 12px !important;
}

.cafeleo-footer-zone .cafeleo-footer__map-stack,
.cafeleo-footer-zone .cafeleo-footer__map-stack .cafeleo-footer__map-image {
  max-height: none !important;
  aspect-ratio: auto !important;
}

.cafeleo-footer__map-cta {
  font-size: 10px;
  padding: 5px 9px;
  top: 8px;
  inset-inline-end: 8px;
}

.footer_slogan {
  height: clamp(36px, 5.5vh, 48px) !important;
}

.footer_slogan li {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem) !important;
  line-height: 1.15 !important;
}

.footer_slogan .icon_block {
  margin-inline: 10px !important;
}

.footer_slogan .icon_block img {
  max-height: clamp(18px, 2.8vh, 26px) !important;
}

.footer_bottom {
  padding-block: clamp(10px, 1.6vh, 16px) !important;
  font-size: clamp(11px, 1.1vw, 13px) !important;
  line-height: 1.3 !important;
}

.cafeleo-footer__bottom {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 !important;
  gap: clamp(6px, 1vh, 10px);
}

.cafeleo-footer__bottom .copyrights {
  padding: 0 !important;
  width: 100%;
  text-align: center;
}

.cafeleo-footer__credit {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  font-family: var(--cafeleo-font-body, montserrat-light, sans-serif);
  white-space: normal;
}

.cafeleo-footer__credit a {
  color: #fff;
  text-decoration: none;
}

.web .cafeleo-footer__credit a:hover,
.touch .cafeleo-footer__credit a:active {
  color: var(--cafeleo-secondary);
}

@media screen and (min-width: 768px) {
  .product_section .product_list {
    padding-bottom: 8px !important;
  }
}

@media screen and (max-width: 1023px) {
  .footer_top .page_container.cafeleo-footer__grid {
    align-items: start;
  }

  .cafeleo-footer__map-stack {
    max-height: clamp(180px, 32vh, 280px);
  }
}

@media screen and (max-width: 767px) {
  .content_tiker li {
    font-size: clamp(1.5rem, 7vw, 2.25rem) !important;
  }

  .cafeleo-footer__info {
    gap: 16px;
  }

  .cafeleo-footer__info .logo_block img {
    height: clamp(72px, 16vw, 96px) !important;
  }
}

/* About videos — 575px tall frame, 20px radius */
.about_section .images_list .list_inner {
  gap: 12px;
}

.about_section .images_list video,
.about_section .images_list .cafeleo-about__video {
  display: block;
  width: auto;
  height: 575px;
  max-height: 75vh;
  margin-right: 0;
  border-radius: 20px;
  object-fit: cover;
  background: #181818;
  flex-shrink: 0;
  opacity: 1;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media screen and (min-width: 1024px) and (max-width: 1365px) {
  .about_section .images_list .list_inner {
    gap: 20px;
  }

  .about_section .images_list video {
    margin-right: 0;
  }
}

@media screen and (max-width: 1023px) {
  .about_section .images_list .list_inner {
    gap: 12px;
    scroll-padding-inline: 20px;
  }

  .about_section .images_list .list_inner video {
    margin-right: 0;
  }
}

/* Product grid — equal columns at every breakpoint */
.product_section .product_list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 0 !important;
  padding: 0 0 40px !important;
  flex-wrap: unset !important;
  overflow: visible !important;
}

.product_section .product_list > li.cafeleo-product-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: none !important;
  flex: none !important;
  width: auto !important;
  padding: 0 !important;
  min-width: 0;
}

.product_section .product_list .product_block {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.product_section .product_list .product_image {
  width: 100%;
  height: clamp(220px, 52vw, 340px) !important;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

.product_section .product_list .product_image picture,
.product_section .product_list .product_image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 2;
}

.product_section .product_list .product_name {
  position: relative;
  height: auto !important;
  min-height: 2.75em;
  max-height: 4em;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 8px 4px;
  font-size: clamp(16px, 4.2vw, 22px) !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  align-items: flex-start !important;
}

@media screen and (min-width: 768px) {
  .product_section .product_list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
    padding: 0 0 50px !important;
  }

  .product_section .product_list .product_image {
    height: 340px !important;
  }

  .product_section .product_list .product_name {
    min-height: 3em;
    padding: 0 10px 4px;
    font-size: clamp(18px, 1.5vw, 28px) !important;
  }
}

@media screen and (min-width: 1200px) {
  .product_section .product_list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .product_section .product_list .product_image {
    height: 380px !important;
  }
}

@media screen and (min-width: 1680px) {
  .product_section .product_list .product_image {
    height: 420px !important;
  }
}

/* E-commerce row under product cards */
.cafeleo-product-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cafeleo-product_commerce,
.cafeleo-popup_commerce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-top: 6px;
  padding: 0 6px;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

.cafeleo-popup_commerce {
  margin-top: 24px;
  justify-content: center;
}

.cafeleo-product_price {
  font-family: var(--cafeleo-font-body, montserrat-medium, montserratarm, sans-serif);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cafeleo-secondary);
}

.cafeleo-add-to-cart-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cafeleo-add-to-cart-btn:hover {
  filter: brightness(1.05);
}

html[dir="rtl"] .product_section .product_list .product_name {
  text-align: right;
}

html[dir="rtl"] .cafeleo-product_commerce {
  direction: rtl;
}

@media screen and (max-width: 575px) {
  .cafeleo-product_commerce {
    flex-direction: column;
    align-items: stretch;
  }

  .cafeleo-add-to-cart-btn {
    width: 100%;
    text-align: center;
  }
}

/* —— Header icon buttons (cart + menu) —— */
.cafeleo-cart-btn,
.cafeleo-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(var(--cafeleo-primary-rgb), 0.12);
  color: var(--cafeleo-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cafeleo-cart-btn:hover,
.cafeleo-menu-btn:hover {
  background: rgba(var(--cafeleo-primary-rgb), 0.22);
}

.cafeleo-menu-btn__icon {
  display: block;
}

.cafeleo-menu-btn__line {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.cafeleo-menu-btn[aria-expanded="true"] .cafeleo-menu-btn__line--top {
  transform: translateY(5px) rotate(45deg);
}

.cafeleo-menu-btn[aria-expanded="true"] .cafeleo-menu-btn__line--mid {
  opacity: 0;
}

.cafeleo-menu-btn[aria-expanded="true"] .cafeleo-menu-btn__line--bot {
  transform: translateY(-5px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .cafeleo-menu-btn__line {
    transition: none;
  }
}

.cafeleo-cart-btn__badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cafeleo-primary);
  color: #fff;
  font-family: var(--cafeleo-font-body, montserrat-medium, montserratarm, sans-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}

/* —— Quantity control (+ / −) —— */
.cafeleo-qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 108px;
  height: 40px;
  border-radius: 999px;
  background: rgba(var(--cafeleo-primary-rgb), 0.12);
  border: 1px solid rgba(var(--cafeleo-primary-rgb), 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.cafeleo-qty-control__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--cafeleo-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.cafeleo-qty-control__btn:hover {
  background: rgba(var(--cafeleo-primary-rgb), 0.16);
}

.cafeleo-qty-control__count {
  min-width: 32px;
  padding: 0 4px;
  font-family: var(--cafeleo-font-body, montserrat-medium, montserratarm, sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--cafeleo-primary);
  text-align: center;
}

.cafeleo-qty-control--compact {
  min-width: 96px;
  height: 36px;
}

.cafeleo-qty-control--compact .cafeleo-qty-control__btn {
  width: 32px;
  font-size: 18px;
}

@media screen and (max-width: 575px) {
  .cafeleo-qty-control {
    width: 100%;
  }
}

/* —— Cart checkout popup —— */
/* Cart popup shell — mirrors product popup layout */
.cart_popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 1001;
  opacity: 0;
  transition: height 0s 0.75s ease-out, opacity 0.75s ease-out;
}

.cart_popup.showed {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  opacity: 1;
  transition: height 0s 0s, opacity 0.75s ease-out;
}

.cart_popup .popup_inner {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.cart_popup .popup_container {
  background: #181818;
  width: 100%;
  position: relative;
  border-radius: 48px;
  cursor: default;
}

.cart_popup .popup_close {
  position: absolute;
  z-index: 10;
  top: 28px;
  right: 48px;
  display: flex;
  align-items: center;
  font-size: 150%;
  line-height: 18px;
  color: #fff;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

html[dir="rtl"] .cart_popup .popup_close {
  right: auto;
  left: 48px;
}

.cart_popup .popup_container.cafeleo-cart-popup {
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cafeleo-cart-popup__title {
  margin: 0 0 16px;
  padding-inline: 4px;
  flex-shrink: 0;
  font-family: var(--cafeleo-font-display, braind-yerevan, sans-serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cafeleo-secondary);
  text-align: center;
}

.cafeleo-cart-popup__empty {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.cafeleo-cart-lines {
  list-style: none;
  margin: 0 0 20px;
  padding-block: 8px 14px;
  padding-inline: 4px 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(52vh, 420px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-padding-block: 8px;
  scroll-padding-inline: 4px;
}

.cafeleo-cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cafeleo-cart-line__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.cafeleo-cart-line__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cafeleo-cart-line__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cafeleo-cart-line__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cafeleo-cart-line__name {
  font-family: var(--cafeleo-font-body, montserrat-medium, montserratarm, sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.cafeleo-cart-line__total {
  font-family: var(--cafeleo-font-body, montserrat-medium, montserratarm, sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cafeleo-primary);
  white-space: nowrap;
}

.cafeleo-cart-line__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cafeleo-cart-line__unit {
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.58);
}

.cafeleo-cart-checkout-card {
  padding: 18px 18px 16px;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(var(--cafeleo-primary-rgb), 0.14) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(var(--cafeleo-primary-rgb), 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.cafeleo-cart-checkout-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cafeleo-cart-checkout-card__row--total {
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cafeleo-cart-checkout-card__label {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.cafeleo-cart-checkout-card__value {
  font-family: var(--cafeleo-font-body, montserrat-medium, montserratarm, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.cafeleo-cart-checkout-card__price {
  font-size: clamp(18px, 3vw, 24px) !important;
}

.cafeleo-cart-checkout-btn {
  width: 100%;
  min-height: 48px !important;
  height: auto !important;
  padding: 14px 20px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.cafeleo-cart-checkout-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.web .cart_popup .popup_close:hover,
.touch .cart_popup .popup_close:active {
  color: var(--cafeleo-primary) !important;
}

html[dir="rtl"] .cafeleo-cart-line__head,
html[dir="rtl"] .cafeleo-cart-line__meta,
html[dir="rtl"] .cafeleo-cart-checkout-card__row {
  direction: rtl;
}

html[dir="rtl"] .cart_popup .popup_container.cafeleo-cart-popup {
  text-align: right;
}

html[dir="rtl"] .cafeleo-cart-popup__title,
html[dir="rtl"] .cafeleo-cart-popup__empty,
html[dir="rtl"] .cafeleo-cart-checkout-note {
  text-align: center;
}

/* Lock page scroll on iOS while a modal is open; allow pan inside scroll regions */
body.popup_opened {
  overflow: hidden !important;
  touch-action: none;
}

body.popup_opened .cafeleo-ios-scroll {
  touch-action: pan-y;
}
