* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0C1B54;
  --secondary: #E6E6E8;
  --title: #000;
  --text: #141414;
}

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  font-size: clamp(7.5px, 0.520834vw, 14px);
}

a {
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

button {
  font-family: inherit;
}

input,
select,
textarea {
  border: none;
  outline: none;
  font-family: unset;
}

body {
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
  color: var(--text);
  word-break: break-word;
  font-family: 'Poppins', sans-serif;
}

body.fixed {
  overflow: hidden;
}

#fullscreen-loader {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../img/bg.webp) no-repeat center / cover;
}

#fullscreen-loader::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 8px solid var(--primary);
  animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }

  12.5% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
  }

  25% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
  }

  50% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }

  62.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }

  75% {
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
  }

  100% {
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
  }
}

@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg);
  }

  49.99% {
    transform: scaleY(1) rotate(135deg);
  }

  50% {
    transform: scaleY(-1) rotate(0deg);
  }

  100% {
    transform: scaleY(-1) rotate(-135deg);
  }
}

.img.img_cv {
  overflow: hidden;
}

.img.img_cv img {
  object-fit: cover;
}

.img.img_ct img {
  object-fit: contain;
}

.img.img_ab {
  position: relative;
}

.img.img_ab img {
  position: absolute;
  left: 0;
  top: 0;
}

.img.img_aba {
  position: relative;
}

.img.img_aba::after {
  content: '';
  display: block;
  padding-bottom: var(--h);
}

.img.img_aba img {
  position: absolute;
  left: 0;
  top: 0;
}

.img img {
  width: 100%;
  height: 100%;
  display: block;
  transition: all 0.5s;
  aspect-ratio: inherit;
}

.btn {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 0.8rem;
  color: #fff;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 5.8rem;
  min-width: 18.4rem;
  padding: 0 2.5rem;
  background-color: var(--primary);
}

.btn:hover {
  background-color: #00231F;
}

.btn_b {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 0.8rem;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 5.6rem;
  min-width: 18.4rem;
  padding: 0 2.4rem;
  border: 1px solid #8B8B8B;
  background-color: transparent;
}

.btn_b:hover {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
}

.qty_wrap {
  gap: 1.8rem;
  display: flex;
  align-items: center;
}

.qty_wrap .qty_label {
  font-weight: 500;
}

.qty_wrap .qty {
  width: 14rem;
  height: 4.4rem;
  overflow: hidden;
  border-radius: 0.8rem;
  background-color: var(--secondary);
  display: grid;
  grid-template-columns: 1fr 42.857143% 1fr;
  padding: 1px;
}

.qty_wrap input {
  width: 100%;
  display: block;
  background-color: #F7F8F8;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  border: none;
  outline: none;
}

.qty_wrap button {
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  outline: none;
  background-color: transparent;
  font-size: 2.121rem;
  font-weight: 500;
  color: #B2B2B2;
  transition: all 0.3s;
}

.qty_wrap button::after {
  content: '';
  display: block;
  width: 1rem;
  height: 1rem;
  transition: all 0.3s;
  background: no-repeat center / contain;
}

.qty_wrap button:hover {
  background-color: var(--primary);
}

.qty_wrap button:hover::after {
  filter: contrast(0) brightness(2);
}

.qty_wrap .btn_minus {
  border-radius: 0.8rem 0 0 0.8rem;
}

.qty_wrap .btn_minus::after {
  background-image: url(../img/icon-minus.svg);
}

.qty_wrap .btn_plus {
  border-radius: 0 0.8rem 0.8rem 0;
}

.qty_wrap .btn_plus::after {
  background-image: url(../img/icon-plus.svg);
}

.tabs ul {
  gap: 1rem;
  display: flex;
}

.tabs li {
  flex: 1;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 2.8rem;
  text-align: center;
  transition: all 0.3s;
  border-radius: 0.8rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
}

.tabs li.active,
.tabs li:hover {
  color: #fff;
  background-color: var(--primary);
}

.selects ul {
  gap: 1rem;
  display: flex;
}

.selects li {
  flex: 1;
  max-width: 18.2rem;
}

.selects select {
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  font-family: unset;
  width: 100%;
  height: 4.4rem;
  display: block;
  font-size: 1.738rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.8rem;
  border: 1px solid #E0E0E0;
  padding: 0 3.6rem 0 0.6rem;
  background: url(../img/icon-select.svg) no-repeat right 2rem center / 1.1rem #fff;
}

.slide {
  display: none;
}

.slide.active {
  display: flex;
}

.layout_container {
  width: 100%;
  height: 100%;
  display: flex;
  background: url(../img/bg.webp) no-repeat center / cover;
}

.layout_sider {
  width: 9.2rem;
  color: #fff;
  overflow: auto;
  background-color: var(--primary);
}

.sider_wrap {
  width: 100%;
  min-height: 100%;
  gap: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.2rem 0.8rem 1.6rem;
}

.menu_wrap {
  gap: 5px;
  display: grid;
}

.menu_item {
  cursor: pointer;
  min-height: 7.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 0.3s;
  border-radius: 0.4rem;
}

.menu_item.active,
.menu_item:hover {
  background-color: #2A3C77;
}

.menu_item .menu_icon {
  --h: 100%;
  width: 100%;
  max-width: 3.2rem;
  filter: contrast(0) brightness(2);
}

.menu_item .menu_label {
  font-weight: 500;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 3px;
}

.layout {
  flex: 1;
  overflow-x: hidden;
}

.layout_wrap {
  height: 100%;
  max-width: 192rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.layout_header {
  gap: 2.4rem;
  flex-wrap: wrap;
  align-items: center;
  min-height: 8.5rem;
  padding: 1rem 2.4rem 1rem 3.4rem;
  position: relative;
  z-index: 2;
  display: none;
}

.layout_header.active {
  display: flex;
}

.layout_header::before {
  content: '';
  display: block;
  width: calc(100vw + 9.2rem);
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateX(calc(-50% - 9.2rem));
  background-color: #fff;
}

.layout_header .header_image {
  width: 6.2rem;
  height: 6.2rem;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--primary);
}

.layout_header .header_title {
  color: var(--title);
  font-size: 2.2rem;
  font-weight: 500;
  max-width: 80rem;
  white-space: nowrap;      
  overflow: hidden;       
  text-overflow: ellipsis;  
}

.layout_header .header_link {
  cursor: pointer;
  color: var(--primary);
  text-decoration: underline;
  transition: all 0.3s;
}

.layout_header .header_link:hover {
  text-decoration-color: transparent;
}

.layout_header .logo {
  display: block;
  position: relative;
  margin-left: auto;
}

.layout_header .logo img {
  display: block;
  width: auto;
  height: 5.9rem;
}

.layout_header .logo p {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
}

main {
  flex: 1;
  overflow: auto;
}

.layout_body {
  height: 100%;
  display: flex;
  min-height: 600px;
  display: none;
}

.layout_body.active {
  display: flex;
}

.layout_main {
  flex: 1;
  overflow: auto;
  padding: 2rem 1.8rem 2rem 3.8rem;
  margin-right: 0.6rem;
  display: none;
}

.layout_main.active {
  display: block;
}

.preview {
  display: flex;
  flex-direction: column;
  height: calc(100% - 4rem);
  width: 55.943107%;
  margin: 2rem 2rem 2rem 0;
  background-color: #fff;
  overflow: hidden;
}

.preview .preview_top {
    padding: 2.4rem 5.8rem 1.2rem 4rem;
    align-items: center;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.preview .preview_top ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6.9869%;
}

.preview .preview_top li {
  cursor: pointer;
  color: var(--primary);
  position: relative;
  padding-left: 3.2rem;
  transition: all 0.3s;
}

.preview .preview_top li:hover {
  opacity: 0.8;
}

.preview .preview_top li::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  position: absolute;
  left: 0;
  top: 0.2rem;
  background: no-repeat center / contain;
}

.preview .preview_top .tips::before {
  background-image: url(../img/icon-tips.svg);
}

.preview .preview_top .save::before {
  background-image: url(../img/icon-save.svg);
}

.preview .preview_wrap {
  flex: 1;
  overflow: hidden;
  padding: 0rem;
}

.preview .preview_upload {
  height: 100%;
  gap: 3.5rem;
  padding: 3.5rem;
  margin: 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 1.7rem;
  border: 1px solid #E6E6E8;
  background: url(../img/upload-bg.avif) no-repeat center / cover #F9F9F9;
  transition: all 0.3s;
  cursor: pointer;
}

.preview .preview_upload:hover,
.preview .preview_upload.drag-over {
  border-color: var(--primary);
  background-color: #f0f8ff;
}

.preview .preview_upload .img {
  max-width: 7.8rem;
}

.preview .preview_upload p {
  font-weight: 500;
  font-size: 2.2rem;
}

.preview .preview_upload button {
  cursor: pointer;
  border: none;
  gap: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 5.8rem;
  transition: all 0.3s;
  border-radius: 0.8rem;
  padding: 0 4.8rem;
  background-color: var(--primary);
}

.preview .preview_upload button:hover {
  background-color: #00231F;
}

.preview .preview_upload button::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3rem;
  background: url(../img/btn-add.svg) no-repeat center / contain;
}

.preview .preview_upload input {
  display: none;
}

.preview .canvas {
  height: 100%;
}

.preview .canvas img,
.preview .canvas iframe,
.preview .canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview .preview_bot {
  gap: 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 3.8rem 5.8rem 4rem 4rem;
}

.preview .btns {
  gap: 1.6rem;
  display: flex;
}

.preview .btns button {
  border: none;
  width: 5.6rem;
  height: 5.6rem;
  cursor: pointer;
  border-radius: 0.8rem;
  transition: all 0.3s;
  background: url(../img/icon-prev.svg) no-repeat center / 62% var(--primary);
}

.preview .btns button:hover {
  background-color: #00231F;
}

.preview .btns button:disabled {
  pointer-events: none;
  background-color: #DBDBDB;
}

.preview .btns .btn_prev {
  transform: rotate(180deg);
}

.preview .actions {
  gap: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.preview .actions button {
  border: none;
  width: 5.6rem;
  height: 5.6rem;
  cursor: pointer;
  border-radius: 0.8rem;
  transition: all 0.3s;
  background: no-repeat center / 46% var(--primary);
}

.preview .actions button:hover {
  background-color: #00231F;
}

.preview .actions button:disabled {
  pointer-events: none;
  background-color: #DBDBDB;
}

.preview .actions .zoomin {
  background-image: url(../img/btn-zoomin.svg);
}

.preview .actions .zoomout {
  background-image: url(../img/btn-zoomout.svg);
}

.preview .actions .view {
  background-image: url(../img/btn-view.svg);
}

.preview .preview_note {
  text-align: center;
  color: #2135F2;
  font-weight: 500;
  font-size: 2rem;
  padding: 1.6rem;
  border-top: 1px solid #F7F7F7;
}

.preview .preview_note::before {
  content: '';
  display: inline-block;
  vertical-align: top;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.9rem;
  transform: translateY(0.4rem);
  background: url(../img/icon-help.svg) no-repeat center / contain;
}

.widget+.widget {
  margin-top: 3.2rem;
}

.widget .widget_label {
  color: var(--title);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.widget .widget_form {
  max-width: 52.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 0.8rem;
  background-color: #fff;
  outline: 2px solid transparent;
  transition: all 0.3s;
}

.widget .widget_form:focus-within {
  outline-color: var(--primary);
}

.widget .widget_form input[type="text"] {
  width: 100%;
  display: block;
  font-size: 1.6rem;
  color: var(--title);
  border-radius: 0.8rem;
  padding: 0 2.4rem;
}

.widget .widget_form input[type="text"]::placeholder {
  color: var(--text);
}

.widget .widget_form input[type="submit"] {
  font-size: 1.6rem;
  line-height: 4.8rem;
  min-width: 10rem;
}

.layout_footer {
  gap: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  min-height: 8.5rem;
  padding: 1rem 7rem 1rem 3.8rem;
  position: relative;
  z-index: 2;
  display: none;
}

.layout_footer.active {
  display: flex;
}

.layout_footer::before {
  content: '';
  display: block;
  width: calc(100vw + 9.2rem);
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateX(calc(-50% - 9.2rem));
  background-color: #fff;
}

.layout_footer .qty_wrap {
  margin-right: 6.4rem;
}

.layout_footer .price {
  font-weight: 500;
  font-size: 2.3rem;
  padding: 0 0.5rem;
}

.layout_footer .note {
  color: #2135F2;
  font-weight: 500;
  font-size: 2rem;
  margin-right: auto;
  border-top: 1px solid #F7F7F7;
}

.layout_footer .note::before {
  content: '';
  display: inline-block;
  vertical-align: top;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.9rem;
  transform: translateY(0.4rem);
  background: url(../img/icon-help.svg) no-repeat center / contain;
}

.products_options {
  margin-top: 2rem;
  padding: 4.8rem 4rem;
  background-color: #fff;
}

.products_options .title {
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 1.6rem;
}

.products_options .hr {
  height: 1px;
  margin-top: 4.2rem;
  background-color: #EFEFEF;
}

.products_options .type .wrap {
  display: grid;
  gap: 1.6rem 3.8rem;
  grid-template-rows: auto 1fr;
  grid-template-columns: auto 1fr;
}

.products_options .type .img {
  width: 12.6rem;
  height: 12.6rem;
  grid-row: span 2;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--primary);
}

.products_options .type select {
  width: 100%;
  height: 5.6rem;
  cursor: pointer;
  border-radius: 0.8rem;
  border: 1px solid #EAEAEA;
  font-weight: 500;
  font-size: 1.74rem;
  appearance: none;
  padding: 0 4.7rem 0 3rem;
  background: url(../img/icon-select.svg) no-repeat right 3rem center / 1.2rem;
}

.products_options .type .decide {
  cursor: pointer;
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
}

.products_options .type .decide:hover {
  text-decoration: none;
}

.products_options .size {
  margin-top: 3.2rem;
}

.products_options .size .size_options {
  padding-bottom: 1rem;
}

.products_options .size .size_options ul {
  gap: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.products_options .size .size_options li {
  gap: 1.2rem;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.8rem;
}

.products_options .size .size_options li::before {
  content: '';
  display: block;
  box-sizing: border-box;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  transition: all 0.3s;
  border: 3px solid #fff;
  outline: 3px solid var(--primary);
}

.products_options .size .size_options li.active::before {
  background-color: var(--primary);
}

.products_options .size .item {
  gap: 1.2rem;
  display: grid;
  align-items: center;
  margin-top: 1.6rem;
  grid-template-columns: 11.8rem 11.4rem 1fr;
}

.products_options .size .item .label {
  font-weight: 500;
  font-size: 1.8rem;
}

.products_options .size .item input {
  display: block;
  width: 100%;
  height: 4.4rem;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: 1px solid #EAEAEA;
  font-weight: 500;
  font-size: 1.74rem;
  padding: 0 2rem;
}

.products_options .size .item input:disabled {
  border-color: #EAEAEA;
  background-color: #EAEAEA;
}

.products_options .size .item select {
  display: block;
  width: 100%;
  max-width: max-content;
  height: 4.4rem;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: 1px solid #EAEAEA;
  appearance: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.74rem;
  padding: 0 4.7rem 0 3rem;
  background: url(../img/icon-select.svg) no-repeat right 1.9rem center / 1.1rem;
}

.products_options .size .note {
  color: #2135F2;
  font-weight: 500;
  font-size: 2rem;
  margin-top: 2.6rem;
}

.products_options .edge {
  margin-top: 2.7rem;
}

.products_options .edge ul {
  gap: 2.5rem;
  display: flex;
  flex-wrap: wrap;
}

.products_options .edge li {
  width: 10.5rem;
  cursor: pointer;
}

.products_options .edge .active .img {
  border-color: var(--primary);
  outline-color: var(--primary);
}

.products_options .edge .img {
  overflow: hidden;
  transition: all 0.3s;
  border-radius: 2rem;
  padding-bottom: 100%;
  border: 1px solid #8B8B8B;
  outline: 1px solid transparent;
}

.products_options .edge .name {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 2.2rem;
  margin-top: 1rem;
}

.design_tools {
  margin-top: 2rem;
  padding: 4rem 2.6rem 4rem 4rem;
  background-color: #fff;
}

.design_tools .title {
  font-weight: 500;
  font-size: 1.8rem;
}

.design_tools .top {
  gap: 3rem;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.design_tools .top .color {
  gap: 3rem;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  overflow: hidden;
}

.design_tools .top .color .wrap {
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  border-radius: 0.6rem;
  position: relative;
  border: 2px solid #E4E4E4;
}

.design_tools .top .color .wrap::after {
  content: '';
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  z-index: 2;
  border-top-left-radius: 0.6rem;
  background: url(../img/icon-select.svg) no-repeat right 0.3rem center / 0.9rem #E4E4E4;
}

.design_tools .top .color input {
  width: 5.4rem;
  height: 5.6rem;
  display: block;
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.design_tools .top .actions {
  gap: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.design_tools .top .actions button {
  border: none;
  cursor: pointer;
  gap: 2rem;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 500;
  font-size: 1.54rem;
  line-height: 5rem;
  padding: 0 3.2rem 0 2rem;
  border-radius: 0.8rem;
  transition: all 0.3s;
  background-color: var(--primary);
}

.design_tools .top .actions button:hover {
  background-color: #00231F;
}

.design_tools .top .actions button::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3rem;
  background: no-repeat center / contain;
}

.design_tools .top .actions .image::before {
  background-image: url(../img/icon-smile.svg);
}

.design_tools .top .actions .text::before {
  background-image: url(../img/icon-text.svg);
}

.design_tools .main {
  gap: 4.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 3.4rem;
  padding-top: 3.4rem;
  border-top: 1px solid #EFEFEF;
}

.design_tools .main .label {
  text-align: center;
  font-weight: 500;
  margin-bottom: 1rem;
}

.design_tools .main .layer {
  max-width: max-content;
}

.design_tools .main .layer .img {
  width: 14.8rem;
  height: 14.8rem;
  overflow: hidden;
  border-radius: 0.8rem;
  background-color: #F2F2F2;
}

.design_tools .main .layer .btc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.6rem 1.1rem 0;
}

.design_tools .main .layer .reset {
  font-weight: 500;
  font-size: 1.4rem;
  cursor: pointer;
  gap: 0.8rem;
  display: flex;
  align-items: center;
}

.design_tools .main .layer .reset::before {
  content: '';
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  transition: all 0.3s;
  background: url(../img/icon-reset.svg) no-repeat center / contain;
}

.design_tools .main .layer .reset:hover::before {
  transform: rotate(180deg);
}

.design_tools .main .layer .delete {
  cursor: pointer;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  transition: all 0.3s;
  background: url(../img/icon-delete.svg) no-repeat center / 1.4rem #E84E50;
}

.design_tools .main .layer .delete:hover {
  background-color: #FF3939;
}

.design_tools .main .move .handle {
  width: 14.4rem;
  height: 14.4rem;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}

.design_tools .main .move .handle div {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000000;
  border-radius: 0.6rem 0.6rem 0 0;
  transition: all 0.3s;
}

.design_tools .main .move .handle div::after {
  content: '';
  display: block;
  width: 50%;
  height: 50%;
  transition: all 0.3s;
  background: url(../img/arrow-t-b.svg) no-repeat center / contain;
}

.design_tools .main .move .handle div:hover {
  border-color: var(--primary);
  background-color: var(--primary);
}

.design_tools .main .move .handle div:hover::after {
  filter: contrast(0) brightness(2);
}

.design_tools .main .move .handle .top {
  grid-column-start: 2;
  transform: translateY(1px);
}

.design_tools .main .move .handle .left {
  transform: translateX(1px) rotate(-90deg);
  grid-column-start: 1;
}

.design_tools .main .move .handle .center {
  border: none;
  border-radius: 0;
}

.design_tools .main .move .handle .center::after {
  width: 80%;
  height: 80%;
  background-image: url(../img/arrow-c-b.svg);
}

.design_tools .main .move .handle .right {
  transform: translateX(-1px) rotate(90deg);
}

.design_tools .main .move .handle .bottom {
  grid-column-start: 2;
  transform: translateY(-1px) rotate(180deg);
}

.design_tools .main .move .slider input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  background-color: transparent;
  border-radius: 6px;
  outline: none;
  margin: 4px 0 6px;
}

.design_tools .main .move .slider input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background-color: #F2F2F2;
}
.slider{
  position: unset!important;
  background-color: #ffffff!important;
  border-radius: 0px!important;
}
.design_tools .main .move .slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  cursor: pointer;
  margin-top: -7px;
}

.design_tools .main .move .slider .btc {
  font-weight: 500;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.design_tools .main .actions {
  gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 75%;
  flex: 1;
}
.design_tools .main .actions > .flex{
  gap: 2rem;
  flex-wrap: wrap;
}
 
.design_tools .main .actions .wrap2 input[type="color"]{
  padding: .5rem;
  width: 8rem;
  height: 4.2rem;
}

.design_tools .main .actions .wrap2{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.design_tools .main .actions .wrap2 input,
.design_tools .main .actions .wrap2 select
{
  padding: 1rem;
  border: #eee solid 1px;
  border-radius: 5px;
}

.design_tools .main .actions .label {
  margin: 0;
  width: 100%;
  text-align: left;
}

.design_tools .main .actions .wrap {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  max-width: 6.2rem;
  position: relative;
}

.design_tools .main .actions .wrap div {
  width: 5rem;
  height: 5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  transition: all 0.3s;
  border: 1px solid #000000;
}

.design_tools .main .actions .wrap div:hover {
  border-color: var(--primary);
  background-color: var(--primary);
}

.design_tools .main .actions .wrap div:hover::after {
  filter: contrast(0) brightness(2);
}

.design_tools .main .actions .wrap div::after {
  content: '';
  display: block;
  transition: all 0.3s;
  background: no-repeat center / contain;
}

.design_tools .main .actions .wrap:has(div:nth-child(2)) {
  max-width: 11rem;
}

.design_tools .main .actions .wrap:has(div:nth-child(2)) .label {
  text-align: center;
}

.design_tools .main .actions .wrap .ccw::after {
  width: 60%;
  height: 60%;
  background-image: url(../img/action-ccw.svg);
}

.design_tools .main .actions .wrap .cw::after {
  width: 60%;
  height: 60%;
  background-image: url(../img/action-cw.svg);
}

.design_tools .main .actions .wrap .min::after {
  width: 60%;
  height: 60%;
  background-image: url(../img/action-min.svg);
}

.design_tools .main .actions .wrap .max::after {
  width: 60%;
  height: 60%;
  background-image: url(../img/action-max.svg);
}

.design_tools .main .actions .wrap .big::after {
  width: 32%;
  height: 32%;
  background-image: url(../img/action-big.svg);
}

.design_tools .main .actions .wrap .small::after {
  width: 35%;
  height: 35%;
  background-image: url(../img/action-small.svg);
}

.design_tools .main .actions .wrap .effets::after {
  width: 62%;
  height: 62%;
  background-image: url(../img/action-effets.svg);
}

.design_tools .main .actions .wrap .pattern::after {
  width: 52%;
  height: 52%;
  background-image: url(../img/action-pattern.svg);
}

.design_tools .layers {
  margin-top: 3.8rem;
  padding-top: 3.8rem;
  border-top: 1px solid #EFEFEF;
}

.design_tools .layers li {
  cursor: pointer;
  gap: 1.6rem;
  display: flex;
  align-items: center;
  margin-top: 2rem;
  transition: all 0.3s;
  border-radius: 0.8rem;
  border: 1px solid #EFEFEF;
  outline: 1px solid transparent;
  padding: 1rem 2rem 1rem 1.2rem;
}

.design_tools .layers li.active,
.design_tools .layers li:hover {
  border-color: var(--primary);
  outline-color: var(--primary);
}

.design_tools .layers li.active .selected {
  opacity: 1;
}

.design_tools .layers li .img {
  width: 7.8rem;
  height: 7.8rem;
  border-radius: 5px;
}

.design_tools .layers li .selected {
  width: 2.8rem;
  height: 2.8rem;
  opacity: 0;
  transition: all 0.3s;
  background: url(../img/icon-gou-full.svg) no-repeat center / contain;
}

.design_tools .layers li .infos {
  flex: 1;
}

.design_tools .layers li .infos .name {
  font-weight: 500;
}

.design_tools .layers li .infos .desc {
  color: #666666;
  font-size: 1.5rem;
}

.design_tools .layers li .reset {
  font-weight: 500;
  font-size: 1.4rem;
  cursor: pointer;
  gap: 0.8rem;
  display: flex;
  align-items: center;
  margin-right: 4rem;
}

.design_tools .layers li .reset::before {
  content: '';
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  transition: all 0.3s;
  background: url(../img/icon-reset.svg) no-repeat center / contain;
}

.design_tools .layers li .reset:hover::before {
  transform: rotate(180deg);
}

.design_tools .layers li .funcs {
  gap: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.design_tools .layers li .funcs div {
  cursor: pointer;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  transition: all 0.3s;
  background: url(../img/icon-up.svg) no-repeat center / 1.4rem var(--primary);
}

.design_tools .layers li .funcs div:hover {
  filter: brightness(1.2);
}

.design_tools .layers li .funcs .btn_down {
  transform: rotate(180deg);
}

.design_tools .layers li .funcs .btn_delete {
  margin-left: 3rem;
  background-image: url(../img/icon-delete.svg);
  background-color: #E44E50;
}

.design_tools .layers li .funcs .btn_delete:hover {
  background-color: #FF3838;
}

.pattern_popup {
  width: 52.2rem;
  position: fixed;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: 9;
  transform: translateY(2rem);
  pointer-events: none;
  padding-top: 1.4rem;
}

.pattern_popup.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
  transition: opacity 0.3s, transform 0.3s;
}

.pattern_popup .pattern_wrap {
  color: #fff;
  border-radius: 0.8rem;
  padding: 2.8rem 5rem 6.2rem;
  background-color: #192347;
}

.pattern_popup .pattern_wrap::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  background-color: #192347;
  position: absolute;
  left: 1.4rem;
  top: 0.4rem;
  transform: rotate(45deg);
}

.pattern_popup .pattern_title {
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.pattern_popup ul {
  gap: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.pattern_popup ul li {
  width: 6.8rem;
  cursor: pointer;
}

.pattern_popup ul .active .img,
.pattern_popup ul li:hover .img {
  background-color: #4C648A;
}

.pattern_popup ul .active .img img,
.pattern_popup ul li:hover .img img {
  opacity: 1;
}

.pattern_popup ul .img {
  overflow: hidden;
  border-radius: 0.8rem;
  padding-bottom: 100%;
  transition: all 0.3s;
  background-color: #314266;
}

.pattern_popup ul .img img {
  opacity: 0.25;
  transition: all 0.3s;
}

.pattern_popup ul .name {
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  margin-top: 1em;
}

.pattern_popup .slider {
  position: relative;
}

.pattern_popup .slider input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  background-color: transparent;
  outline: none;
}

.pattern_popup .slider input::-webkit-slider-runnable-track {
  height: 8px;
  background-color: #3E4C70;
}

.pattern_popup .slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  margin-top: -6px;
}

.pattern_popup .slider span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  position: absolute;
  left: 50%;
  top: 2.5rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.images_modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  display: none;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
}

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

.images_modal.active {
  display: grid;
}

.images_modal .modal_wrap {
  margin: 40px auto;
  max-height: 880px;
  height: calc(100% - 80px);
  max-width: 127.8rem;
  width: calc(100% - 40px);
  background-color: #FFFFFF;
  display: flex;
}

.images_modal .main {
  flex: 1;
  overflow: auto;
  max-height: 880px;
  padding: 5rem 5.6rem;
} 

.images_modal .list ul {
  gap: 1.5rem;
  display: grid;
  grid-template-columns: repeat(10, minmax(min(8rem, 100%), 1fr));
}

.images_modal .list li {
  cursor: pointer;
  border: #eee solid 1px;
  padding: 1rem;
}

.layout_main[data-main="help"] {
  padding: 0;
  display: flex;
}

.layout_main[data-main="help"] .widgets {
  flex: 1;
  overflow: auto;
  padding: 2rem 3.4rem;
  margin-right: 0.6rem;
}

.layout_main[data-main="help"] .list {
  max-width: 52.5rem;
}

.layout_main[data-main="help"] .list li {
  padding: 1.2rem 1.4rem;
  border-radius: 0.8rem;
  background-color: #fff;
  gap: 6.438632%;
  display: grid;
  align-items: center;
  grid-template-columns: 30.583501% 1fr;
}

.layout_main[data-main="help"] .list li+li {
  margin-top: 1.4rem;
}

.layout_main[data-main="help"] .list li:hover .img::before {
  transform: translate(-50%, -50%) scale(1.1);
}

.layout_main[data-main="help"] .list .img {
  --h: 73.684211%;
}

.layout_main[data-main="help"] .list .img::before {
  content: '';
  display: block;
  width: 25%;
  padding-bottom: 25%;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transition: all 0.3s;
  transform: translate(-50%, -50%);
  background: url(../img/icon-play.svg) no-repeat center / contain;
}

.layout_main[data-main="help"] .list .info .title {
  font-size: 1.8rem;
  font-weight: 500;
}

.layout_main[data-main="help"] .list .info .desc {
  margin-top: 2px;
}

.layout_main[data-main="help"] .video {
  width: 63.676149%;
  margin: 2rem 2rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.layout_main[data-main="help"] .video video,
.layout_main[data-main="help"] .video iframe,
.layout_main[data-main="help"] .video img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.layout_main[data-main="help"] .video .btn_play {
  width: 7.560137%;
  padding-bottom: 7.560137%;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  background: url(../img/icon-play.svg) no-repeat center / contain;
}

.layout_main[data-main="help"] .video .btn_play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.layout_main[data-main="design"] {
  margin: 0;
  padding: 3rem 1rem 3rem 3.4rem;
  justify-content: space-between;
  gap: 2rem;
}

.layout_main[data-main="design"].active {
  display: flex;
}

.layout_main[data-main="design"] .left {
  width: 90.726218%;
  overflow: hidden;
  padding: 3rem 5rem 4.4rem 4.6rem;
  background-color: #fff;
  gap: 2.4rem;
  display: flex;
  flex-direction: column;
}

.layout_main[data-main="design"] .left .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layout_main[data-main="design"] .left .title {
  font-weight: 500;
  font-size: 2.4rem;
}

.layout_main[data-main="design"] .left select {
  display: block;
  max-width: max-content;
  height: 4.4rem;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: 1px solid #EAEAEA;
  appearance: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.74rem;
  padding: 0 4.7rem 0 3rem;
  background: url(../img/icon-select.svg) no-repeat right 1.9rem center / 1.1rem;
}

.layout_main[data-main="design"] .left .main {
  flex: 1;
  gap: 3rem;
  height: 85%;
  display: flex;
}

.layout_main[data-main="design"] .left .lt {
  width: 7.4rem;
}

.layout_main[data-main="design"] .left .lt li {
  cursor: pointer;
}

.layout_main[data-main="design"] .left .lt li+li {
  margin-top: 1.5rem;
}

.layout_main[data-main="design"] .left .lt .active .img,
.layout_main[data-main="design"] .left .lt li:hover .img {
  border-color: var(--primary);
}

.layout_main[data-main="design"] .right .type  .short_description{
  grid-column: 1 / -1;
}
 
.layout_main[data-main="design"] .left .lt .img {
    overflow: hidden;
    border-radius: 0.9rem;
    transition: all 0.3s;
    min-height: 78px;
    max-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D4D6D8;
}

.layout_main[data-main="design"] .left .rt {
  flex: 1;
  height: 100%;
}

.layout_main[data-main="design"] .left .slide {
  height: 100%;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid #D4D6D8;
}

.layout_main[data-main="design"] .left .slide img,
.layout_main[data-main="design"] .left .slide iframe,
.layout_main[data-main="design"] .left .slide canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layout_main[data-main="design"] .right {
  width: 45.359629%;
  overflow: auto;
  padding: 2rem 2.7rem 3rem;
  background-color: #fff;
}

.layout_main[data-main="design"] .right .title {
  font-weight: 500;
  font-size: 2rem;
}

.layout_main[data-main="design"] .right .top {
  gap: 2.5rem;
  display: grid;
  padding: 0;
  align-items: center;
  grid-template-columns: auto 1fr auto;
}

.layout_main[data-main="design"] .right .top .img {
  width: 8rem;
  height: 8rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid var(--primary);
}

.layout_main[data-main="design"] .right .top .infos {
  position: relative;
  padding-left: 3.5rem;
}

.layout_main[data-main="design"] .right .top .infos::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  left: 0;
  top: 0.5rem;
  background: url(../img/icon-gou.svg) no-repeat center / contain;
}

.layout_main[data-main="design"] .right .top .infos .name {
  color: #4D8E38;
  font-weight: 500;
  font-size: 2.2rem;
}

.layout_main[data-main="design"] .right .top .infos .desc {
  color: #666666;
  font-size: 1.5rem;
  margin-top: 3px;
}

.right .top .infos.medium .name {
  color: hsl(39, 100%, 50%) !important;
}

.right .top .infos.poor .name {
  color: #e52e2e !important;
}

.right .top .infos.medium::before {
  background: url(../img/jingbao2.svg) no-repeat center / contain !important;
}

.right .top .infos.poor::before {
  background: url(../img/cuowu.svg) no-repeat center / contain !important;
}


.layout_main[data-main="design"] .right .top .replace {
  gap: 1.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 2.3rem;
  line-height: 4.8rem;
  border-radius: 0.9rem;
  border: 1px solid #EAEAEA;
  text-decoration: underline;
  transition: all 0.3s;
}

.layout_main[data-main="design"] .right .top .replace::before {
  content: '';
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  transition: all 0.3s;
  background: url(../img/icon-replace.svg) no-repeat center / contain;
}

.layout_main[data-main="design"] .right .top .replace:hover {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
}

.layout_main[data-main="design"] .right .top .replace:hover::before {
  filter: contrast(0) brightness(2);
}

.layout_main[data-main="design"] .right .attrs {
  margin-top: 1.8rem;
  border-radius: 1.5rem;
  border: 1px solid #EAEAEA;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.4rem;
}

.layout_main[data-main="design"] .right .attrs .lt {
  margin-right: 3rem;
}

.layout_main[data-main="design"] .right .attrs .lt ul {
  gap: 1.2rem;
  display: flex;
  margin-top: 1.2rem;
}

.layout_main[data-main="design"] .right .attrs .lt li {
  width: 7.6rem;
  cursor: pointer;
}

.layout_main[data-main="design"] .right .attrs .lt li.active .img {
  outline-color: var(--primary);
  background-color: #C8D8E8;
}

.layout_main[data-main="design"] .right .attrs .lt li.active .img img {
  filter: none;
}

.layout_main[data-main="design"] .right .attrs .lt li .img {
  margin: 2px;
  height: 7.2rem;
  border-radius: 1rem;
  transition: all 0.3s;
  background-color: #E6E7E8;
  border: 2px solid #fff;
  outline: 2px solid transparent;
}

.layout_main[data-main="design"] .right .attrs .lt li .img img {
  transition: all 0.3s;
  filter: brightness(0.8);
}

.layout_main[data-main="design"] .right .attrs .lt li .name {
  font-weight: 500;
  font-size: 12px;
  text-align: center;
  margin-top: 0.8rem;
}

.layout_main[data-main="design"] .right .attrs .rt {
  width: 54.878049%;
}

.layout_main[data-main="design"] .right .attrs .rt .tpc {
  gap: 0rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.layout_main[data-main="design"] .right .attrs .rt .full {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: underline;
}

.layout_main[data-main="design"] .right .attrs .rt .full:hover {
  text-decoration: none;
}

.layout_main[data-main="design"] .right .attrs .rt .slider {
  position: relative;
  margin-top: 4.5rem;
}

.layout_main[data-main="design"] .right .attrs .rt .slider::before {
  content: '';
  display: block;
  width: 100%;
  height: 1.3rem;
  position: absolute;
  left: 0;
  bottom: 100%;
  background: url(../img/pattern-bg.svg) repeat left 0.8rem center;
}

.layout_main[data-main="design"] .right .attrs .rt .slider input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  background-color: transparent;
  outline: none;
}

.layout_main[data-main="design"] .right .attrs .rt .slider input::-webkit-slider-runnable-track {
  height: 6px;
  background-color: #EAEAEA;
}

.layout_main[data-main="design"] .right .attrs .rt .slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  cursor: pointer;
  margin-top: -7px;
}

.layout_main[data-main="design"] .right .attrs .rt .slider span {
  display: block;
  font-weight: 500;
  font-size: 1.4rem;
  position: absolute;
  left: 50%;
  top: 2rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.layout_main[data-main="design"] .right .type {
  display: grid;
  gap: 1rem 2.5rem;
  margin-top: 2.6rem;
  grid-template-rows: 1fr auto;
  grid-template-columns: auto 1fr;
}

.layout_main[data-main="design"] .right .type .img {
  width: 9.8rem;
  height: 9.8rem;
  overflow: hidden;
  border-radius: 1.8rem;
  border: 2px solid var(--primary);
  grid-row: span 2;
}

.layout_main[data-main="design"] .right .type .infos {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.layout_main[data-main="design"] .right .type .decide {
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}

.layout_main[data-main="design"] .right .type .decide:hover {
  text-decoration: none;
}

.layout_main[data-main="design"] .right .type select {
  width: 100%;
  height: 5.6rem;
  cursor: pointer;
  border-radius: 0.8rem;
  border: 1px solid #EAEAEA;
  font-weight: 500;
  font-size: 1.6rem;
  appearance: none;
  padding: 0 4.7rem 0 2.4rem;
  background: url(../img/icon-select.svg) no-repeat right 2rem center / 1.2rem;
}

.layout_main[data-main="design"] .right .size {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid #EAEAEA;
}

.layout_main[data-main="design"] .right .size .size_options {
  margin-top: 1rem;
}

.layout_main[data-main="design"] .right .size .size_options ul {
  gap: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.layout_main[data-main="design"] .right .size .size_options li {
  gap: 1.2rem;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.8rem;
}

.layout_main[data-main="design"] .right .size .size_options li::before {
  content: '';
  display: block;
  box-sizing: border-box;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  transition: all 0.3s;
  border: 3px solid #fff;
  outline: 3px solid #A8A8A8;
}

.layout_main[data-main="design"] .right .size .size_options li.active::before {
  outline-color: var(--primary);
  background-color: var(--primary);
}

.layout_main[data-main="design"] .right .size .items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 7.967033%;
  margin-top: 1.4rem;
}

.layout_main[data-main="design"] .right .size .item {
  gap: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.layout_main[data-main="design"] .right .size .item .label {
  font-weight: 500;
  font-size: 1.8rem;
  margin-right: 0.6rem;
}

.layout_main[data-main="design"] .right .size .item input {
  display: block;
  width: 13.2rem;
  height: 4.4rem;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: 1px solid #EAEAEA;
  font-weight: 500;
  font-size: 1.74rem;
  padding: 0 2rem;
}

.layout_main[data-main="design"] .right .size .item input:disabled {
  width: 11.4rem;
  border-color: #EAEAEA;
  background-color: #EAEAEA;
}

.layout_main[data-main="design"] .right .size .item select {
  display: block;
  width: 100%;
  max-width: max-content;
  height: 4.4rem;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: 1px solid #EAEAEA;
  appearance: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.74rem;
  padding: 0 4.7rem 0 3rem;
  background: url(../img/icon-select.svg) no-repeat right 1.9rem center / 1.1rem;
}

.layout_main[data-main="design"] .right .edge {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #EAEAEA;
}

.layout_main[data-main="design"] .right .edge ul {
  gap: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.layout_main[data-main="design"] .right .edge li {
  cursor: pointer; 
}

.layout_main[data-main="design"] .right .edge .active .img {
  border-color: var(--primary);
  outline-color: var(--primary);
}

.layout_main[data-main="design"] .right .edge .img {
  width: 9rem;
  height: 9rem;
  overflow: hidden;
  transition: all 0.3s;
  border-radius: 1.8rem;
  border: 1px solid #8B8B8B;
  outline: 1px solid transparent;
}

.layout_main[data-main="design"] .right .edge .name {
  width: 9rem;
  font-size: 1.5rem;
  line-height: 2.1rem;
  margin-top: 1rem;
}

.layout_main .colors {
  margin-top: 2.8rem;
}

.layout_main .colors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 9%;
  margin-top: 3rem;
}

.layout_main .colors li {
  cursor: pointer;
}

.layout_main .colors .active .color::after,
.layout_main .colors li:hover .color::after {
  opacity: 1;
}

.layout_main .colors .color {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  box-shadow: 0px 0px 2px 2px #eee;
}

.layout_main .colors .color[style="background-color: #FFFFFF;"] {
  border: 1px solid #CCCCCC;
}

.layout_main .colors .color::after {
  content: '';
  display: block;
  width: 5.4rem;
  height: 5.4rem;
  opacity: 0;
  border-radius: 50%;
  transition: all 0.3s;
  border: 2px solid var(--primary);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.layout_main .colors .name {
  text-align: center;
  font-size: 1.7rem;
  margin-top: 1em;
}

.hello_section {
  background: url(../img/bg.webp) no-repeat center / cover;
}

.hello_section .content {
  width: calc(100% - 6rem);
  max-width: 174.4rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: max-content;
  padding: 4.5rem 0 8rem;
}

.hello_section .hello_top {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}

.hello_section .hello_top .back {
  gap: 1rem;
  display: flex;
  align-items: center;
  max-width: max-content;
  font-weight: 500;
  line-height: 4.3rem;
  border-radius: 0.6rem;
  padding: 0 3.2rem;
  border: 1px solid rgba(12, 27, 84, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.hello_section .hello_top .back::before {
  content: '';
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  transition: all 0.3s;
  background: url(../img/icon-back.svg) no-repeat center / contain;
}

.hello_section .hello_top .back:hover {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
}

.hello_section .hello_top .back:hover::before {
  filter: contrast(0) brightness(2);
}

.hello_section .hello_top h1 {
  font-weight: 500;
  font-size: 3.2rem;
}

.hello_section .hello_top .logo {
  display: block;
  position: relative;
  max-width: max-content;
  margin-left: auto;
}

.hello_section .hello_top .logo img {
  display: block;
  width: 11.2rem;
  height: auto;
}

.hello_section .hello_top .logo p {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
}

.hello_section .hello_main {
  flex: 1;
  margin-top: 5.4rem;
  gap: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hello_section .hello_main h2 {
  font-weight: 500;
  font-size: 3.2rem;
}

.hello_section .hello_main .lt {
  flex: 1;
}

.hello_section .hello_main .lt ul {
  margin-top: 4.2rem;
}

.hello_section .hello_main .lt li {
  position: relative;
  padding-left: 9.2rem;
}

.hello_section .hello_main .lt li+li {
  margin-top: 3.4rem;
}

.hello_section .hello_main .lt li .icon {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  border: 1px solid rgba(12, 27, 84, 0.28);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hello_section .hello_main .lt li .icon img {
  width: 60%;
  height: 60%;
}

.hello_section .hello_main .lt li .text {
  max-width: 37rem;
}

.hello_section .hello_main .lt li .text h3 {
  font-weight: 500;
  font-size: 2.2rem;
}

.hello_section .hello_main .lt li .text p {
  font-size: 1.7rem;
  line-height: 2.4rem;
  margin-top: 1rem;
}

.hello_section .hello_main .rt {
  width: 64.793578%;
  border-radius: 2.2rem;
  background-color: #fff;
  padding: 4.2rem 3.4rem 3.4rem;
}

.hello_section .hello_main .rt .wrap {
  gap: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 2rem;
  padding: 3.6rem 4.8rem;
  border: 2px solid rgba(12, 27, 84, 0.38);
}

.hello_section .hello_main .rt .text {
  text-align: center;
}

.hello_section .hello_main .rt .text p {
  color: #545454;
  font-size: 1.7rem;
}

.hello_section .hello_main .rt .hello_upload {
  width: 100%;
  max-width: 75rem;
  border-radius: 1rem;
  background-color: #F2F2F4;
  border: 1px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5rem 2.8rem 2.8rem;
}

.hello_section .hello_main .rt .hello_upload input {
  display: none;
}

.hello_section .hello_main .rt .hello_upload .img {
  width: 6rem;
  height: 5.5rem;
}

.hello_section .hello_main .rt .hello_upload p {
  color: #545454;
  font-size: 1.8rem;
  text-align: center;
  margin-top: 4.8rem;
}

.hello_section .hello_main .rt .hello_upload p label {
  cursor: pointer;
  color: var(--primary);
  text-decoration: underline;
}

.hello_section .hello_main .rt .hello_upload p label:hover {
  text-decoration: none;
}

.hello_section .hello_main .rt .history {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid #E6E6E8;
}

.hello_section .hello_main .rt .history .title {
  font-weight: 500;
  font-size: 1.8rem;
}

.hello_section .hello_main .rt .history ul {
  gap: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hello_section .hello_main .rt .history li {
  cursor: pointer;
  position: relative;
  width: 12.4rem;
  height: 12.4rem;
  padding: 0.8rem;
  border-radius: 1rem;
  transition: all 0.3s;
  overflow: hidden;
  border: 1px solid #E6E6E8;
  outline: 1px solid transparent;
}

.hello_section .hello_main .rt .history li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s;
  background-color: rgba(12, 27, 84, 0.32);
}

.hello_section .hello_main .rt .history li:hover {
  border-color: var(--primary);
  outline-color: var(--primary);
}

.hello_section .hello_main .rt .history li:hover::before,
.hello_section .hello_main .rt .history li:hover .more,
.hello_section .hello_main .rt .history li:hover .add {
  opacity: 1;
}

.hello_section .hello_main .rt .history li .img {
  height: 100%;
  overflow: hidden;
  border-radius: 0.8rem;
}

.hello_section .hello_main .rt .history li .img img{
  object-fit: contain!important;
}

.hello_section .hello_main .rt .history li .more {
  width: 2.6rem;
  height: 2.6rem;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 3;
  transition: all 0.3s;
  opacity: 0;
  border-radius: 0.5rem;
  background: url(../img/icon-more.svg) no-repeat center / 60% var(--primary);
}

.hello_section .hello_main .rt .history li .add {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  padding: 0 1.6rem;
  line-height: 3.4rem;
  border-radius: 0.5rem;
  background-color: var(--primary);
  transition: all 0.3s;
  opacity: 0;
}

.hello_section .hello_main .rt .history li .add::before {
  content: '';
  display: block;
  width: 1rem;
  height: 1rem;
  background: url(../img/icon-add.svg) no-repeat center / contain;
}

@media screen and (min-width: 769px) {

  aside::-webkit-scrollbar,
  main::-webkit-scrollbar,
  div::-webkit-scrollbar {
    width: 4px;
  }

  aside::-webkit-scrollbar-thumb,
  main::-webkit-scrollbar-thumb,
  div::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
  }

  main::-webkit-scrollbar-thumb,
  div::-webkit-scrollbar-thumb {
    background-color: var(--primary);
  }
}

/* 拖拽上传样式 */
.hello_upload {
  cursor: pointer;
  transition: all 0.3s;
}

.hello_upload.drag-over {
  border-color: var(--primary);
  background-color: rgba(12, 27, 84, 0.05);
  transform: scale(1.02);
}

.hello_upload input[type="file"] {
  display: none;
}

/* 加载动画 */
.loading-item {
  position: relative;
  width: 12.4rem;
  height: 12.4rem;
  padding: 0.8rem;
  border-radius: 1rem;
  border: 1px solid #E6E6E8;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s;
}

.loading-spinner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.loading-spinner::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.5rem;
}

/* 右键菜单样式 */
.image-context-menu {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.image-context-menu .menu-item {
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.image-context-menu .menu-item:hover {
  background-color: #f5f5f5;
  color: var(--primary);
}

/* 通知样式 */
.upload-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1.2rem 2rem;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
  max-width: 30rem;
}

.upload-notification.fade-out {
  animation: slideOut 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.upload-notification-success {
  background-color: #4caf50;
  color: #fff;
}

.upload-notification-error {
  background-color: #f44336;
  color: #fff;
}

.upload-notification-info {
  background-color: var(--primary);
  color: #fff;
}

/* 历史记录列表优化 */
.hello_section .hello_main .rt .history ul {
  max-height: 30rem;
  overflow-y: auto;
}

.hello_section .hello_main .rt .history li {
  flex-shrink: 0;
}

.ruler-container {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  display: inline-block;
  position: relative;
  overflow: auto;
  position: absolute;
  left: -1000rem;
  top: -1000rem;
  ;
}

.pattern-wrapper {
  display: inline-block;
  position: relative;
  margin-left: 60px;
  margin-top: 60px;
}

/* Top Ruler */
.ruler-top {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  border-bottom: 2px solid #333;
}

.ruler-top .unit-label {
  position: absolute;
  top: 2px;
  left: -50px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

/* Left Ruler */
.ruler-left {
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 40px;
  border-right: 2px solid #333;
}

.ruler-left .unit-label {
  position: absolute;
  left: 2px;
  top: -50px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

/* Ruler Marks */
.ruler-mark {
  position: absolute;
  background: #333;
}

/* Top ruler marks */
.ruler-top .ruler-mark {
  bottom: 0;
  width: 1px;
}

.ruler-top .ruler-mark.major {
  height: 20px;
  width: 2px;
}

.ruler-top .ruler-mark.medium {
  height: 12px;
}

.ruler-top .ruler-mark.minor {
  height: 8px;
  background: #666;
}

/* Left ruler marks */
.ruler-left .ruler-mark {
  right: 0;
  height: 1px;
}

.ruler-left .ruler-mark.major {
  width: 20px;
  height: 2px;
}

.ruler-left .ruler-mark.medium {
  width: 12px;
}

.ruler-left .ruler-mark.minor {
  width: 8px;
  background: #666;
}

/* Ruler Labels */
.ruler-label {
  position: absolute;
  font-size: 25px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  user-select: none;
}

.ruler-top .ruler-label {
  top: -12px;
  transform: translateX(-50%);
}

.ruler-left .ruler-label {
  right: 24px;
  transform: translateY(-50%);
}

.pattern-info-item {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: .6;
}

.loading::before {
  content: "";
  display: inline-block;
  width: 4rem;
  height: 4rem;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .2);
  border-top-color: currentColor;
  animation: loading-spin 0.8s linear infinite;
  vertical-align: middle;
  position: absolute;
  left: 50%;
  top: 50%;
}

.layout_footer.stop_use{
  pointer-events: none;
  opacity: .8;
}
.wave_shadow{ 
  align-items: center;
  justify-content: center;
}
.wave_shadow .wave_shadow_box {
  position: relative;
}

.wave_shadow .wave_shadow_box::after {
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  background-image: url(../img/wave_shadow.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.left .lt li:nth-child(3) .img .img_online {
  position: relative;
}

.left .lt li:nth-child(3) .img .img_online::after {
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  background-image: url(../img/wave_shadow.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.modeling {
  position: relative;
}

.modeling_image {
  position: absolute;
  right: 7rem;
  top: 55%;
  transform: translateY(-70%);
  border: #ccc solid 1px;
  padding: 1rem;
  width: 27.8rem !important;
  height: 27.8rem !important;
}

.img.text-layer {
  background: #2d2d2d;
  color: white;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}



.effets_popup {
  width: 30rem;
  position: fixed;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: 9;
  transform: translateY(2rem);
  pointer-events: none;
  padding-top: 1.4rem;
}

.effets_popup.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
  transition: opacity 0.3s, transform 0.3s;
}

.effets_popup .effets_wrap {
  color: #fff;
  border-radius: 0.8rem;
  padding: 2.8rem 4rem;
  background-color: #192347;
}

.effets_popup .effets_wrap::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  background-color: #192347;
  position: absolute;
  left: 1.4rem;
  top: 0.4rem;
  transform: rotate(45deg);
}

.effets_popup .effets_title {
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.effets_popup ul {
  gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.effets_popup ul li {
  width: 100%;
  cursor: pointer;
}

.effets_popup ul .active .name{
  background-color: #ffffff;
  color: #192347;
}

.effets_popup ul .active .img,
.effets_popup ul li:hover .img {
  background-color: #4C648A;
}

.effets_popup ul .active .img img,
.effets_popup ul li:hover .img img {
  opacity: 1;
}
 

.effets_popup ul .name {
    text-align: center;
    font-weight: 500;
    padding: 1rem;
    font-size: 14px;
    border-radius: 5px;
    border: #eee solid 1px;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 10px;
  }

  body {
    font-size: 1.4rem;
  }

  body.fixed {
    padding-right: 0;
  }

  .upload-notification {
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
  }
}

/* Help Me Decide Modal */
.help-decide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.help-decide-modal.active {
    display: flex;
}

.help-decide-content {
    background: #fff;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.help-decide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.help-decide-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.help-decide-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.help-decide-close:hover {
    color: #333;
}

.help-decide-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Main Content */
.help-decide-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-decide-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.selection-count {
    font-size: 14px;
    color: #666;
}

.selection-count span {
    font-weight: 600;
    color: #333;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary, #333);
}

.search-box input::placeholder {
    color: #aaa;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px; 
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card.hidden {
    display: none;
}

.product-image {
    aspect-ratio: 1;
    border-radius: 10px; 
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-actions .view-more {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
 

.product-actions .select-fabric-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.product-actions .select-fabric-btn:hover {
    background: #333;
    color: #fff;
}

.short_description{
  display: block;
  margin-top: 1rem;
  font-size: 14px;
   display: -webkit-box;
  -webkit-line-clamp: 2;      /* 限制2行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Image Magnifier */
.magnifier-container {
  position: relative;
  cursor: none;
}

.magnifier-lens {
  position: absolute;
  width: 400px;
  height: 400px; 
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 100;
  overflow: hidden;
}

.magnifier-container:hover .magnifier-lens {
  opacity: 1;
  visibility: visible;
}

.magnifier-lens::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .help-decide-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
}