@charset "UTF-8";
* {
  padding: 0;
  margin: 0;
  border: 0;
}

*, *:before, *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus, :active {
  outline: none;
}

a:focus, a:active {
  overflow: none;
}

nav, footer, header, aside {
  display: block;
}

html, body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /*overflow-x: hidden;*/
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* äëÿ ïëàâíîé ïðîêðóòêè íà iOS */
}

input, button, textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a, a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: 400;
}

body {
  font-family: 'Inter', sans-serif;
  background-attachment: fixed;
  background-color: #F8F8F8;
}

a {
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.hidden {
  display: none;
}

.wrapper {
    min-height: 100%;
  height: auto; 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.container {
  max-width: 1200px;
  padding: 0 10px;
  margin: 0px auto;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
  height: 90px;
}
@media (max-width: 768px) {
  .header {
    height: 80px;
  }
}

.admin_panel {
  z-index: 2;
}

.header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #323642;
  z-index: 2;
}

.header_burger {
  display: none;
  position: relative;
  z-index: 3;
}
@media (max-width: 768px) {
  .header_burger {
    display: block;
    position: relative;
    top: 10px;
    width: 46px;
    height: 40px;
  }
  .header_burger:before, .header_burger:after {
    content: "";
    background-color: #fff;
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    left: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
  }
  .header_burger:before {
    top: 0;
  }
  .header_burger:after {
    bottom: 0;
  }
  .header_burger span {
    position: absolute;
    background-color: #fff;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    left: 0;
    top: 18px;
    -webkit-transition: 0.3s;
    transition: 0.3s;
  }
}

.header_burger.active:before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  top: 18px;
}

.header_burger.active:after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  bottom: 18px;
}

.header_burger.active span {
  -webkit-transform: scale(0);
          transform: scale(0);
}

.header_box {
  position: relative;
  height: 90px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media (max-width: 768px) {
  .header_box {
    height: 60px;
  }
}

.header_button {
  font-size: 18px;
  color: white;
  padding: 10px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  margin-left: 10px;
}
.header_button:hover {
  background-color: #405e79;
  border-radius: 5px;
}
@media (max-width: 1280px) {
  .header_button {
    font-size: 16px;
    padding: 5px;
  }
}
@media (max-width: 768px) {
  .header_button {
    font-size: 24px;
  }
}
.header_button .cart {
  margin: 0px;
}

.header_logo {
  position: relative;
  z-index: 3;
}
.header_logo img {
  max-height: 80px;
}
@media (max-width: 768px) {
  .header_logo {
    top: 10px;
  }
  .header_logo img {
    max-height: 60px;
  }
}

.header_menu ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-left: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .header_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 270px;
    background-color: #000;
    opacity: 95%;
    padding: 80px 0 0 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    overflow: auto;
  }
  .header_menu ul {
    display: block;
  }
  .header_menu ul li {
    margin-top: 20px;
  }
}

.header_login {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media (max-width: 768px) {
  .header_login {
    display: block;
  }
}

.header_login_image {
  margin-left: 10px;
}
.header_login_image img {
  max-height: 45px;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
}
.header_login_image:hover img {
  -webkit-filter: brightness(95%);
          filter: brightness(95%);
  background-color: #405e79;
  border-radius: 25%;
  padding: 5px;
}

.header_cart_image {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-left: 10px;
}
.header_cart_image img {
  max-height: 45px;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
}
.header_cart_image:hover img {
  -webkit-filter: brightness(95%);
          filter: brightness(95%);
  background-color: #405e79;
  border-radius: 25%;
  padding: 5px;
}

.header_cart_image.in_header {
  display: none;
}
@media (max-width: 768px) {
  .header_cart_image.in_header {
    display: block;
  }
}

.cart_count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
}

.header_menu.active {
  right: 0;
}
.header_menu.active li {
  border-left: 2px solid #4CAF50;
  border-radius: 3px;
}

.header_button_mobile {
  padding-left: 30px;
  position: relative;
  display: none;
}
.header_button_mobile a {
  position: static;
}
.header_button_mobile img {
  height: 30px;
  position: absolute;
  top: -4px;
  left: 7px;
}
@media (max-width: 768px) {
  .header_button_mobile {
    display: block;
  }
}
.header_button_mobile .cart_count {
  z-index: 1;
  top: -8px;
  left: 25px;
}

.header_button_desktop {
  display: auto;
}
@media (max-width: 768px) {
  .header_button_desktop {
    display: none;
  }
}

.footer {
  overflow: hidden;
  height: auto;
  padding: 10px 0px;
  width: 100%;
  background-color: #323642;
  color: white;
  margin-top: 10px;
}

.footer_box {
  height: 150px;
  height: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media (max-width: 768px) {
  .footer_box {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

@media (max-width: 768px) {
  .footer_text {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    padding: 10px;
  }
  .footer_contacts {
    margin-left: 15px;
  }
}
.footer_contacts {
  position: relative;
  font-size: 14px;
}
.footer_contacts div {
  margin: 3px;
}
.footer_contacts a {
  color: white;
}

.footer_contact_number:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  top: 3;
  left: -15px;
  background-image: url("../img/phone.png");
  background-size: 14px 14px;
}

.footer_contact_tg:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  top: 19;
  left: -15px;
  background-image: url("../img/telegram.png");
  background-size: 14px 14px;
}

.footer_contact_vk:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  top: 38;
  left: -15px;
  background-image: url("../img/vk.png");
  background-size: 14px 14px;
}

.footer_contact_mail:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  top: 56;
  left: -15px;
  background-image: url("../img/mail.png");
  background-size: 14px 14px;
}

.like_gray_text {
  font-size: 14px;
  color: #777;
}

.content_box {
  font-size: 18px;
  padding: 100px 0 0 0;
}
.content_box h1 {
  font-size: 26px;
}
@media (max-width: 768px) {
  .content_box {
    padding: 90px 0 0 0;
  }
}

.block_1 {
  background-color: #323642;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  line-height: 1.3;
}




.block_mp_products {
  background-color: #323642;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 10px;
}

.popular-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.scroll-arrow {
  position: absolute;
  bottom: 45%;
  background: #f2f2f2;
  color: #000;
  border: 1px solid #ccc;
 	width: 45px;
 	height: 45px;
  border-radius: 50%;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: 0.3s;
}
.scroll-arrow:hover {
  opacity: 1;
}
.scroll-arrow.left {
  left: 0;
}
.scroll-arrow.right {
  right: 0;
}

@media (max-width: 768px) {
  .scroll-arrow {
    font-size: 16px;
    padding: 8px;
  }
}

.block_mp_products .title{
	color: white;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 10px;
}
.block_mp_products .link_button_cont{
	text-align: center;
	padding: 15px 0px 10px 0px;
}
.block_mp_products .link_button_cont a{
	background-color: #fff;
	color: #323642;
	padding: 5px;
	border-radius: 5px;
}
.mp-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  scroll-behavior: smooth;
  /*scrollbar-width: 8px;  ñêðûòü ïîëîñó ïðîêðóòêè */
  overflow-anchor: none; /* äëÿ Safari */
  margin-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.mp-scroll-container::-webkit-scrollbar {
  /*display: none;  Chrome */
  height: 8px;
}

.mp-scroll-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.mp-scroll-container .product-card {
  flex: 0 0 auto;
}





.block_2 {
    line-height: 1.3;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.block_2 h1 {
  text-align: center;
  margin-bottom: 10px;
}
.block_2 a {
  display: inline-block;
  background-color: #323642;
  color: #fff;
  padding: 10px 15px;
  font-size: 20px;
  border-radius: 5px;
}
.block_2 a:hover {
  background-color: #405e79;
}
.block_2 p {
  margin-bottom: 10px;
  text-align: justify;
}
.block_2 .title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}
.block_2 .block_2_button {
  text-align: center;
}

.block_2_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 10px 0;
  padding: 10px 0px;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
}

.block_text {
    line-height: 1.3;
  max-width: 45%;
  margin: 0px auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
@media (max-width: 768px) {
  .block_text {
    max-width: 100%;
  }
}

.block_image {
  min-height: 250px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 45%;
          flex: 0 0 45%;
  margin: 0px auto;
  position: relative;
}
.block_image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  -o-object-fit: cover;
     object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
@media (max-width: 768px) {
  .block_image {
    display: none;
  }
}

.block_3 {
    line-height: 1.3;
  background-color: #323642;
  color: #ccc;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.block_3 a {
  color: #fff;
  text-decoration: underline;
  display: inline-block;
  margin: 5px 0px;
}
.block_3 h1, .block_3 h2, .block_3 h3 {
  text-align: center;
  margin-bottom: 10px;
}
.block_3 p {
  margin: 0px auto;
}
@media (min-width: 1280px) {
  .block_3 p {
    width: 75%;
  }
}

.desktop_only {
  display: block;
}
@media (max-width: 768px) {
  .desktop_only {
    display: none;
  }
}

.mobile_only {
  display: none;
}
@media (max-width: 768px) {
  .mobile_only {
    display: block;
  }
}

.sidebar.desktop_only {
  display: block;
}
@media (max-width: 768px) {
  .sidebar.desktop_only {
    display: none;
  }
}

.category_mob.mobile_only {
  display: none;
}
@media (max-width: 768px) {
  .category_mob.mobile_only {
    display: block;
    width: 100%;
    font-size: 16px;
    margin: 5px 0px;
    display: inline-block;
    border: 1px solid gray;
    padding: 5px;
    border-radius: 5px;
  }
  .category_mob.mobile_only select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(64, 94, 121, 0.5);
    color: #000;
    border: 1px solid gray;
    padding: 7px 40px 7px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    max-width: 100%;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.516 7.548l4.484 4.49 4.484-4.49L15.5 8.552l-5.5 5.49-5.5-5.49z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 2px center;
    background-size: 20px;
  }
  /*.category_mob.mobile_only select:focus {
    outline: none;
    border-color: #888;
    background-color: #eaeaea;
  }*/
}

.main_catalog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 10px;
}

@media (max-width: 768px) {
    .main_catalog {
          padding: 0 0;
    }
}

.sidebar {
  position: sticky;
  top: 100px;
  left: 0;
  text-align: center;
  width: auto;
  min-height: calc(100vh - 110px); /* çàíèìàåò âåñü ýêðàí */
  max-height: calc(100vh - 110px); /* è íå áîëüøå */
  overflow-y: auto;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  margin: 0px auto;
}
.sidebar ul {
  margin-top: 20px;
}
.sidebar li {
  margin: 10px 0px 0px 0px;
}
.sidebar button {
  color: #000;
  background-color: white;
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 18px;
  border-radius: 5px;
  -webkit-transition: 0.1s;
  transition: 0.1s;
}
.sidebar button:hover {
  background-color: #ccc;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.cat-btn.order-all {
  background-color: #e0e0e0;
  font-size: 20px;
  width: 100%;
}

.cat-btn.order-1 {
  background-color: #d0e6f6;
  font-size: 20px;
  width: 100%;
}

.cat-btn.order-4 {
  background-color: #ffe0b2;
  font-size: 20px;
  width: 100%;
}

.cat-btn.order-5 {
  background-color: #fff9c4; /* ñâåòëî-ïåðñèêîâûé */
}

.cat-btn.active {
  background-color: #ccc;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.market {
  width: 100%;
  max-width: 1400px;
  margin: 0px auto;
  padding: 10px;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
  border-radius: 5px;
}
@media (max-width: 768px) {
  .market {
    padding: 0px;
  }
}

.market_top_menu {
  font-size: 16px;
}

.search {
  display: flex;
  background-color: #fff;
  padding: 2px;
  border-radius: 5px;
  border: 1px solid gray;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.search > * {
  font-size: 16px;
  padding: 5px;
  border-radius: 5px;
}
.search .input-container {
			position: relative;
			border: 1px solid gray;
			width: 300px;
			min-width: 0;
			padding: 6px;
			padding-left: 30px;
}
.search .input-container input{
  width: 100%;
}
@media (max-width: 768px) {
  .search .input-container {
    flex: 1 1 auto;
    width: auto;
  }
}
.search select {
    color: #000;
    height: 30px;
    background-color: rgba(64, 94, 121, 0.5);
    border: 1px solid gray;
    margin-left: 3px;
    margin-left: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.search .search_button {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 27px;
  height: 27px;
  padding: 0px;
  background-color: #fff;
  background-image: url("../img/lupa.png");
  background-size: 27px;
  -webkit-transition: 0.1s;
  -webkit-tap-highlight-color: transparent;
  transition: 0.1s;
}
.search .search_button:hover {
  opacity: 0.5;
}
@media (max-width: 1280px) {
  .search .search_button {
    top: 3;
    background-size: 27px;
  }
}
.search .clear-input{
    position: absolute;
	right: 5px;
	top: 14px;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 20px;
	color: #888;
	display: none;
	user-select: none;
	z-index: 1;
}
.search .clear-input:hover{
    color: #000;
}

.market_items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: start; /* èëè space-between, åñëè õî÷åøü ðàçðûâû ìåæäó êàðòî÷êàìè */
  background-color: rgba(2, 4, 90, 0); /* óæå ïðîçðà÷íûé */
  border-radius: 12px;
  gap: 10px;
  padding: 10px;
}

.product-card {
  background: #fff;
  border: 1px solid gray;
  border-radius: 12px;
  overflow: hidden;
  width: calc(25% - 10px); /* 4 êàðòî÷êè â ðßä */
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  padding: 10px;
}

.product-card img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  max-height: 250px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .product-card img {
    max-height: 200px;
  }
}

.product-card a {
  margin: auto 0;
}

.product-card h3 {
  font-size: 16px;
  margin: 8px 0;
}

.product-card p {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.product-card .btn,
.product-container .btn {
  margin-top: auto;
  background: #4CAF50;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.localization-badge {
  position: absolute;
  top: 30px;
  left: 8px;
  background-color: rgba(100, 100, 100, 0.95);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  font-size: 14px;
}

.isused-badge{
    position: absolute;
    top: 230px;
    background-color: rgba(100, 100, 100, 0.75);
    color: #fff;
    font-size: 14px;
    width: 100%;
    padding: 3px 0px;
}
@media (max-width: 768px) {
    .isused-badge{
            top: 180px;
    }
}

.stock-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 14px;
  border-radius: 4px;
  font-weight: bold;
  color: white;
  z-index: 2;
}

.in-stock {
  background-color: #28a745; /* çåëÞíûé */
}

.out-of-stock {
  background-color: #dc3545; /* êðàñíûé */
}

.product-card {
  position: relative;
  overflow: hidden;
}

.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  margin: 10px 0px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
}

.pagination a {
  padding: 6px 0px;
  width: 35px;
  text-align: center;
  background: #eee;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid gray;
}

.pagination a.active {
  background: #4CAF50;
  color: white;
  font-weight: bold;
}

/* €äàïòàöèß äëß ïëàíøåòîâ */
@media (max-width: 1280px) {
  .product-card {
    width: calc(33.333% - 10px); /* 3 êàðòî÷êè â ðßä */
  }
}
/* €äàïòàöèß äëß òåëåôîíîâ */
@media (max-width: 768px) {
  .product-card {
    width: calc(50% - 5px); /* 2 êàðòî÷êè â ðßä */
  }
}
.product-container {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
}
@media (min-width: 768px) {
  .product-container .product-image {
    max-width: 50%;
  }
}
.product-container .product-image img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 10px;
}
.product-container .product-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  max-width: 100%;
}
.product-container .product-price {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}
.product-container .product-stock {
  font-weight: bold;
  padding: 6px 12px;
  display: inline-block;
  border-radius: 5px;
  margin-bottom: 10px;
}
.product-container .in-stock {
  background-color: #c6f6c6;
  color: #226622;
}
.product-container .out-of-stock {
  background-color: #fdd;
  color: #922;
}
.product-container .add-to-cart {
  margin-bottom: 15px;
}
.product-container .product_count {
  display: inline-block;
}
.product-container .product_count .qty-btn {
  font-size: 20px;
  background: white;
  border: 1px solid #ccc;
  padding: 0px 3px;
  border-radius: 3px;
  color: #000;
  margin-left: 10px;
}
.product-container .product-localization,
.product-container .product-category {
  margin-bottom: 20px;
  font-size: 16px;
}
.product-container .product-localization span,
.product-container .product-category span {
  border: 2px solid #ccc;
  padding: 3px;
  border-radius: 5px;
  display: inline-block;
  margin: 3px 3px 0px 0px;
}
.product-container .product-category span:hover{
    background-color: #ccc;
}
.product-container .product-description {
  line-height: 1.5;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 10px;
  width: 100%;
}
@media (min-width: 768px) {
    .product-container .product-description{
        min-width: 750px;
    }
}
.account-container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
}
@media (max-width: 768px) {
  .account-container {
    padding: 10px;
  }
}

.account-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.account-message {
  background: #f0f0f0;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.user-info {
  background: #f9f9f9;
  border: 1px solid #ccc;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #4CAF50;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.user-info ul {
  list-style: none;
  padding-left: 0;
}

.user-info li {
  margin-bottom: 10px;
  font-size: 16px;
}

.user-actions {
  margin-top: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.user-actions button,
.user-actions a {
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
}

.user-actions button {
  background: #4CAF50;
  color: white;
}

.user-actions .btn-exit {
  background: #c62828;
  color: white;
}

.user-actions .btn-cart {
  background: #2196F3;
  color: white;
}

.user-actions a:hover,
.user-actions button:hover {
  opacity: 0.85;
}

.orders-history {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .orders-history {
    padding: 5px;
  }
}

.order-item {
  border: 1px solid #ccc;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  border-left: 5px solid transparent;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  border-left: 2px solid #4CAF50;
}

.order-item .status-text,
.order-item .delivery_method_text {
  font-weight: bold;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

.order-item .delivery_method_text {
  color: black;
}

/* –âåòîâûå ìåòêè ïî ñòàòóñàì */
.order-item.new .status-text,
.order-status.new {
  background-color: #28a745; /* çåëåíûé */
}

.order-item.in_process .status-text,
.order-status.in_process {
  background-color: #007bff; /* ñèíèé */
}

.order-item.done .status-text,
.order-status.done {
  background-color: #fd7e14; /* îðàíæåâûé */
}

.order-item.cancelled .status-text,
.order-status.cancelled {
  background-color: #dc3545; /* êðàñíûé */
}

.paid_status.paid {
  color: #28a745;
}

.paid_status.not-paid {
  color: #dc3545;
}

.order-item div {
  margin-bottom: 8px;
}

.order-link {
  display: inline-block;
  background: #555;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.order-link:hover {
  background: #333;
}

.admin_menu_buttons {
  margin: 10px 0px 10px 0px;
}
.admin_menu_buttons a {
    display: inline-block;
    margin-bottom: 5px;
  background-color: white;
  border: 1px solid gray;
  color: red;
  padding: 5px;
  border-radius: 5px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 98%;
  max-width: 500px;
  position: relative;
}
.modal-content input, .modal-content textarea, .modal-content select {
  border: 1px solid gray;
  background-color: #ddd;
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.modal-content textarea {
    height: 300px;
}
.modal-content .cat-select{
    height: 620px;
    font-size: 20px;
}
@media (max-width: 768px) {
    .modal-content .cat-select{
    height: auto;
    font-size: 20px;
}
}
.modal-content button {
  border: 1px solid gray;
  font-size: 16px;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
}

.modal-content.big-height {
  margin: 5px auto;
}

.order_details_modal p {
  border: 1px solid gray;
  margin-bottom: 5px;
  padding: 5px;
  border-radius: 5px;
  background-color: #eee;
}
.order_details_modal .accept {
  background-color: #4CAF50;
}
.order_details_modal .down {
  background-color: #0066cc;
}
.order_details_modal .cancel {
  background-color: #dc3545;
}
.order_details_modal h4 {
  margin-bottom: 5px;
}
.order_details_modal .order_detail_items {
  background-color: #fff;
  padding: 5px;
  border-radius: 5px;
}
.order_details_modal .order_detail_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid #ccc;
}
.order_details_modal .in-stock, .order_details_modal .out-of-stock {
  padding: 5px;
  border-radius: 5px;
  margin-top: 5px;
}

.check_resale {
  height: 20px;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

#drop-zone, #drop-zone-edit {
  border: 2px dashed #aaa;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: #f9f9f9;
}

#drop-zone.hover, #drop-zone-edit.hover {
  background-color: #e0f7ff;
}


.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  background-color: #4CAF50;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  -webkit-animation: fadeInOut 5s ease-in-out forwards;
          animation: fadeInOut 5s ease-in-out forwards;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.custom-alert.failed {
  background-color: #a33;
}

@-webkit-keyframes fadeInOut {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
    pointer-events: auto;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
    pointer-events: auto;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
.products_buttons button {
  border: 1px solid gray;
  font-size: 14px;
  color: blue;
  padding: 5px;
  border-radius: 5px;
}

.products_select {
  border: 1px solid gray;
  font-size: 18px;
  margin: 10px 0px 10px 0px;
}

.products_table {
  border: 2px solid black;
  width: 100%;
  border-collapse: collapse;
}
.products_table th, .products_table td {
  text-align: start;
  padding: 5px;
  border: 1px solid gray;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}
@media (max-width: 768px) {
  .products_table .desktop_only_table {
    display: none;
  }
}
.products_table tr:hover {
  background-color: #ccc;
}

.stock-red, .profit-red {
  background-color: #f8d7da; /* êðàñíûé ôîí */
  color: #721c24;
  font-weight: bold;
}

.stock-yellow, .profit-yellow {
  background-color: #fff3cd; /* æåëòûé ôîí */
  color: #856404;
  font-weight: bold;
}

.stock-green, .profit-green {
  background-color: #d4edda; /* çåëåíûé ôîí */
  color: #155724;
  font-weight: bold;
}

.users_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.users_table .user-view-btn {
  border: 1px solid gray;
  padding: 5px 0px;
}

.user_filter {
  margin-top: 5px;
}
.user_filter input, .user_filter select, .user_filter button {
  border: 1px solid gray;
  padding: 5px;
}

.admin_user_orders_ul li {
  border: 1px solid gray;
  padding: 5px;
}
.admin_user_orders_ul li div {
  background-color: #ccc;
  border: 1px solid gray;
  padding: 3px;
}

.select2-container .select2-selection--single {
  height: 38px;
  padding: 0px auto;
  font-size: 16px;
}

.form_container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ccc;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.form_container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.form_container label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}
.form_container input[type=text],
.form_container input[type=email],
.form_container input[type=password],
.form_container input[type=tel] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
}
.form_container input[type=number] {
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  width: 40px;
  height: 25px;
}
.form_container .captcha_label {
  display: inline-block;
}
.form_container .form_container_btn {
  margin-top: 20px;
  width: 100%;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.form_container .form_container_btn:hover {
  background-color: #45a049;
}

.form-toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  margin-bottom: 20px;
}

.form-toggle .form_container_btn {
  width: 48%;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  font-weight: 500;
}

.form-toggle .form_container_btn:hover {
  background-color: #e0e0e0;
}

.error-box {
  background-color: #ffe0e0;
  color: #a33;
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

.input-with-icon {
  position: relative;
  margin-bottom: 16px;
}

.input-with-icon input {
  width: 100%;
  padding-right: 36px; /* ìåñòî ïîä êíîïêó */
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 10px;
  font-size: 15px;
}

.toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 25px;
  cursor: pointer;
  line-height: 1;
  color: #555;
}

.cart_container {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #ccc;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.cart_container .cart_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
@media (max-width: 666px) {
  .cart_container .cart_table .desktop_only_table {
    display: none;
  }
}
.cart_container table th, .cart_container table td {
  padding: 10px;
  vertical-align: middle;
  text-align: center;
}
@media (max-width: 768px) {
  .cart_container table th, .cart_container table td {
    padding: 2px;
  }
}
.cart_container .cart_table tr + tr {
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
}
.cart_container h1 {
  text-align: center;
}
.cart_container h2 {
  margin-bottom: 10px;
}
.cart_container form input, .cart_container form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  margin-top: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.cart_container form textarea {
  min-width: 100%;
  max-width: 100%;
  min-height: 60px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  margin: 5px 0px;
}
.cart_container form button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}
.cart_container form button:hover {
  background-color: #888;
}
.cart_container .qty-btn {
  padding: 0px;
  font-size: 14px;
  background: #f0f0f0;
  color: black;
  border: 1px solid #aaa;
  border-radius: 3px;
  cursor: pointer;
  max-width: 20px;
  margin: 6px 0px;
  font-weight: 600;
}
.cart_container a {
  color: #0066cc;
  text-decoration: none;
}
.cart_container a:hover {
  text-decoration: underline;
}
.cart_container .strong {
  text-align: right;
  margin-bottom: 20px;
}
.cart_container .strong span {
  color: #0066cc;
  font-weight: 600;
  padding: 5px;
  border: 1px solid #ccc;
}
.cart_container .strong a {
  color: red;
}

.cart_item_info {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.cart_item_info img {
  display: block;
  width: 60px;
  height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
}

.remove_btn {
  font-size: 30px;
  color: red;
  text-decoration: none;
  font-weight: bold;
  padding: 4px 8px;
  display: inline-block;
  line-height: 1;
}

.remove_btn:hover {
  color: darkred;
}

.option-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  margin: 10px 0;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.option-box {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  width: 160px;
  position: relative;
  color: #000;
}

@media (max-width: 768px){
    .option-box {
        width: calc(50% - 10px);;
    }
}

.option-box input[type=radio] {
  display: none;
}

.option-box .option-icon {
  height: 32px;
  margin-bottom: 5px;
}

.option-box.selected {
  border-color: #2196F3;
  background-color: #e3f2fd;
}

.order-summary {
  margin-top: 10px;
}
.order-summary .promo-code {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
  width: 100%;
  margin: 5px 0px;
}

.order-summary .promo-code input {
  margin: 0px;
  max-width: 220px;
}

.order-summary .promo-code button {
  width: auto;
}

.order-summary p {
  border-bottom: 1px solid #ccc;
  margin-bottom: 15px;
}

.order-summary .final_total {
  margin: 15px 0px;
  border-bottom: none;
}

.promo-success {
  background-color: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
}

.promo-fail {
  background-color: #f8d7da;
  border: 1px solid #dc3545;
  color: #721c24;
}

/*ÑÊÈÄÊÈ Çíà÷îê àêöèè */
/* ×òîáû êëèêàáåëüíà áûëà âñÿ êàðòî÷êà */
.product-card {
  position: relative;
  transition: transform 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
}
.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* SALE-áåéäæ */
.sale-badge {
  position: absolute !important;
  top: 0px;
  right: 0px;
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  display: block !important;
  z-index: 0;
  pointer-events: none;
}

/* Öåíû ñî ñêèäêîé */
.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 6px;
  font-size: 14px;
}
.sale-price {
  color: #d60000;
  font-weight: bold;
  font-size: 18px;
}

/* Äëÿ âûðàâíèâàíèÿ âíóòðåííåãî êîíòåíòà */
.product-info {
  padding: 8px 0;
}

/* ==== SALE îôîðìëåíèå íà ñòðàíèöå òîâàðà ==== */
.product-image{
  position: relative;
}
/* Áåéäæ ñî ñêèäêîé */
.productpage-sale-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

/* Áëîê öåí */
.productpage-price-block {
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.productpage-old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 18px;
}

.productpage-new-price {
  color: #e53935;
  font-weight: bold;
  font-size: 24px;
}

.productpage-regular-price {
  color: #222;
  font-weight: 600;
  font-size: 22px;
}