* {
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #fff;
  font-family: 'Ubuntu', sans-serif;
  user-select: none;
}

a {
  color: #5c8a03;
  text-decoration: underline dashed;
  outline: none;
}

.block-category {
  background-color: #fff;
  display: block;
  position: relative;
  margin: 0 auto;
}

.anchor {
  position: relative;
  bottom: 50px;
}

.header-logo {
  height: 48px;
  color: transparent;
  text-decoration: none;
}

.color-dark {
  color: #705450;
}

.color-gray {
  color: #757575;
}

.category-title {
  padding: 8px 16px;
  background: #eee;
  font-size: 1em;
  text-transform: uppercase;
  font-weight: normal;
}

.list-products {
  display: flex;
  flex-direction: column;
  background-color: #eee;
}

.product-wrap {
  list-style-type: none;
  padding-top: .6em;
  background-color: #fff;
  margin-bottom: 2px;
  padding-bottom: .6em;
}

.product-wrap>div {
  display: flex;
  flex-direction: row;
  position: relative;
  height: 100%;
}

.image-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: 25%;
  align-self: center;
}

.product-label {
  position: relative;
  align-self: flex-end;
  background-color: #e60101;
  color: white;
  font-size: 10px;
  top: 0px;
  padding: 4px 6px;
}

.img-aspect {
  width: 100%;
  overflow: hidden;
  padding-top: 133.3%;
  position: relative;
  background-position: right;
  background-size: cover;
  background-repeat: no-repeat;
}

.img-aspect {
  background-image: url('/img/new/placeholder.webp')
}

.no-webp .img-aspect {
  background-image: url('/img/new/placeholder.png')
}

.img-aspect img {
  width: 200%;
  left: -100%;
  top: 0;
  position: absolute;
}

.cat6 .img-aspect img {
  left: -91%;
}

.cat8 .img-aspect img {
  left: -60%;
}

.cat9 .img-aspect img {
  left: -60%;
}

.cat12 .img-aspect img {
  left: -60%;
}

.cat16 .img-aspect img {
  left: -79%;
}

.cat17 .img-aspect img {
  left: -70%;
}

.cat19 .img-aspect img {
  left: -98%;
}

.cat20 .img-aspect img {
  left: -83%;
}

.cat21 .img-aspect img {
  left: -50%;
}

.cat22 .img-aspect img {
  left: -50%;
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 1em;
  width: 100%;
}

.content-info {
  font-size: 1em;
}

.product-title {
  font-size: 1em;
  margin-bottom: 1em;
}

.product-description {
  color: #7d7271;
  font-size: .9em;
}



.control-modify {
  display: flex;
  flex-direction: column;
}

.modify-wrap {
  display: flex;
  flex-direction: row;
  border-radius: 15px;
  background-color: #eee;
  font-size: .8em;
  margin: 1em 0;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2px;
}

.modify-wrap>span {
  text-align: center;
  border-radius: 13px;
  padding: 5px;
  flex-grow: 1;
  color: #757575;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modify-wrap>.select {
  background-color: #fff;
  color: #5c8a03;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.control-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}







.header-wrap {
  background: #fff;
}

.cart-add {
  background-color: #d3e3b6;
  border-radius: 50px;
  padding: 8px 15px;
  transition: all .25s;
}

.cart-add:active {
  background-color: #c3d3a6;
  transform: translateY(2px);
}

.cart-add>span {
  color: #264301;
}

.menu {
  position: sticky;
  top: 0;
  box-shadow: 0px 8px 10px -2px rgba(0, 0, 0, .2);
  background-color: #fff;
  z-index: 10;
}

.menu_wrap:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(-90deg, #0000, #fff9, #fff);
  z-index: 11;
}

.menu_wrap:after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, #0000, #fff9, #fff);
  z-index: 11;
}

.scroll_menu {
  /*max-width:1600px;margin:0 auto;*/
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.scroll_menu::-webkit-scrollbar {
  display: none;
}

.scroll_menu_item {
  flex: 0 0 auto;
  margin: 16px 10px;
}

.scroll_menu_item:first-child {
  padding-left: 20px;
  margin-left: 0;
}

.scroll_menu_item:last-child {
  padding-right: 20px;
}

.scroll_menu_item a {
  font-weight: bold;
  text-decoration: none;
  outline: none;
  white-space: nowrap;
  transition: color .5s;
}

header {
  height: 50px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  align-items: center;
}

header .menu-pages {
  display: none;
}

.menu-pages a {
  padding: .8em 0;
}

header img {
  height: 48px;
}

.hamburger,
.side-hide {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

/* Профиль в мобильной шапке: чип «монетка + баланс» у залогиненного,
   человечек у гостя (ведёт на Telegram-вход) */
.header-profile {
  display: flex;
  align-items: center;
  padding: 5px 12px 5px 6px;
  background: #f5f5f5;
  border-radius: 50px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.header-profile--icon {
  padding: 7px;
  background: none;
}

.header-profile__balance {
  color: #333;
  font-family: 'Ubuntu', sans-serif;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  margin-left: 6px;
  white-space: nowrap;
}

.cart-float {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #5c8a03;
  color: white;
  padding: 8px 30px;
  border-radius: 50px;
  box-shadow: 3px 3px 3px #0005;
  transition: all .3s;
  opacity: 0;
  transform: scale(0);
  z-index: 20;
  font-size: 1.2em;
}

.cart-float.active {
  opacity: 1;
  transform: scale(1);
}

.float-data {
  display: flex;
  align-items: center;
}

.disable-scroll {
  overflow: hidden;
}

.main {
  opacity: 1;
  transition: opacity .5s;
}

.side-menu {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 30;
  top: 0;
  transform: translateX(100%);
  background-color: #fff;
  overflow-x: hidden;
  transition: transform .5s;
}

.side-menu.show {
  transform: translateX(0%);
  transition: transform .5s;
}

.close-icon {
  transition: transform .8s;
}

.show .close-icon {
  transform: rotate(-180deg);
}



.menu-content hr {
  background-color: #ddd;
  height: 2px;
  margin: 15px 0;
  padding: 0;
  border: none;
}

.menu-block {
  padding: 1.2em 2.4em;
}

.pages-header {
  font-weight: bold;
  padding: 1em 0 .5em;
  font-size: 1.2em;
}

.side-menu li {
  list-style: none;
}

.side-menu li a {
  font-weight: bold;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5em 0;
  font-size: 1em;
}

.phone-icon {
  border: 1px solid #ccc;
  border-radius: 50px;
  padding: 5px;
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.phones-header {
  font-weight: bold;
  font-size: 1.2em;
  padding-bottom: .5em;
}

.menu-phones span {
  color: #757575;
}

.review-header {
  font-weight: bold;
  font-size: 1.2em;
  padding-bottom: 1.5em;
}

.block-review {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.review-no {
  text-decoration: none;
  cursor: pointer;
}

.review-yes {
  background-color: #5c8a03;
  color: white;
  padding: .5em 1em;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}

.side-header {
  background-color: #fbb110;
  color: white;
  max-width: 750px;
  margin: 0 auto;
}

.side-logo {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}



.side-cart {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 30;
  top: 125%;
  right: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: .5s;
}

.side-cart.show {
  top: 0;
}

.side-cart-btn {
  display: inline-block;
  padding: 4px;
  margin: 3px;
  background-color: #5c8a03;
  color: white;
  border-radius: 50px;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.side-cart-count {
  width: 28px;
  text-align: center;
}

.active_cat {
  color: #5c8a03;
}

.cart-content,
.cart-form,
.cart-footer {
  padding: 2em 1.5em .5em;
  max-width: 750px;
  margin: 0 auto;
}

.cart-position {
  display: flex;
  flex-direction: row;
  padding: 8px 0;
  border-top: 1px solid #eee;
  justify-content: space-between;
}

.position-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.action-block {
  display: flex;
  align-self: end;
  align-items: center;
  margin-top: .5em;
}

.first-line {
  font-weight: bold;
}

.second-line {
  font-size: .9em;
}



.position-price::after {
  content: ' 〒';
}

.empty_cart {
  font-size: .9em;
}

.cart-header {
  margin-bottom: 16px;
  font-size: 1.1em;
  font-weight: bold;
}

.mini-arrow {
  width: 0px;
  height: 0px;
  border: 6px solid transparent;
  display: inline-block;
  margin-left: 10px;
}

.open {
  border-bottom-color: currentColor;
}

.close {
  border-top-color: currentColor;
}

.form-error {
  color: red;
  font-size: .85em;
}

.form-wrap {
  display: flex;
  margin-bottom: 20px;
  flex-direction: column;
}

.form-wrap label {
  font-size: .9em;
  margin-bottom: 8px;
}

.form-wrap input,
textarea {
  border: none;
  background-color: #eee;
  padding: 12px 16px;
  transition: all .4s;
  border-radius: 3px;
  font-size: 1em;
}

.form-wrap input:focus,
textarea:focus {
  background-color: #ddd;
}

.side-cart-add {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='28' style='fill: white' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E ");
}

.side-cart-remove {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='28' style='fill: white' viewBox='0 0 24 24'%3E%3Cpath d='M19 13H5v-2h14v2z'/%3E%3C/svg%3E ");
}

.flag-kz {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAH6SURBVHjaYmTe//8OA6MWy38uBoY/DP8+/gFRDP+A5D+Gf2AEZDCBSSD6xQAQQIxADe9V+54xyO1hCP77n+Hff4a/QPX//rH8//HzH/MPBpa///4D0Z///3///z/h2BeAAGJhYGB4xiC76Hcw03+wcf9BcjL/bhr83//2n+De/z5f/rGDNPz7L87OyPDrH0AAMTGAwP+Q/zP//mP4+f//3////v/7bfJ/l82/9fb/1pr/2/b93//f/0DGA/UAjQQIIKa/DP8k/t9b/i8daDDj/99M/35w/3+r9f/If4affAxPjP/v4P73AaThL8hmoB8AAogJ6D+guaH/J//6/5//30uuf2/V/5268Nf0/59f7/8IXPujo/v36G+wJX/+gkICIIBYgGHy9L/c4v9R//79//SPW+L/Xd3/B9b8S7r9T/H1P6EP//ic/y/Z9c/9D9gbQA0AAcQExEAbIv/1AX389j/vx3/c9/8qe/6fa/N/rcL/S7n/89/+EwKrZvgLdNK/PwABBAylf1L/bpf/awCGKDBY7/5Tuf5PmeffK8//CwT+PZn5t+rwfwdGqAZQ/AAEENBJQLf8zmCds/Z/Mihy/jP8BkWR2PH/acDYeP+fXwFkEONfsHFACYAAYmRY+7X9D18l0zt4XAIDG8r+gxTTQMN/MDAwMQAEGAC/aVpzH3H22AAAAABJRU5ErkJggg==");
  width: 16px;
  height: 11px;
}

.link {
  text-decoration: none;
}

.svg-icon {
  background-color: #917c79;
  border-radius: 10px;
  padding: 8px;
  color: #eee;
  display: inline-block;
}

.svg-icon,
.svg-icon svg {
  width: 25px;
  height: 25px;
}

.svg-pay svg {
  width: 50px;
  height: 30px;
}

.social-links {
  margin-bottom: 1em;
}

.payments {
  margin-bottom: 1em;
}

.mastercard,
.visa {
  display: inline-block;
  width: 58px;
}

.payments img {
  width: 100%;
}

.main-footer {
  padding: 1em 0;
  background-color: #eee;
  width: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: 1em;
  color: #917c79;
  font-weight: bold;
}

.privacy-block {
  padding-bottom: 1em;
}

.privacy-block a {
  color: inherit;
  text-decoration: underline;
  font-size: .9em;
}

.form-header-block {
  font-weight: bold;
  padding: 1em 0;
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 0;
}

.tab-header>span {
  opacity: .5;
  font-weight: bold;
}

.tab-header .tab-active {
  opacity: 1;
}

.tabs {
  display: none;
  height: 215px;
}

.tab-show {
  display: block;
}

.inplace span {
  border-radius: 50%;
  background-color: #ddd;
  color: white;
  padding: 3px;
}

.tab-active.inplace span {
  border-radius: 50%;
  background-color: #fbbd08;
  color: white;
  padding: 3px;
}



.form-comment {
  margin: .5em 0 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comment {
  height: 100px;
  margin: 1em 0;
}

.form-push {
  margin: 1.5em 0;
}

.form-submit {
  border-radius: 5px;
  color: #fff;
  background-color: #568403;
  text-align: center;
  margin: 0 auto;
  width: 210px;
  padding: 8px 12px;
  display: block;
  border: none;
  font-size: 1em;
}

[disabled="disabled"] {
  opacity: .5;
}



.address .wrap-3,
.address .wrap-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.wrap-3 .form-wrap {
  width: 31%;
}

.wrap-2 .form-wrap {
  width: 48%;
  margin-bottom: 0;
}

.label {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1em;
  user-select: none;
  color: #888;
}

.label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
}

.label:hover input~.checkmark {
  background-color: #ccc;
}

.label input:checked~.checkmark {
  background-color: #568403;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.label input:checked~.checkmark:after {
  display: block;
}

.label .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.radiomark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 50%;
}

.label:hover input~.radiomark {
  background-color: #ccc;
}

.label input:checked~.radiomark {
  background-color: #568403;
}

.radiomark:after {
  content: "";
  position: absolute;
  display: none;
}

.label input:checked~.radiomark:after {
  display: block;
}

.label .radiomark:after {
  left: 5px;
  top: 5px;
  width: 0px;
  height: 0px;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 1px 1px 1px 1px #0008;
}

.send_error {
  color: red;
  display: inline-block;
}

.pay-money {
  margin-bottom: 17px;
  margin-top: 4px;
}

.form-confirm-text {
  font-size: .9em;
  text-align: center;
}

.fmodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: white;
  transition: opacity 0.3s ease;
}

.fmodal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-modal-card {
  position: relative;
  background: white;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: modalScaleUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalScaleUp {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.product-modal-image {
  width: 100%;
  position: relative;
  padding-top: 100%;
  /* Square aspect ratio for food */
  background: white;
  overflow: hidden;
}

.product-modal-image picture,
.product-modal-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  /* Small margin to avoid touching edges */
  height: 95%;
  object-fit: contain;
  /* Don't crop, show full product */
  transform: translate(-50%, -50%);
}

.product-modal-info {
  padding: 20px 24px;
  color: #333;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
}

.product-modal-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-modal-modifications {
  margin: 0 0 20px 0;
  border: 1px solid #f0f0f0;
  background: #eee;
  gap: 2px;
  padding: 2px;
}

.product-modal-modifications span {
  padding: 10px 5px;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.2s;
}

.product-modal-modifications .select {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #5c8a03;
}

.product-modal-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #666;
  margin-bottom: 24px;
}

.product-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.product-modal-price {
  font-size: 1.3em;
  font-weight: bold;
}

.product-modal-add {
  background-color: #d3e3b6;
  color: #264301;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.product-modal-add span {
  color: #264301;
}

.product-modal-add:active {
  transform: translateY(2px);
  background-color: #c3d3a6;
}

.fmodal.product .close-popup {
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  top: 12px;
  right: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fmodal.product .close-icon {
  fill: #333;
  width: 20px;
  height: 20px;
}

/* Landscape / Small Height screens fix */
@media (max-height: 500px) {
  .product-modal-card {
    flex-direction: row;
    max-width: 600px;
    max-height: 95vh;
  }

  .product-modal-image {
    width: 45%;
    padding-top: 45%;
    align-self: center;
  }
}

.close-popup {
  position: absolute;
  top: 0;
  right: 0;
  padding: 14px;
}


.swiper-prewap {
  background: #fff;
}

.swiper-container {
  /*max-width:1600px*/
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  /*max-height:200px*/
  width: 100%;
}

.swiper-pagination-bullet {
  --swiper-theme-color: #eee;
  margin: 0 10px !important;
  width: 13px;
  height: 13px;
}

.swiper-pagination-bullets {
  opacity: 0;
}

.swiper-container:hover .swiper-pagination-bullets {
  opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
  color: #eee;
  height: 100%;
  width: 50px;
  margin: 0;
  top: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev {
  left: 0;
}

.swiper-container .swiper-button-next::after,
.swiper-container .swiper-button-prev::after {
  opacity: 0;
}

.swiper-container:hover .swiper-button-prev::after {
  opacity: 1;
}

.swiper-container:hover .swiper-button-next::after {
  opacity: 1;
}

@media (min-width:779px) {

  /*.swiper-slide img{max-height:250px;}*/
  .list-products {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-wrap {
    width: calc(50% - .2em);
    margin: .1em;
    padding-top: 0;
  }

  .product-wrap>div {
    flex-direction: column;
  }

  .image-wrap {
    width: 90%;
    position: relative;
  }

  .product-label {
    position: absolute;
    right: 0;
    top: inherit;
    bottom: -19px;
    font-size: 14px;
    padding: 1px 6px;
  }

  .img-aspect {
    padding-top: 66.65%;
  }

  .img-aspect img {
    width: 100%;
    left: 0;
    top: 0;
  }

  .img-aspect img {
    left: 0 !important;
  }

  .product-content {
    width: inherit;
    height: 100%;
  }

  .product-description {
    margin-bottom: 15px;
  }

  .site-header {
    height: 60px;
    justify-content: start;
    /*max-width:1600px;margin:0 auto;*/
  }

  .site-header .menu-pages {
    display: block;
  }

  .site-header ul {
    margin-left: 30px;
  }

  .site-header li {
    display: inline-block;
    margin: 15px;
  }

  .hamburger,
  .header-profile {
    display: none;
  }

  .main {
    background: #eee;
  }

  .side-header {
    max-width: 750px;
    background: #eee;
  }

  .side-cart .side-logo svg {
    display: none;
  }

  .side-title {
    color: #705450;
    font-weight: bold;
  }

  .side-cart .side-hide {
    color: #705450;
  }

  .side-cart {
    background-color: #eee;
  }

  .cart-content,
  .cart-form,
  .cart-footer {
    background: #fff;
    margin: 5px auto;
    padding: 2em 1.5em;
    border-radius: 5px;
  }
}

@media (min-width:1000px) {
  .product-wrap {
    width: calc(33.3% - .2em);
    margin: .1em;
  }

  .block-category {
    max-width: 1280px;
  }
}

@media (min-width:1280px) {

  /*.swiper-slide img{max-height:300px;}
  .swiper-button-prev::after, .swiper-button-next::after{color:#fff;font-size: 50px;font-weight: bold;text-shadow: 2px 4px 9px #0008;}
  .swiper-button-prev{background:linear-gradient(270deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);}
  .swiper-button-next{background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);}*/
  .product-wrap {
    width: calc(25% - .2em);
    margin: .1em;
  }

  .block-category {
    max-width: 1400px;
  }
}

@media (min-width:1600px) {

  /*.swiper-button-prev::after, .swiper-button-next::after{font-size: 60px;}
  .swiper-slide img{max-height:350px;}*/
  .product-wrap {
    width: calc(20% - .2em);
    margin: .1em;
  }

  .block-category {
    max-width: 1600px;
  }
}

/*
 * TEST MAX 03.08.2025 Стили для уведомления о бесплатной доставке
 */
#free-shipping-notice {
  display: block;
  position: fixed;
  bottom: 4px;
  right: 20px;
  color: #5c8a03;
  padding: 5px 15px;
  background-color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  z-index: 20;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;


  /* Для плавной анимации */
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  /* Чтобы нельзя было кликнуть */
}

/* Класс для плавного появления */
#free-shipping-notice.visible {
  opacity: 1;
  transform: translateY(0);
}


/*
 * 2026.01.20 Стили для pickup-only категорий (только самовывоз)
 */

/* Badge на карточке товара — простой текстовый */
.pickup-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  cursor: help;
}

/* Badge на заголовке категории */
.pickup-only-category-badge {
  font-size: 11px;
  font-weight: 700;
  margin-left: 10px;
  background: #f0f0f0;
  color: #666;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  cursor: help;
}

/* Подсветка pickup-only товаров */
.product-wrap.pickup-only {
  position: relative;
}

/* Overlay "Не для доставки" на карточке при блокировке */
.delivery-warning {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 5;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border: 2px solid #e74c3c;
  border-radius: 8px;
}

.product-wrap.delivery-blocked .delivery-warning {
  display: flex;
}

.delivery-warning-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.delivery-warning-text {
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 10px;
}

.delivery-warning-hint {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.delivery-warning-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
}

/* First-time overlay для объяснения pickup-only */
.pickup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pickup-overlay-content {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 320px;
  text-align: center;
  margin: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pickup-overlay-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.pickup-overlay-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.pickup-overlay-text {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pickup-overlay-btn {
  background-color: #5c8a03;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s;
}

.pickup-overlay-btn:active {
  background-color: #4a7002;
}

/* Toast уведомление при добавлении товара */
.pickup-toast,
.cart-toast {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: rgba(51, 51, 51, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  line-height: 1.4;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  z-index: 15;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 250px;
  width: max-content;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.pickup-toast.visible,
.cart-toast.visible {
  opacity: 1;
  bottom: 90px;
}

/* ===== OVERLAY НА КАТЕГОРИЮ (2026-01-21) — Sticky Card ===== */
.category-pickup-overlay {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  display: block;
  padding: 20px;
}

/* Карточка — sticky, прилипает ниже центра viewport */
.category-overlay-content {
  position: sticky;
  top: 25vh;
  transform: translateY(0);
  background: #fff;
  width: calc(100% - 10px);
  /* Чтобы не вплотную к краям, если padding родителя не сработает */
  max-width: 340px;
  margin: 0 auto;
  padding: 32px 24px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  box-sizing: border-box;
  /* Гарантируем правильный расчет ширины */
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Иконка в круге */
.category-overlay-icon {
  width: 64px;
  height: 64px;
  background: #F5F5F7;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A4A4A;
}

.category-overlay-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Заголовок */
.category-overlay-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

/* Текст */
.category-overlay-text {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 24px;
}

/* Кнопка — зелёная, на всю ширину */
.category-overlay-btn {
  background-color: #dcefb6;
  color: #4a5e28;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s;
  width: 100%;
}

.category-overlay-btn:hover {
  background-color: #c8e29a;
  transform: translateY(-1px);
}