body {
  font-family: Manrope, Arial;
  color: #141414;
  margin: 0;
  font-size: 14px;
  background-color: #ffffff;
  cursor: default;
  user-select: none;
}

.main_page-wrapper {
  margin: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

.main_page-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(20 20 20 / 70%);
  border-radius: 10px;
}

.main_page-image {
  background: url('../img/ba9d5e686e74e288a2c6f87d8892149b.jpeg') center center / cover no-repeat;
  width: 100%;
  height: 700px;
  border-radius: 10px;
  position: relative;
}

.main_page-image-logo {
  position: absolute;
  top: 50px;
  left: 50px;
  height: 40px;
}

.main_page-image-title {
  width: 1086px;
  font-size: 80px;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  line-height: 90px;
}

.main_page-category-navigation {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0px;
  z-index: 9999;
  background-color: #ffffff;
  border-bottom: 2px solid #efefef;
}

.main_page-category-wrapper {
/*  width: 1560px;*/
  width: 1210px;
  margin: 30px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.category-button {
  position: relative;
  height: 60px;
  width: 166px;
  border: 2px solid #141414;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  box-sizing: border-box;
  color: #141414;
  font-size: 16px;
  font-weight: 600;
  margin-right: 8px;
  cursor: pointer;
  transition-duration: 0.2s;
}

.category-button:last-of-type {
  margin-right: 0;
}

.category-button:hover {
  border: 2px solid #ef8023;
  color: #ef8023;
}

.category-button-count {
  position: absolute;
  right: 10px;
  top: 6px;
  font-size: 14px;
  opacity: 0.5;
}

.main_page-devider {
  width: 100%;
  height: 2px;
  background-color: #e8e8e8;
}

.active {
  display: flex;
  border: 2px solid #ef8023;
  color: #ef8023;
}

.disabled {
  display: none;
}

#main_page_data_wrapper {
  max-width: 1568px;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.category-title {
  font-size: 70px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
}

.items-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: calc(384px * 4 + 8px * 4);
}

.item-wrapper {
  max-width: 384px;
  min-height: 620px;
  height: max-content;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  margin-right: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.last-in-row {
  margin-right: 0;
}

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

.item-bottom {
  margin: 0 16px 16px 16px;
}

.item {
  width: 100%;
  margin-bottom: 16px;
}

.item-image-wrapper {
  padding: 20px;
  box-sizing: border-box;
  background-color: rgb(20 20 20 / 3%);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.item-image-left {
  width: 30%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}

.item-image-right {
  width: 30%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.item-image {
  aspect-ratio: 1/1;
}

.item-description-header {
  color: #141414;
  font-weight: 600;
  line-height: 130%;
  font-size: 18px;
  min-height: 71px;
}

.item-description {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-bottom: 4px;
  cursor: default;
  transition-duration: 0.15s;
}

.item-description:hover {
  color: #ef8023;
}

.item-description:last-of-type {
  margin-bottom: 0px;
}

.item-description-attribute {
  min-width: 150px;
  font-weight: 900;
  max-width: 150px;
}

.item-description-attribute-value {
  margin-left: 1em;
}

.item-price {
  font-size: 20px;
  font-weight: 600;
  color: #ef8023;
}

.item-image-title {
  position: absolute;
  top: 16px;
  left: 16px;
  border: 2px solid #ef8023;
  border-radius: 6px;
  padding: 8px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 14px;
  background-color: #ffffff;
  pointer-events: none;
}

.item-image-fullscreen {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.item-image-open {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 28px;
  width: 30px;
  border: 2px solid #141414;
  border-radius: 6px;
  padding: 8px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 14px;
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  gap: 4px;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.gallery-indicator {
  width: 8px;
  height: 8px;
  border: 2px solid #141414;
  border-radius: 50%;
  cursor: pointer;
  box-sizing: border-box;
  transition: border 0.2s ease;
}

.gallery-indicator.active {
  border: 2px solid #ef8023;
}

.description-toggle-btn {
  font-size: 15px;
  color: rgb(20 20 20 / 50%);
  cursor: pointer;
  transition-duration: 0.2s;
}

.description-toggle-btn:hover {
  font-size: 15px;
  color: #ef8023;
}

.category-title-lazy {
  height: 92px;
  width: 500px;
  margin-bottom: 30px;
  border-radius: 10px;
  background-color: #f0f0f0;
}

.item-wrapper-lazy {
  width: 384px;
  min-height: 620px;
  height: max-content;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  margin-right: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.item-top-lazy {
  width: 100%;
  margin-bottom: 12px;
}

.item-image-wrapper-lazy {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  background-color: #f0f0f0;
}

.item-content-lazy {
  margin: 0 16px;
}

.item-description-header-lazy {
  width: 70%;
  height: 20px;
  margin: 16px 0 8px 0;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.item-text-lazy {
  width: 100%;
  height: 16px;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.item-bottom-lazy {
  margin: 0 16px 16px 16px;
}

.item-price-lazy {
  width: 40%;
  height: 20px;
  border-radius: 4px;
  background-color: #f0f0f0;
}

/* Анимация shimmer (по желанию) */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -150px; }
  100% { left: 100%; }
}

.popup-content.hidden {
  display: none;
}

.popup-close {
  background: #ffffff;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 60px;
  top: 60px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 9999;
  

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.popup-body {
  display: flex;
  height: 100%;
  overflow: hidden;
  align-items: center;
}

.popup-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8f7f8;
  z-index: 99999;
}

.popup-main {
  display: flex;
  position: relative;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.popup-image {
  width: 800px;
  height: 800px;
  background-color: #ffffff;
  border-radius: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.popup-thumbnails {
  height: max-content;
  width: 130px;
  margin: 0 10px 0 60px;
}

.popup-thumbnails div {
  width: 130px;
  height: 130px;
  margin: 0 0 8px 0;
  cursor: pointer;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  box-sizing: border-box;
  transition-duration: 0.2s;
}

.popup-thumbnails div:hover {
  border: 2px solid #f9cda8;
}

.popup-thumbnails div:last-of-type {
  margin: 0;
}

.popup-thumbnails div.active {
  border: 2px solid #ef8023;
  transition-duration: 0.2s;
}

.popup-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  width: 430px;
  margin-top: 30px;
}

.popup-nav {
  cursor: pointer;
  transition-duration: 0.2s;
}

.iconArrow {
  height: 30px;
}

.iconArrow path {
  transition-duration: 0.2s;
}

.popup-nav:hover .iconArrow path {
  stroke: #141414;
}

.popup-nav.hidden {
  display: none;
}

.popup-nav:hover {
  color: #141414;
}

.popup-nav.left { 
  margin-right: 38px;
}

.popup-nav.right { 
  margin-left: 38px;
}

.iconClose {
  height: 40px;
  width: 40px;
}