/* Глобальна палітра EVRYKA — світла база + акцент (синхронно з evryka-header-hero.css) */
:root {
  --bg-main: #f8f5f2;
  --bg-section: #f1ece7;
  --footer-bg: #3b3b3b;
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-text-muted: rgba(255, 255, 255, 0.72);
  --footer-text-soft: rgba(255, 255, 255, 0.55);
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-chip-bg: rgba(255, 255, 255, 0.1);
  --footer-chip-border: rgba(255, 255, 255, 0.18);
  /* Резерв (панелі за замовчуванням світлі; темний не використовуємо для кошика/чату) */
  --ev-panel-chrome: #635d5a;
  --surface-primary: #ffffff;
  --surface-secondary: #fdfcfb;
  --border-light: #e5e7eb;
  --border-soft: #eeeae6;
  --text-primary: #111111;
  --ev-price: #111;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent-main: #fb923c;
  --accent-hover: #f97316;
  /* Світліший відтінок для CTA «Купити» (hover), на відміну від темнішого --accent-hover для посилань */
  --accent-btn-hover: #fdba74;
  --accent-soft: #fed7aa;
  --icon-default: #6b7280;
  --icon-active: #fb923c;

  --ev-black: var(--text-primary);
  --ev-milk: var(--bg-main);
  --ev-text-on-accent: var(--text-primary);
  --ev-rgb: 17, 17, 17;
  --ev-shell-bg: var(--bg-main);
  --ev-bg-gradient: var(--bg-main);
  --ev-accent-gradient: var(--accent-main);
  --ev-surface: var(--surface-primary);
  --ev-surface-dark: var(--bg-section);
  --ev-surface-muted: var(--bg-section);
  --ev-surface-elevated: var(--surface-secondary);
  --ev-ink: var(--text-primary);
  --ev-muted: var(--text-secondary);
  --ev-muted-nav: var(--text-muted);
  --ev-line: var(--border-soft);
  --ev-line-strong: var(--border-light);
  --ev-accent: var(--accent-main);
  --ev-accent-hover: var(--accent-hover);
  --ev-accent-soft: var(--accent-soft);
  --ev-header-surface: var(--surface-primary);
  --ev-border-hair: var(--border-light);
  --ev-border-mid: var(--border-soft);
  --ev-heart: var(--accent-main);
  --ev-btn-dark: var(--bg-section);
  --ev-btn-dark-hover: var(--surface-secondary);
  --ev-gray: var(--text-secondary);
  --ev-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "PT Sans Caption", sans-serif;
}

/* ABSOLUTE LAST: catalog grid spacing parity on mobile */
@media (max-width: 640px) {
  .page-catalog {
    --catalog-gap-final: 12px;
  }

  .page-catalog .catalog-products-head {
    padding-left: var(--catalog-gap-final) !important;
    padding-right: var(--catalog-gap-final) !important;
    margin-bottom: var(--catalog-gap-final) !important;
  }

  .page-catalog .catalog-products-grid {
    padding-left: var(--catalog-gap-final) !important;
    padding-right: var(--catalog-gap-final) !important;
    padding-top: var(--catalog-gap-final) !important;
    padding-bottom: var(--catalog-gap-final) !important;
    gap: var(--catalog-gap-final) !important;
  }
}

/* Absolute last spacing lock for mobile catalog cards */
@media (max-width: 640px) {
  .page-catalog {
    --catalog-card-gap: 10px;
  }

  .page-catalog .catalog-shell {
    padding-left: var(--catalog-card-gap) !important;
    padding-right: var(--catalog-card-gap) !important;
  }

  .page-catalog .catalog-products-head {
    padding: 0 !important;
    margin: 0 0 var(--catalog-card-gap) 0 !important;
  }

  .page-catalog .catalog-products-grid {
    padding: 0 !important;
    gap: var(--catalog-card-gap) !important;
  }

  .page-catalog .catalog-products-grid .product {
    margin: 0 !important;
  }
}

/* Absolute last: remove outer catalog grid padding (green area) */
@media (max-width: 640px) {
  .page-catalog .catalog-shell,
  .page-catalog .catalog-main,
  .page-catalog .catalog-products-inner,
  .page-catalog .catalog-products-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-catalog .catalog-products-grid {
    padding: 0 !important;
    margin: 0 !important;
  }

  .page-catalog .catalog-products-head {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-catalog .catalog-filters[data-uflyout="panel"] {
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
}

/* Absolute last: no side offsets for catalog products container */
@media (max-width: 640px) {
  .page-catalog .container,
  .page-catalog .catalog-shell,
  .page-catalog .catalog-main,
  .page-catalog .catalog-products-inner,
  .page-catalog .catalog-products-section,
  .page-catalog .catalog-products-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

body {
  font-family: var(--ev-font);
  color: var(--ev-ink);
  margin: 0;
  padding-top: 0;
  min-height: 100vh;
  background: var(--ev-bg-gradient);
}

a {
  color: var(--ev-accent);
  margin-left: 0;
  text-decoration: none;
}

a:hover {
  color: var(--ev-accent-hover);
}

#search::placeholder {
  color: var(--ev-muted);
  font-weight: 600;
}
#search {
  width: 300px;
  padding: 10px;
  color: var(--text-primary);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-primary);
}
.print {
  background: var(--bg-section);
  color: var(--text-primary);
  padding: 40px;
  text-align: center;
}


.product-card {
  cursor: pointer;
}

.product-card button {
  margin-top: 10px;
}

.product-image img {
  width: 400px;
  border-radius: 10px;
}

.product-info h1,
.product-info h2 {
  font-size: 28px;
}


.price {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
  color: var(--ev-price);
}

.buy-block {
  display: flex;
  gap: 10px;
}

.buy-block input {
  width: 60px;
  padding: 5px;
}



/* галерея */
.gallery {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbs img {
  width: 60px;
  cursor: pointer;
  border-radius: 5px;
}

.main-image img {
  width: 500px;   
  max-width: 100%;
  border-radius: 10px;
}


.price {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0;
}

/* кількість */





.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-page {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  align-items: flex-start;
}

/* 🔥 галерея */
.product-gallery {
  display: flex;
  gap: 15px;
  position: sticky;
  top: 20px;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: 0.2s;
}

.thumbnails img:hover {
  border: 2px solid var(--ev-accent);
}

/* 🔥 головне фото */
.main-image img {
  width: 520px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 🔥 права колонка */
.product-info {
  max-width: 420px;
}

/* 🔥 назва */
.product-info h1,
.product-info h2 {
  font-size: 24px;
  line-height: 1.4;
}

/* 🔥 ціна */
.price {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0;
}

/* 🔥 блок покупки */



/* Первинна кнопка дії (Купити тощо) */
.button,
.buy-btn {
  height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  background: var(--accent-main);
  color: var(--ev-text-on-accent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
.buy-btn:hover {
  transform: translateY(-1px);
  background: var(--accent-btn-hover);
}

/* 🔥 header */


.header input {
  width: 300px;
  padding: 8px;
  border-radius: 6px;
  border: none;
}


/* 🔥 кнопка */

.products {
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 🔥 контейнер */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}


/* 🔥 overlay */


/* 🔥 sidebar — «плаваюча» картка з відступами від країв вікна */
/* Верх збігається з верхом плаваючої шапки: кошик накладається на хедер, не заходить вище нього */
.cart-sidebar {
  position: fixed;
  /* Відступ справа = як зверху (хедер), не менше за safe-area */
  --ev-cart-side-inset: max(
    var(--ev-header-bar-top, 16px),
    env(safe-area-inset-right, 0px)
  );
  top: var(--ev-header-bar-top, max(16px, env(safe-area-inset-top, 0px)));
  right: var(--ev-cart-side-inset);
  /* Та сама відстань від краю, що й зверху (хедер); не менше за safe-area знизу */
  bottom: max(
    var(--ev-header-bar-top, 16px),
    env(safe-area-inset-bottom, 0px)
  );
  width: min(
    350px,
    calc(100vw - var(--ev-header-bar-top, 16px) - var(--ev-cart-side-inset))
  );

  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  /* Той самий радіус, що й у плаваючої шапки (.header--home-detached) */
  border-radius: var(--ev-header-bar-radius, 20px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.06);

  transform: translateX(calc(100% + var(--ev-cart-side-inset)));
  transition: transform 0.3s ease;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--ev-ink);
}

/* 🔥 активний */
.cart-sidebar.active {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.4);
  z-index: 998;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .page-catalog .catalog-filters,
  .page-cabinet .catalog-filters.cabinet-sidebar,
  .mobile-more-sheet__panel,
  .neo-drawer,
  .neo-drawer--filters,
  .neo-drawer--cabinet,
  .neo-drawer--more {
    border-radius: 18px !important;
    border: 1px solid var(--ev-line) !important;
    background: linear-gradient(180deg, var(--surface-primary) 0%, var(--bg-section) 100%) !important;
    box-shadow: 0 20px 48px rgba(17, 17, 16, 0.18), 0 8px 20px rgba(17, 17, 16, 0.1) !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  .page-catalog .catalog-filters-title,
  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title,
  .mobile-more-sheet__head,
  .neo-drawer__title,
  .neo-drawer__title-row {
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .page-catalog .catalog-filters-close,
  .page-cabinet .cabinet-menu-close,
  .mobile-more-sheet__close,
  .neo-drawer__close {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    background: #f8fafc !important;
    color: #111827 !important;
    font-size: 19px !important;
  }
  .cart-sidebar {
    top: max(8px, env(safe-area-inset-top, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    width: min(360px, calc(100vw - 16px - env(safe-area-inset-right, 0px)));
    z-index: 1302;
  }

  .cart-overlay {
    z-index: 1301;
  }
}

/* Final lock: catalog mobile spacing equals header side inset */
@media (max-width: 640px) {
  .page-catalog {
    --catalog-mobile-gutter: 12px;
  }

  .page-catalog .catalog-products-head {
    padding-left: var(--catalog-mobile-gutter) !important;
    padding-right: var(--catalog-mobile-gutter) !important;
    margin-bottom: var(--catalog-mobile-gutter) !important;
  }

  .page-catalog .catalog-products-grid {
    padding: var(--catalog-mobile-gutter) !important;
    gap: var(--catalog-mobile-gutter) !important;
  }
}

/* Final mobile catalog grid spacing (edges equal to inner gap) */
@media (max-width: 640px) {
  .page-catalog .catalog-products-head,
  .page-catalog .catalog-products-grid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .page-catalog .catalog-products-head {
    margin-bottom: 10px !important;
  }

  .page-catalog .catalog-products-grid {
    gap: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .page-catalog .catalog-products-grid .product {
    margin: 0 !important;
  }
}

/* Final guard: mobile filters/menu visibility and open state */
@media (max-width: 768px) {
  .page-catalog #catalogFiltersOpenBtn,
  .page-cabinet #cabinetMenuOpenBtn,
  .page-catalog .catalog-filters-open-btn,
  .page-cabinet .cabinet-menu-open-btn,
  .page-catalog [data-uflyout-trigger],
  .page-cabinet [data-uflyout-trigger] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .page-catalog .catalog-filters[data-uflyout="panel"],
  .page-cabinet .catalog-filters.cabinet-sidebar[data-uflyout="panel"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.catalog-filters-open .page-catalog .catalog-filters[data-uflyout="panel"] {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  /* While drawer is open, the trigger should look disabled under dimmed background */
  body.catalog-filters-open .page-catalog #catalogFiltersOpenBtn,
  body.catalog-filters-open .page-catalog .catalog-filters-open-btn {
    pointer-events: none !important;
    cursor: default !important;
    background: #e6ebf2 !important;
    color: #8d96a4 !important;
    border-color: #c8d1dd !important;
    box-shadow: none !important;
    filter: grayscale(1) saturate(0.15) !important;
    opacity: 0.72 !important;
    transform: none !important;
  }

  body.cabinet-menu-open .page-cabinet .catalog-filters.cabinet-sidebar[data-uflyout="panel"] {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .page-catalog .catalog-filters-overlay[data-uflyout-overlay],
  .page-cabinet .cabinet-menu-overlay[data-uflyout-overlay] {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.catalog-filters-open .page-catalog .catalog-filters-overlay[data-uflyout-overlay],
  body.cabinet-menu-open .page-cabinet .cabinet-menu-overlay[data-uflyout-overlay] {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Final mobile catalog filters tuning */
@media (max-width: 768px) {
  .page-catalog .catalog-products-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .page-catalog .catalog-products-head h2 {
    min-width: 0;
    font-size: 20px !important;
    line-height: 1.15 !important;
  }

  .page-catalog .catalog-filters-open-btn,
  .page-catalog .neo-drawer-trigger {
    min-height: 42px !important;
    padding: 9px 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .page-catalog .catalog-filters[data-uflyout="panel"] {
    left: calc(10px + env(safe-area-inset-left, 0px)) !important;
    right: calc(10px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: min(74vh, 560px) !important;
    border-radius: 18px !important;
    padding: 14px !important;
    gap: 10px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 252, 0.98)) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 24px 56px rgba(2, 8, 23, 0.26), 0 8px 22px rgba(15, 23, 42, 0.12) !important;
  }

  .page-catalog .catalog-filters .neo-drawer__title-row {
    margin-bottom: 2px !important;
  }

  .page-catalog .catalog-filters-title {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .page-catalog .catalog-filter-block {
    margin-bottom: 12px !important;
  }

  .page-catalog .catalog-filter-label {
    margin-bottom: 7px !important;
    color: rgba(15, 23, 42, 0.72) !important;
    font-size: 12px !important;
    letter-spacing: 0.04em !important;
  }

  .page-catalog .catalog-filter-input,
  .page-catalog .catalog-select-trigger,
  .page-catalog .catalog-reset-btn {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .page-catalog .catalog-price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    display: grid !important;
    gap: 8px !important;
  }

  .page-catalog .catalog-price-row .catalog-price-dash {
    display: none !important;
  }

  .page-catalog .catalog-filters-overlay[data-uflyout-overlay] {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

@media (max-width: 420px) {
  .page-catalog .catalog-filters[data-uflyout="panel"] {
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 12px !important;
  }

  .page-catalog .catalog-products-head h2 {
    font-size: 18px !important;
  }

  .page-catalog .catalog-filters-open-btn,
  .page-catalog .neo-drawer-trigger {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}

/* Final mobile cabinet menu tuning */
@media (max-width: 768px) {
  .page-cabinet .cabinet-page-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .page-cabinet .cabinet-page-title {
    min-width: 0;
  }

  .page-cabinet .cabinet-menu-open-btn,
  .page-cabinet .neo-drawer-trigger {
    min-height: 42px !important;
    padding: 9px 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar[data-uflyout="panel"] {
    left: calc(10px + env(safe-area-inset-left, 0px)) !important;
    right: calc(10px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: min(74vh, 560px) !important;
    border-radius: 18px !important;
    padding: 14px !important;
    gap: 10px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 252, 0.98)) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 24px 56px rgba(2, 8, 23, 0.26), 0 8px 22px rgba(15, 23, 42, 0.12) !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .neo-drawer__title-row {
    margin-bottom: 2px !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 650 !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn + .cabinet-nav-btn {
    margin-top: 8px !important;
  }

  .page-cabinet .cabinet-menu-overlay[data-uflyout-overlay] {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

@media (max-width: 420px) {
  .page-cabinet .catalog-filters.cabinet-sidebar[data-uflyout="panel"] {
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 12px !important;
  }

  .page-cabinet .cabinet-menu-open-btn,
  .page-cabinet .neo-drawer-trigger {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}

/* Shared homepage footer layout for all pages */
footer {
  background: var(--dark, #1a1917);
  color: #fff;
  padding: 4rem 5rem 2rem;
  margin-top: 6rem;
}

footer > .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-brand-img {
  width: 150px;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact:hover {
  color: var(--orange);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  footer > .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  footer > .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================================
   Global micro-interactions (all pages)
   ========================================================= */
@keyframes evSoftFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

@keyframes evIconPulse {
  0% { transform: scale(1); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes evUnderlineSlide {
  0% { transform: scaleX(0); opacity: 0.45; }
  100% { transform: scaleX(1); opacity: 1; }
}

.btn-primary,
.btn-ghost,
.checkout-btn,
.clear-btn,
.add-btn,
.catalog-add-btn,
.back-btn,
.cabinet-nav-btn,
.auth-submit-btn,
.auth-link-btn,
.chat-widget-send,
.print3d-btn-primary {
  transition:
    transform 0.2s ease,
    box-shadow 0.24s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary:hover,
.btn-ghost:hover,
.checkout-btn:hover,
.clear-btn:hover,
.add-btn:hover,
.catalog-add-btn:hover,
.back-btn:hover,
.cabinet-nav-btn:hover,
.auth-submit-btn:hover,
.auth-link-btn:hover,
.chat-widget-send:hover,
.print3d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 17, 16, 0.14);
}

.product-card,
.catalog-product-card,
.cat-card,
.testimonial-card,
.how-item,
.print-step,
.cabinet-card {
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s ease,
    border-color 0.22s ease;
}

.product-card:hover,
.catalog-product-card:hover,
.cat-card:hover,
.testimonial-card:hover,
.how-item:hover,
.how-item.is-in-view,
.print-step:hover,
.print-step.is-in-view,
.cabinet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17, 17, 16, 0.12);
}

.product-img-wrap img,
.catalog-product-img-wrap img,
.hero-product-img img,
.footer-brand-img {
  transition: transform 0.35s ease, filter 0.3s ease;
}

.product-card:hover .product-img-wrap img,
.catalog-product-card:hover .catalog-product-img-wrap img,
.hero-product-img:hover img {
  transform: scale(1.03);
  filter: saturate(1.06);
}

.auth-icon-btn,
.product-fav,
.catalog-product-fav,
.chat-widget-toggle,
.scroll-to-top-btn {
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.auth-icon-btn:hover,
.product-fav:hover,
.catalog-product-fav:hover,
.chat-widget-toggle:hover,
.scroll-to-top-btn:hover {
  animation: evIconPulse 0.28s ease;
  filter: brightness(1.05);
}

.footer-link,
.section-link,
.breadcrumbs a {
  position: relative;
  transition: color 0.2s ease;
}

.footer-link::after,
.section-link::after,
.breadcrumbs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.footer-link:hover::after,
.section-link:hover::after,
.breadcrumbs a:hover::after {
  animation: evUnderlineSlide 0.24s ease forwards;
}

input,
textarea,
select,
.catalog-select-trigger {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.18s ease;
}

input:hover,
textarea:hover,
select:hover,
.catalog-select-trigger:hover {
  transform: translateY(-1px);
}

input:focus,
textarea:focus,
select:focus,
.catalog-select-trigger:focus,
.catalog-select-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 122, 26, 0.18);
}

@media (hover: hover) {
  .trust-item:hover,
  .payment-badge:hover,
  .footer-contact:hover {
    animation: evSoftFloat 0.2s ease forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 🔥 items — скрол у межах панелі кошика / обраних */
#cartItems,
#favoritesItems {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

#favoritesItems .cart-item {
  cursor: pointer;
}

.cart-sidebar #cartItems > p,
.cart-sidebar #favoritesItems > p {
  margin: 16px 8px;
  color: var(--ev-muted);
  font-size: 14px;
}

.cart-sidebar .cart-head-float {
  box-shadow: none;
}

/* Малий контейнер під текстом рядка — молочний фон */
.cart-sidebar .cart-item {
  border-bottom: none;
  margin-bottom: 8px;
  /* Місце під кнопку закриття; відступи симетричні до лівого краю картки */
  padding: 14px 52px 14px 14px;
  background: var(--bg-section);
  border-radius: 12px;
}

.cart-sidebar .cart-info h4 {
  color: var(--ev-ink);
}

.cart-sidebar .cart-info p {
  color: var(--ev-ink);
}

.cart-sidebar .cart-info span {
  color: var(--ev-muted);
}

.cart-sidebar .remove-btn {
  background: var(--ev-surface-muted);
  color: var(--ev-ink);
}

.cart-sidebar .remove-btn:hover {
  background: var(--ev-btn-dark);
  color: var(--ev-ink);
  transform: scale(1.07);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(251, 146, 60, 0.22);
}

.cart-sidebar .remove-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cart-sidebar .cart-footer {
  background: transparent;
  border-top-color: var(--ev-border-hair);
}

.cart-sidebar .cart-total {
  color: var(--ev-ink);
}

.cart-sidebar .cart-total b {
  color: var(--ev-price);
}


/* 🔥 опис */
.desc {
  margin-top: 60px;

  background: #d6d6d6cc;
  border-radius: 16px;

  padding: 20px;

  font-size: 14px;
  line-height: 1.7;
  color: var(--ev-ink);

  box-shadow: 0 6px 20px rgba(169, 169, 169, 0.2);
}

/* 🔥 заголовки в описі */
.desc b {
  display: block;

  margin-top: 5px;
  margin-bottom: 8px;

  font-size: 15px;
  font-weight: 700;

  color: white;
}

.desc ul {
  padding-left: 35px;
  margin-bottom: 10px;
}

.desc li {
  margin-bottom: 6px;
}
/* 🔥 іконка галочки */
.desc::before {
  content: "";
}

.main-image img {
  width: 520px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.main-image img {
  width: 520px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 80px;
  font-weight: 700;
}


.categories {
  display: flex;
  gap: 40px;
  padding: 20px 80px;
  overflow-x: auto;
}

.cat {
  min-width: 120px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.2s;
}

.cat:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.product {
  --product-card-radius: 14px;
  --product-buy-btn-radius: 10px;
  --product-media-radius: 9px;
  box-sizing: border-box;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--product-card-radius);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);

  padding: 12px;

  display: flex;
  flex-direction: column;

  transition: all 0.25s ease;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.1);
}

/* картинка */
.product img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 🔥 квадрат */
  object-fit: cover;   /* 🔥 не розтягує, а обрізає */

  border-radius: var(--product-media-radius);
}

/* назва */
.product h3 {
  font-size: 16px;
  font-weight: 500;

  color: var(--text-primary);

  margin-bottom: 10px;

  min-height: 40px;
}

/* ціна */
.product .price {
  font-size: 20px;
  font-weight: 600;

  margin-bottom: 12px;

  color: var(--ev-price);
}

/* Кнопка «Купити» на картці — компактна (наслідує .buy-btn) */
.product .buy-btn {
  margin-top: auto;
}

.product .product-card-add-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

#products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 100px; /* 🔥 ВІДСТУПИ ЗЛІВА/СПРАВА */
}

.product-content {
  flex-grow: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.category-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Один зазор між усіма вкладками (без «фантомних» пробілів у розмітці) */
  gap: clamp(14px, 2vw, 20px);
  width: fit-content;
  max-width: 100%;
  margin: 15px auto 0;
  padding: 12px clamp(20px, 3.2vw, 32px);
  flex-wrap: wrap;
  box-sizing: border-box;
  /* Пробіли/переноси між <button> не стають вузькими flex-елементами */
  font-size: 0;

  background: var(--ev-surface);
  /* Як у плаваючої смуги шапки — не «пігулка» */
  border-radius: var(--ev-header-bar-radius, clamp(10px, 1.2vw, 14px));
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow:
    0 1px 0 rgba(17, 17, 17, 0.04),
    0 10px 36px rgba(0, 0, 0, 0.09),
    0 4px 14px rgba(0, 0, 0, 0.05);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  margin: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--ev-ink);

  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.25;

  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 3px;
  background: var(--ev-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.tab.active::after {
  transform: scaleX(1);
}

.category-tabs:hover .tab::after {
  transform: scaleX(0);
}

.category-tabs:hover .tab:hover::after {
  transform: scaleX(1);
}

.tab:focus-visible {
  outline: 2px solid var(--ev-ink);
  outline-offset: 2px;
}

.tab:focus-visible::after {
  transform: scaleX(1);
}

.category-tabs:hover .tab:focus-visible:not(:hover)::after {
  transform: scaleX(0);
}

/* Як у хедері: при наведенні на рядок інші пункти сіріють */
.category-tabs:hover .tab {
  color: var(--text-muted);
}

.category-tabs:hover .tab:hover {
  color: var(--ev-ink);
}

.tab.active {
  background: transparent;
  color: var(--ev-ink);
  font-weight: 700;
}

/* Головна: зазор банер → категорії (margin контейнера) = категорії → сітка */
.page-home .container > .category-tabs {
  margin: 0 auto var(--home-hero-to-content-gap, clamp(28px, 4vw, 52px));
  box-shadow:
    0 1px 0 rgba(17, 17, 17, 0.04),
    0 14px 44px rgba(0, 0, 0, 0.1),
    0 5px 16px rgba(0, 0, 0, 0.06);
}

.page-home .container > section.products {
  padding-top: 0;
  padding-bottom: 0;
}

.page-home .category-tabs {
  display: none !important;
}

.page-home .container > section.products #products {
  padding-top: 0;
  padding-bottom: 0;
}

.page-home .footer {
  margin-top: 0;
}

.products h2 {
  text-align: center;

  font-size: 28px;
  font-weight: 600;

  margin-bottom: 30px;
}
  

.hero-left h1 {
  font-size: 80px;
  margin: 10px 0;
}


/* бренд */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 100px;   /* 🔥 фіксуєш тільки висоту */
  width: auto;    /* 🔥 ширина сама підлаштується */
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
}

.hero-right p {
  font-size: 40px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 100px;
}

/* 🔥 логотип */
.hero-logo {
  max-width: 400px;   /* контролює розмір */
  width: 100%;
  height: auto;

  filter: contrast(1.1);
}

/* 🔥 слоган */
.slogan {
  font-size: 20px;
  font-weight: 600;
  color: #474747;     
  margin: 20px 16px
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  padding: 60px 0;
}

/* 🔥 права частина */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* 🔥 саме фото */
.hero-image {
  width: 100%;
  max-width: 400px;
  margin-right: 90px;
}

/* hero carousel (home) */
.hero-carousel {
  position: relative;
  padding: 0;
  margin: 0;
  background: var(--ev-shell-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Головна: банер окремим блоком — вужче за сторінку, відступи, заокруглення */
.home-banner-shell {
  max-width: 1480px;
  width: calc(100% - 40px);
  margin: 18px auto 36px;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.home-banner-shell .hero-carousel {
  margin: 0;
  border-bottom: none;
}

.hero-carousel-track {
  position: relative;
  min-height: 420px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  box-sizing: border-box;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
}

.hero-slide-text {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin: 0 0 12px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ev-ink);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ev-muted);
  margin: 0 0 24px;
}

.hero-cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--ev-accent-gradient);
  color: var(--ev-text-on-accent) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 0;
  transition: filter 0.2s ease, transform 0.2s;
}

.hero-cta:hover {
  filter: brightness(1.06);
}

.hero-slide-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative;
}

.hero-slide-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.hero-slide--tint .hero-slide-inner {
  position: relative;
  z-index: 1;
}

.hero-slide--tint .hero-slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 246, 244, 0.72);
  pointer-events: none;
}

.hero-carousel-prev,
.hero-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, border-color 0.2s;
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
  background: var(--surface-secondary);
}

.hero-carousel-prev {
  left: 16px;
}

.hero-carousel-next {
  right: 16px;
}

.hero-carousel-prev svg,
.hero-carousel-next svg {
  width: 22px;
  height: 22px;
  stroke: var(--ev-black);
  fill: none;
  stroke-width: 2;
}

.hero-carousel-prev svg path,
.hero-carousel-next svg path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.hero-carousel-dot.is-active {
  background: var(--ev-accent);
}

@media (max-width: 900px) {
  .hero-slide-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-slide-text {
    max-width: none;
  }

  .hero-carousel-prev {
    left: 8px;
  }

  .hero-carousel-next {
    right: 8px;
  }

  .home-banner-shell {
    width: calc(100% - 24px);
    margin: 14px auto 26px;
    border-radius: 16px;
  }

  .header {
    padding: 0 10px 6px;
    top: 8px;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px 10px 12px;
    gap: 10px 12px;
    min-height: 0;
    border-radius: 28px;
  }

  .header .header-logo {
    order: 1;
    grid-column: auto;
    justify-self: auto;
  }

  .header .header-utilities {
    order: 1;
    grid-column: auto;
    justify-self: auto;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header .header-nav {
    order: 2;
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .header .search-box {
    flex: 1 1 140px;
    max-width: min(100%, 260px);
  }
}
.logo img,
.header-logo-img {
  height: 42px;
  width: 42px;
  max-width: none;
  object-fit: contain;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header .logo {
  margin-left: 0;
}

.header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  padding: 0 18px 8px;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.header-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 10px 22px 10px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  min-height: 54px;
  width: 100%;
  box-sizing: border-box;
  background: var(--ev-header-surface);
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header .header-logo {
  grid-column: 1;
  justify-self: start;
  margin: 0;
}

.header .header-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.header-utilities {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px 14px;
  min-width: 0;
  flex-wrap: nowrap;
}

.header .search-box {
  flex: 0 1 200px;
  min-width: 0;
  max-width: 260px;
  margin: 0;
}

.header #search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background-color: rgba(255, 255, 255, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 18px 18px;
  font-weight: 400;
  font-size: 13px;
  color: var(--ev-black);
}

.header #search::placeholder {
  color: var(--ev-muted);
  font-weight: 400;
}

.header #search:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--ev-accent-soft);
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.25);
}

/* Хрестик очищення (type=search) — чорний, як текст поля */
#search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}

#search::-moz-search-clear-button {
  filter: brightness(0);
  opacity: 0.85;
  cursor: pointer;
}

.header #cartCount {
  background: var(--ev-accent);
  color: var(--ev-text-on-accent);
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  top: -4px;
  right: -6px;
}

.header .nav {
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 0;
}

.header-actions #authBtn {
  margin-right: 0;
}

.header .auth-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  color: var(--ev-black);
}

.header .auth-icon-btn:hover {
  background: rgba(17, 17, 17, 0.06);
  color: var(--ev-black);
}

.header .auth-icon-btn svg {
  width: 22px;
  height: 22px;
}

.header .auth-initials {
  color: var(--ev-black);
}

.header .cart-icon {
  width: 26px;
  height: 26px;
}

.header .cart:hover .cart-icon {
  transform: none;
  filter: none;
  opacity: 0.65;
}

/* Не display:none — інакше flex у шапці зсувається; місце залишаємо */
body.cart-open .header .header-actions .cart,
body.cart-open .header .cart {
  visibility: hidden !important;
  pointer-events: none !important;
}

.header #favoritesBtn {
  width: 40px;
  height: 40px;
}

.header #favoritesBtn .heart-icon path {
  stroke: var(--ev-heart);
}

.header #favoritesBtn:hover .heart-icon path {
  fill: var(--ev-heart);
  stroke: var(--ev-heart);
  opacity: 1;
}

.auth-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--ev-btn-dark);
  color: var(--ev-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-icon-btn:hover {
  background: var(--ev-btn-dark-hover);
  color: var(--ev-ink);
}
.auth-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.auth-initials {
  color: var(--ev-ink);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.favorite-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
  box-shadow: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.product .favorite-btn {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-top: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  transform: translate(-4px, 3px);
}

.favorite-btn:hover {
  background: transparent;
}

.favorite-btn.active {
  background: transparent;
}

.favorite-remove-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: var(--ev-surface-muted);
  color: var(--ev-muted);
  cursor: pointer;
}

.favorite-remove-btn:hover {
  background: var(--ev-surface-elevated);
  color: var(--ev-ink);
}

.heart-icon {
  width: 26px;
  height: 26px;
  overflow: visible;
}

.product .favorite-btn .heart-icon {
  width: 20px;
  height: 20px;
}

#favoritesBtn .heart-icon {
  width: 26px;
  height: 26px;
}

@keyframes favorites-header-heart-pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

#favoritesBtn .heart-icon.favorites-heart--pulse {
  animation: favorites-header-heart-pulse 0.42s cubic-bezier(0.33, 1.45, 0.55, 1) both;
  transform-origin: center center;
}

@keyframes cart-icon-pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.cart .cart-icon.cart-icon--pulse,
.mobile-bottom-nav__item--cart .mobile-bottom-nav__cart-icon.cart-icon--pulse {
  animation: cart-icon-pulse 0.38s cubic-bezier(0.33, 1.45, 0.55, 1) both;
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  #favoritesBtn .heart-icon.favorites-heart--pulse {
    animation: none;
  }

  .cart .cart-icon.cart-icon--pulse,
  .mobile-bottom-nav__item--cart .mobile-bottom-nav__cart-icon.cart-icon--pulse {
    animation: none;
  }
}

.heart-icon path {
  fill: transparent;
  stroke: var(--ev-heart);
  stroke-width: 34;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: 0.2s;
}

.favorite-btn:hover .heart-icon path,
.favorite-btn.active .heart-icon path,
#favoritesBtn:hover .heart-icon path,
.catalog-product-fav:hover .heart-icon path,
.catalog-product-fav.active .heart-icon path,
.product-fav:hover .heart-icon path,
.product-fav.active .heart-icon path,
#favoritesBtn:hover .heart-icon path {
  fill: var(--ev-heart);
}

#favoritesBtn {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 34px;
  height: 34px;
}

#favoritesBtn:hover {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.product button.favorite-btn:hover,
.product button.favorite-btn:focus,
.product button.favorite-btn:active,
#favoritesBtn:focus,
#favoritesBtn:active {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.quick-checkout-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--ev-surface-muted);
  color: var(--ev-ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.quick-checkout-btn:hover {
  background: var(--ev-btn-dark);
  color: var(--ev-surface);
}

.similar-section {
  margin-top: 28px;
}

.similar-section h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.similar-rail {
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.similar-list {
  display: flex;
  width: 100%;
  gap: 14px;
  overflow-x: auto;
  /* Місце під тінь карток і з боків — інакше overflow обрізає тінь і крайні картки */
  padding: 10px 16px 28px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  min-width: 0;
  align-items: stretch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
  box-sizing: border-box;
  /* Горизонтальний скрол без вертикального кліпу тіней (сучасні браузери) */
  overflow-y: clip;
}

.similar-list::-webkit-scrollbar {
  display: none;
}

.similar-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
}

.similar-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(var(--ev-rgb), 0.14);
  border-radius: 50%;
  background: var(--ev-surface);
  color: var(--ev-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(var(--ev-rgb), 0.1), 0 1px 3px rgba(var(--ev-rgb), 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.similar-arrow__icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.similar-arrow:not(:disabled):hover {
  background: var(--ev-btn-dark);
  color: var(--ev-surface);
  border-color: var(--ev-btn-dark);
  box-shadow: 0 6px 20px rgba(var(--ev-rgb), 0.18);
  transform: translateY(-1px);
}

.similar-arrow:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--ev-rgb), 0.12);
}

.similar-arrow:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 3px;
}

.similar-arrow:disabled {
  opacity: 1;
  cursor: default;
  transform: none;
  background: var(--ev-surface);
  color: var(--ev-ink);
  border-color: rgba(var(--ev-rgb), 0.14);
  box-shadow: 0 4px 14px rgba(var(--ev-rgb), 0.1), 0 1px 3px rgba(var(--ev-rgb), 0.08);
}

.similar-arrow:disabled:hover {
  cursor: default;
  background: var(--ev-surface);
  color: var(--ev-ink);
  border-color: rgba(var(--ev-rgb), 0.14);
  transform: none;
  box-shadow: 0 4px 14px rgba(var(--ev-rgb), 0.1), 0 1px 3px rgba(var(--ev-rgb), 0.08);
}

.similar-card {
  min-width: 220px;
  max-width: 220px;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  scroll-snap-align: start;
}

.similar-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-section);
}

.similar-card h4 {
  font-size: 14px;
  margin: 10px 0 6px;
}

.similar-card p {
  margin: 0;
  font-weight: 700;
  color: var(--ev-price);
}


.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-price-row {
  margin-bottom: 14px;
}

.product-price-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.product .product-price-actions .favorite-btn {
  transform: none;
}

.page-product .product-price-actions .favorite-btn {
  width: 26px;
  height: 26px;
}

.page-product .product-price-actions .favorite-btn .heart-icon {
  width: 22px;
  height: 22px;
}

.page-product .product-price-actions .product-cart-btn {
  width: 26px;
  height: 26px;
}

.page-product .product-price-actions .cart-add-icon {
  width: 22px;
  height: 22px;
}

.product-cart-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ev-ink);
  transition: color 0.2s, transform 0.2s;
  border-radius: 0;
  box-shadow: none;
}

.product .product-cart-btn {
  width: 22px;
  height: 22px;
}

.product-cart-btn:hover {
  color: var(--ev-accent);
}

.product-cart-btn:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 2px;
}

.cart-add-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.product .product-cart-btn .cart-add-icon {
  width: 20px;
  height: 20px;
}

@keyframes product-cart-added-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.28);
  }
  65% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

.product-cart-btn.product-cart-btn--added {
  animation: product-cart-added-pop 0.75s ease;
  color: #1f8a4a;
}

.product-cart-btn.product-cart-btn--added .cart-add-icon path {
  stroke: currentColor;
}

.order-layout {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  margin-bottom: 30px;
  justify-items: center;
}

.order-layout .cabinet-card {
  width: min(800px, 92vw);
  max-width: 800px;
  box-sizing: border-box;
  margin: 0 auto;
}

.order-items-card #orderItems {
  max-height: 340px;
  overflow-y: auto;
}

.order-items-card .cart-item {
  padding-right: 12px;
}

.order-items-card .cart-item p {
  color: var(--ev-price);
}

.order-items-card .order-remove-btn {
  position: static;
  margin-left: 8px;
  flex-shrink: 0;
}

.city-autocomplete-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.city-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 30;
  padding: 6px;
  box-sizing: border-box;
}

.city-suggestion-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.city-suggestion-item:hover {
  background: rgba(17, 17, 17, 0.06);
}

.order-total-row {
  margin-top: 12px;
  border-top: 1px solid var(--ev-border-hair);
  padding-top: 10px;
}

.order-bonuses-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--ev-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f3ed 100%);
  box-shadow: 0 6px 18px rgba(17, 17, 16, 0.06);
  display: grid;
  gap: 10px;
}

.order-bonuses-box p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #2f2f2f;
}

.order-bonuses-box p b {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.order-bonuses-box label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #6f5f4c;
}

.order-bonuses-box #orderBonusBalance,
.order-bonuses-box #orderBonusUsed {
  font-weight: 800;
  color: #111111;
}

.order-bonuses-box #orderBonusUse {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8cfc2;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.order-bonuses-box #orderBonusUse:focus {
  border-color: rgba(240, 122, 26, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 122, 26, 0.14);
}

.order-bonuses-box #orderBonusUse:disabled {
  background: #f4f1eb;
  color: #7e7468;
  border-color: #ddd4c8;
}

.sort-select {
  border: 1px solid var(--ev-border-hair);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
  box-sizing: border-box;
}

.auth-modal.active {
  display: flex;
}

.auth-modal-content {
  width: min(520px, 100%);
  background: var(--surface-primary);
  color: var(--text-primary);
  border-radius: clamp(16px, 2.4vw, 22px);
  padding: clamp(20px, 3.2vw, 30px);
  border: 1px solid var(--border-light);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18), 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  max-height: min(92vh, 860px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ev-rgb), 0.28) transparent;
}

.auth-modal-content::-webkit-scrollbar {
  width: 8px;
}

.auth-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.auth-modal-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--ev-rgb), 0.24);
}

#registerForm {
  display: grid;
  gap: 12px;
}

.auth-eyes {
  --eye-size: clamp(50px, 7.6vw, 64px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.5vw, 20px);
  margin: 4px 0 16px;
  pointer-events: none;
}

.auth-eye {
  width: var(--eye-size);
  height: var(--eye-size);
  border-radius: 999px;
  background: radial-gradient(circle at 38% 28%, #ffffff 0%, #f5f7fb 66%, #e8edf5 100%);
  border: 1px solid rgba(15, 23, 42, 0.14);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.17), 0 2px 8px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: transform 0.28s ease;
}

.auth-eye::after {
  content: none;
}

.auth-eye-pupil {
  --pupil-x: 0px;
  --pupil-y: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(16px, 2.9vw, 20px);
  height: clamp(16px, 2.9vw, 20px);
  border-radius: 999px;
  background: radial-gradient(circle at 33% 32%, #6f7d96 0%, #2a3347 56%, #131929 100%);
  border: 1px solid rgba(10, 14, 24, 0.34);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.24), 0 5px 10px rgba(0, 0, 0, 0.3);
  transform: translate(calc(-50% + var(--pupil-x)), calc(-50% + var(--pupil-y)));
  transition: transform 0.12s linear;
}

.auth-eye-lid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-eye-lid::before,
.auth-eye-lid::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #ffb36a 0%, #fb923c 52%, #ea7a1b 100%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-eye-lid::before {
  top: 0;
  height: 64%;
  box-shadow: inset 0 -2px 8px rgba(154, 52, 18, 0.2);
  transform: translateY(-112%);
}

.auth-eye-lid::after {
  bottom: 0;
  height: 42%;
  box-shadow: inset 0 2px 8px rgba(154, 52, 18, 0.2);
  transform: translateY(112%);
}

.auth-eyes.is-private .auth-eye-lid,
.auth-eyes.is-blinking .auth-eye-lid {
  transform: none;
}

.auth-eyes.is-private .auth-eye-lid::before,
.auth-eyes.is-private .auth-eye-lid::after {
  transform: translateY(0);
}

.auth-eyes.is-blinking .auth-eye-lid::before {
  transform: translateY(0);
}

.auth-eyes.is-blinking .auth-eye-lid::after {
  transform: translateY(26%);
}

.auth-modal-content:hover .auth-eye {
  transform: translateY(-1px);
}

.auth-light {
  width: min(520px, 100%);
  background: var(--surface-primary);
  color: var(--text-primary);
  border-radius: inherit;
  padding: inherit;
  box-shadow: none;
  border: none;
}

.auth-title {
  text-align: center;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.auth-input {
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  color: var(--text-primary);
  min-height: 54px;
  padding: 13px 16px;
  font-size: 15px;
  line-height: 1.35;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input::placeholder {
  color: var(--ev-muted);
}

.auth-input:focus {
  border-color: var(--ev-accent);
  background: var(--surface-primary);
  box-shadow: 0 0 0 3px var(--ev-accent-soft);
}

.auth-submit-btn {
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  min-height: 54px;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--accent-main);
  color: var(--ev-text-on-accent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.auth-submit-btn:hover {
  background: var(--accent-btn-hover);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-message {
  min-height: 18px;
  margin: 2px 0 0;
  font-size: 13px;
  color: #b00020;
}

.auth-links {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--ev-accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
}

.auth-link-btn:last-child {
  text-align: right;
}

.auth-terms {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ev-muted);
  font-size: 15px;
  line-height: 1.45;
}

.auth-terms input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--accent-main);
  flex-shrink: 0;
}

.auth-divider {
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  color: var(--ev-muted);
  font-size: 14px;
  gap: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ev-border-hair);
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  min-height: 42px;
}

.auth-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-secondary);
  color: var(--ev-muted);
  font-size: 16px;
}

.auth-modal .close-btn:hover {
  background: var(--ev-surface-muted);
  color: var(--ev-ink);
}

@media (max-width: 640px) {
  .auth-modal {
    padding: 10px;
  }

  .auth-modal-content {
    border-radius: 16px;
    padding: 16px 14px;
    max-height: 94vh;
  }

  .auth-title {
    font-size: clamp(26px, 7.8vw, 34px);
    margin-bottom: 12px;
  }

  .auth-eyes {
    --eye-size: clamp(44px, 14vw, 56px);
    gap: 10px;
    margin-bottom: 12px;
  }

  .auth-input {
    min-height: 48px;
    border-radius: 12px;
    padding: 11px 14px;
  }

  .auth-submit-btn {
    min-height: 48px;
    border-radius: 12px;
    font-size: 17px;
  }

  .auth-links {
    gap: 8px;
  }

  .auth-link-btn {
    font-size: 14px;
  }
}

/* Refined auth modal in EVRYKA style */
.auth-modal {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(18px, 4vh, 34px) 14px;
}

.auth-modal-content.auth-light {
  width: min(560px, 100%);
  max-height: calc(100dvh - clamp(36px, 8vh, 68px));
  box-sizing: border-box;
  border-radius: clamp(18px, 2.4vw, 24px);
  padding: clamp(22px, 3.1vw, 34px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.24), 0 2px 10px rgba(2, 6, 23, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.auth-eyes {
  --eye-size: clamp(50px, 7.6vw, 64px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.5vw, 20px);
  margin: 4px 0 16px;
  pointer-events: none;
}

.auth-title {
  margin: 4px 0 18px;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

#registerForm {
  gap: 8px;
}

.auth-input {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #f8fafc;
  font-size: 15px;
  padding: 10px 14px;
}

.auth-input:focus {
  background: #fff;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.22);
}

.auth-submit-btn {
  margin-top: 2px;
  min-height: 46px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  background: var(--ev-accent-gradient, linear-gradient(135deg, #fb923c, #f97316));
  color: #111827;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
}

.auth-submit-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.auth-links {
  margin-top: 0;
  gap: 10px;
}

.auth-link-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #f97316;
  font-weight: 700;
  text-align: center;
  padding: 10px 12px;
}

.auth-link-btn:last-child {
  text-align: center;
}

.auth-link-btn:hover {
  background: #fff7ed;
  border-color: #fdba74;
}

.auth-divider {
  margin-top: 4px;
}

.google-btn-wrap {
  margin-top: 0;
}

.auth-modal .close-btn {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #64748b;
  font-size: 20px;
}

.auth-modal .close-btn:hover {
  background: #f8fafc;
  color: #334155;
}

.auth-modal-content.auth-light::-webkit-scrollbar {
  width: 10px;
}

.auth-modal-content.auth-light::-webkit-scrollbar-track {
  background: transparent;
}

.auth-modal-content.auth-light::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #d6deea 0%, #b9c5d7 100%);
  border: 2px solid #f4f7fb;
}

.auth-modal-content.auth-light {
  scrollbar-width: thin;
  scrollbar-color: #bac6d8 transparent;
}

@media (max-width: 640px) {
  .auth-modal-content.auth-light {
    border-radius: 16px;
    padding: 16px 14px 18px;
    max-height: calc(100dvh - 26px);
  }

  .auth-input {
    min-height: 44px;
    border-radius: 13px;
    font-size: 14px;
  }

  .auth-submit-btn {
    min-height: 44px;
    border-radius: 13px;
    font-size: 16px;
  }

  .auth-links {
    flex-direction: column;
  }
}

.cabinet-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.cabinet-sidebar {
  position: sticky;
  top: 90px;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.cabinet-nav-btn {
  border: 1px solid var(--ev-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ev-ink);
  font-weight: 700;
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
  transition: 0.2s;
}

.cabinet-nav-btn:hover {
  background: var(--ev-surface-elevated);
}

.cabinet-nav-btn.active {
  background: var(--ev-accent-gradient);
  color: var(--ev-text-on-accent);
  border-color: transparent;
}

.cabinet-nav-btn.active:hover {
  filter: brightness(1.06);
  border-color: transparent;
}

.cabinet-nav-btn.logout {
  margin-top: 10px;
  background: var(--surface-secondary);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.cabinet-nav-btn.logout:hover {
  background: #ffecec;
  border-color: #ffbdbd;
  color: #d10000;
}

.cabinet-card {
  width: min(700px, 96vw);
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  padding: 26px;
  --cabinet-field-stack: 12px;
}

/* Заголовок картки кабінету / замовлення — той самий крок, що між полями форми */
.products.cabinet-card > h2 {
  margin-top: 0;
  margin-bottom: var(--cabinet-field-stack);
}

.cabinet-form {
  display: grid;
  gap: var(--cabinet-field-stack);
  width: 100%;
  min-width: 0;
  --cabinet-field-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
}

.cabinet-form h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.cabinet-form label {
  display: grid;
  gap: var(--cabinet-field-stack);
  font-weight: 600;
}

.cabinet-form input:not([type="hidden"]),
.cabinet-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ev-border-hair);
  border-radius: var(--cabinet-field-radius);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ev-ink);
  background-color: var(--ev-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a737c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.cabinet-form select::-ms-expand {
  display: none;
}

.cabinet-form input:not([type="hidden"])::placeholder {
  color: var(--ev-muted);
  opacity: 0.9;
}

.cabinet-form input:not([type="hidden"]):focus,
.cabinet-form select:focus {
  outline: none;
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 3px var(--ev-accent-soft);
}

.cabinet-form input:not([type="hidden"]):disabled,
.cabinet-form select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background-color: var(--ev-surface-muted);
  box-shadow: none;
}

/* Кастомні селекти в кабінеті / замовленні — як поля «місто» / «відділення» */
.cabinet-form .catalog-select-wrap {
  width: 100%;
  min-width: 0;
}

.cabinet-form select.catalog-filter-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
  background: transparent !important;
  box-shadow: none !important;
}

.cabinet-form .catalog-select-trigger {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--cabinet-field-radius);
  border: 1px solid var(--ev-border-hair);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ev-ink);
  background-color: var(--ev-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-form .catalog-select-trigger:hover {
  border-color: var(--ev-border-mid);
}

.cabinet-form .catalog-select-wrap.is-open .catalog-select-trigger,
.cabinet-form .catalog-select-trigger:focus-visible {
  outline: none;
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 3px var(--ev-accent-soft);
}

.cabinet-form .catalog-select-chevron {
  color: var(--ev-muted);
  flex-shrink: 0;
}

.cabinet-form .catalog-select-panel {
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line-strong);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  max-height: 220px;
}

.cabinet-form .catalog-select-wrap.is-open .catalog-select-panel {
  animation: cabinet-select-panel-in 0.2s ease-out both;
}

@keyframes cabinet-select-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-form .catalog-select-wrap.is-open .catalog-select-panel {
    animation: none;
  }
}

.cabinet-form .catalog-select-option {
  margin: 0;
  list-style: none;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #202020;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.cabinet-form .catalog-select-option:hover:not(.is-selected) {
  background: var(--ev-surface-muted);
}

.cabinet-form .catalog-select-option.is-selected {
  background: rgba(251, 146, 60, 0.14);
  color: var(--ev-ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 0 var(--accent-main);
}

.cabinet-form .catalog-select-option.is-selected:hover {
  background: rgba(251, 146, 60, 0.22);
  color: var(--ev-ink);
}

/* Особистий кабінет: випадаючі списки не обрізаються карткою й не ховаються за сайдбаром */
.page-cabinet .catalog-products-inner .cabinet-card {
  overflow: visible;
}

.page-cabinet .cabinet-form .catalog-select-wrap {
  position: relative;
  z-index: 1;
}

.page-cabinet .cabinet-form .catalog-select-wrap.is-open {
  z-index: 200;
}

.page-cabinet .cabinet-form .catalog-select-panel {
  z-index: 201;
  border-radius: max(12px, calc(var(--cabinet-field-radius, 14px) + 2px));
}

.page-cabinet .cabinet-form .catalog-select-option {
  border-radius: max(10px, calc(var(--cabinet-field-radius, 14px) - 4px));
}

.page-cabinet .cabinet-actions-row button {
  border-radius: var(--cabinet-field-radius, clamp(14px, 1.65vw, 18px));
}

.cabinet-actions-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.cabinet-actions-row button {
  min-width: 150px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cabinet-actions-row .checkout-btn {
  background: var(--ev-accent-gradient);
  color: var(--ev-text-on-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cabinet-actions-row .checkout-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cabinet-actions-row .clear-btn {
  margin-top: 0;
  background: #f7f7f7;
  color: var(--ev-ink);
  border: 1px solid var(--ev-border-hair);
}

.cabinet-actions-row .clear-btn:hover {
  background: #efefef;
  border-color: var(--ev-border-mid);
  color: var(--ev-ink);
}

@media (max-width: 980px) {
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .cabinet-sidebar {
    position: static;
  }

  .page-cabinet .catalog-page-layout {
    grid-template-columns: 1fr;
  }

  .page-cabinet .catalog-filters {
    position: static;
  }
}

/* 🔍 ПОШУК */


/* 📌 МЕНЮ */
.nav {
  display: flex;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  color: var(--ev-ink);
  font-weight: 600;
}


/* 🔴 КІЛЬКІСТЬ */
.cart {
  position: relative;
  cursor: pointer;
}

/* 🔥 сама іконка */
.cart-icon {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.cart:hover .cart-icon {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}

@media (prefers-reduced-motion: reduce) {
  .cart-icon {
    transition: none;
  }
  .cart:hover .cart-icon {
    transform: none;
    filter: none;
  }
}

/* 🔴 кружечок з кількістю */
#cartCount {
  position: absolute;
  top: -6px;
  right: -9px;

  background: var(--ev-heart);
  color: white;

  font-size: 12px;
  font-weight: 600;

  padding: 2px 5.8px;
  border-radius: 50%;
}
.header nav a {
  color: var(--ev-black);
  text-decoration: none;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: none;
  display: inline-block;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.header nav a:hover {
  background: transparent;
  color: var(--ev-black);
  opacity: 0.55;
}

.header nav a.active {
  background: transparent;
  color: var(--ev-black);
  box-shadow: none;
  opacity: 1;
  font-weight: 600;
}
.cart-info {
  flex: 1;
}

.cart-info h4 {
  font-size: 15px;
  margin: 0 0 5px;
}

.cart-info p {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--ev-price);
}

.cart-info span {
  font-size: 12px;
  color: var(--ev-ink);
}


/* кількість у кошику — див. також .qty-wrapper.cart-qty-wrapper */
.cart-qty-wrapper {
  margin-bottom: 0;
}

.remove-btn {
  position: absolute;
  right: 12px;
  top: 14px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: none;

  background: #f5f5f5;
  color: var(--ev-muted);

  font-size: 15px;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;

  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.remove-btn:hover {
  background: var(--ev-btn-dark);
  color: var(--text-primary);
  transform: scale(1.07);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(251, 146, 60, 0.22);
}

.remove-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.remove-btn:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 2px;
}

.cart-footer button {
  width: 100%;
  padding: 14px;
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: none;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.2s;
}
.cart-header button:hover {
  background: rgba(255, 255, 255, 0.2);
}


.cart-footer {
  padding-top: 10px;
  border-top: 1px solid var(--ev-border-hair);
}
.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--ev-border-hair);
  position: relative;
  padding-right: 40px;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.qty-controls button:hover {
  background: #ab1414;
}

.qty-controls span {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid var(--ev-border-hair);

  background: white;
  position: sticky;
  bottom: 0;
}

/* текст суми */
.cart-footer h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 18px;
  font-weight: 700;

  margin-bottom: 14px;
}

/* ОСНОВНА кнопка — радіус (перебиває правило вище) */
.cart-footer button {
  border-radius: 12px;
}

.checkout-btn {
  background: var(--ev-accent-gradient);
  color: var(--ev-text-on-accent);
}

.checkout-btn:hover {
  filter: brightness(1.06);
}

.checkout-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  filter: none;
}

.clear-btn {
  margin-top: 10px;
}

/* «Очистити кошик» і «Очистити обрані» — однакові стилі */
.cart-footer .clear-btn {
  background: #fafafa;
  color: #111;
  border: 1px solid #111;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: none;
}

.cart-footer .clear-btn:hover {
  background: #ffecec;
  border-color: #ffbdbd;
  color: #d10000;
}

.cart-sidebar .cart-footer button {
  padding: 10px 14px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
}

.cart-sidebar .cart-footer .clear-btn {
  margin-top: 8px;
}

/* Кнопки й ряд «Разом» на всю ширину контенту кошика (як смуга заголовка), без додаткових бокових полів */
.cart-sidebar .cart-footer {
  padding: 16px 0 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 18px;
  font-weight: 600;

  margin-bottom: 14px;
}

.cart-total div {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cart-total b {
  font-size: 20px;
  color: var(--ev-price);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;
  background: var(--ev-ink);
  color: var(--ev-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ev-header-bar-radius, 20px) var(--ev-header-bar-radius, 20px) 0 0;
}

.cart-header h3 {
  font-size: 18px;
  margin: 0;
  color: inherit;
}

.cart-header button {
  width: 34px;
  height: 34px;

  border-radius: 10px;
  border: none;

  background: rgba(255, 255, 255, 0.12);
  color: var(--ev-surface);
  font-size: 16px;

  cursor: pointer;
}

.cart-head-float h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
}

.chat-widget-head-float #chatWidgetTitle {
  color: inherit;
}

.chat-widget-close,
.cart-head-float-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chat-widget-close:hover,
.cart-head-float-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.close-btn {
  width: 28px;
  height: 28px;

  border-radius: 8px;
  border: none;

  background: #f5f5f5;
  color: var(--ev-muted);

  font-size: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  background: var(--ev-btn-dark);
  color: var(--text-primary);
}

.buy-btn2 {
  font-weight: 1000;
  letter-spacing: 0.5px;
} 
.load-more {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: clamp(40px, 5vw, 56px) 0;
  box-sizing: border-box;
}

/* «Завантажити ще» — той самий профіль кнопки, ширина за контентом */
.load-more .buy-btn {
  width: auto;
  min-width: 160px;
  margin-top: 0;
  /* Як у карток товарів (.product) */
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}

/* «Відкрити каталог» — той самий світліший hover, що й у «Купити» */
.load-more .buy-btn:hover {
  background: var(--accent-btn-hover);
  transform: translateY(-1px);
  filter: none;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.1);
}

.load-more .buy-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 3px 12px rgba(0, 0, 0, 0.06);
}

/* ================= */
/* 🔹 ГАЛЕРЕЯ */
/* ================= */


.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;

  opacity: 0.5;
  transition: 0.2s;
}

.product-thumbs img:hover {
  opacity: 1;
}

.product-thumbs img.active {
  opacity: 1;
  border: 2px solid var(--ev-ink);
}



/* ================= */
/* 🔹 ПРАВА ЧАСТИНА */
/* ================= */

.product-right {
  max-width: 420px;
}

/* назва */
.product-right h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;

  margin-bottom: 15px;
}

/* ціна */
.price {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ================= */
/* 🔹 КІЛЬКІСТЬ */
/* ================= */

.qty-block {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 25px;
}

.qty-block button {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;

  background: rgb(210, 210, 210); /* 🔥 було transparent */
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

/* Chrome, Safari, Edge */
.qty-block input::-webkit-outer-spin-button,
.qty-block input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.qty-block button:hover {
  background: var(--ev-btn-dark);
  color: var(--text-primary);
}

.qty-block input {
  width: 70px;
  height: 42px;

  border-radius: 12px;
  border: none;

  background: rgb(210, 210, 210);
  text-align: center;

  font-size: 16px;
  font-weight: 600;
}

/* ================= */
/* 🔹 ОПИС */
/* ================= */


/* ================= */
/* 🔥 АДАПТИВ */
/* ================= */

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
  }

  .product-left {
    flex-direction: column;
  }

  .product-thumbs {
    flex-direction: row;
  }

  .product-main-img {
    height: 400px;
  }
}
/* 🔥 блок покупки */
.product-purchase {
  margin-top: 20px;
}

/* ================= */
/* 🔹 ЦІНА */
/* ================= */

.price-block {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.price-label {
  font-size: 13px;
  color: var(--ev-muted);
}

.price-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--ev-price);
}

/* ================= */
/* 🔹 КІЛЬКІСТЬ */
/* ================= */


.qty-wrapper button {
  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: transparent;
  font-size: 18px;

  cursor: pointer;
  transition: 0.2s;
}

.qty-wrapper button:hover {
  background: var(--ev-surface-elevated);
  color: var(--ev-ink);
}

.qty-wrapper input {
  width: 60px;
  text-align: center;

  border: none;
  background: transparent;

  font-size: 16px;
  font-weight: 600;
}

.back-link {
  margin-top: 20px;
  margin-bottom: 20px;

  font-size: 14px;
  color: var(--ev-muted);
}

.back-link a {
  text-decoration: none;
  color: var(--ev-ink);
  font-weight: 600;
  transition: 0.2s;
}

.back-link a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

/* 🔥 верхня навігація */
.product-nav {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: 20px;
  margin-bottom: 0px;
}

/* ================= */
/* 🔙 КНОПКА */
/* ================= */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 15px;

  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  border-radius: 999px;

  text-decoration: none;
  color: var(--ev-ink);

  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-btn:hover {
  background: var(--ev-surface-elevated);
  color: var(--ev-ink);
}

/* 🔥 сама стрілка */
.back-icon {
  width: 18px;
  height: 18px;

  stroke: currentColor;
  stroke-width: 4;
  fill: none;

  transition: 0.2s;
}

/* маленький рух */
.back-btn:hover .back-icon {
  transform: translateX(-7px);
  stroke: currentColor;
  stroke-width: 4;
}

/* ================= */
/* 🧭 BREADCRUMBS */
/* ================= */

.breadcrumbs {
  font-size: 15px;
  color: var(--ev-muted);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--ev-muted);
  transition: 0.2s;
}

.breadcrumbs a:hover {
  color: var(--ev-ink);
}

.breadcrumbs span {
  color: var(--ev-muted);
}


.qty-btn:hover svg {
  stroke: var(--ev-accent);
}

/* 🔢 інпут */
.qty-input {
  width: 50px;
  text-align: center;

  border: none;
  background: transparent;

  font-size: 16px;
  font-weight: 700;
}

/* ❌ прибрати стрілочки */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}




.qty-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: var(--ev-surface-muted);
  border-radius: 999px;
  padding: 5px;

  margin-bottom: 25px;
}

/* У кошику та там, де два класи — без зайвого нижнього відступу (перебиває правило вище) */
.qty-wrapper.cart-qty-wrapper {
  margin-bottom: 0;
}

/* 🔘 кнопки */
.qty-btn {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;

  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.2s;
}

.qty-btn:hover {
  background: var(--ev-btn-dark);
}

/* 🔥 SVG */
.qty-btn svg {
  width: 16px;
  height: 16px;

  stroke: var(--ev-ink);
  stroke-width: 4;
  fill: none;
}

.qty-btn:hover svg {
  stroke: var(--ev-accent);
}

/* 🔢 input */
.qty-input {
  width: 60px;
  text-align: center;

  border: none;
  background: transparent;

  font-size: 16px;
  font-weight: 700;
}

/* ❌ прибрати стрілки */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input {
  appearance: textfield;
}

.search-box {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  background: white;
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  margin-top: 10px;
  padding: 10px;

  z-index: 999;
  display: none;
}

/* Ширший список під вузьким полем у шапці; сам #search / .search-box не чіпаємо */
.header .search-results {
  left: auto;
  right: 0;
  min-width: 100%;
  width: max(100%, min(440px, calc(100vw - 24px)));
  max-width: min(560px, calc(100vw - 16px));
  box-sizing: border-box;
  /* Як плаваюча шапка: той самий фон, blur і обводка */
  margin-top: clamp(16px, 2.2vw, 26px);
  background: var(--ev-header-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-bottom-color: rgba(17, 17, 17, 0.08);
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  box-shadow:
    0 1px 0 rgba(17, 17, 17, 0.04),
    0 14px 44px rgba(0, 0, 0, 0.1),
    0 5px 16px rgba(0, 0, 0, 0.06);
}

.header .search-results .search-item:hover {
  background: rgba(17, 17, 17, 0.055);
}

/* 🔹 товар */
.search-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;

  cursor: pointer;
  transition: 0.2s;
}

.search-item:hover {
  background: #f5f5f5;
}

.search-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.search-item h4 {
  font-size: 14px;
  margin: 0;
}

.search-item p {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--ev-price);
}

/* 🔻 кнопка */
.search-more {
  position: relative;
  display: block;
  width: fit-content;
  max-width: calc(100% - 16px);
  margin: 0 auto;
  padding: 10px 4px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  color: var(--ev-black);
  transition: color 0.2s ease;
  box-sizing: border-box;
}

.search-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--ev-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.search-more:hover {
  color: var(--ev-black);
}

.search-more:hover::after {
  transform: scaleX(1);
}

.search-more:focus-visible {
  outline: none;
  color: var(--ev-black);
}

.search-more:focus-visible::after {
  transform: scaleX(1);
}
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  margin-top: 60px;
}

.footer a {
  margin-left: 0;
}

/* контейнер */
.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;

  padding: 50px 80px;
}

/* колонки */
.footer-col h4 {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--footer-text);
}

.footer-col p {
  color: var(--footer-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;

  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 14px;

  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

/* телефон */
.phone {
  font-weight: 700;
  font-size: 16px;
  color: var(--footer-text);
}

.footer .phone:hover {
  color: var(--accent-soft);
}

/* соц */
.socials {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.footer .socials a {
  width: 36px;
  height: 36px;

  background: var(--footer-chip-bg);
  border: 1px solid var(--footer-chip-border);
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  color: var(--footer-text);
}

.footer .socials a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.28);
}

.footer .socials.socials--messengers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 15px;
}

.footer .socials.socials--messengers a.footer-messenger {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 12px;
  margin-bottom: 0;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.footer .socials.socials--messengers a.footer-messenger:hover {
  color: #fff;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* Фірмові кольори: Telegram — #0088cc, Viber — #665cac */
.footer .footer-messenger--telegram {
  background: #0088cc;
}

.footer .footer-messenger--telegram:hover {
  background: #0077b5;
}

.footer .footer-messenger--viber {
  background: #665cac;
}

.footer .footer-messenger--viber:hover {
  background: #5b51a0;
}

.footer .footer-messenger__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
}

.footer .footer-messenger__icon path {
  fill: currentColor;
}

/* оплата */
.pay-text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--footer-text-soft);
}

.payments {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.footer .payments span {
  background: var(--footer-chip-bg);
  border: 1px solid var(--footer-chip-border);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--footer-text);
}

/* низ */
.footer-bottom {
  border-top: 1px solid var(--footer-border);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 80px;

  font-size: 13px;
  color: var(--footer-text-soft);
}

.footer-bottom p {
  margin: 0;
}

.order-success-content {
  width: min(640px, 94vw);
  position: relative;
  background: var(--ev-surface);
  color: var(--ev-ink);
  border: 1px solid var(--ev-line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.order-success-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.order-success-header h3 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
}

.order-success-title-wrap {
  display: grid;
  gap: 4px;
}

.order-success-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--ev-muted);
}

.order-success-check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b7f3a;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(27, 127, 58, 0.35);
  flex-shrink: 0;
}

.order-success-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.order-success-number {
  margin: 2px 0 14px;
  font-weight: 800;
  color: var(--ev-accent);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.order-success-details {
  text-align: left;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  max-height: 300px;
  overflow: auto;
}

.order-success-details p {
  margin: 0 0 8px;
}

.order-success-items {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-success-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ev-line);
  border-radius: 8px;
}

.order-success-item-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.order-success-item-text {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ev-price);
}

.order-success-actions {
  display: flex;
  justify-content: center;
}

.order-success-actions .checkout-btn {
  min-width: 170px;
}

.admin-orders-wrap {
  width: min(980px, 94vw);
  margin: 36px auto;
}

.admin-order-card {
  background: var(--ev-surface);
  border-radius: 12px;
  border: 1px solid var(--ev-line);
  padding: 14px;
  margin-bottom: 12px;
}

.cab-orders-list {
  display: grid;
  gap: 12px;
}

.cab-order-card {
  border: 1px solid var(--ev-line);
  border-radius: 12px;
  background: var(--ev-surface);
  padding: 10px;
}

.cab-order-summary {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  text-align: left;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}

.cab-order-summary:hover {
  background: #f7f8fb;
}

.cab-order-number {
  font-weight: 800;
  color: #1f4ed4;
}

.cab-order-meta {
  margin: 2px 0 0;
  color: #6f6f6f;
  font-size: 13px;
}

.cab-order-status-row {
  margin: 8px 0 0;
}

.cab-order-payment-row {
  margin: 6px 0 0;
}

.cab-order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.cab-order-status-badge.is-loading,
.cab-order-status-badge.is-neutral {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.cab-order-status-badge.is-arrived {
  color: #166534;
  background: #ecfdf5;
  border-color: #86efac;
}

.cab-order-status-badge.is-transit {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
}

.cab-order-status-badge.is-cancelled {
  color: #374151;
  background: #f3f4f6;
  border-color: #d1d5db;
}

.cab-order-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.cab-order-payment-badge.is-cod {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fdba74;
}

.cab-order-payment-badge.is-paid {
  color: #166534;
  background: #ecfdf5;
  border-color: #86efac;
}

.cab-order-payment-badge.is-unpaid {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fca5a5;
}

.cab-payment-status.is-unpaid {
  color: #b91c1c;
  font-weight: 700;
}

.cab-order-summary-right {
  text-align: right;
}

.cab-order-summary-right p {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ev-price);
}

.cab-order-card.is-cancelled {
  background: #f8fafc;
  border-color: #dbe2ea;
}

.cab-order-card.is-cancelled .cab-order-summary:hover {
  background: #f1f5f9;
}

.cab-order-card.is-cancelled .cab-order-number,
.cab-order-card.is-cancelled .cab-order-summary-right p {
  color: #64748b;
}

.cab-order-card.is-cancelled .cab-order-thumb {
  opacity: 0.7;
  filter: grayscale(0.2);
}

.cab-order-thumbs {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.cab-order-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e7e7e7;
}

.cab-order-thumb--label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1f4ed4;
  background: #eef2ff;
}

.cab-order-details {
  display: none;
  margin-top: 8px;
  border-top: 1px solid #efefef;
  padding: 10px 8px 6px;
}

.cab-order-details.active {
  display: block;
}

.cab-order-items {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.cab-order-item-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cab-order-item-row p {
  margin: 0;
}

.cab-order-item-row div p:last-of-type {
  color: var(--ev-price);
}

.cab-order-item-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e7e7e7;
}

.cab-cancel-order-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: linear-gradient(180deg, #fff5f5 0%, #ffe8e8 100%);
  color: #b42318;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.cab-cancel-order-btn:hover {
  transform: translateY(-1px);
  border-color: #fca5a5;
  background: linear-gradient(180deg, #ffecec 0%, #ffdede 100%);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.16);
}

.cab-cancel-order-btn:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.22);
  outline-offset: 2px;
}

.cab-cancel-order-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.cab-repay-order-btn {
  margin-top: 12px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.cab-repay-order-btn:hover {
  transform: translateY(-1px);
  border-color: #60a5fa;
  background: linear-gradient(180deg, #e8f1ff 0%, #cfe2ff 100%);
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.16);
}

.cab-repay-order-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.cab-repay-order-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.cab-cancel-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.cab-cancel-modal__card {
  width: min(480px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 26px 55px rgba(2, 6, 23, 0.28);
  padding: 18px;
}

.cab-cancel-modal__header {
  margin-bottom: 14px;
}

.cab-cancel-modal__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  color: #111827;
}

.cab-cancel-modal__subtitle {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
}

.cab-cancel-modal__field {
  display: block;
  margin-bottom: 12px;
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
}

.cab-cancel-modal__control {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cab-cancel-modal__reason-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cab-cancel-modal__reason-option {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid #d4dbe6;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.cab-cancel-modal__reason-option:hover {
  background: #ffffff;
  border-color: #bfc9d8;
  transform: translateY(-1px);
}

.cab-cancel-modal__reason-option.is-selected {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fb923c;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.cab-cancel-modal__reason-option:focus-visible {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.cab-cancel-modal__field select.cab-cancel-modal__control {
  min-height: 56px;
  padding: 13px 44px 13px 14px;
  border-radius: 14px;
  border-color: #d4dbe6;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1.25 1.25L7 7L12.75 1.25' stroke='%2361708a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.cab-cancel-modal__field select.cab-cancel-modal__control:hover {
  border-color: #bfc9d8;
  background-color: #ffffff;
}

.cab-cancel-modal__field select.cab-cancel-modal__control option {
  color: #0f172a;
  background: #ffffff;
}

.cab-cancel-modal__control:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.cab-cancel-modal__actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cab-cancel-modal__btn {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.cab-cancel-modal__btn:hover {
  transform: translateY(-1px);
}

.cab-cancel-modal__btn--ghost {
  border-color: #d1d5db;
  background: #fff;
  color: #374151;
}

.cab-cancel-modal__btn--ghost:hover {
  background: #f9fafb;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.08);
}

.cab-cancel-modal__btn--danger {
  border-color: #f87171;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.cab-cancel-modal__btn--danger:hover {
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

@media (max-width: 640px) {
  .cab-cancel-modal__reason-grid {
    grid-template-columns: 1fr;
  }

  .cab-cancel-modal__field select.cab-cancel-modal__control {
    min-height: 52px;
    padding: 12px 40px 12px 12px;
    border-radius: 12px;
    background-position: right 12px center;
  }

  .cab-cancel-modal__actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .cab-cancel-modal__btn {
    width: 100%;
  }
}

/* ——— сторінка каталогу ——— */
.page-catalog .catalog-page-layout,
.page-cabinet .catalog-page-layout {
  margin-top: 0;
  margin-bottom: 0;
  /* Зазор між фільтрами й сіткою = той самий, що й «край→шапка» */
  gap: var(--ev-header-screen-inset-l, clamp(20px, 3vw, 32px));
}

.catalog-page-nav .breadcrumbs {
  font-size: 15px;
}

.catalog-page-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

.page-catalog .catalog-filters,
.page-cabinet .catalog-filters {
  position: sticky;
  top: calc(var(--ev-header-h, 72px) + 12px);
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--catalog-panel-bg, var(--bg-section));
  border: 1px solid var(--ev-border-hair);
  border-radius: clamp(8px, 1vw, 12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 15px;
}

.page-catalog .catalog-filters {
  border-radius: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--ev-border-hair);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Поля та кнопки всередині панелі — білий фон і чіткіша межа, щоб не зливались з --catalog-panel-bg */
.page-catalog .catalog-filters .catalog-filter-input,
.page-catalog .catalog-filters .catalog-select-trigger {
  background: var(--ev-surface);
  border: 1px solid rgba(var(--ev-rgb), 0.16);
  box-shadow: 0 1px 3px rgba(var(--ev-rgb), 0.07);
}

.page-catalog .catalog-filters .catalog-filter-input:hover,
.page-catalog .catalog-filters .catalog-select-trigger:hover {
  border-color: rgba(var(--ev-rgb), 0.26);
  box-shadow: 0 2px 8px rgba(var(--ev-rgb), 0.1);
}

.page-catalog .catalog-filters .catalog-filter-input:focus {
  outline: none;
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 2px var(--ev-accent-soft);
}

.page-catalog .catalog-filters .catalog-filter-input:focus-visible {
  outline: none;
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 2px var(--ev-accent-soft);
}

.page-catalog .catalog-filters .catalog-select-wrap.is-open .catalog-select-trigger {
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 2px var(--ev-accent-soft);
}

.catalog-filters-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.catalog-filters-open-btn,
.catalog-filters-close,
.catalog-filters-overlay {
  display: none;
}

.cabinet-menu-open-btn,
.cabinet-menu-close,
.cabinet-menu-overlay {
  display: none;
}

.page-catalog .catalog-filters-title {
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.page-cabinet .catalog-filters-title {
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.page-cabinet .catalog-filters.cabinet-sidebar {
  /* Зовнішній радіус узгоджено з .catalog-products-inner; кнопки: r ≈ зовнішній − padding */
  --cab-sidebar-r: clamp(28px, 3vw, 32px);
  --cab-sidebar-pad: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: var(--cab-sidebar-pad);
  box-sizing: border-box;
  background: var(--ev-panel-chrome);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cab-sidebar-r);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.14);
}

.page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title {
  margin: 0;
}

.page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: max(14px, calc(var(--cab-sidebar-r) - var(--cab-sidebar-pad)));
}

.page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn:not(.active):not(.logout) {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn:not(.active):not(.logout):hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn.logout {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
}

.page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn.logout:hover {
  background: #ffecec;
  border-color: #ffbdbd;
  color: #d10000;
}

.page-catalog .catalog-filter-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-catalog .catalog-filters .catalog-filter-input,
.page-catalog .catalog-filters .catalog-select-trigger,
.page-catalog .catalog-filters .catalog-select-option {
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
}

/* Сортування та категорія — один і той самий кастомний список; стилі явно під фільтри */
.page-catalog .catalog-filters .catalog-select-panel {
  border: 1px solid rgba(var(--ev-rgb), 0.12);
  border-radius: clamp(11px, 1.2vw, 15px);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ev-rgb), 0.28) transparent;
}

.page-catalog .catalog-filters .catalog-select-panel::-webkit-scrollbar {
  width: 8px;
}

.page-catalog .catalog-filters .catalog-select-panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.page-catalog .catalog-filters .catalog-select-panel::-webkit-scrollbar-thumb {
  background: rgba(var(--ev-rgb), 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.page-catalog .catalog-filters .catalog-select-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--ev-rgb), 0.32);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.page-catalog .catalog-filters .catalog-select-option {
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.page-catalog .catalog-filters .catalog-select-option:hover:not(.is-selected) {
  background: var(--ev-surface-muted);
}

.page-catalog .catalog-filters .catalog-select-option.is-selected {
  background: rgba(251, 146, 60, 0.14);
  color: var(--ev-ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 0 var(--accent-main);
}

.page-catalog .catalog-filters .catalog-select-option.is-selected:hover {
  background: rgba(251, 146, 60, 0.22);
  color: var(--ev-ink);
}

.page-catalog .catalog-reset-btn {
  border-radius: clamp(11px, 1.2vw, 15px);
  border: 1px solid rgba(var(--ev-rgb), 0.18);
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  background: var(--ev-surface);
  color: var(--ev-p-ink);
  box-shadow: 0 1px 4px rgba(var(--ev-rgb), 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-catalog .catalog-reset-btn:hover {
  background: #ffecec;
  border-color: #ffbdbd;
  color: #d10000;
  box-shadow: none;
  transform: none;
}

.catalog-filter-block {
  margin-bottom: 22px;
}

.catalog-filter-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ev-muted);
}

.catalog-filter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--ev-border-hair);
  font-size: 15px;
  line-height: 1.45;
  font-family: "PT Sans Caption", sans-serif;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ev-ink);
}

/* прихований нативний select (логіка + доступність) */
.catalog-filter-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* кастомний випадаючий список (сортування / категорія) */
.catalog-select-wrap {
  position: relative;
}

.catalog-select-trigger {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--ev-border-hair);
  background: rgba(255, 255, 255, 0.06);
  font-family: "PT Sans Caption", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ev-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-select-trigger:hover {
  border-color: var(--ev-border-mid);
}

.catalog-select-trigger:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 2px;
}

.catalog-select-wrap.is-open .catalog-select-trigger {
  border-color: var(--ev-accent-soft);
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.25);
}

.catalog-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-select-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ev-muted);
  transition: transform 0.2s ease;
}

.catalog-select-wrap.is-open .catalog-select-chevron {
  transform: rotate(180deg);
}

.catalog-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line-strong);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ev-rgb), 0.28) transparent;
}

.catalog-select-panel::-webkit-scrollbar {
  width: 8px;
}

.catalog-select-panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.catalog-select-panel::-webkit-scrollbar-thumb {
  background: rgba(var(--ev-rgb), 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.catalog-select-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--ev-rgb), 0.32);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.catalog-select-option {
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 8px;
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ev-ink);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.catalog-select-option:hover:not(.is-selected) {
  background: var(--ev-surface-muted);
}

.catalog-select-option.is-selected {
  background: rgba(251, 146, 60, 0.14);
  color: var(--ev-ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 0 var(--accent-main);
}

.catalog-select-option.is-selected:hover {
  background: rgba(251, 146, 60, 0.22);
  color: var(--ev-ink);
}

.catalog-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-price-row .catalog-filter-input {
  flex: 1;
  min-width: 0;
}

.catalog-price-dash {
  color: var(--ev-muted);
  flex-shrink: 0;
}

.page-catalog .catalog-price-dash {
  color: rgba(255, 255, 255, 0.45);
}

.catalog-reset-btn {
  width: 100%;
  margin-top: 4px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid var(--ev-border-hair);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ev-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: "PT Sans Caption", sans-serif;
  transition: background 0.2s, border-color 0.2s;
}

.catalog-reset-btn:hover {
  background: var(--ev-surface-elevated);
  border-color: var(--ev-border-mid);
}

.catalog-main {
  min-width: 0;
}

/* Заголовок + сітка; фон як у фільтрів */
.page-catalog .catalog-products-inner,
.page-cabinet .catalog-products-inner {
  --catalog-heading-gap: clamp(9px, 1.1vw, 12px);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--catalog-panel-bg, var(--bg-section));
  border-radius: clamp(8px, 1vw, 14px);
  padding: var(--catalog-heading-gap) clamp(14px, 2vw, 22px) clamp(12px, 1.8vw, 18px);
  border: 1px solid var(--ev-border-hair);
}

.page-catalog .catalog-products-inner {
  --catalog-heading-gap: clamp(14px, 1.6vw, 20px);
  --catalog-products-inline-pad: clamp(20px, 2.8vw, 32px);
  border-radius: clamp(16px, 2.2vw, 24px);
  /* Низ = ті самі відступи, що зліва/справа */
  padding: var(--catalog-heading-gap) var(--catalog-products-inline-pad) var(--catalog-products-inline-pad);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Кабінет: блок контенту; зліва/справа = як зверху (--catalog-heading-gap) */
.page-cabinet .catalog-products-inner {
  --catalog-heading-gap: clamp(10px, 1.2vw, 14px);
  /* Зовнішня «рамка»: великий радіус; внутрішня біла картка — менший (див. .cabinet-card нижче) */
  --cab-outer-r: clamp(18px, 2.8vw, 30px);
  border-radius: var(--cab-outer-r);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: var(--catalog-heading-gap);
  padding-right: var(--catalog-heading-gap);
  padding-bottom: var(--catalog-heading-gap);
  padding-left: var(--catalog-heading-gap);
  /* Дві картки в колонці: зазор лише між видимими (display:none не в flex — без зайвого відступу зверху «Мої замовлення») */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--catalog-heading-gap);
}

.catalog-products-section.products {
  max-width: none;
  margin: 0;
  padding: 0;
}

.catalog-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-products-section.products h2 {
  text-align: left;
  margin-bottom: 18px;
}

.page-catalog .catalog-products-section.products h2 {
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  margin-top: 0;
  /* Той самий зазор, що й padding-top контейнера — до заголовка і під ним до сітки */
  margin-bottom: var(--catalog-heading-gap, clamp(9px, 1.1vw, 12px));
}

.page-catalog .catalog-products-head .catalog-filters-open-btn {
  margin-left: auto;
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 0 0 24px;
}

.page-catalog .catalog-products-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.3vw, 16px);
  /* Нижній відступ дає .catalog-products-inner — без подвійного «повітря» */
  padding: 0;
}

.page-catalog .catalog-products-grid .product {
  --product-card-radius: var(--ev-shell-radius, clamp(14px, 2vw, 18px));
  --product-buy-btn-radius: 12px;
  padding: 15px;
  background: var(--ev-p-card, var(--surface-primary));
  border: 1px solid var(--ev-p-line-soft, var(--border-light));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05);
}

.page-catalog .catalog-products-grid .product h3 {
  font-size: 17px;
  min-height: 44px;
  color: var(--text-primary);
}

.page-catalog .catalog-products-grid .product:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: var(--border-light);
}

.page-catalog .catalog-products-grid .product img {
  border-radius: clamp(10px, 1.5vw, 14px);
}

.page-catalog .catalog-products-grid .catalog-product-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(17, 17, 16, 0.08);
}

.page-catalog .catalog-products-grid .catalog-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.page-catalog .catalog-product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0ede8;
}

.page-catalog .catalog-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.page-catalog .catalog-product-card:hover .catalog-product-img-wrap img {
  transform: scale(1.06);
}

.page-catalog .catalog-product-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-catalog .catalog-product-fav:hover {
  color: #e44;
  transform: scale(1.1);
}

.page-catalog .catalog-product-fav.active {
  color: #e44;
}

.page-catalog .catalog-product-fav .heart-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.page-catalog .catalog-product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-catalog .catalog-product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-catalog .catalog-product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-catalog .catalog-product-price {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--black);
}

.page-catalog .catalog-product-price small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.page-catalog .catalog-add-btn {
  width: 40px;
  height: 40px;
  background: var(--accent-main);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.page-catalog .catalog-add-btn:hover {
  background: var(--accent-btn-hover);
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .page-catalog .catalog-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-catalog .catalog-products-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--ev-muted);
  font-size: 15px;
}

.page-catalog .catalog-empty {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .catalog-page-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: static;
  }
}

/* ——— кнопка «вгору» лише на каталозі (над чатом) ——— */
body.page-catalog .scroll-to-top-btn,
body.page-print3d .scroll-to-top-btn {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + 52px + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 10049;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ev-border-hair);
  background: var(--ev-surface);
  color: var(--ev-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(var(--ev-rgb), 0.14), 0 2px 6px rgba(var(--ev-rgb), 0.06);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  font-family: var(--ev-font);
}

body.page-catalog .scroll-to-top-btn:hover,
body.page-print3d .scroll-to-top-btn:hover {
  background: var(--ev-surface-muted);
  border-color: var(--ev-border-mid);
  transform: scale(1.04);
}

body.page-catalog .scroll-to-top-btn:focus-visible,
body.page-print3d .scroll-to-top-btn:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 2px;
}

body.page-catalog.cart-open .scroll-to-top-btn,
body.page-print3d.cart-open .scroll-to-top-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ——— плаваючий чат (палітра --ev-*) ——— */
.chat-widget-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  font-family: var(--ev-font);
  color: var(--ev-ink);
}

body.cart-open .chat-widget-root {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 997 !important;
}

.chat-widget-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ev-border-hair);
  background: var(--ev-surface);
  color: var(--ev-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(var(--ev-rgb), 0.14), 0 2px 6px rgba(var(--ev-rgb), 0.06);
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}

.chat-widget-root.chat-widget-open .chat-widget-toggle {
  opacity: 0;
  transform: scale(0.45);
  pointer-events: none;
}

.chat-widget-toggle:hover {
  background: var(--ev-surface-muted);
  border-color: var(--ev-border-mid);
  transform: scale(1.04);
}

.chat-widget-root.chat-widget-open .chat-widget-toggle:hover {
  transform: scale(0.45);
}

.chat-widget-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(340px, calc(100vw - 36px));
  height: min(480px, 72vh);
  max-height: min(480px, 72vh);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  /* «Виростає» з того ж кута, що й кругла кнопка (морф з FAB) */
  transform-origin: calc(100% - 26px) calc(100% + 31px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(0.14);
  transition:
    opacity 0.28s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.4s;
}

/* Корпус вікна чату: підкладка + «плаваючий» заголовок + картка повідомлень */
.chat-widget-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 10px;
  border-radius: 14px;
  overflow: visible;
  background: var(--ev-surface);
  border: 1px solid var(--ev-border-hair);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.06);
  color: var(--ev-ink);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.chat-widget-panel.is-open .chat-widget-card {
  opacity: 1;
  transition: opacity 0.28s ease 0.07s;
}

.chat-widget-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .chat-widget-panel {
    transform: none;
    transform-origin: bottom right;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .chat-widget-panel.is-open {
    transition: opacity 0.2s ease, visibility 0s;
  }

  .chat-widget-panel.is-open .chat-widget-card,
  .chat-widget-card {
    opacity: 1;
    transition: none;
  }

  .chat-widget-root.chat-widget-open .chat-widget-toggle {
    opacity: 0;
    transform: none;
  }
}

/* Плаваюча смуга заголовка чату / кошика / обраних — фон #635d5a за текстом */
.chat-widget-head-float,
.cart-head-float {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--ev-panel-chrome);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* Середня зона + нижній плаваючий блок; сам лист без рамки — рамки у повідомлень і compose-float */
.chat-widget-sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Без окремого «ящика» навколо історії — лише бульбашки на фоні картки */
.chat-widget-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Плаваючий блок вводу знизу (як смуга «Напишіть нам») */
.chat-widget-compose-float {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--ev-surface);
  border-radius: 10px;
  border: 1px solid var(--ev-border-hair);
  box-shadow:
    0 4px 14px rgba(var(--ev-rgb), 0.2),
    0 2px 6px rgba(var(--ev-rgb), 0.1);
  overflow: hidden;
}

.chat-widget-msg {
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-widget-msg-bot {
  align-self: flex-start;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: var(--bg-section);
  border: 1px solid var(--ev-border-hair);
  color: var(--ev-ink);
  box-shadow: 0 1px 3px rgba(var(--ev-rgb), 0.06);
}

.chat-widget-msg-user {
  align-self: flex-end;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px 12px 4px 12px;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.46);
  color: var(--ev-ink);
  box-shadow: 0 1px 3px rgba(251, 146, 60, 0.16);
}

.chat-widget-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-top: none;
  background: transparent;
  box-sizing: border-box;
}

.chat-widget-field {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--ev-border-hair);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 14px;
  font-family: inherit;
}

.chat-widget-field:focus {
  outline: none;
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 3px var(--ev-accent-soft);
}

.chat-widget-send {
  flex-shrink: 0;
  border: none;
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--ev-accent);
  color: var(--ev-text-on-accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.chat-widget-send:hover:not(:disabled) {
  background: var(--ev-accent-hover);
}

.chat-widget-send:disabled {
  opacity: 0.6;
  cursor: wait;
}

.chat-widget-status {
  margin: 0;
  padding: 0 8px 8px;
  min-height: 0;
  font-size: 12px;
  color: var(--ev-accent);
  box-sizing: border-box;
}

.chat-widget-compose-float .chat-widget-status:empty {
  padding: 0;
}

.chat-widget-status.is-error {
  color: var(--ev-heart);
}

/* ——— товар / каталог / кабінет: фон body — як у body.evryka-site (--ev-bg-gradient); темні панелі — лише через --catalog-panel-bg / окремі блоки ——— */
body.evryka-site.page-product,
body.evryka-site.page-catalog,
body.evryka-site.page-cabinet,
body.evryka-site.page-about,
body.evryka-site.page-print3d {
  --product-rhythm: clamp(24px, 3.5vw, 40px);
  --catalog-panel-bg: var(--ev-panel-chrome);
  --ev-p-ink: var(--ev-ink);
  --ev-p-muted: var(--ev-muted);
  --ev-p-line: var(--border-light);
  --ev-p-line-soft: rgba(17, 17, 17, 0.06);
  --ev-p-card: var(--surface-primary);
  --ev-p-tier2: var(--bg-section);
  --ev-p-well: var(--surface-secondary);
  --ev-p-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --ev-p-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --ev-p-toggle-bg: var(--surface-primary);
  --ev-p-toggle-border: var(--border-light);
  --ev-p-toggle-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 4px 16px rgba(0, 0, 0, 0.05);
}

/*
  Профіль / каталог / товар — зовнішній контейнер (як у кабінету):
  margin .container = --ev-stack-outer + safe-area (без --ev-header-float-inset);
  біла картка .catalog-shell: боки 12px зліва, 20px справа (як .header-inner); зверху/знизу — як нижче.
*/
.page-product .container,
.page-catalog .container,
.page-cabinet .container,
.page-about .container,
.page-print3d .container {
  max-width: none;
  width: auto;
  margin-left: calc(
    var(--ev-stack-outer, clamp(0px, 0.65vw, 10px)) + env(safe-area-inset-left, 0px)
  );
  margin-right: calc(
    var(--ev-stack-outer, clamp(0px, 0.65vw, 10px)) + env(safe-area-inset-right, 0px)
  );
  padding: 0 0 clamp(32px, 5vw, 56px);
  box-sizing: border-box;
}

/* Каталог і кабінет: одна велика картка (як на сторінці товару) */
.page-catalog .catalog-shell,
.page-cabinet .catalog-shell,
.page-about .catalog-shell,
.page-print3d .catalog-shell {
  --product-rhythm: clamp(24px, 3.5vw, 40px);
  /* Для зазору фільтри↔сітка (як «край→шапка») */
  --ev-header-screen-inset-l: calc(
    var(--ev-stack-outer) + env(safe-area-inset-left, 0px) + var(--ev-header-float-inset)
  );
  --ev-header-screen-inset-r: calc(
    var(--ev-stack-outer) + env(safe-area-inset-right, 0px) + var(--ev-header-float-inset)
  );
  --product-nav-y: var(--product-rhythm);
  position: relative;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  padding: calc(var(--ev-header-h) + 6px - var(--ev-stack-outer)) 20px var(--product-rhythm) 12px;
  column-gap: var(--product-rhythm);
  row-gap: var(--product-nav-y);
  background: var(--ev-p-card);
  border-radius: var(--ev-shell-radius, clamp(18px, 2.3vw, 26px));
  border: 1px solid var(--ev-p-line-soft);
  box-shadow: var(--ev-p-shadow);
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Кабінет: трохи більший зовнішній радіус оболонки, щоб узгоджувався з сайдбаром і внутрішньою карткою */
.page-cabinet .catalog-shell {
  border-radius: clamp(18px, 2.8vw, 30px);
}

.page-catalog .catalog-shell {
  background: var(--ev-p-card, var(--surface-primary));
  border-color: var(--ev-p-line-soft, rgba(17, 17, 17, 0.06));
}

.page-cabinet .catalog-products-inner > .cabinet-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  /* Внутрішня біла пластина — помітно менший радіус за зовнішній контейнер */
  --cabinet-card-r: clamp(14px, 2.1vw, 22px);
  border-radius: var(--cabinet-card-r);
}

.page-cabinet .catalog-products-inner > .cabinet-card .cabinet-form {
  /* Поля та тригери селектів — ще на крок менші, узгоджено з кнопками сайту */
  --cabinet-field-radius: 12px;
}

.page-cabinet .catalog-products-inner .products.cabinet-card > h2 {
  text-align: left;
  margin-top: 0;
  margin-bottom: var(--cabinet-field-stack, 12px);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--ev-p-ink, var(--ev-ink));
}

.page-cabinet .cabinet-page-title {
  flex: 1 1 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ev-p-ink, var(--ev-ink));
}

.page-cabinet .cabinet-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.page-cabinet .cabinet-page-head .cabinet-page-title {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.page-cabinet .cabinet-page-head .cabinet-menu-open-btn {
  justify-self: end;
  flex-shrink: 0;
}

.page-about .about-page-title,
.page-print3d .about-page-title {
  flex: 1 1 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ev-p-ink, var(--ev-ink));
}

.page-catalog .catalog-page-nav.product-nav,
.page-cabinet .catalog-shell > .product-nav.catalog-page-nav,
.page-about .catalog-shell > .product-nav.catalog-page-nav,
.page-print3d .catalog-shell > .product-nav.catalog-page-nav {
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding-top: var(--product-nav-y);
  padding-bottom: 0;
  border-bottom: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  box-sizing: border-box;
}

/* Без додаткового зсуву — ряд «Назад» збігається з лівим паддінгом shell */
.page-catalog .catalog-page-nav.product-nav,
.page-cabinet .catalog-shell > .product-nav.catalog-page-nav,
.page-about .catalog-shell > .product-nav.catalog-page-nav,
.page-print3d .catalog-shell > .product-nav.catalog-page-nav {
  margin-inline: 0;
  padding-inline: 0;
}

.page-catalog .back-btn,
.page-cabinet .catalog-shell .back-btn,
.page-about .catalog-shell .back-btn,
.page-print3d .catalog-shell .back-btn {
  background: var(--ev-surface);
  color: var(--ev-p-ink);
  border: 1px solid var(--ev-p-line);
  box-shadow: var(--ev-p-shadow-sm);
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
  align-items: center;
}

.page-catalog .back-btn:hover,
.page-cabinet .catalog-shell .back-btn:hover,
.page-about .catalog-shell .back-btn:hover,
.page-print3d .catalog-shell .back-btn:hover {
  background: var(--ev-p-tier2);
  color: var(--ev-p-ink);
}

.page-catalog .back-icon,
.page-cabinet .catalog-shell .back-icon,
.page-about .catalog-shell .back-icon,
.page-print3d .catalog-shell .back-icon {
  stroke: var(--ev-p-ink);
}

.page-catalog .back-btn:hover .back-icon,
.page-cabinet .catalog-shell .back-btn:hover .back-icon,
.page-about .catalog-shell .back-btn:hover .back-icon,
.page-print3d .catalog-shell .back-btn:hover .back-icon {
  stroke: var(--ev-p-ink);
}

.page-catalog .breadcrumbs,
.page-cabinet .catalog-shell .breadcrumbs,
.page-about .catalog-shell .breadcrumbs,
.page-print3d .catalog-shell .breadcrumbs {
  color: var(--ev-p-muted);
  font-weight: 500;
}

.page-catalog .breadcrumbs a,
.page-cabinet .catalog-shell .breadcrumbs a,
.page-about .catalog-shell .breadcrumbs a,
.page-print3d .catalog-shell .breadcrumbs a {
  position: relative;
  display: inline-block;
  padding: 5px 8px 6px;
  margin: 0;
  border-radius: 0;
  color: var(--ev-p-ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.page-catalog .breadcrumbs a:hover,
.page-cabinet .catalog-shell .breadcrumbs a:hover,
.page-about .catalog-shell .breadcrumbs a:hover,
.page-print3d .catalog-shell .breadcrumbs a:hover {
  font-weight: 500;
}

.page-catalog .breadcrumbs a::after,
.page-cabinet .catalog-shell .breadcrumbs a::after,
.page-about .catalog-shell .breadcrumbs a::after,
.page-print3d .catalog-shell .breadcrumbs a::after {
  content: none;
}

.page-catalog .breadcrumbs:hover a,
.page-cabinet .catalog-shell .breadcrumbs:hover a,
.page-about .catalog-shell .breadcrumbs:hover a,
.page-print3d .catalog-shell .breadcrumbs:hover a {
  color: var(--ev-muted-nav);
}

.page-catalog .breadcrumbs:hover a:hover,
.page-cabinet .catalog-shell .breadcrumbs:hover a:hover,
.page-about .catalog-shell .breadcrumbs:hover a:hover,
.page-print3d .catalog-shell .breadcrumbs:hover a:hover {
  color: var(--ev-p-ink);
}

.page-product .product-nav {
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding-top: var(--product-nav-y);
  padding-bottom: 0;
  border-bottom: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  box-sizing: border-box;
}

.page-product .back-btn {
  background: var(--ev-surface);
  color: var(--ev-p-ink);
  border: 1px solid var(--ev-p-line);
  box-shadow: var(--ev-p-shadow-sm);
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
  align-items: center;
}

.page-product .back-btn:hover {
  background: var(--ev-p-tier2);
  color: var(--ev-p-ink);
}

.page-product .back-icon {
  stroke: var(--ev-p-ink);
}

.page-product .back-btn:hover .back-icon {
  stroke: var(--ev-p-ink);
}

/* Catalog back button must match product page exactly */
.page-catalog #catalogBackBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  background: var(--ev-surface) !important;
  color: var(--ev-p-ink) !important;
  border: 1px solid var(--ev-p-line) !important;
  box-shadow: var(--ev-p-shadow-sm) !important;
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px)) !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.page-catalog #catalogBackBtn:hover {
  background: var(--ev-p-tier2);
  color: var(--ev-p-ink);
}

.page-catalog #catalogBackBtn .back-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  flex: 0 0 18px !important;
  stroke: var(--ev-p-ink) !important;
  stroke-width: 4 !important;
  fill: none !important;
}

.page-product .breadcrumbs {
  color: var(--ev-p-muted);
  font-weight: 500;
}

/* Хлібні крихти: без лінії під посиланнями (на відміну від хедера) */
.page-product .breadcrumbs a {
  position: relative;
  display: inline-block;
  padding: 5px 8px 6px;
  margin: 0;
  border-radius: 0;
  color: var(--ev-p-ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.page-product .breadcrumbs a:hover {
  font-weight: 500;
}

.page-product .breadcrumbs a::after {
  content: none;
}

.page-product .breadcrumbs:hover a {
  color: var(--ev-muted-nav);
}

.page-product .breadcrumbs:hover a:hover {
  color: var(--ev-p-ink);
}

.page-product .product-page {
  /* Один крок по картці: зліва/справа/знизу, під «Назад», між рядами, між колонками головного блоку (--product-rhythm з body) */
  --product-card-pad: var(--product-rhythm);
  --product-nav-y: var(--product-card-pad);
  position: relative;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  /* Вертикальний зазор до «Схожі товари» задаємо у .similar-section — як бокові margin контейнера */
  margin: 0;
  /* Лише відступ під фіксовану шапку; +6px замість 12px — теж удвічі менший зазор під бар */
  /* Бічні паддінги: зберегти попередній ритм після збільшення margin контейнера (як у шапки) */
  padding-top: calc(var(--ev-header-h) + 6px - var(--ev-stack-outer));
  padding-bottom: var(--product-card-pad);
  padding-left: 12px;
  padding-right: 20px;
  column-gap: var(--product-card-pad);
  row-gap: var(--product-card-pad);
  background: var(--ev-p-card);
  border-radius: var(--ev-shell-radius, clamp(18px, 2.3vw, 26px));
  border: 1px solid var(--ev-p-line-soft);
  box-shadow: var(--ev-p-shadow);
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Галерея + інфо в одному рядку: без переносу «інфо під галерею» (інакше sticky накладається на опис) */
.page-product .product-main-columns {
  container-type: inline-size;
  container-name: product-main;
  /* Вертикальний зазор між прев’ю = горизонтальний між прев’ю та головним фото (--product-card-pad) */
  --product-thumb-stack-gap: var(--product-card-pad);
  /* Зазор фото ↔ інфо = той самий, що внутрішній відступ картки */
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: var(--product-card-pad, var(--product-rhythm));
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Галерея: прев’ю зліка, головне фото праворуч; ширша колонка для великого фото */
.page-product .product-gallery {
  --product-gallery-gutter: var(--product-card-pad, var(--product-rhythm));
  position: sticky;
  top: calc(var(--ev-header-h, 72px) + 16px);
  flex: 0 1 auto;
  width: 100%;
  max-width: min(720px, 100%);
  max-width: min(720px, 76cqi);
  min-width: 0;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--product-gallery-gutter);
}

.page-product .product-gallery .main-image {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
}

.page-product .main-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--ev-shell-radius);
  box-shadow: var(--ev-p-shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.06));
  border: 1px solid var(--ev-p-line-soft, rgba(0, 0, 0, 0.06));
}

/* Заповнює решту рядка до правого padding картки — без «порожньої смуги» справа */
.page-product .product-info {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-width: min(100%, 260px);
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
}

.page-product .product-info h1,
.page-product .product-info h2 {
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ev-p-ink, var(--ev-ink));
  letter-spacing: -0.02em;
}

.page-product .price {
  color: var(--ev-price);
}

.page-product .thumbnails {
  position: static;
  display: flex;
  flex-direction: column;
  gap: var(--product-thumb-stack-gap, var(--product-rhythm));
  flex-shrink: 0;
  /* Зліва: padding .product-page (12px) + margin = зазору між прев’ю й головним фото (gap у .product-gallery) */
  margin-left: max(0px, calc(var(--product-gallery-gutter, var(--product-rhythm)) - 12px));
  margin-right: 0;
  padding: 0;
  /* Вирівнювання з головним фото: без зайвого зазору над першим прев’ю */
  padding-top: 0;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
}

.page-product .thumbnails img {
  display: block;
  width: clamp(80px, 10cqi, 96px);
  height: clamp(80px, 10cqi, 96px);
  object-fit: cover;
  border-radius: clamp(10px, 1.2cqi, 14px);
  border: 2px solid rgba(var(--ev-rgb), 0.16);
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-product .thumbnails img:first-child {
  margin-top: 0;
}

.page-product .thumbnails img.thumb-active {
  border-color: var(--ev-p-ink);
  box-shadow: 0 0 0 1px var(--ev-p-ink);
}

.page-product .thumbnails img:hover {
  border-color: var(--ev-accent);
}

/* Кількість на сторінці товару — ті самі класи, що в кошику: .qty-wrapper.cart-qty-wrapper */
.page-product .product-qty {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-bottom: clamp(12px, 2.2vw, 16px);
}

.page-product .product-qty-controls-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
}

.page-product .product-qty-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ev-p-muted);
}

.page-product .product-qty .qty-wrapper {
  --ev-qty-outer-r: var(--ev-header-bar-radius, clamp(10px, 1.2vw, 16px));
  --ev-qty-pad-y: 4px;
  --ev-qty-pad-x: 6px;
  /* Внутрішній радіус по краях = зовнішній мінус паддінг — збігається з вигином коробки */
  --ev-qty-end-r: max(4px, calc(var(--ev-qty-outer-r) - var(--ev-qty-pad-x)));
  --ev-qty-mid-r: 5px;

  flex-shrink: 0;
  background: var(--ev-surface);
  border: 1px solid var(--ev-p-line);
  border-radius: var(--ev-qty-outer-r);
  box-shadow: var(--ev-p-shadow-sm);
  padding: var(--ev-qty-pad-y) var(--ev-qty-pad-x);
  gap: 4px;
  box-sizing: border-box;
}

.page-product .product-qty-controls-row .product-price-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Кнопки ±: компактніше; кути зовні узгоджені з оболонкою */
.page-product .product-qty .qty-btn {
  width: auto;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  box-sizing: border-box;
}

.page-product .product-qty .qty-btn svg {
  width: 14px;
  height: 14px;
}

.page-product .product-qty .qty-input {
  width: 40px;
  min-width: 36px;
  font-size: 14px;
  font-weight: 700;
}

.page-product .product-qty .qty-btn:first-child {
  border-radius: var(--ev-qty-end-r) var(--ev-qty-mid-r) var(--ev-qty-mid-r) var(--ev-qty-end-r);
}

.page-product .product-qty .qty-btn:last-child {
  border-radius: var(--ev-qty-mid-r) var(--ev-qty-end-r) var(--ev-qty-end-r) var(--ev-qty-mid-r);
}

.page-product .product-qty .qty-btn:hover {
  background: var(--ev-p-tier2);
}

.page-product .product-qty .qty-btn:hover svg {
  stroke: var(--ev-p-ink);
}

/* Кількість у кошику та в блоці «Ваше замовлення» — однакова розмітка (.cart-qty-wrapper) */
.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper {
  --ev-qty-outer-r: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  --ev-qty-pad-y: 5px;
  --ev-qty-pad-x: 7px;
  --ev-qty-end-r: max(4px, calc(var(--ev-qty-outer-r) - var(--ev-qty-pad-x)));
  --ev-qty-mid-r: 5px;

  align-self: flex-start;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-qty-outer-r);
  box-shadow: 0 4px 16px rgba(var(--ev-rgb), 0.07);
  padding: var(--ev-qty-pad-y) var(--ev-qty-pad-x);
  gap: 6px;
  box-sizing: border-box;
  margin-bottom: 0;
}

.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn {
  width: auto;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
}

.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:first-child,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:first-child {
  border-radius: var(--ev-qty-end-r) var(--ev-qty-mid-r) var(--ev-qty-mid-r) var(--ev-qty-end-r);
}

.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:last-child,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:last-child {
  border-radius: var(--ev-qty-mid-r) var(--ev-qty-end-r) var(--ev-qty-end-r) var(--ev-qty-mid-r);
}

.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:hover,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:hover {
  background: var(--ev-surface-muted);
}

.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:hover svg,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn:hover svg {
  stroke: var(--ev-ink);
}

.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn svg,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper .qty-btn svg {
  width: 14px;
  height: 14px;
}

.cart-sidebar .cart-item .qty-wrapper.cart-qty-wrapper .qty-input,
.order-items-card .cart-item .qty-wrapper.cart-qty-wrapper .qty-input {
  width: 48px;
  font-size: 14px;
  font-weight: 700;
}

.page-product .quick-checkout-btn {
  margin-top: 0;
  margin-bottom: clamp(12px, 2.2vw, 16px);
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  min-height: 48px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  box-sizing: border-box;
  background: var(--accent-main);
  color: var(--ev-text-on-accent);
  border: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.page-product .quick-checkout-btn:hover {
  background: var(--accent-btn-hover);
  color: var(--ev-text-on-accent);
}

.page-product .quick-checkout-btn:active {
  transform: scale(0.99);
}

.page-product .product-desc-accordion {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: clamp(6px, 1.5vw, 10px) 0 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}

.page-product .product-desc-toggle {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  min-height: 48px;
  border: 1px solid var(--ev-p-line);
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  background: var(--ev-surface);
  color: var(--ev-p-ink);
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--ev-p-shadow-sm);
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.15s ease;
}

.page-product .product-desc-toggle:hover {
  background: var(--ev-p-tier2);
  border-color: rgba(var(--ev-rgb), 0.14);
  box-shadow: 0 4px 18px rgba(var(--ev-rgb), 0.08);
}

.page-product .product-desc-toggle:active {
  transform: scale(0.99);
}

.page-product .product-desc-toggle:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 2px;
}

.page-product .product-desc-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.page-product .product-desc-toggle:hover .product-desc-chevron {
  opacity: 1;
}

.page-product .product-desc-toggle[aria-expanded="true"] .product-desc-chevron {
  transform: rotate(180deg);
}

.page-product .product-desc-panel {
  margin-top: 12px;
  padding: 0;
  width: 100%;
  align-self: stretch;
}

.page-product .product-desc-panel[hidden] {
  display: none;
}

.page-product .product-desc-content.desc {
  margin-top: 0;
  background: var(--ev-p-well);
  border: 1px solid var(--ev-p-line-soft);
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  padding: 18px 22px;
  box-shadow: var(--ev-p-shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.06)),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: var(--ev-ink);
  font-size: 15px;
  line-height: 1.65;
  box-sizing: border-box;
}

.page-product .product-desc-content.desc b {
  color: var(--ev-p-ink);
}

.page-product .similar-section {
  margin-top: var(--ev-stack-outer, clamp(0px, 0.65vw, 10px));
  --similar-h-pad-l: clamp(16px, 2.4vw, 28px);
  --similar-h-pad-r: 20px;
  /* Чіткіший відрив від блоку товару зверху */
  --similar-section-pad-top: clamp(22px, 3vw, 32px);
  /* Додатковий низ, щоб власна тінь секції не «різалась» у межах потоку; боки — як у .product-page */
  padding: var(--similar-section-pad-top) var(--similar-h-pad-r) calc(var(--product-rhythm) + 10px)
    var(--similar-h-pad-l);
  background: var(--ev-p-card);
  border-radius: clamp(18px, 2.3vw, 26px);
  border: 1px solid var(--ev-p-line-soft);
  box-shadow: var(--ev-p-shadow-sm);
  overflow: visible;
}

.page-product .reviews-section {
  margin-top: var(--ev-stack-outer, clamp(0px, 0.65vw, 10px));
  padding: clamp(22px, 3vw, 32px) clamp(16px, 2.4vw, 28px) calc(var(--product-rhythm) + 10px);
  background: var(--ev-p-card);
  border-radius: clamp(18px, 2.3vw, 26px);
  border: 1px solid var(--ev-p-line-soft);
  box-shadow: var(--ev-p-shadow-sm);
}

.page-product .reviews-section h3 {
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ev-p-ink);
  margin: 0 0 clamp(14px, 2vw, 20px);
}

.reviews-list {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--ev-p-line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--ev-surface);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-author {
  font-size: 14px;
  color: var(--ev-p-ink);
}

.review-rating {
  color: #f5a524;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.review-date {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ev-sub);
}

.review-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ev-ink);
}

.review-card--empty {
  text-align: center;
  padding: 18px 14px;
}

.review-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ev-p-ink);
}

.review-empty-text {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ev-sub);
}

/* Другий блок ряду — додатковий зазор між картками (перебиває margin-top вище) */
.page-product .container > .similar-section + .similar-section {
  margin-top: clamp(16px, 2.2vw, 26px);
}

.page-product .similar-section h3 {
  font-family: var(--ev-font, "Inter", system-ui, sans-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-transform: none;
  color: var(--ev-p-ink);
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  text-align: left;
  max-width: 42ch;
}

.page-product .similar-wrap {
  position: relative;
  display: block;
  align-items: unset;
  width: calc(100% + var(--similar-h-pad-l) + var(--similar-h-pad-r));
  max-width: none;
  margin-left: calc(-1 * var(--similar-h-pad-l));
  margin-right: calc(-1 * var(--similar-h-pad-r));
  box-sizing: border-box;
}

.page-product .similar-rail {
  margin: 0;
  /* Трохи більший відступ від краю картки — згасання візуально починається далі від рамки */
  padding: 0 clamp(20px, 3.2vw, 40px);
  width: 100%;
  box-sizing: border-box;
}

.page-product .similar-list {
  /* Згасання сильніше: довший перехід + початок рампи зсунутий від зовнішнього краю */
  --similar-fade-inset: clamp(16px, 3vw, 32px);
  --similar-fade-span: clamp(64px, 13vw, 140px);
  gap: clamp(10px, 1.5vw, 14px);
  padding: 10px clamp(22px, 3.2vw, 42px) 28px;
  scroll-padding-inline: clamp(22px, 3.2vw, 42px);
  /* М’яке згасання країв ряду; тіні карток трохи заходять у зону fade */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.14) var(--similar-fade-inset),
    rgba(0, 0, 0, 0.5) calc(var(--similar-fade-inset) + (var(--similar-fade-span) * 0.42)),
    #000 calc(var(--similar-fade-inset) + var(--similar-fade-span)),
    #000 calc(100% - var(--similar-fade-inset) - var(--similar-fade-span)),
    rgba(0, 0, 0, 0.5) calc(100% - var(--similar-fade-inset) - (var(--similar-fade-span) * 0.42)),
    rgba(0, 0, 0, 0.14) calc(100% - var(--similar-fade-inset)),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.14) var(--similar-fade-inset),
    rgba(0, 0, 0, 0.5) calc(var(--similar-fade-inset) + (var(--similar-fade-span) * 0.42)),
    #000 calc(var(--similar-fade-inset) + var(--similar-fade-span)),
    #000 calc(100% - var(--similar-fade-inset) - var(--similar-fade-span)),
    rgba(0, 0, 0, 0.5) calc(100% - var(--similar-fade-inset) - (var(--similar-fade-span) * 0.42)),
    rgba(0, 0, 0, 0.14) calc(100% - var(--similar-fade-inset)),
    transparent
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  scroll-snap-type: x proximity;
}

.page-product .similar-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(var(--ev-rgb), 0.14);
  background: var(--ev-p-card);
  color: var(--ev-p-ink);
  box-shadow:
    0 4px 14px rgba(var(--ev-rgb), 0.1),
    0 1px 3px rgba(var(--ev-rgb), 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.page-product .similar-arrow .similar-arrow__icon {
  width: 22px;
  height: 22px;
}

.page-product .similar-arrow:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 3px;
}

.page-product .similar-arrow.similar-arrow--prev,
.page-product .similar-arrow.similar-arrow--next {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

.page-product .similar-arrow--prev {
  left: max(clamp(32px, 4.8vw, 56px), env(safe-area-inset-left, 0px));
}

.page-product .similar-arrow--next {
  right: max(clamp(32px, 4.8vw, 56px), env(safe-area-inset-right, 0px));
}

.page-product .similar-arrow--prev:not(:disabled):hover,
.page-product .similar-arrow--next:not(:disabled):hover {
  transform: translateY(calc(-50% - 1px));
}

.page-product .similar-arrow--prev:not(:disabled):active,
.page-product .similar-arrow--next:not(:disabled):active {
  transform: translateY(-50%);
}

.page-product .similar-arrow:not(:disabled):hover {
  background: var(--accent-main);
  color: var(--ev-text-on-accent);
  border-color: var(--accent-main);
  box-shadow:
    0 8px 24px rgba(251, 146, 60, 0.32),
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.page-product .similar-arrow:not(:disabled):active {
  background: var(--accent-hover);
  color: var(--ev-text-on-accent);
  border-color: var(--accent-hover);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
}

/* Неактивні стрілки виглядають як активні (немає гортання), щоб обидві були однакові */
.page-product .similar-arrow:disabled,
.page-product .similar-arrow:disabled:hover {
  cursor: default;
  background: var(--ev-p-card);
  color: var(--ev-p-ink);
  border-color: rgba(var(--ev-rgb), 0.14);
  box-shadow:
    0 4px 14px rgba(var(--ev-rgb), 0.1),
    0 1px 3px rgba(var(--ev-rgb), 0.08);
  opacity: 1;
}

.page-product .similar-arrow--prev:disabled,
.page-product .similar-arrow--next:disabled,
.page-product .similar-arrow--prev:disabled:hover,
.page-product .similar-arrow--next:disabled:hover {
  transform: translateY(-50%);
}

/* На сторінці товару гортання тільки свайпом/скролом — без стрілок. */
.page-product .similar-arrow {
  display: none !important;
}

.page-product .similar-card {
  scroll-snap-align: center;
  background: var(--ev-p-card);
  border: 1px solid var(--ev-p-line-soft, rgba(0, 0, 0, 0.06));
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.09),
    0 3px 12px rgba(0, 0, 0, 0.05);
  border-radius: var(--ev-shell-radius, clamp(14px, 2vw, 18px));
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-product .similar-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.13),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.page-product .similar-card img {
  border-radius: clamp(10px, 1.5vw, 14px);
  background: var(--ev-shell-bg, var(--ev-shell-bg));
}

@media (max-width: 900px) {
  .page-product .product-main-columns {
    flex-direction: column;
    align-items: stretch;
  }

  .page-product .product-gallery {
    position: relative;
    top: auto;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  .page-product .product-gallery .main-image {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }

  .page-product .product-info {
    flex: none;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  .page-product .thumbnails {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    gap: 7px;
  }

  .page-product .main-image img {
    max-width: 100%;
    width: 100%;
  }
}

/* ——— сторінка «Про нас» ——— */
.page-about .about-page {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* Менший зазор під заголовком «Про нас» (компенсація row-gap у .catalog-shell) */
  margin-top: calc(-1 * clamp(6px, 1.2vw, 14px));
}

.page-about .about-page-title::after {
  content: "";
  display: block;
  width: clamp(44px, 9vw, 64px);
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--ev-accent);
}

.page-about .about-hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * clamp(8px, 1.2vw, 14px));
  margin-bottom: clamp(18px, 2.8vw, 32px);
  padding: clamp(22px, 3.2vw, 34px);
  border-radius: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(251, 146, 60, 0.24);
  background: #fffaf5;
  box-shadow:
    0 18px 44px rgba(17, 17, 17, 0.08),
    0 2px 8px rgba(17, 17, 17, 0.05);
}

.page-about .about-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.26);
  background: rgba(251, 146, 60, 0.12);
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-about .about-hero .about-page-title {
  margin: 12px 0 0;
}

.page-about .about-hero__lead {
  max-width: 78ch;
  margin: 12px 0 0;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.86);
}

.page-about .about-kpis {
  margin-top: clamp(16px, 2.1vw, 22px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.page-about .about-kpi {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.page-about .about-kpi b {
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.2;
  color: #111827;
}

.page-about .about-kpi span {
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

@media (max-width: 980px) {
  .page-about .about-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-about .about-kpis {
    grid-template-columns: 1fr;
  }
}

.page-about .about-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--product-rhythm, clamp(24px, 3.5vw, 40px));
  margin-top: 0;
}

@media (max-width: 820px) {
  .page-about .about-page__grid {
    grid-template-columns: 1fr;
  }
}

.page-about .about-card {
  --about-card-r: clamp(16px, 2vw, 20px);
  margin: 0;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--ev-p-well, var(--surface-secondary));
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--about-card-r);
  box-shadow:
    var(--ev-p-shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.06)),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  box-sizing: border-box;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

/* Темні акценти у межах глобальної палітри сайту */
.page-about .about-card--story,
.page-about .about-card--contacts {
  background: var(--ev-panel-chrome, #635d5a);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.page-about .about-card--story h2,
.page-about .about-card--contacts h2,
.page-about .about-card--story .about-card__body,
.page-about .about-card--contacts .about-card__body {
  color: rgba(255, 255, 255, 0.95);
}

.page-about .about-card--story .about-card__body strong,
.page-about .about-card--contacts .about-card__body strong {
  color: #fff;
}

.page-about .about-card--story .about-card__icon,
.page-about .about-card--contacts .about-card__icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-about .about-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.1),
    0 4px 14px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.32);
}

.page-about .about-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.page-about .about-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(251, 146, 60, 0.28);
  color: var(--accent-hover);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 12px rgba(251, 146, 60, 0.12);
}

.page-about .about-card__icon svg {
  width: 22px;
  height: 22px;
}

.page-about .about-card h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ev-p-ink, var(--ev-ink));
  line-height: 1.25;
}

.page-about .about-card__body strong {
  color: var(--accent-hover);
  font-weight: 700;
}

.page-about .about-card__body {
  font-size: clamp(15px, 1.35vw, 16px);
  line-height: 1.65;
  color: var(--ev-p-ink, var(--ev-ink));
}

.page-about .about-card__body p {
  margin: 0 0 0.85em;
}

.page-about .about-card__body p:last-child {
  margin-bottom: 0;
}

.page-about .about-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-about .about-list li {
  position: relative;
  padding: 10px 0 10px 1.35em;
  border-bottom: 1px solid var(--ev-p-line-soft, rgba(17, 17, 17, 0.06));
  font-size: clamp(15px, 1.35vw, 16px);
  line-height: 1.55;
  color: var(--ev-p-ink, var(--ev-ink));
}

.page-about .about-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-about .about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ev-accent);
  opacity: 0.55;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.2);
  transform: translateY(-50%);
}

.page-about .about-card--contacts {
  grid-column: 1 / -1;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-about .about-card--wide {
  grid-column: 1 / -1;
}

.page-about .about-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 18px);
}

@media (max-width: 760px) {
  .page-about .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

.page-about .about-contact-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: clamp(16px, 2vw, 20px);
  background: var(--ev-p-card, var(--surface-primary));
  border: 1px solid var(--ev-p-line-soft, rgba(17, 17, 17, 0.06));
  border-radius: clamp(12px, 1.5vw, 16px);
  box-sizing: border-box;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Telegram + Viber поруч як окрема пара */
@media (min-width: 761px) {
  .page-about .about-contact-tile--messenger {
    grid-column: span 1;
  }
}

.page-about .about-contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.page-about .about-contact-tile__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

/* Текстова колонка поруч з іконкою — щоб email/телефон не ламались посеред слова */
.page-about .about-contact-tile__row > div:not(.about-contact-tile__icon) {
  flex: 1;
  min-width: 0;
}

.page-about .about-contact-tile__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(251, 146, 60, 0.22);
  color: var(--accent-hover);
}

.page-about .about-contact-tile__icon svg {
  width: 20px;
  height: 20px;
}

.page-about .about-contact-tile__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(249, 115, 22, 0.88);
  margin-bottom: 4px;
}

.page-about .about-card--contacts .about-contact-tile__label {
  color: rgba(17, 17, 17, 0.78);
}

.page-about .about-contact-tile__value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-about .about-contact-tile__value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.page-about .about-contact-tile__value a:hover {
  border-bottom-color: currentColor;
}

.page-about .about-messenger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.page-about .about-msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px));
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.page-about .about-msg-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-about .about-msg-btn:active {
  transform: translateY(0);
}

.page-about .about-msg-btn--telegram {
  background: #2aabee;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
}

.page-about .about-msg-btn--viber {
  background: #7360f2;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
}

.page-about .about-msg-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-about .about-hours-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(251, 146, 60, 0.28);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: -0.01em;
  color: var(--ev-p-ink, var(--ev-ink));
  box-shadow: 0 2px 10px rgba(251, 146, 60, 0.1);
}

/* Phone-first polish for common storefront patterns */
@media (max-width: 980px) {
  #products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 20px 20px;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 36px 24px;
  }

  .footer-bottom {
    padding: 16px 24px;
  }

  .page-catalog .catalog-shell,
  .page-cabinet .catalog-shell,
  .page-about .catalog-shell,
  .page-print3d .catalog-shell,
  .page-product .product-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 768px) {
  /* Каталог на телефоні: без фонової "рамки" контейнера позаду карток */
  .page-catalog .catalog-shell,
  .page-catalog .catalog-page-layout,
  .page-catalog .catalog-main,
  .page-catalog .catalog-products-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .page-catalog .catalog-shell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-catalog .catalog-page-layout {
    gap: 0 !important;
  }

  .category-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .category-tabs .tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .product-nav,
  .page-catalog .catalog-page-nav.product-nav,
  .page-cabinet .catalog-shell > .product-nav.catalog-page-nav,
  .page-about .catalog-shell > .product-nav.catalog-page-nav,
  .page-print3d .catalog-shell > .product-nav.catalog-page-nav {
    gap: 10px;
    align-items: center;
  }

  .breadcrumbs {
    flex-wrap: wrap;
  }

  .page-catalog .catalog-filters {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 1302;
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 12px;
    max-height: min(72vh, 520px);
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(17, 17, 17, 0.08) !important;
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(22px) scale(0.96);
    transform-origin: 50% 100%;
    transition: opacity 0.22s ease, transform 0.22s ease;
    overflow-y: auto;
  }

  .page-catalog .catalog-filters-title,
  .page-catalog .catalog-reset-btn {
    grid-column: 1 / -1;
  }

  .page-catalog .catalog-filters-title {
    margin: 0;
    margin-right: 46px;
    color: var(--text-primary) !important;
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .page-catalog .catalog-filter-block {
    display: grid;
    gap: 8px;
    padding: 0;
  }

  .page-catalog .catalog-filter-label {
    color: rgba(17, 17, 17, 0.72) !important;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .page-catalog .catalog-filter-input,
  .page-catalog .catalog-select-trigger {
    background: #fff !important;
    border: 1px solid rgba(17, 17, 17, 0.16) !important;
    color: var(--text-primary) !important;
  }

  .page-catalog .catalog-price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-catalog .catalog-price-row .catalog-price-dash {
    display: none;
  }

  .catalog-filters-open-btn,
  .cabinet-menu-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
      transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
    margin-left: auto;
    position: relative;
    z-index: 1405;
    pointer-events: auto;
  }

  .catalog-filters-open-btn:hover,
  .cabinet-menu-open-btn:hover {
    background: #fff;
    border-color: rgba(17, 17, 17, 0.22);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
  }

  body.catalog-filters-open .page-catalog .catalog-products-head .catalog-filters-open-btn,
  body.catalog-filters-open .catalog-filters-open-btn,
  body.cabinet-menu-open .page-cabinet .cabinet-menu-open-btn {
    opacity: 1 !important;
    pointer-events: none !important;
    cursor: default !important;
    filter: grayscale(1) saturate(0.1) !important;
    background: #eceff3 !important;
    color: #8b93a1 !important;
    border-color: #cfd5de !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.catalog-filters-open .chat-widget-root,
  body.catalog-filters-open .scroll-to-top-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .page-catalog .catalog-filters-close,
  .page-cabinet .cabinet-menu-close,
  .mobile-more-sheet__close {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .page-catalog .catalog-filters-close:hover,
  .page-catalog .catalog-filters-close:focus-visible,
  .page-cabinet .cabinet-menu-close:hover,
  .page-cabinet .cabinet-menu-close:focus-visible,
  .mobile-more-sheet__close:hover,
  .mobile-more-sheet__close:focus-visible {
    background: #fff;
    border-color: rgba(17, 17, 17, 0.22);
    transform: translateY(-1px);
  }

  .page-cabinet .catalog-filters.cabinet-sidebar {
    position: fixed;
    left: calc(8px + env(safe-area-inset-left, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 1302;
    display: none;
    gap: 10px;
    max-height: min(72vh, 520px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(22px) scale(0.96);
    transform-origin: 50% 100%;
    transition: opacity 0.22s ease, transform 0.22s ease;
    overflow-y: auto;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.12);
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title {
    margin-right: 46px;
    margin-bottom: 2px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: var(--text-primary);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn::after {
    content: "›";
    color: rgba(17, 17, 17, 0.42);
    font-size: 18px;
    line-height: 1;
    margin-left: 10px;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn:not(.active):not(.logout) {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-primary);
    border-color: rgba(17, 17, 17, 0.08);
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn:not(.active):not(.logout):hover {
    background: rgba(248, 250, 252, 1);
    color: var(--text-primary);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn.active {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
    color: #1f2937;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn.active::after {
    color: var(--ev-accent);
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn.logout {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 17, 17, 0.08);
    color: rgba(17, 17, 17, 0.82);
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn.logout::after {
    color: rgba(17, 17, 17, 0.42);
  }

  .page-cabinet .cabinet-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1301;
    background: rgba(0, 0, 0, 0.26);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .page-catalog .catalog-filters-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1301;
    background: rgba(0, 0, 0, 0.26);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.catalog-filters-open {
    overflow: hidden;
  }

  body.cabinet-menu-open {
    overflow: hidden;
  }

  body.cabinet-menu-open .chat-widget-root,
  body.cabinet-menu-open .scroll-to-top-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.catalog-filters-open .page-catalog .catalog-filters {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.catalog-filters-open .page-catalog .catalog-filters-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.cabinet-menu-open .page-cabinet .catalog-filters.cabinet-sidebar {
    display: flex;
    flex-direction: column;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.cabinet-menu-open .page-cabinet .cabinet-menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* ===== Unified mobile flyout style: More / Filters / Cabinet ===== */
  .page-catalog .catalog-filters,
  .page-cabinet .catalog-filters.cabinet-sidebar,
  .mobile-more-sheet__panel {
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(17, 17, 17, 0.08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 243, 243, 0.98)) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.12) !important;
    padding: 12px !important;
    gap: 10px !important;
    max-height: min(72vh, 520px) !important;
    transform-origin: 50% 100% !important;
    transform: translateY(22px) scale(0.96) !important;
    transition: opacity 0.22s ease, transform 0.22s ease !important;
  }

  .page-catalog .catalog-filters-title,
  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title,
  .mobile-more-sheet__head {
    margin-right: 46px !important;
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
  }

  .page-catalog .catalog-filters-close,
  .page-cabinet .cabinet-menu-close,
  .mobile-more-sheet__close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(17, 17, 17, 0.14) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
    font-size: 18px !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn,
  .mobile-more-sheet__link {
    min-height: 40px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.08) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em !important;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
  }

  /* Same trigger style/animation for catalog filters and cabinet menu */
  .catalog-filters-open-btn,
  .cabinet-menu-open-btn {
    min-height: 40px !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.14) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
      transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease !important;
  }

  .page-cabinet .cabinet-page-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .page-cabinet .cabinet-page-head .cabinet-page-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .page-cabinet .cabinet-page-head .cabinet-menu-open-btn {
    margin-left: auto !important;
    justify-self: auto !important;
    flex-shrink: 0 !important;
  }

  body.catalog-filters-open .page-catalog .catalog-filters,
  body.cabinet-menu-open .page-cabinet .catalog-filters.cabinet-sidebar,
  body.mobile-more-open .mobile-more-sheet__panel {
    transform: translateY(0) scale(1) !important;
  }
}

/* Brand-new drawer system (neo) */
@media (max-width: 768px) {
  :root {
    --neo-drawer-side: 12px;
    --neo-drawer-bottom: 92px;
    --neo-drawer-radius: 22px;
    --neo-drawer-pad: 16px;
    --neo-drawer-gap: 10px;
    --neo-drawer-bg: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
    --neo-drawer-border: 1px solid rgba(30, 41, 59, 0.12);
    --neo-drawer-shadow: 0 24px 56px rgba(2, 8, 23, 0.26), 0 10px 26px rgba(15, 23, 42, 0.12);
  }

  .neo-drawer-overlay {
    background: rgba(7, 12, 20, 0.48) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }

  .neo-drawer {
    position: fixed !important;
    left: calc(var(--neo-drawer-side) + env(safe-area-inset-left, 0px)) !important;
    right: calc(var(--neo-drawer-side) + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(var(--neo-drawer-bottom) + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1302 !important;
    border-radius: var(--neo-drawer-radius) !important;
    border: var(--neo-drawer-border) !important;
    background: var(--neo-drawer-bg) !important;
    box-shadow: var(--neo-drawer-shadow) !important;
    padding: var(--neo-drawer-pad) !important;
    gap: var(--neo-drawer-gap) !important;
    max-height: min(74vh, 560px) !important;
    overflow-y: auto !important;
    transform-origin: 50% 100% !important;
    transform: translateY(28px) scale(0.92) !important;
    transition: transform 0.26s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.2s ease !important;
  }

  .neo-drawer__title,
  .neo-drawer__title-row {
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
  }

  .neo-drawer__title {
    margin: 0 46px 4px 0 !important;
  }

  .neo-drawer__title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 4px 0 !important;
  }

  .neo-drawer__close {
    position: static !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    background: #f8fafc !important;
    color: #111827 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease !important;
  }

  .neo-drawer__close:hover,
  .neo-drawer__close:focus-visible {
    transform: translateY(-1px) !important;
    background: #fff !important;
    border-color: rgba(15, 23, 42, 0.24) !important;
  }

  .neo-drawer__item {
    min-height: 44px !important;
    padding: 10px 13px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.11) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease !important;
  }

  .neo-drawer__item + .neo-drawer__item {
    margin-top: 2px !important;
  }

  .neo-drawer__item:hover,
  .neo-drawer__item:focus-visible {
    background: #fff !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px) !important;
  }

  .neo-drawer--filters .catalog-filter-label {
    color: rgba(17, 17, 16, 0.64) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
  }

  .neo-drawer--filters .catalog-filter-input,
  .neo-drawer--filters .catalog-select-trigger,
  .neo-drawer--filters .catalog-reset-btn {
    min-height: 44px !important;
    padding: 10px 13px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ev-line) !important;
    background: var(--surface-primary) !important;
    color: var(--ev-ink) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  .neo-drawer-trigger {
    min-height: 42px !important;
    padding: 9px 16px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%) !important;
    color: #0f172a !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease,
      background 0.18s ease, color 0.18s ease !important;
  }

  .neo-drawer-trigger:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(15, 23, 42, 0.24) !important;
  }

  .page-cabinet .cabinet-page-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .page-cabinet .cabinet-page-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .page-cabinet .cabinet-page-head .neo-drawer-trigger {
    margin-left: auto !important;
  }

  body.catalog-filters-open .page-catalog .neo-drawer,
  body.cabinet-menu-open .page-cabinet .neo-drawer,
  body.mobile-more-open .neo-drawer {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.catalog-filters-open .page-catalog .neo-drawer-trigger,
  body.cabinet-menu-open .page-cabinet .neo-drawer-trigger {
    pointer-events: none !important;
    cursor: default !important;
    filter: grayscale(1) saturate(0.15) !important;
    background: #e8edf3 !important;
    color: #8c95a3 !important;
    border-color: #c7d1dd !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .breadcrumbs {
    display: none !important;
  }

  body.evryka-site.page-home {
    --ev-shell-margin: 8px;
    --home-hero-to-content-gap: 8px;
    --mobile-card-gap: 8px;
  }

  body.evryka-site.page-catalog {
    --ev-shell-margin: 8px;
    --mobile-card-gap: 4px;
  }

  .container {
    padding: 0 12px;
  }

  .page-home .products {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  .page-home .container,
  .page-catalog .container {
    padding-left: 0;
    padding-right: 0;
  }

  #products {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px 4px 18px;
  }

  .page-home #products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mobile-card-gap);
    padding: var(--mobile-card-gap) var(--mobile-card-gap) 16px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .page-home #products .product {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-catalog .catalog-filters {
    grid-template-columns: 1fr;
  }

  /* Каталог на мобілці: без темного контейнера, як на головній */
  .page-catalog .catalog-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-catalog .catalog-page-layout,
  .page-catalog .catalog-main,
  .page-catalog .catalog-products-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .page-catalog .catalog-products-inner {
    --catalog-heading-gap: var(--mobile-card-gap);
    padding: 0;
  }

  .page-catalog .catalog-products-section.products h2 {
    color: var(--text-primary);
    margin-bottom: 0;
    padding: 0;
  }

  .page-catalog .catalog-products-head {
    margin-bottom: var(--mobile-card-gap);
    padding: 0 var(--mobile-card-gap);
  }

  .page-catalog .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mobile-card-gap);
    padding: var(--mobile-card-gap);
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .page-catalog .catalog-products-grid .product {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .page-home #products .product,
  .page-catalog .catalog-products-grid .product {
    --product-card-radius: 12px;
    --product-buy-btn-radius: 9px;
    --product-media-radius: 8px;
    padding: clamp(3px, 1.1vw, 5px);
  }

  .page-home #products .product img,
  .page-catalog .catalog-products-grid .product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
  }

  .page-home #products .product h3,
  .page-catalog .catalog-products-grid .product h3 {
    font-size: clamp(12px, 3.3vw, 13px);
    line-height: 1.24;
    min-height: clamp(30px, 8.4vw, 34px);
    margin: clamp(5px, 1.5vw, 7px) 0 clamp(5px, 1.2vw, 6px);
    overflow-wrap: anywhere;
  }

  .page-home #products .product .price,
  .page-catalog .catalog-products-grid .product .price {
    font-size: clamp(14px, 4.5vw, 16px);
    line-height: 1.2;
    margin-bottom: clamp(5px, 1.5vw, 7px);
  }

  .page-home #products .product .buy-btn,
  .page-catalog .catalog-products-grid .product .buy-btn {
    min-height: clamp(30px, 8.8vw, 34px);
    padding: clamp(6px, 1.8vw, 8px) clamp(8px, 2.2vw, 10px);
    border-radius: var(--product-buy-btn-radius);
    font-size: clamp(11px, 3vw, 12px);
    letter-spacing: 0.04em;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 16px;
  }

  .footer .socials.socials--messengers {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
  }

  .page-product .similar-section {
    --similar-h-pad-l: 12px;
    --similar-h-pad-r: 12px;
    --similar-section-pad-top: 14px;
    padding: var(--similar-section-pad-top) var(--similar-h-pad-r) 16px var(--similar-h-pad-l);
  }

  .page-product .similar-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .page-product .similar-wrap {
    width: 100%;
    margin: 0;
  }

  .page-product .similar-rail {
    padding: 0;
  }

  .page-product .similar-list {
    --similar-fade-inset: 10px;
    --similar-fade-span: 26px;
    gap: 8px;
    padding: 4px 2px 10px;
    scroll-padding-inline: 2px;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      rgba(0, 0, 0, 0.18) var(--similar-fade-inset),
      #000 calc(var(--similar-fade-inset) + var(--similar-fade-span)),
      #000 calc(100% - var(--similar-fade-inset) - var(--similar-fade-span)),
      rgba(0, 0, 0, 0.18) calc(100% - var(--similar-fade-inset)),
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      rgba(0, 0, 0, 0.18) var(--similar-fade-inset),
      #000 calc(var(--similar-fade-inset) + var(--similar-fade-span)),
      #000 calc(100% - var(--similar-fade-inset) - var(--similar-fade-span)),
      rgba(0, 0, 0, 0.18) calc(100% - var(--similar-fade-inset)),
      transparent
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .page-product .similar-card {
    flex: 0 0 calc((100% - 8px) / 2);
    min-width: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
    padding: 7px;
    border-radius: 10px;
  }

  .page-product .similar-card img {
    border-radius: 8px;
  }

  .page-product .similar-card h4 {
    font-size: 12px;
    line-height: 1.25;
    margin: 6px 0 4px;
  }

  .page-product .similar-card p {
    font-size: 13px;
  }

  /* На телефоні вимикаємо підйом картки при hover, щоб не було візуального "налазання". */
  .page-home #products .product:hover,
  .page-catalog .catalog-products-grid .product:hover {
    transform: none;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 768px) {
  html,
  body {
    scrollbar-width: none;
  }

  body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body.evryka-site.has-mobile-bottom-nav {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: calc(8px + env(safe-area-inset-left, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-bottom-color: rgba(17, 17, 17, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px 8px;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08);
  }

  .mobile-bottom-nav__item {
    position: relative;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    min-height: 52px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 3px;
    font-family: var(--ev-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .mobile-bottom-nav__item span {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
  }

  .mobile-bottom-nav__item svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .mobile-bottom-nav__item[data-item="favorites"] svg {
    width: 22px;
    height: 22px;
    transform: none;
  }

  .mobile-bottom-nav__item[data-item="cart"] svg {
    width: 24px;
    height: 24px;
  }

  .mobile-bottom-nav__cart-icon {
    width: 24px;
    height: 24px;
    display: block;
  }

  .mobile-bottom-nav__item.is-active {
    color: var(--ev-accent);
    background: rgba(251, 146, 60, 0.14);
  }

  @media (hover: hover) {
    .mobile-bottom-nav__item:hover {
      color: var(--ev-accent);
      background: rgba(251, 146, 60, 0.14);
    }
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 19px);
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    padding: 0;
    background: var(--ev-accent);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.92);
    line-height: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transform: none;
  }

  .mobile-bottom-nav__item--cart .mobile-bottom-nav__badge {
    top: 2px;
    left: calc(50% + 9px);
    right: auto;
    transform: translateX(-50%);
  }

  body.cart-open .mobile-bottom-nav,
  body.header-nav-open .mobile-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .mobile-more-sheet {
    position: fixed;
    inset: 0;
    z-index: 1250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .mobile-more-sheet__backdrop {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    background: rgba(10, 14, 20, 0.44);
    margin: 0;
    padding: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto;
    z-index: 0;
  }

  .mobile-more-sheet__panel {
    position: absolute;
    left: calc(8px + env(safe-area-inset-left, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    display: grid;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 18px;
    padding: 12px;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(22px) scale(0.96);
    transform-origin: 50% 100%;
    transition: transform 0.24s cubic-bezier(0.22, 0.88, 0.32, 1), opacity 0.2s ease;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    z-index: 2;
  }

  .mobile-more-sheet__panel::after {
    display: none;
  }

  .mobile-more-sheet__panel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .mobile-more-sheet__close {
    position: static;
    top: auto;
    right: auto;
  }

  .mobile-more-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 6px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .mobile-more-sheet__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .mobile-more-sheet__link::after {
    content: "›";
    color: rgba(17, 17, 17, 0.42);
    font-size: 18px;
    line-height: 1;
    margin-left: 10px;
  }

  .mobile-more-sheet__link:hover,
  .mobile-more-sheet__link:focus-visible {
    background: #fff;
    border-color: rgba(17, 17, 17, 0.14);
    color: var(--text-primary);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }

  .mobile-more-sheet__link.is-current {
    border-color: rgba(251, 146, 60, 0.42);
    background: rgba(251, 146, 60, 0.12);
    color: #111;
  }

  .mobile-more-sheet__link.is-current::after {
    color: var(--accent-main);
  }

  body.mobile-more-open {
    overflow: hidden;
  }

  body.mobile-more-open .mobile-more-sheet {
    opacity: 1;
  }

  body.mobile-more-open .mobile-more-sheet__panel {
    transform: translateY(0) scale(1);
  }

  body.mobile-more-open .mobile-bottom-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1251;
  }

  body.mobile-more-open .chat-widget-root {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
  }

  body.evryka-site.has-mobile-bottom-nav .chat-widget-root {
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.page-catalog .scroll-to-top-btn,
  body.page-print3d .scroll-to-top-btn {
    right: calc(8px + env(safe-area-inset-right, 0px));
    bottom: calc(88px + 52px + 8px + env(safe-area-inset-bottom, 0px));
  }
}

/* На touch-пристроях hover може "залипати" після тапу.
   Прибираємо hover-підняття картки/кнопки, щоб стан не зависав. */
@media (hover: none) {
  .product:hover {
    transform: none;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .button:hover,
  .buy-btn:hover {
    transform: none;
    background: var(--accent-main);
  }

  .load-more .buy-btn:hover {
    transform: none;
    background: var(--accent-main);
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.06);
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }

  .mobile-more-sheet {
    display: none;
  }
}

/* Final neo override (must stay last) */
@media (max-width: 768px) {
  :root {
    --neo-final-side: 12px;
    --neo-final-bottom: 92px;
    --neo-final-radius: 20px;
    --neo-final-pad: 14px;
    --neo-final-gap: 10px;
  }

  .neo-drawer-overlay,
  .mobile-more-sheet__backdrop,
  .catalog-filters-overlay,
  .cabinet-menu-overlay {
    background: rgba(7, 12, 20, 0.48) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }

  .neo-drawer,
  .neo-drawer--filters,
  .neo-drawer--cabinet,
  .neo-drawer--more,
  .mobile-more-sheet__panel,
  .page-catalog .catalog-filters,
  .page-cabinet .catalog-filters.cabinet-sidebar {
    left: calc(var(--neo-final-side) + env(safe-area-inset-left, 0px)) !important;
    right: calc(var(--neo-final-side) + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(var(--neo-final-bottom) + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: var(--neo-final-radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%) !important;
    box-shadow: 0 22px 52px rgba(2, 8, 23, 0.24), 0 8px 22px rgba(15, 23, 42, 0.12) !important;
    padding: var(--neo-final-pad) !important;
    gap: var(--neo-final-gap) !important;
    max-height: min(74vh, 560px) !important;
    transform-origin: 50% 100% !important;
    transform: translateY(24px) scale(0.94) !important;
    transition: transform 0.24s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.2s ease !important;
  }

  .neo-drawer__title,
  .neo-drawer__title-row,
  .mobile-more-sheet__head,
  .page-catalog .catalog-filters-title,
  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title {
    color: var(--ev-ink) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .neo-drawer__title,
  .page-catalog .catalog-filters-title,
  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title {
    margin: 0 !important;
  }

  .neo-drawer__title-row,
  .mobile-more-sheet__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 4px 0 !important;
  }

  .neo-drawer__close,
  .mobile-more-sheet__close,
  .page-catalog .catalog-filters-close,
  .page-cabinet .cabinet-menu-close {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    border: 1px solid var(--ev-line) !important;
    background: var(--surface-primary) !important;
    color: var(--ev-ink) !important;
    font-size: 19px !important;
    line-height: 1 !important;
  }

  .neo-drawer__item,
  .mobile-more-sheet__link,
  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn,
  .neo-drawer--filters .catalog-filter-input,
  .neo-drawer--filters .catalog-select-trigger,
  .neo-drawer--filters .catalog-reset-btn,
  .page-catalog .catalog-filter-input,
  .page-catalog .catalog-select-trigger,
  .page-catalog .catalog-reset-btn {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 13px !important;
    border: 1px solid var(--ev-line) !important;
    background: var(--surface-primary) !important;
    color: var(--ev-ink) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
  }

  .neo-drawer-trigger,
  .catalog-filters-open-btn,
  .cabinet-menu-open-btn {
    min-height: 40px !important;
    padding: 8px 14px !important;
    border-radius: 13px !important;
    border: 1px solid var(--ev-line) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%) !important;
    color: var(--ev-ink) !important;
    box-shadow: 0 6px 16px rgba(17, 17, 16, 0.1) !important;
  }

  .page-cabinet .cabinet-page-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .page-cabinet .cabinet-page-head .neo-drawer-trigger {
    margin-left: auto !important;
  }

  .page-cabinet .cabinet-page-head .cabinet-menu-open-btn {
    margin-left: auto !important;
  }

  body.catalog-filters-open .page-catalog .neo-drawer,
  body.cabinet-menu-open .page-cabinet .neo-drawer,
  body.mobile-more-open .neo-drawer,
  body.catalog-filters-open .page-catalog .catalog-filters,
  body.cabinet-menu-open .page-cabinet .catalog-filters.cabinet-sidebar,
  body.mobile-more-open .mobile-more-sheet__panel {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.catalog-filters-open .page-catalog .neo-drawer-trigger,
  body.cabinet-menu-open .page-cabinet .neo-drawer-trigger,
  body.catalog-filters-open .catalog-filters-open-btn,
  body.cabinet-menu-open .cabinet-menu-open-btn {
    pointer-events: none !important;
    filter: grayscale(1) saturate(0.15) !important;
    background: #f2eee8 !important;
    color: #7d7468 !important;
    border-color: #d7cfc4 !important;
    box-shadow: none !important;
  }

  body.catalog-filters-open .scroll-to-top-btn,
  body.mobile-more-open .scroll-to-top-btn,
  body.cabinet-menu-open .scroll-to-top-btn {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {
  /* Ряд «Назад» у каталозі: той самий відступ від краю, що на сторінці товару
     (.product-page має 14px зліва/справа при max-width: 980px; shell каталогу на моб — 0 для сітки) */
  .page-catalog .catalog-shell > .product-nav.catalog-page-nav {
    padding-inline: 14px !important;
    box-sizing: border-box;
  }

  [data-uflyout="panel"] {
    z-index: 1251 !important;
  }

  [data-uflyout-item] + [data-uflyout-item] {
    margin-top: 8px !important;
  }

  .page-catalog .catalog-filters[data-uflyout="panel"] .catalog-filter-group + .catalog-filter-group {
    margin-top: 10px !important;
  }

  body.catalog-filters-open .page-catalog [data-uflyout-trigger],
  body.cabinet-menu-open .page-cabinet [data-uflyout-trigger] {
    pointer-events: none !important;
    filter: grayscale(1) saturate(0.15) !important;
    background: #f2eee8 !important;
    color: #7d7468 !important;
    border-color: #d7cfc4 !important;
    box-shadow: none !important;
  }

  .page-catalog [data-uflyout-trigger],
  .page-cabinet [data-uflyout-trigger] {
    pointer-events: auto !important;
  }

  .page-catalog .catalog-filters[data-uflyout="panel"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar[data-uflyout="panel"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.catalog-filters-open .page-catalog .catalog-filters[data-uflyout="panel"] {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  body.cabinet-menu-open .page-cabinet .catalog-filters.cabinet-sidebar[data-uflyout="panel"] {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .page-catalog .catalog-filters-overlay[data-uflyout-overlay],
  .page-cabinet .cabinet-menu-overlay[data-uflyout-overlay] {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.catalog-filters-open .page-catalog .catalog-filters-overlay[data-uflyout-overlay],
  body.cabinet-menu-open .page-cabinet .cabinet-menu-overlay[data-uflyout-overlay] {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Absolute last: mobile catalog filters site palette + equal bottom gap */
@media (max-width: 768px) {
  .page-catalog {
    --catalog-filter-side-gap: 12px;
  }

  .page-catalog .catalog-filters[data-uflyout="panel"] {
    left: calc(var(--catalog-filter-side-gap) + env(safe-area-inset-left, 0px)) !important;
    right: calc(var(--catalog-filter-side-gap) + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(80px + var(--catalog-filter-side-gap) + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px !important;
    border: 1px solid var(--ev-line) !important;
    background: linear-gradient(180deg, var(--surface-primary) 0%, var(--bg-section) 100%) !important;
    box-shadow: 0 18px 40px rgba(17, 17, 16, 0.16), 0 6px 16px rgba(17, 17, 16, 0.08) !important;
  }

  .page-catalog .catalog-filters-title {
    color: var(--ev-ink) !important;
  }

  .page-catalog .catalog-filter-label {
    color: rgba(17, 17, 16, 0.64) !important;
  }

  .page-catalog .catalog-filter-input,
  .page-catalog .catalog-select-trigger,
  .page-catalog .catalog-reset-btn {
    background: var(--surface-primary) !important;
    color: var(--ev-ink) !important;
    border: 1px solid var(--ev-line) !important;
  }

  .page-catalog .catalog-filters-close {
    background: var(--surface-primary) !important;
    color: var(--ev-ink) !important;
    border: 1px solid var(--ev-line) !important;
  }
}

/* Absolute last: "More" menu matches bottom nav style */
@media (max-width: 768px) {
  .mobile-more-sheet__panel {
    left: calc(var(--neo-final-side) + env(safe-area-inset-left, 0px)) !important;
    right: calc(var(--neo-final-side) + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(80px + var(--neo-final-side) + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: rgba(255, 255, 255, 0.93) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
  }

  .mobile-more-sheet__link {
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--text-primary) !important;
  }

  .mobile-more-sheet__close {
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--text-primary) !important;
  }
}

/* Absolute last: catalog filters use bottom-nav palette */
@media (max-width: 768px) {
  .page-catalog .catalog-filters[data-uflyout="panel"] {
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: rgba(255, 255, 255, 0.93) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
  }

  .page-catalog .catalog-filters-title,
  .page-catalog .catalog-filter-label {
    color: var(--text-primary) !important;
  }

  .page-catalog .catalog-filter-input,
  .page-catalog .catalog-select-trigger,
  .page-catalog .catalog-reset-btn,
  .page-catalog .catalog-filters-close {
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--text-primary) !important;
  }
}

/* Absolute last: non-home bottom nav must match home */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav:not(.page-home) .mobile-bottom-nav {
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    background: rgba(255, 255, 255, 0.93) !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    border-bottom-color: rgba(17, 17, 17, 0.08) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 6px 8px !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
  }

  body.evryka-site.has-mobile-bottom-nav:not(.page-home) .mobile-bottom-nav__item {
    min-height: 52px !important;
    border-radius: 12px !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    gap: 3px !important;
    padding: 4px 3px !important;
  }

  body.evryka-site.has-mobile-bottom-nav:not(.page-home) .mobile-bottom-nav__item.is-active {
    color: var(--ev-accent) !important;
    background: rgba(251, 146, 60, 0.14) !important;
  }
}

/* Absolute last: force one bottom-nav design everywhere (home source of truth) */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav {
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1200 !important;
    background: rgba(255, 255, 255, 0.93) !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    border-bottom-color: rgba(17, 17, 17, 0.08) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 6px 8px !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item {
    min-height: 52px !important;
    border-radius: 12px !important;
    color: #667085 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    gap: 3px !important;
    padding: 4px 3px !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item.is-active {
    color: var(--ev-accent) !important;
    background: rgba(251, 146, 60, 0.14) !important;
  }
}

/* Absolute last: chat icon placement must be same on all pages */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav .chat-widget-root {
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1202 !important;
  }
}

/* Absolute final: copy home bottom-nav design to every page */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav {
    position: fixed !important;
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.93) !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    border-bottom-color: rgba(17, 17, 17, 0.08) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 6px 8px !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    gap: 3px !important;
    padding: 4px 3px !important;
    line-height: 1.15 !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item span {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: inherit !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item svg,
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__cart-icon {
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item.is-active {
    color: #fb923c !important;
    background: rgba(251, 146, 60, 0.14) !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__badge {
    display: grid !important;
    place-items: center !important;
    background: #fb923c !important;
    color: #111111 !important;
    line-height: 16px !important;
  }
}

/* Absolute last: unified "Back" button on all pages */
.page-catalog .product-nav .back-btn,
.page-product .product-nav .back-btn,
.page-cabinet .product-nav .back-btn,
.page-about .product-nav .back-btn,
.page-print3d .product-nav .back-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px)) !important;
  border: 1px solid var(--ev-p-line, var(--ev-line)) !important;
  background: var(--ev-surface, var(--surface-primary)) !important;
  color: var(--ev-p-ink, var(--ev-ink)) !important;
  box-shadow: var(--ev-p-shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.06)) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.page-catalog .product-nav .back-btn .back-icon,
.page-product .product-nav .back-btn .back-icon,
.page-cabinet .product-nav .back-btn .back-icon,
.page-about .product-nav .back-btn .back-icon,
.page-print3d .product-nav .back-btn .back-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  flex: 0 0 18px !important;
  stroke: var(--ev-p-ink, var(--ev-ink)) !important;
  stroke-width: 4 !important;
  fill: none !important;
}

/* Absolute final: home bottom-nav must be identical to catalog */
@media (max-width: 768px) {
  body.evryka-site.page-home.has-mobile-bottom-nav {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.evryka-site.page-home.has-mobile-bottom-nav .mobile-bottom-nav {
    position: fixed !important;
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.93) !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    border-bottom-color: rgba(17, 17, 17, 0.08) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 6px 8px !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
  }

  body.evryka-site.page-home.has-mobile-bottom-nav .mobile-bottom-nav__item {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    color: #667085 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    gap: 3px !important;
    padding: 4px 3px !important;
    line-height: 1.15 !important;
  }

  body.evryka-site.page-home.has-mobile-bottom-nav .mobile-bottom-nav__item span {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: inherit !important;
  }

  body.evryka-site.page-home.has-mobile-bottom-nav .mobile-bottom-nav__item svg,
  body.evryka-site.page-home.has-mobile-bottom-nav .mobile-bottom-nav__cart-icon {
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
  }

  body.evryka-site.page-home.has-mobile-bottom-nav .mobile-bottom-nav__item.is-active {
    color: #fb923c !important;
    background: rgba(251, 146, 60, 0.14) !important;
  }

  body.evryka-site.page-home.has-mobile-bottom-nav .mobile-bottom-nav__badge {
    display: grid !important;
    place-items: center !important;
    line-height: 16px !important;
    background: #fb923c !important;
    color: #111111 !important;
  }

  /* Keep identical measured bar height on all pages */
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav {
    min-height: 74px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

/* Absolute last: home popular title must fit mobile */
@media (max-width: 768px) {
  .page-home #catalog .section-title {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 0.96 !important;
    letter-spacing: 0.01em !important;
    margin: 0 0 6px !important;
    padding-right: 8px !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

/* Absolute last: cabinet head menu button at row end */
@media (max-width: 768px) {
  .page-cabinet .cabinet-page-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .page-cabinet .cabinet-page-head .cabinet-page-title {
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
  }

  .page-cabinet .cabinet-page-head #cabinetMenuOpenBtn,
  .page-cabinet .cabinet-page-head .cabinet-menu-open-btn {
    margin-left: auto !important;
    justify-self: auto !important;
    flex-shrink: 0 !important;
  }
}

/* Absolute last: tighter mobile spacing on 3D print page */
@media (max-width: 768px) {
  body.evryka-site.page-print3d.page-catalog .catalog-shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .page-print3d .catalog-shell {
    --product-rhythm: 14px !important;
    --product-nav-y: 10px !important;
    row-gap: 10px !important;
    padding-top: calc(var(--ev-header-h) + 2px - var(--ev-stack-outer)) !important;
    padding-bottom: 14px !important;
  }

  .page-print3d .catalog-shell > .product-nav.catalog-page-nav {
    padding-top: var(--product-nav-y) !important;
    gap: 8px !important;
  }

  .page-print3d .about-page-title {
    margin: 2px 0 6px !important;
  }

  .page-print3d .print3d-wrap {
    margin-top: 0 !important;
  }
}

/* Absolute last: keep bottom nav visible when "More" is open */
@media (max-width: 768px) {
  body.mobile-more-open .mobile-bottom-nav {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: grid !important;
    z-index: 1400 !important;
  }
}

/* Absolute last: blurred backdrop for "More" on all pages */
@media (max-width: 768px) {
  body.mobile-more-open .mobile-more-sheet__backdrop {
    background: rgba(7, 12, 20, 0.48) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Absolute last: profile menu overlay must be blurred */
@media (max-width: 768px) {
  body.cabinet-menu-open .page-cabinet .cabinet-menu-overlay[data-uflyout-overlay],
  body.cabinet-menu-open .page-cabinet .cabinet-menu-overlay {
    background: rgba(7, 12, 20, 0.48) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Absolute last: cart badge number must be black */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item--cart .mobile-bottom-nav__badge {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    color: #111111 !important;
  }
}

/* Absolute last: print3d back button must match catalog */
@media (max-width: 768px) {
  .page-print3d #print3dBackBtn.back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 10px 18px !important;
    border-radius: var(--ev-header-bar-radius, clamp(12px, 1.4vw, 18px)) !important;
    border: 1px solid var(--ev-p-line, var(--ev-line)) !important;
    background: var(--ev-surface, var(--surface-primary)) !important;
    color: var(--ev-p-ink, var(--ev-ink)) !important;
    box-shadow: var(--ev-p-shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.06)) !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
  }

  .page-print3d #print3dBackBtn .back-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
    stroke: var(--ev-p-ink, var(--ev-ink)) !important;
    stroke-width: 3 !important;
    fill: none !important;
  }
}

/* Absolute final: keep bottom nav above "More" blur */
@media (max-width: 768px) {
  body.mobile-more-open .mobile-more-sheet {
    z-index: 1300 !important;
  }

  body.mobile-more-open .mobile-more-sheet__backdrop {
    z-index: 0 !important;
  }

  body.mobile-more-open .mobile-more-sheet__panel {
    z-index: 1 !important;
  }

  body.mobile-more-open .mobile-bottom-nav {
    position: fixed !important;
    z-index: 1600 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}

/* Absolute final: force same "More" menu style on all pages */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__panel {
    left: calc(var(--neo-final-side) + env(safe-area-inset-left, 0px)) !important;
    right: calc(var(--neo-final-side) + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(80px + var(--neo-final-side) + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px !important;
    border: 1px solid #d9dce3 !important;
    background: #f5f6f8 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link {
    min-height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    padding: 10px 12px !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--text-primary) !important;
  }
}

/* Absolute final: cart/favorites must be above everything */
.cart-overlay {
  z-index: 11990 !important;
}

.cart-sidebar {
  z-index: 12000 !important;
}

/* Keep bottom mobile nav under cart blur layer */
body.evryka-site.has-mobile-bottom-nav.cart-open .mobile-bottom-nav {
  z-index: 2000 !important;
}

/* Absolute final: bottom nav must always stay visible and on top */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav {
    position: fixed !important;
    z-index: 1200 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  body.evryka-site.has-mobile-bottom-nav.mobile-more-open .mobile-bottom-nav {
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    z-index: 5000 !important;
  }

  body.evryka-site.has-mobile-bottom-nav.cart-open .mobile-bottom-nav,
  body.evryka-site.has-mobile-bottom-nav.header-nav-open .mobile-bottom-nav,
  body.evryka-site.has-mobile-bottom-nav.catalog-filters-open .mobile-bottom-nav,
  body.evryka-site.has-mobile-bottom-nav.cabinet-menu-open .mobile-bottom-nav {
    z-index: 1200 !important;
  }

  body.evryka-site.has-mobile-bottom-nav .chat-widget-root,
  body.evryka-site.has-mobile-bottom-nav .scroll-to-top-btn,
  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet,
  body.evryka-site.has-mobile-bottom-nav .catalog-filters-overlay,
  body.evryka-site.has-mobile-bottom-nav .cabinet-menu-overlay,
  body.evryka-site.has-mobile-bottom-nav .cart-overlay {
    z-index: 3000 !important;
  }
}

/* Absolute final: identical "More" sheet on every page */
@media (max-width: 768px) {
  :root {
    --more-panel-side: 12px;
    --more-panel-bottom: 92px;
    --more-panel-radius: 18px;
    --more-panel-pad: 14px;
    --more-panel-gap: 10px;
    --more-link-h: 44px;
    --more-link-pad-x: 12px;
    --more-link-fs: 15px;
    --more-link-lh: 18px;
    --more-head-fs: 17px;
    --more-head-lh: 20px;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__panel {
    left: calc(var(--more-panel-side) + env(safe-area-inset-left, 0px)) !important;
    right: calc(var(--more-panel-side) + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(var(--more-panel-bottom) + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: var(--more-panel-radius) !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: #f8f8f8 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow:
      0 1px 0 rgba(17, 17, 17, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.14),
      0 5px 14px rgba(0, 0, 0, 0.08) !important;
    padding: var(--more-panel-pad) !important;
    gap: var(--more-panel-gap) !important;
    max-height: min(72vh, 520px) !important;
    box-sizing: border-box !important;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__head {
    margin: 0 0 4px 0 !important;
    font-size: var(--more-head-fs) !important;
    font-weight: 800 !important;
    line-height: var(--more-head-lh) !important;
    letter-spacing: 0 !important;
    color: #111111 !important;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    min-height: var(--more-head-lh) !important;
    box-sizing: border-box !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link {
    min-height: var(--more-link-h) !important;
    height: var(--more-link-h) !important;
    padding: 10px var(--more-link-pad-x) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: var(--more-link-fs) !important;
    font-weight: 650 !important;
    line-height: var(--more-link-lh) !important;
    letter-spacing: 0 !important;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    box-sizing: border-box !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link:hover,
  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link:focus-visible,
  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link.is-current {
    border-color: rgba(240, 122, 26, 0.38) !important;
    background: rgba(240, 122, 26, 0.1) !important;
    color: #c96816 !important;
  }

  /* Filters + cabinet menu in bottom-nav color palette */
  .page-catalog .catalog-filters,
  .page-cabinet .catalog-filters.cabinet-sidebar {
    border-color: #d7cfc4 !important;
    background: #f7f3ee !important;
  }

  .page-catalog .catalog-filters .catalog-filters-title,
  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-filters-title {
    color: #111111 !important;
  }

  .page-catalog .catalog-filters .catalog-filter-input,
  .page-catalog .catalog-filters .catalog-select-trigger,
  .page-catalog .catalog-filters .catalog-reset-btn,
  .page-cabinet .catalog-filters.cabinet-sidebar .catalog-select-trigger,
  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn {
    border: 1px solid #d7cfc4 !important;
    background: #ffffff !important;
    color: #111111 !important;
  }

  .page-catalog .catalog-filters .catalog-select-panel {
    border: 1px solid #d7cfc4 !important;
    background: #fdfbf8 !important;
  }

  .page-catalog .catalog-filters .catalog-select-option {
    color: #111111 !important;
    background: transparent !important;
  }

  .page-catalog .catalog-filters .catalog-select-option:hover:not(.is-selected) {
    background: #f7f3ee !important;
  }

  .page-catalog .catalog-filters .catalog-select-option.is-selected {
    border-color: rgba(240, 122, 26, 0.32) !important;
    background: rgba(240, 122, 26, 0.12) !important;
    color: #111111 !important;
  }

  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn:hover,
  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn:focus-visible,
  .page-cabinet .catalog-filters.cabinet-sidebar .cabinet-nav-btn.active {
    border-color: rgba(240, 122, 26, 0.38) !important;
    background: rgba(240, 122, 26, 0.1) !important;
    color: #c96816 !important;
  }

  /* Keep identical visual style regardless of current page */
  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link.is-current {
    border: 1px solid rgba(17, 17, 17, 0.1) !important;
    background: #ffffff !important;
    color: #111111 !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link.is-current::after {
    color: rgba(17, 17, 17, 0.45) !important;
  }

  body.evryka-site.has-mobile-bottom-nav .mobile-more-sheet__link::after {
    font-size: 20px !important;
    line-height: 1 !important;
  }
}

/* Absolute final: cart count text in mobile badge is always black */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav #mobileBottomCartCount.mobile-bottom-nav__badge,
  body.evryka-site.page-home.has-mobile-bottom-nav #mobileBottomCartCount,
  body.page-home #mobileBottomNav .mobile-bottom-nav__item--cart #mobileBottomCartCount {
    color: #111111 !important;
  }
}

/* Absolute final: identical bottom-nav typography on all pages */
@media (max-width: 768px) {
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav,
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item,
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__item span,
  body.evryka-site.has-mobile-bottom-nav .mobile-bottom-nav__badge {
    font-family: var(--ev-font, "Inter", system-ui, sans-serif) !important;
  }

  body.evryka-site.has-mobile-bottom-nav #mobileBottomCartCount.mobile-bottom-nav__badge {
    color: #111111 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    font-variant-numeric: tabular-nums !important;
  }
}

