@font-face {
    font-family: "AppFont";
    src: url("fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "AppFont";
    src: url("fonts/Montserrat-Light.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

* {  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "AppFont", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-color: transparent !important;
}

body {
    background: #ffffff;
    color: #000000;
    font-family: "AppFont", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

html, body {  height: 100%;
  margin: 0;
  background: var(--bw-bg) !important;
  color: var(--bw-text) !important;
}

/* Скролл гасим только когда реально надо (например, при открытой модалке) */
body.no-scroll,
html.no-scroll {
    overflow: hidden;
}


/* ВАЖНО:
   100lvh = "large viewport height" (не уменьшается при клавиатуре),
   fallback на 100vh для старых движков */
#app{  display: flex;
  flex-direction: column;
  height: 100vh;
}
@supports (height: 100lvh){
    #app{ height: 100lvh; }
}

/* скролл только внутри контента */
#mainContent{  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 10px 70px;
}



.top-header {
    position: relative;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border-bottom: none;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}

.logo{
    width: 100%;
    display: flex;
    justify-content: center;
}



.logo img {
    height: 45px;
    display: block;
    object-fit: contain;
}



.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    background: #f5f5f5;
    color: #000000;
}

.search-wrapper input::placeholder {
    color: rgba(0,0,0,0.4);
}



.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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




.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f2f2f2;
    border-radius: 12px;
    overflow: hidden;
}

/* Блок с названием + низом */
.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px;
}

.product-image-wrapper {  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff !important;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-controls {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 1px;
    padding: 4px 6px;
    font-size: 12px;
    background: rgba(0,0,0,0.4);
    color: #ffffff;
    backdrop-filter: blur(2px);
}

.image-nav-btn-left { left: 6px; }
.image-nav-btn-right { right: 6px; }

/* Название ВСЕГДА сверху */
.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Низ ВСЕГДА прижат вниз */
.product-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 600;
}

.product-add-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 8px;
    font-size: 14px;
    color: #ffffff;
}

/* === CART === */

/* Измените отступ для основного контента корзины */
#cartItems {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 200px; /* Увеличиваем отступ снизу для фиксированной панели */
    padding-bottom: 10px;
}


.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: #f2f2f2;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 14px;
    color: #000000;
}

.cart-item-price {
    font-size: 13px;
    opacity: 0.8;
    color: #444444;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty-btn {
    border: none;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 16px;
    background: #e6e6e6;
    color: #000000;
}

.cart-qty {
    min-width: 20px;
    text-align: center;
}

.cart-remove-btn {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    background: #ffdddd;
    color: #cc0000;
    font-size: 12px;
}

.cart-summary {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px; /* Фиксируем высоту */
    position: fixed;
    bottom: 78px; /* Над навигацией */
    left: 0;
    right: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.cart-bonus-section {
    display: flex;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-bonus-left{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-bonus-top-row{
    display: flex;
    align-items: center;
    justify-content: space-between; /* тумблер справа на той же строке, что "Списать" */
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-bonus-writeoff-label{
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

/* цифры бонусов жирным */
.cart-bonus-info b{
    font-weight: 700;
}

.cart-bonus-info {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}

/* Правая верхняя */
.cart-total {
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.cart-total-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-total-section .primary-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

.cart-bonus-row {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.9;
    grid-area: bonus;
}

/* Уберите старые стили */
.cart-bonus-row,
.cart-total { grid-area: unset; }


/* === CART NOTES (comment + card) === */
.cart-notes{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;              /* ← ВАЖНО */
    padding-top: 8px;       /* лёгкое визуальное разделение */
}


.cart-notes label{
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #000000;
}

.cart-notes input,
.cart-notes textarea{
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 8px;
    background: #f5f5f5;
    color: #000000;
}


.bonus-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bonus-switch-label {
    font-size: 13px;
    color: #666;
}

.bonus-switch {
    display: inline-flex;
    align-items: center;
}

.bonus-switch input {
    display: none;
}

.switch-slider {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.switch-slider:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.bonus-switch input:checked + .switch-slider {
    background-color: #800000;
}

.bonus-switch input:checked + .switch-slider:after {
    transform: translateX(20px);
}



.primary-btn,
.secondary-btn {
    border-radius: 999px;
    padding: 8px 16px;
    border: none;
    font-size: 14px;
}

.primary-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    font-weight: 500;
}

.secondary-btn {
    background: #eaeaea;
    color: #000000;
}

/* === MODAL === */

.modal {  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
}





/* iOS 16+ / современные движки */
@supports (height: 100dvh){
    .modal{ height: 100dvh; }
}


.modal.hidden { display: none; }
.hidden {  display: none !important;
}

.modal-content {  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 0;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  color: #000000;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 80px;
}



.modal-content h2 { margin-bottom: 10px; }

.modal-content label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #000000;
}

.modal-content input,
.modal-content textarea {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 8px;
    background: #f5f5f5;
    color: #000000;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.address-block h3 { margin: 10px 0 6px; }

/* === PROFILE === */

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #000000;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    font-size: 16px;
    color: #000000;
}

.profile-username {
    font-size: 13px;
    opacity: 0.7;
    color: #444444;
}

.profile-bonuses {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.85;
}


.profile-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.profile-tab-btn {
    flex: 1;
    border-radius: 999px;
    border: none;
    padding: 6px 4px;
    font-size: 13px;
    background: #e5e5e5;
    color: #000000;
}

.profile-tab-btn.active {
    color: #ffffff;
}

.profile-content {
    font-size: 14px;
    color: #000000;
}

.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f2f2f2;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.address-text {
    font-size: 14px;
    color: #000000;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-delete-btn {
    padding: 4px 10px;
    font-size: 13px;
    background: #ffdddd;
    border: none;
    border-radius: 6px;
    color: #cc0000;
    margin-left: 12px;
}



/* === ORDERS === */

.order-item {
    padding: 8px;
    border-radius: 10px;
    background: #f2f2f2;
    margin-bottom: 6px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #000000;
}

.order-id { font-size: 13px; }
.order-status { font-size: 13px; opacity: 0.8; }
.order-total { font-size: 14px; font-weight: 600; }
.order-date { font-size: 12px; opacity: 0.7; }

/* === INFO === */

.info-content {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #000000;
}

/* === BOTTOM NAVIGATION === */

.bottom-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    height: 70px;                 /* основная высота навигации */
    padding-bottom: 8px;         /* ← пустая белая полоса */
    box-sizing: content-box;      /* ВАЖНО */

    background: #ffffff;
    display: flex;
    z-index: 1000;
}


.nav-btn {  flex: 1;
  border: 2px solid transparent;
  background: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
    align-self: stretch;
  justify-content: center;
  font-size: 11px;
  gap: 2px;
  border-radius: 12px;
  margin: 10px 6px;
  padding: 8px 6px;
}

.nav-btn.active {  color: #ffffff;
  background: #ffffff;
  border-color: #000000;
}





.cart-sum-badge {  position: fixed;
  right: 12px;
  bottom: 78px;
  z-index: 200;
  color: #000 !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #fff !important;
  border: 1px solid #000 !important;
}


.product-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-qty-btn {
    border: none;
    border-radius: 999px;
    padding: 4px 8px;
    background: #e6e6e6;
    color: #000000;
    font-size: 14px;
}

.product-qty-value {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    color: #000000;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #000000;
    font-size: 24px;
}

.nav-icon {  width: 22px;
  height: 22px;
  filter: grayscale(1) contrast(2) !important;
  opacity: 1 !important;
}



.cart-sum-icon {
    width: 18px;
    height: 18px;
    display: block;
}



.cart-sum-badge:hover {
    filter: brightness(1.05);
}


.categories-bar {
    display: flex;
    gap: 8px;
    padding: 0 10px ;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 6px;     /* отступ от шапки */
    margin-bottom: 12px;  /* отступ до товаров */
}
.categories-bar::-webkit-scrollbar { display: none; }

.category-chip {
    flex: 0 0 auto;
    background: transparent;
    color: #000;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.category-chip.active {
    color: #fff;
}

.address-add-form {  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.address-add-label {  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.text {
    text-indent: 2em;
    text-align: justify;
}

.input-error {
    outline: 1px solid #e74c3c;
    outline-offset: 1px;
}

.profile-address-input {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);   /* <-- добавили видимую границу */
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);         /* <-- лёгкий серый фон под белую тему */
    color: #111;
    font-size: 14px;
}

.profile-address-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.profile-address-input:focus {
    outline: 2px solid rgba(87, 112, 79, 0.35);  /* акцент 57704F */
    outline-offset: 1px;
    border-color: rgba(87, 112, 79, 0.55);
}

/* Чтобы подпись "Адрес" выглядела как в модалке */


/* Чтобы кнопка всегда была под строкой */


.big-weight {
    font-weight: 600;
}

/* ===== Delivery options grid (2x2) ===== */
.delivery-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.delivery-option{  border: none !important;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delivery-option-title{
    font-size: 14px;
    line-height: 1.25;
}

.delivery-option-price{
    font-size: 12px;
    opacity: 0.75;
}

.delivery-option.active{
    border-color: rgba(0,0,0,0.08);
}

.delivery-option.active,
.delivery-option.active .delivery-option-title,
.delivery-option.active .delivery-option-price{
    color: #fff;
}

.delivery-hours-notice{
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.free-delivery-note{
    font-size: 13px;
    opacity: 0.85;
    margin: 0; /* без лишних отступов */
}

.cart-bonus-rows{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-bonus-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #000;
}

.cart-bonus-line b{
    font-weight: 700;
}


.cart-bonus-section.no-divider{
    border-bottom: none;
    padding-bottom: 0;
}




.keyboard-open .bottom-nav,
.keyboard-open .cart-summary,
.keyboard-open .cart-sum-badge {
    display: none !important;
}

/* iOS: чтобы не увеличивал экран при фокусе */
input, textarea, select {  font-size: 16px;
  background: #fff !important;
  border: none !important;
  outline: none !important;
  color: #000 !important;
}


.image-dots{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    display: flex;
    gap: 5px;
    z-index: 3;
    padding: 4px 6px;
    border-radius: 1px;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
}

.image-dot{
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: rgba(255,255,255,0.55);
    transition: transform 0.15s, background 0.15s;
    cursor: pointer;
}

.image-dot.active{
    background: rgba(255,255,255,0.95);
    transform: scale(1.25);
}

.cart-card-toggle-row{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f2f2f2;
}

.cart-card-toggle-label{
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.cart-item-note{
    cursor: pointer;
    position: relative;
}

.cart-item-note .cart-item-info{
    width: 100%;
}

.cart-item-note-text{
    margin-top: 6px;
    font-size: 13px;
    color: rgba(0,0,0,0.78);
    line-height: 1.25;
    white-space: pre-wrap;
}

.cart-item-note-hint{
    font-size: 12px;
    opacity: 0.7;
    padding-left: 10px;
}

.cart-note-btn{
    width: 100%;
    margin-top: 10px;
    border: none;
    text-align: left;
    border-radius: 10px;
    padding: 12px;
    background: #f2f2f2;
    color: #000;
}

.cart-note-btn-title{
    font-size: 14px;
    font-weight: 600;
}

.cart-note-btn-text{
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.25;
    white-space: pre-wrap;
}

/* Перенос длинного текста (без вылета за границы) */
.cart-item-note-text,
.cart-note-btn-text{
    white-space: pre-wrap;
    overflow-wrap: anywhere;   /* современный вариант */
    word-break: break-word;    /* fallback */
}

.note-counter{
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.65;
    text-align: right;
}

:root{
  --bw-bg: #ffffff;
  --bw-text: #000000;
  --bw-muted: rgba(0,0,0,0.65);
  --bw-line: rgba(0,0,0,0.0); /* default: no lines */
  --bw-active-line: #000000;
}



/* Remove shadows everywhere in UI */


/* 90-degree corners by default */


/* Keep rounding ONLY where requested */
.switch-slider,
.switch-slider:after,
.bonus-switch{
  border-radius: 999px !important;
}

/* Global: no default borders/outlines */


/* Inputs: keep clean white; show state only on focus */

input:focus, textarea:focus, select:focus{
  outline: 2px solid #000 !important;
  outline-offset: 0 !important;
}

/* Main cards/blocks: white surfaces */
.product-card,
.cart-item,
.modal,
.address-item,
.cart-bonus-section,
.cart-card-toggle-row,
.profile-card,
.delivery-option,
.cart-summary,
.categories-row{
  background: #fff !important;
  border: none !important;
}

/* Product image wrapper stays clean */


/* Product add button: outlined primary */
.product-add-btn,
.checkout-btn,
.cart-checkout-btn,
.save-address-btn,
.add-address-btn,
.login-btn,
.logout-btn,
.btn,
button.primary{
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  font-weight: 500 !important;
}

/* Secondary buttons: no border by default; active will show border */
button:not(.image-nav-btn),
.profile-tab-btn,
.category-chip,
.delivery-option,
.nav-btn,
.product-qty-btn{
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    font-weight: 500 !important;
}


/* Active state: thick clean black outline, NO bold text */
.nav-btn.active,
.profile-tab-btn.active,
.category-chip.active,
.delivery-option.active{
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  font-weight: 500 !important; /* keep same as inactive */
}

/* Ensure no inherited bolding on nested text inside active items */
.nav-btn.active *,
.profile-tab-btn.active *,
.category-chip.active *,
.delivery-option.active *{
  font-weight: inherit !important;
  color: inherit !important;
}

/* Bottom navigation: white buttons, active outlined */


.nav-btn span{
  color: #000 !important;
}


/* Remove green separators/top borders from header, etc. */
.header,
.top-bar,
.app-header,
.navbar{
  background: #fff !important;
  border-bottom: none !important;
}

/* If any leftover "divider" borders exist */
hr,
.divider,
.section-divider{
  display: none !important;
}

/* Errors: minimal, rare accent (almost unused) */
.input-error,
.error,
.invalid{
  outline: 2px solid rgba(128,0,0,0.35) !important;
}






/* === Delivery zones admin panel === */

.admin-panel-btn{
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-header{ position: relative; }

.fullscreen-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.fullscreen-header{
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.fullscreen-title{ font-weight: 700; }
.fullscreen-close{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font-size: 22px;
  line-height: 1;
}
.fullscreen-body{
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 12px;
}
.admin-zones-table-wrap{ }
.admin-zones-table-title{ font-weight: 700; margin-bottom: 8px; }
.admin-zones-table-scroll{ overflow: auto; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; }
.admin-zones-table{ width: 100%; border-collapse: collapse; min-width: 820px; }
.admin-zones-table th, .admin-zones-table td{ padding: 10px 10px; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; text-align: left; }
.admin-zones-table thead th{ position: sticky; top: 0; background: #fff; z-index: 1; }
.zone-color-chip{ width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.2); }
.admin-add-zone-btn{ margin-top: 10px; }

.admin-zones-map{ width: 100%; height: 320px; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); overflow: hidden; }
.map-hint{ margin-top: 8px; font-size: 12px; opacity: .8; }

.zone-editor-body{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.zone-editor-form{ display: grid; gap: 10px; }
.zone-editor-row{ display: flex; gap: 10px; align-items: center; }
.zone-color-input{ width: 44px; height: 38px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); background: #fff; }
.zone-editor-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.danger-btn{
  border: 1px solid rgba(220,0,0,.3);
  background: rgba(220,0,0,.08);
  color: #b00000;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}
.zone-editor-map{ width: 100%; height: 360px; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); overflow: hidden; }
.zone-editor-map-actions{ display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* === Address suggestions in cart === */
.address-suggest{
  margin-top: 6px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.address-suggest-item{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
.address-suggest-item:last-child{ border-bottom: 0; }
.address-suggest-item:hover{ background: rgba(0,0,0,.03); cursor: pointer; }
.address-suggest-sub{
  margin-top: 4px;
  font-size: 12px;
  opacity: .8;
}

/* === Checkout pickup embedded map === */
.pickup-map{
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f2f2;
}

.pickup-map-link{
  display: inline-block;
  margin-top: 8px;
  text-decoration: underline;
  font-size: 14px;
}

button.product-add-btn{
    border: 2px solid #000 !important;
    box-sizing: border-box;
}


/* === Header: кнопка "Каталог" (верхний правый угол, видна везде кроме каталога) === */
.go-to-catalog-btn{
  position: absolute;
  left: 12px;
  top: 10px;
    right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: #000;
  width: 48px;
  height: 48px;
  z-index: 60;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.go-to-catalog-btn svg{ display:block; }

/* === Кнопки оформления: жирный текст + обводка как у "Купить" === */
#checkoutBtn.primary-btn,
#checkoutConfirm.primary-btn{
  font-weight: 700 !important;
  border: 2px solid #000 !important;
  box-sizing: border-box !important;
}
.pickup-address.copied{ opacity: .75; }

