.section-wrapper {
  background-color: #9076f6;
  border-radius: 16px;
  padding: 20px 8px 8px;
  margin: 16px 4px;
}

.section-no-title {
  background-color: #b3a0fd;
  border-radius: 16px;
  padding: 16px 12px;
  margin: 4px;
}

.section-wrapper-gradient {
  background-image: linear-gradient(#9076f6, #9076f6 50%, #b3a0fd);
  background-size: 100% 20px;
  background-position: top; 
  background-repeat: no-repeat;
  background-color: #b3a0fd;
  border-radius: 16px;
  padding: 20px 8px 8px;
  margin: 16px 4px;
}

.section {
  position: relative;
  text-align: center;
}

.section-title {
  position: absolute;
  top: -30px;
  color: white;
  margin: 0 0 10px 0;
  text-align: left;
}

.section-subtitle {
  width: 100%;
  text-align: left;
  font-size: 12px;
}

.product-cards-placeholder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.product-card {
  background: rgba(179, 160, 253, 1);
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}
.product-image-container {
  position: relative;
}
.product-image-number {
  position: absolute;
  border-radius: 8px 0;
  top: 10px;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 5px;
  font-size: 10px;
}
.product-image {
  width: 128px;
  height: auto;
  display: block;
  object-fit: cover;
  margin-top: 10px;
  border-radius: 8px;
}
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 10px 0;
}

.arrow {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.arrow img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1px;
}
.thumbs-wrapper {
  overflow-x: auto;
  width: 120px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.thumbs {
  display: flex;
  gap: 3px;
  min-width: fit-content;
  width: 100px;
  overflow: hidden;
}

.thumb {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.thumb.active {
  border-color: #6e4cff;
}
/* Инфо о товаре */
.product-price {
  font-weight: bold;
  font-size: 18px;
  margin: 8px 0;
  text-align: center;
}

.product-title {
  font-size: 14px;
  text-align: center;
  margin: 0 8px 8px;
}

.add-to-cart {
  background: linear-gradient(to bottom, #4d7cff, #2b55f6);
  /* color: rgb(255, 255, 255); */
  /* padding: 8px; */
  width: 100%;
  /* border: none; */
  /* border-radius: 8px; */
  font-weight: bold;
  /* cursor: pointer; */
  transition: 0.2s;
  margin-top: auto;
}

/* Кнопка */
.add-to-cart {
  /* background-color: #333; */
  border: 1px solid #ffffff;
  color: #fff;
  font-size: 12px;
  max-width: 150px;
  padding: 5px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
}

.add-to-cart.added {
  background: linear-gradient(to bottom, #b86aff, #be0efc);
}

.agood-shipping-card-image.added {
  background: #b86aff;
}

.agood-container-pages {
  display: flex;
  justify-content: space-between;
}

.button-blue {
  background: linear-gradient(to bottom, #4d7cff, #2b55f6);
  border: 1px solid #ffffff;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  width: 110px;
  height: 27px;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
}

.page-container {
  display: flex;
  justify-content: space-between;
  height: 60px;
  border-radius: 11px;
  background-color: #9076f8;
  box-shadow: 4px 4px 3px #624dbf;
  align-items: center;
  margin: 5px;
  font-size: 14px;
}

.page-container > div {
  margin: 10px;
}

.pagetable-container {
  display: flex;
}
.pagetable-container > div {
  margin: 1px;
  padding: 2px 3px 2px 1px;
  height: 16px;
}

.pagetable-leftar-no { width:20px; height:14px; margin:0 0 0 0; background:url('/img/buttons/left_no.gif') 1px 2px no-repeat; background-color: #C6BCFE; }
.pagetable-leftar { width:20px; height:14px; margin:0 0 0 0; }
.pagetable-leftar a { display:block; margin:0; padding:0; width:100%; height:100%; overflow:hidden; background:url('/img/buttons/left_3.gif') 0 0 no-repeat; border-bottom:none; }
.pagetable-leftar a:hover { background:url('/img/buttons/left_3.gif') -20px 0 no-repeat; }
.pagetable-leftar a:active { background:url('/img/buttons/left_3.gif') -40px 0 no-repeat; }

.pagetable-rightar-no { width:20px; height:14px; margin:0 0 0 0; background:url('/img/buttons/right_no.gif') 1px 2px no-repeat; background-color: #C6BCFE;}
.pagetable-rightar { width:20px; height:14px; margin:0 0 0 0;}
.pagetable-rightar a { display:block; margin:0; padding:0; width:100%; height:100%; overflow:hidden; background:url('/img/buttons/right_3.gif') 0 0 no-repeat; border-bottom:none; }
.pagetable-rightar a:hover { background:url('/img/buttons/right_3.gif') -20px 0 no-repeat; }
.pagetable-rightar a:active { background:url('/img/buttons/right_3.gif') -40px 0 no-repeat; }

/* Search new style */
.header-search-container {
  display: flex;
  border-radius: 5px;
  background-color: white;
  margin: 10px;
}

.header-search-icon {
  padding: 5px 10px;
  flex-grow: 1;
}

.header-search-icon > img {
  filter: invert(37%) sepia(16%) saturate(19%) hue-rotate(327deg) brightness(99%) contrast(85%);
}

.header-search {
  flex-grow: 100;
}

.header-search > input {
  background: none;
  border: none;
  padding: 5px 0;
  caret-color: white;
  color: white;
  width: 100%;
}

.header-advanced-search-container {
  display: flex;
  flex-direction: column;
  margin: 0px 10px 10px;
}

.header-advanced-search-title {
  color: white;
  font-size: 12px;
  padding: 10px 0 5px;
}

.header-advanced-search-field {
  border: none;
  border-radius: 5px;
  color: black;
  font-size: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  -webkit-appearance: none; /* Стиль для Safari */
  -moz-appearance: none; /* Стиль для Firefox */
  appearance: none;
  background-image: url('DownArrow.svg');
  background-repeat: no-repeat;
  background-position: center right 10px;
}

#my_empty_cart_rgh {
  display: none;
}

.agood-shipping-card-image {
  margin: 16px;
  border-radius: 5px;
  background: azure;
}

.rgh-goods-grid {
  display: grid;
  grid-template-columns: 64px auto;
  grid-gap: 8px;
  margin: 0 4px;
}

.find-table-section {
  padding: 0 10px;
}

.find-table-main {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.find-table-options {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 20px;
}

.results {
  text-align: left;
}

.breadcrumb-delimiter {
  font-style: normal;
  color: white;
  padding: 0 8px;
}

.section-main-image {
  position: relative;
  display: flex;
  justify-content: center;
  height: 320px;
  /* background-color: #9076f6; */
  border-radius: 16px;
  padding: 2px;
  margin: 4px;
  overflow: hidden;
}

.main-image {
  position: absolute;
  display: block;
  height: 320px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
}
.footer-div {
  background: url(/img/fp_tail_1d.gif) no-repeat;
  height: 60px;
  position: relative;
}
.footer-div > hr {
  position: absolute;
  top: 50px;
  width: 100%;
}

#topmenutable  a {
  font-size: 18px;
}
.txt_mini {
  text-align: left;
}

.menu-ico-mob {
  height: 24px;
}

#header-bg-r {
position: absolute; height:170px; width: 427px; background:url(/img/f_h_l_1.jpg) no-repeat left top;
}

#header-bg-l {
right:0; position: absolute;height:170px; width:1100px; background:url(/img/f_h_r_wood_f.jpg) no-repeat right top;
}

#header-design-main {
  height: 138px; position: relative;
}

#header-menu-main {
  display: flex;justify-content: end; border-top: white 1px dashed;border-bottom: white 1px dashed;padding: 0px 50px; height: 28px;box-sizing: border-box;
}
.header-menu-main-item {
  padding: 0px 10px;border-left: white 1px dashed;
}

#header-menu-mob {
  display: none;justify-content: end; border-top: white 1px dashed;border-bottom: white 1px dashed;padding: 0px 30px; height: 28px;box-sizing: border-box;
}
.header-menu-mob-item {
  padding: 0px 10px;border-right: white 1px dashed;
}

.table-pass-recovery {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; align-items: center; max-width: 800px; justify-self:center;
}

.item-pass-recovery-email {
  grid-column-start:2;grid-column-end:7
}

.cabinet-info-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "all-info text-info" "all-info pass-email";
  gap: 5px;
}

@media only screen and (max-width: 520px) {
  .table-pass-recovery {
    display: grid; grid-template-columns: repeat(3, 1fr);
  }

  .item-pass-recovery-email {
    grid-column-start:2;grid-column-end:4
  }
}

@media only screen and (max-width: 800px) {
#bodytable {grid-template-areas: "h" "c" "f"}
/* #headtd {display: block;} */
#header-design-main {display: none;}
#header-menu-main {display: none;}
#header-menu-mob {display: flex;}
#topmenutable {margin-left: 0;}
#midltd {display: none;}
#midctd {display: block;}
#midrtd {display: none;}
#index_flash_table {display: none;}
#headertable {display: none;}
#tailtd {display: none;}
.product-grid { grid-template-columns: 1fr 1fr; }
}

@media only screen and (max-width: 1200px) {
.cabinet-info-table {
  gap: 10px;
  grid-template-columns: 1fr;
  grid-template-areas: "text-info" "pass-email" "all-info";
}
}

@media only screen and (min-width: 1200px) {
#midrtd {margin-right: 25px;}
#midltd {margin-left: 25px;}
}