* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #d9e0ea;
  --line-2: #e8edf4;

--blue: #2c2e30;     /* графіт */
--blue-2: #423217;   /* темніше сіре */
  --dark: #0f172a;

--accent: #c46f1a;   /* темніший помаранчевий */
--accent-2: #a85d12;;  /* темніший помаранчевий */

  --danger: #b42318;
  --danger-bg: #fff1f3;
  --danger-line: #f8c7cf;
  --soft: #eef3fb;
  --soft-2: #f8fbff;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-2: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 4px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

/* =========================
   GLOBAL
========================= */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 12px 88px;
}

.seoTitle{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.sectionTitle {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* =========================
   BUTTONS
========================= */
.btnPrimary,
.btnDanger,
.btnGhost,
.btn,
.iconBtn,
.addToCart,
.close,
.authClose,
.checkoutClose,
.qty button,
.qtyBtn,
.delBtn,
.callFabBtn,
.nav {
  cursor: pointer;
  font: inherit;
  border-radius: var(--radius) !important;
}

/* =========================
   SOFT ORANGE BUTTONS
========================= */
.btnPrimary {
  border: 1px solid #e8c29b;
  background: #fff4e8;
  color: #a85d12;
  padding: 11px 14px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btnPrimary:hover,
.btnPrimary:active {
  background: #ffe9d2;
  border-color: #d89a53;
  color: #8e4f0f;
  transform: translateY(-1px);
}

.btnGhost {
  border: 1px solid #e8c29b;
  background: #fff8f2;
  color: #a85d12;
  padding: 11px 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btnGhost:hover,
.btnGhost:active {
  background: #fff0e1;
  border-color: #d89a53;
  color: #8e4f0f;
}

.btn {
  border: 1px solid #e8c29b;
  background: #fff8f2;
  color: #a85d12;
  padding: 11px 14px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:active {
  background: #fff0e1;
  border-color: #d89a53;
  color: #8e4f0f;
}

.drawerLink {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none !important;
  color: #7a4812 !important;
  background: #fff8f2;
  border: 1px solid #ecd0b2;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.drawerLink:hover,
.drawerLink:active,
.drawerLink:focus-visible {
  background: #fff0e1 !important;
  border-color: #d89a53 !important;
  color: #8e4f0f !important;
}

.cartSendRow .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 46px;
  border: 1px solid #ecd0b2;
  background: #fff8f2;
  color: #a85d12;
  font-weight: 800;
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cartSendRow .chip:hover,
.cartSendRow .chip:active {
  background: #ffe9d2;
  border-color: #d89a53;
  color: #8e4f0f;
  transform: translateY(-1px);
}

/* =========================
   REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   HEADER
========================= */
/* Кнопка "Додати в кошик" — яскравіша */
.btnAddCart {
  background: #c46f1a !important;
  border: 1px solid #c46f1a !important;
  color: #ffffff !important;
}

.btnAddCart:hover,
.btnAddCart:active {
  background: #a85d12 !important;
  border-color: #a85d12 !important;
  color: #ffffff !important;
}

/* Кнопка "Перейти в кошик" — ніжно-помаранчева */
.btnGoCart {
  background: #fff4e8 !important;
  border: 1px solid #e8c29b !important;
  color: #a85d12 !important;
}

.btnGoCart:hover,
.btnGoCart:active {
  background: #ffe9d2 !important;
  border-color: #d89a53 !important;
  color: #8e4f0f !important;
}

.drawerWorktime {
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 10px 12px;
  background: #fff8f2;
  border: 1px solid #ecd0b2;
  color: #6f4b22;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.drawerWorktime:hover,
.drawerWorktime:active {
  background: #fff0e1;
  border-color: #d89a53;
}
/* =========================
   HEADER
========================= */
.mobileHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  box-shadow: 0 10px 28px rgba(60, 60, 60, 0.16);
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mobileHeader__top {
  display: grid;
  grid-template-columns: 42px 1fr 56px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
}

.mobileBrand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
  height: 60px;
}

.mobileBrand--logoOnly {
  width: 100%;
}

.mobileBrand__logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mobileBrand__logo--main {
  height: 140px !important;
  max-width: 390px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.mobileBrand__text {
  display: none;
}

.burgerBtn{
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  color: var(--accent);
}

.burgerLines {
  width: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.burgerLines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* TOP CART BUTTON */
.cartBtnTop{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 10px;
  min-width:56px;
  min-height:44px;        /* <- дає місце іконці */
  color: var(--accent);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* FORCE SVG SIZE */
.cartBtnTop .cartIconSvg,
.cartIconSvg{
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 auto;
  display:block;
  color: var(--accent) !important;
}

/* COUNT NOT BOLD */
#cartCount{
  font-size: 16px;
  font-weight: 500 !important; /* менш жирно */
  line-height: 1;
  color: var(--accent);
}

.mobileHeader__search {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px auto 0;
}

.mobileHeader__search .searchInput {
  width: min(720px, 100%);
  margin: 0;
  display: block;
}
.searchInput {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
   DRAWER
========================= */
.drawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  z-index: 1900;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.26s ease;
  box-shadow: var(--shadow-2);
  padding: 14px;
  overflow: auto;
}

body.drawerOpen .drawer {
  transform: translateX(0);
}

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

.drawer__title {
  font-size: 22px;
  font-weight: 1000;
}

.drawer__section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.drawer__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawerLink {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none !important;
  color: #111827 !important;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: var(--radius);
}

.drawerLink:visited,
.drawerLink:hover,
.drawerLink:active {
  color: #111827 !important;
  text-decoration: none !important;
}

.drawerWorktime {
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius);
}

.drawerCatalog {
  display: grid;
  gap: 8px;
}

.catalogNav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: #f8fafc;
  border-radius: var(--radius);
}

.catalogNav__icon {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.catalogNav__name {
  font-weight: 800;
}

.drawerUserBox {
  display: grid;
  gap: 8px;
}

.userHello {
  font-weight: 900;
  color: var(--dark);
}

.dangerText {
  color: var(--danger) !important;
}

.drawerContact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.drawerContact__title {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  line-height: 1.2;
}

.drawerContact__value {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
}

/* =========================
   SUGGESTIONS
========================= */
.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  z-index: 1500;
  border-radius: var(--radius);
}

.suggItem {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #f2f4f7;
  background: #fff;
  cursor: pointer;
}

.suggItem:first-child {
  border-top: none;
}

.suggImg {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f7;
  border-radius: var(--radius);
}

.suggTitle {
  font-weight: 900;
  font-size: 14px;
}

.suggMeta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

/* =========================
   HERO / SLIDER
========================= */
.hero {
  margin-top: 10px;
}

.slider {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.slides {
  position: relative;
  height: 220px;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.active {
  opacity: 1;
}

.slideOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.16));
}

.slideText {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  color: #fff;
}

.slideText h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
}

.slideText p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.slideBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 42px;
  padding: 10px 16px;
  background: #fff4e8;
  border: 1px solid #e8c29b;
  color: #a85d12;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slideBtn:hover,
.slideBtn:active {
  background: #ffe9d2;
  border-color: #d89a53;
  color: #8e4f0f;
  transform: translateY(-1px);
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav:hover,
.nav:active {
  background: transparent;
  transform: translateY(-50%) scale(1.04);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.52);
  border: none;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/* =========================
   QUICK INFO
========================= */
.quickInfo {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.quickInfo__item {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  border-radius: var(--radius);
}

.quickInfo__title {
  font-weight: 1000;
  font-size: 16px;
}

.quickInfo__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* =========================
   CATALOG
========================= */
.catalogSection {
  margin-top: 18px;
}

.catalogGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalogCard {
  background: #ffffff;
  border: 1px solid #eceff3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(196, 111, 26, 0.16),
    0 0 38px rgba(196, 111, 26, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.05);
  padding: 0;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.catalogCard__main:active{
  /* легкий ефект натиску */
  transform: scale(0.99);
}

.catalogCard__main:focus-visible{
  outline: 2px solid #d89a53;
  outline-offset: 3px;
}

.catalogCard:hover,
.catalogCard:active {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  border-color: #d89a53;
  background: #fff7ef;
}

/* щоб підсвічувалось і на ПК, і на телефоні (tap) */
.catalogCard:where(:hover, :active, :focus-within){
  border-color: #d89a53;
  background: #fff7ef;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}

.catalogCard:where(:hover, :active, :focus-within) .catalogCard__imgWrap{
  background: #fff1e2;
  border-color: #d89a53;
}

.catalogCard:where(:hover, :active, :focus-within) .catalogCard__title{
  color: #a85d12;
}

.catalogCard__title {
  margin: 0;
  padding: 14px 12px 16px;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
  min-height: 56px;
  color: #111827;
}

.mobileHeader__top--back {
  grid-template-columns: 42px 1fr 56px;
}

.topBackBtn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.categoryHeroCard {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  border-radius: var(--radius);
}

.categoryHeroCard__imageWrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef2f7;
  border: 1px solid var(--line);
}

.categoryHeroCard__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalogCard__main,
.prodCard__main {
  all: unset;
  display: block;
  cursor: pointer;
}

.catalogCard__main {
  width: 100%;
  text-align: center;
}

.catalogCard__imgWrap {
  width: 100%;
  height: 150px;
  margin: 0;
  display: block;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f6;
  border-radius: 0;
}

.catalogCard:hover .catalogCard__imgWrap,
.catalogCard:active .catalogCard__imgWrap {
  background: #fff1e2;
  border-color: #d89a53;
}

.catalogCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalogCard__icon {
  font-size: 30px;
  line-height: 1;
}

.catalogCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catalogCard__adminActions,
.prodCard__adminActions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.adminTinyBtn {
  flex: 1;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius);
}

.adminTinyBtn--danger {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #b91c1c;
}

/* =========================
   PRODUCTS
========================= */
.productsSection {
  margin-top: 18px;
}

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

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

.filters {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
  border-radius: var(--radius);
}

.filterBlock {
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.filterBlock:first-child {
  border-top: none;
  padding-top: 0;
}

.filterTitle {
  font-weight: 900;
  margin-bottom: 8px;
}

.priceRow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.priceRow input,
.unitSelect,
.qty input,
.authInput,
.cInput {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  padding: 12px 13px;
  border-radius: var(--radius);
}

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

.checkList {
  display: grid;
  gap: 8px;
}

.filterActions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.prodGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prodCard {
  background: #ffffff;
  border: 1px solid #eceff3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(196, 111, 26, 0.16),
    0 0 38px rgba(196, 111, 26, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  border-radius: var(--radius);
}

.prodCard:hover,
.prodCard:active {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.prodImg {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #f8fafc;
  display: block;
}

.prodBody {
  padding: 12px;
}

.prodTitle {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.3;
  min-height: 36px;
  color: #111827;
}


.prodMeta {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-height: 50px;
}

.prodBottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.prodPrice {
  font-size: 18px;
  font-weight: 1000;
  color: #111827;
}

/* =========================
   PRODUCT MODAL
========================= */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3000;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(560px, calc(100% - 24px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3100;
  border-radius: var(--radius);
}

.modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
}

.modal__body {
  padding-top: 8px;
}

.mImg {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f7;
  border-radius: var(--radius);
}

.price {
  margin: 12px 0 6px;
  font-size: 22px;
  font-weight: 1000;
}

.desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.4;
}

.qtyRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.qtyRow--unit {
  margin-top: 10px;
}

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

.qty button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
}

.addToCart {
  width: 100%;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

body.modalProductOpen #modalOverlay {
  opacity: 1;
  pointer-events: auto;
}

body.modalProductOpen #productModal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* =========================
   AUTH / ADMIN MODALS
========================= */
.authOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 4000;
}

.authModal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 24px));
  background: #fff;
  box-shadow: var(--shadow-2);
  padding: 14px;
  z-index: 4100;
  border-radius: var(--radius);
}

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

.authTitle {
  font-size: 20px;
  font-weight: 1000;
}

.authClose {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
}

.authBody {
  display: grid;
  gap: 10px;
}

.authLabel {
  font-size: 13px;
  font-weight: 800;
}

.authInput {
  min-height: 46px;
}

textarea.authInput {
  resize: vertical;
  min-height: 96px;
}

.authSubmit {
  margin-top: 4px;
}

.authHint {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
}

.authSwitch {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.authLink {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--blue);
  text-decoration: underline;
  font-weight: 800;
  cursor: pointer;
}

.adminModal {
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.adminPreviewWrap {
  margin-top: 6px;
}

.adminPreviewImg {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  border-radius: var(--radius);
}

.adminFormActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.adminSliderHead {
  margin-top: 8px;
  margin-bottom: 8px;
}

.slidesAdminList {
  display: grid;
  gap: 14px;
}

.slideAdminCard {
  border: 1px solid #e5e7eb;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius);
}

.slideAdminCard__title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.slideAdminCard__grid {
  display: grid;
  gap: 10px;
}

.slideAdminPreview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  border-radius: var(--radius);
}

.slideAdminActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adminOnly[hidden] {
  display: none !important;
}

/* =========================
   MINI MODAL
========================= */
.miniModal {
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.miniModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.miniModal__box {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 10vh auto 0;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.miniModal__title {
  font-size: 20px;
  font-weight: 1000;
  margin-bottom: 12px;
}

.miniModal__body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.miniModal__body img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f7;
  border-radius: var(--radius);
}

.miniModal__name {
  font-weight: 1000;
  line-height: 1.3;
}

.miniModal__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.miniModal__actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

body.miniModalOpen {
  overflow: hidden;
}



/* =========================
   CALL FAB
========================= */
.callFabWrap {
  position: fixed !important;
  left: 20px !important;  /* Відступ від лівого краю */
  bottom: 20px !important; /* Відступ від низу */
  z-index: 9999 !important; /* Щоб була поверх усього контенту */
  display: flex !important;
  flex-direction: column-reverse !important; /* Меню буде рости вгору */
  align-items: flex-start !important;
  gap: 10px;
}

.callFabBtn {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 29px !important;
  background: #9c5e21;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.callFabBtn:hover,
.callFabBtn:active {
  background: #7e5e40;
  transform: translateY(-1px);
}
.callFabIcon {
  width: 26px;
  height: 26px;
  display: block;
}

.callFabMenu {
  display: grid;
  gap: 8px;
}

.callFabItem {
  min-width: 220px;
  text-decoration: none;
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
}

.callFabItem__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 3px;
}

.callFabItem__phone {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

/* Це змусить атрибут [hidden] працювати, незважаючи на display: grid */
.callFabMenu[hidden] {
  display: none !important;
}

/* =========================
   CART PAGE
========================= */
.cartBody {
  background: var(--bg);
}

.cartTopbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  color: #fff;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.cartTopTitle {
  text-align: center;
  font-size: 24px;
  font-weight: 1000;
}

.cartBack {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.cartWrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 12px 88px;
  display: grid;
  gap: 14px;
}

.cartCard {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  border-radius: var(--radius);
}

.cartH2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 1000;
}

.cartTable {
  display: flex;
  flex-direction: column;
}

.cartRow {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas:
    "img info"
    "price price"
    "qty qty"
    "sum del";
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #eef2f7;
}

.cartRow:first-child {
  border-top: none;
}

.cartImg {
  grid-area: img;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f7;
  border-radius: var(--radius);
}

.cartInfo {
  grid-area: info;
}

.cartTitle {
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.3;
}

.cartMeta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.cartPrice {
  grid-area: price;
  font-weight: 900;
}

.qtyBox {
  grid-area: qty;
  display: grid;
  grid-template-columns: 40px 56px 40px;
  border: 1px solid #d1d5db;
  overflow: hidden;
  width: max-content;
  border-radius: var(--radius);
}

.qtyBtn {
  height: 38px;
  border: none;
  background: #eef2f7;
  font-size: 18px;
  font-weight: 900;
}

.qtyNum {
  display: grid;
  place-items: center;
  background: #fff;
  height: 38px;
  font-weight: 900;
}

.cartSum {
  grid-area: sum;
  font-weight: 1000;
}

.delBtn {
  grid-area: del;
  justify-self: end;
  width: 40px;
  height: 38px;
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.cartSummary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 8px;
}

.cartSummaryLine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cartClearBtn {
  margin-top: 4px;
}

.cartSendRow {
  display: grid;
  gap: 10px;
}

.cartSendRow .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 46px;
  border: 1px solid #dbe7ff;
  background: #edf3ff;
  color: #17315e;
  font-weight: 800;
  border-radius: var(--radius);
}

/* =========================
   CHECKOUT
========================= */
.checkoutOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.checkoutModal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 2100;
  border-radius: var(--radius);
}

body.modalOpen .checkoutOverlay {
  opacity: 1;
  pointer-events: auto;
}

body.modalOpen .checkoutModal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.checkoutTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
}

.checkoutTitle {
  font-size: 20px;
  font-weight: 1000;
}

.checkoutClose {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
}

.checkoutGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
}

.checkoutForm {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius);
}

.cLabel {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 800;
}

.cInput {
  min-height: 46px;
}

.cSend {
  width: 100%;
  margin-top: 12px;
}

.checkoutRight {
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
}

.checkoutRightTitle {
  background: #f1f5f9;
  padding: 10px 12px;
  font-weight: 1000;
}

.checkoutPreview {
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.chkRow {
  display: grid;
  grid-template-columns: 52px 1fr 82px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 10px;
}

.chkRow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.chkImg {
  width: 52px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f7;
  border-radius: var(--radius);
}

.chkName {
  font-size: 12px;
  font-weight: 900;
}

.chkMeta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.chkSum {
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}

.checkoutTotalRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fff7d6;
  font-size: 18px;
  font-weight: 1000;
}

.afterConfirm {
  margin-top: 12px;
}

/* =========================
   PRODUCT PAGE
========================= */
.productPage {
  display: grid;
  gap: 16px;
}

.productPage__card,
.productPage__descCard,
.productPage__relatedCard {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  padding: 14px;
  border-radius: var(--radius);
}

.productPage__card {
  display: grid;
  gap: 16px;
}

.productPage__imageWrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  border-radius: var(--radius);
}

.productPage__img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 340px;
}

.productPage__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.productPage__meta {
  color: #4b5563;
  margin-bottom: 8px;
}

.productPage__price {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.productPage__code {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
}

.productPage__qtyRow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.productPage__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.productPage__description {
  color: #374151;
  line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
  .page,
  .cartWrap {
    max-width: 1180px;
  }

  .mobileHeader {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobileHeader__top {
    grid-template-columns: 48px 1fr auto;
  }

  .mobileHeader__search {
    max-width: 720px;
  }

  .slides {
    height: 320px;
  }

  .slideText h2 {
    font-size: 40px;
  }

  .catalogGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prodGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .checkoutGrid {
    grid-template-columns: 1fr 1fr;
  }



  .cartRow {
    grid-template-columns: 90px 1fr 140px 160px 120px 56px;
    grid-template-areas: none;
    align-items: center;
  }

  .cartImg {
    grid-area: auto;
    width: 90px;
    height: 70px;
  }

  .cartInfo {
    grid-area: auto;
  }

  .cartPrice {
    grid-area: auto;
    text-align: right;
  }

  .qtyBox {
    grid-area: auto;
    justify-self: center;
  }

  .cartSum {
    grid-area: auto;
    text-align: right;
  }

  .delBtn {
    grid-area: auto;
  }

  .callFabWrap {
    bottom: 20px;
  }
}

@media (min-width: 900px) {
  .productPage__card {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}
.productCustomBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin: 8px 0 10px;
  padding: 8px 12px;
  background: #fff4e8;
  color: #a85d12;
  border: 1px solid #e8c29b;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: .4px;
  border-radius: var(--radius);
}

.productCustomBadge {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff4e8;
  border: 1px solid #e8c29b;
  color: #a85d12;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.productCustomBadge {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff4e8;
  border: 1px solid #e8c29b;
  color: #a85d12;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.homeInfoSection {
  margin-top: 12px;
}

.relatedDeleteBtn {
  margin-top: 10px;
  width: 100%;
}

.bottomNav,
.bottomNav * {
  display: none !important;
  visibility: hidden !important;
}
.relatedHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.relatedHead .sectionTitle {
  margin: 0;
}

.productPage .callFabWrap,
body:has(.productPage) .callFabWrap {
  bottom: 230px !important;
}

.seoIntro {
  padding: 0 16px 16px;
}

.seoTitle {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #111827;
}

.seoText {
  margin: 0 0 8px;
  color: #374151;
  line-height: 1.5;
}
.visuallyHiddenSeo {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#relatedPickerResults .adminRow {
  grid-template-columns: 1fr auto;
  align-items: center;
}

#relatedPickerResults .adminRow img {
  display: none !important;
}

/* Щоб каталог не ховався за футером */
.page {
  min-height: 60vh;
  padding-bottom: 100px;
}

/* Правильне приховування меню кнопки */
.callFabMenu[hidden] {
  display: none !important;
}

/* Щоб футер завжди був знизу і не заважав товарам */
.siteFooter {
  position: relative;
  z-index: 10;
  width: 100%;
}