* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary: #004741;
  --secondary: #E1E5E4;
  --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;
}
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;
}
.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: 1.2rem;
  display: flex;
}
.selects li {
  flex: 1;
  max-width: 19.6rem;
}
.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: none;
  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: block;
}
.pd_item {
  gap: 2.4rem;
  display: grid;
  align-items: center;
  grid-template-columns: 9.8rem 1fr auto;
  border-radius: 0.8rem;
  padding: 1.4rem 3rem 1.4rem 1.4rem;
  background-color: #fff;
}
.pd_item .pd_img {
  --h: 100%;
}
.pd_item .pd_title {
  font-size: 1.8rem;
  font-weight: 500;
}
.form form {
  gap: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.form span {
  width: 100%;
}
.form .col2 {
  width: 46.875%;
}
.form .label {
  cursor: pointer;
  font-weight: 600;
  max-width: max-content;
  margin-bottom: 0.6rem;
}
.form .label span {
  color: #999999;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  height: 5rem;
  display: block;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: 0.8rem;
  padding: 0 2rem;
  border: 2px solid #fff;
  background-color: #fff;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--primary);
}
.form textarea {
  resize: none;
  height: 10rem;
  padding: 1.2rem 2rem;
}
.form span:has(input[type="submit"]) {
  margin-top: 1.2rem;
}
.form input[type="submit"] {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  color: #fff;
  margin-left: auto;
  background-color: var(--primary);
}
.form input[type="submit"]:hover {
  background-color: #00231F;
}
.upload .drop_area {
  min-height: 23rem;
  cursor: pointer;
  gap: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  border-radius: 0.8rem;
  background-color: var(--primary);
  padding: 2rem;
}
.upload .drop_area::before {
  content: '';
  display: block;
  width: 5.8rem;
  height: 5.2rem;
  margin-bottom: 0.8rem;
  background: url(../img/icon-upload.svg) no-repeat center / contain;
}
.upload .drop_area strong {
  font-size: 1.513rem;
  font-weight: 500;
}
.upload .drop_area p {
  font-size: 1.101rem;
}
.upload .drop_area input {
  display: none;
}
.upload .uploaded_list .upload_preview {
  font-weight: 500;
  gap: 2.4rem;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto auto;
  margin-top: 1.6rem;
  border-radius: 0.8rem;
  background-color: #fff;
  padding: 9.59596% 8.585859%;
}
.upload .uploaded_list .upload_filename {
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload .uploaded_list .upload_remove {
  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 #FF3939;
}
.upload .uploaded_list .upload_remove:hover {
  filter: brightness(1.2);
}
.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);
}
.modal::-webkit-scrollbar {
  display: none;
}
.modal .modal_wrap {
  margin: 40px auto;
  max-width: 121rem;
  width: calc(100% - 40px);
  border-radius: 0.8rem;
  background-color: #F9F9F9;
  padding: 4.2rem 5.4rem 3.2rem;
}
.modal .modal_title {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 2.8rem;
}
.modal .modal_main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal .upload {
  width: 37.642586%;
}
.modal .summary {
  width: 37.642586%;
}
.modal .summary .label {
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.modal .summary li {
  gap: 1.8rem;
  display: grid;
  align-items: center;
  grid-template-columns: 8.6rem 1fr 38.172043%;
  border-radius: 0.8rem;
  padding: 1.2rem;
  background-color: #fff;
}
.modal .summary li + li {
  margin-top: 1.2rem;
}
.modal .summary li .img {
  --h: 100%;
}
.modal .summary li .title {
  font-size: 1.571rem;
  font-weight: 500;
}
.modal .summary li .num_wrap {
  font-weight: 500;
  gap: 22.535211%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.modal .summary li .num_wrap .num_label {
  font-size: 1.397rem;
}
.modal .summary li .num_wrap .num {
  font-size: 1.746rem;
}
.modal .form {
  width: 57.794677%;
}
#quantity .modal_wrap {
  max-width: 121rem;
  padding: 3.6rem 3.2rem 4.6rem;
}
#quantity .list ul {
  gap: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
#quantity .bot {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
#quantity .all_wrap {
  gap: 3.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#quantity .btns {
  gap: 1.8rem;
  display: flex;
  flex-wrap: wrap;
}
#quantity .btns .btn_cancel {
  color: #A8A8A8;
  background-color: var(--secondary);
}
#quantity .btns .btn_cancel:hover {
  color: var(--primary);
  background-color: #DBDBDB;
}
.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: 2.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;
  user-select: none;
}
.menu_item.active,
.menu_item:hover {
  background-color: #0F6056;
}
.menu_item .menu_icon {
  --h: 100%;
  width: 100%;
  max-width: 3.2rem;
}
.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: 3rem;
  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_title {
  color: var(--title);
  font-size: 2.2rem;
  font-weight: 500;
}
.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: 5rem;
}
.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 3.4rem;
  margin-right: 0.6rem;
  display: none;
}
.layout_main.active {
  display: block;
}
.preview {
  display: flex;
  height: calc(100% - 4rem);
  width: 63.676149%;
  margin: 2rem 2rem 2rem 0;
  background-color: #fff;
  overflow: hidden;
}
.preview .canvas {
  flex: 1; 
  max-width: 100%;
}
.layout_main[data-main="text"]{
  background-color: #f3f4ef;
  padding-top: 1rem;
}

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

.preview .preview_sider {
  width: 13.230241%;
  gap: 4.2rem;
  display: flex;
  flex-direction: column;
  padding-bottom: 5rem;
}

.preview .options_wrap {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  gap: 4.2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 2.6rem 0;
}
.preview .positions {
  width: 100%;
}
.preview .positions li {
  cursor: pointer;
  position: relative;
}
.preview .positions li::after {
  content: '';
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  position: absolute;
  right: 0.6rem;
  top: 0;
  opacity: 0;
  transition: all 0.3s;
  background: url(../img/icon-gou.svg) no-repeat center / contain;
}
.preview .positions li + li {
  margin-top: 1.8rem;
}
.preview .positions li.active::after {
  opacity: 1;
}
.preview .positions .position_img {
  padding-bottom: 100%;
}
.preview .positions .position_label {
  font-weight: 500;
  font-size: 1.2rem;
  text-align: center;
}
.preview .colors ul {
  gap: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.preview .colors li {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: 0.3rem solid #fff;
}
.preview .colors li.active {
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15);
}
.preview .colors li[style^="background-color: #FFF"] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview .colors li[style^="background-color: #FFF"]::before {
  content: '';
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid #D8D8D8;
}
.preview .btns {
  gap: 0.6rem;
  display: grid;
  align-self: center;
}
.preview .btns button {
  border: none;
  width: 5.4rem;
  height: 5.4rem;
  cursor: pointer;
  border-radius: 0.8rem;
  transition: all 0.3s;
  background: url(../img/icon-prev.svg) no-repeat center / 63% var(--primary);
}
.preview .btns button:hover {
  background-color: #00231F;
}
.preview .btns button:disabled {
  pointer-events: none;
  background-color: #DBDBDB;
}
.preview .btns .btn_next {
  transform: rotate(180deg);
}
.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: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 8.5rem;
  padding: 1rem 7rem 1rem 3.4rem;
  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 .request {
  position: relative;
  z-index: 2;
}
.layout_footer .request:hover .request_popup {
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
}
.layout_footer .request .request_popup {
  position: absolute;
  left: 0;
  bottom: 100%;
  padding-bottom: 2rem;
  width: 42.7rem;
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2rem);
}
.layout_footer .request .request_wrap {
  color: #fff;
  border-radius: 1rem;
  background-color: #00231F;
  position: relative;
  padding: 3.2rem 3.8rem 4.7rem;
}
.layout_footer .request .request_wrap::before {
  content: '';
  display: block;
  border: 1rem solid transparent;
  border-top-color: #00231F;
  position: absolute;
  left: 3.4rem;
  top: 100%;
}
.layout_footer .request .request_wrap::after {
  content: '';
  display: block;
  width: 3.2rem;
  height: 3.6rem;
  position: absolute;
  right: 2.2rem;
  top: 2rem;
  background: url(../img/icon-notice.svg) no-repeat center / contain;
}
.layout_footer .request .request_title {
  font-size: 2rem;
  font-weight: 600;
}
.layout_footer .request .request_desc {
  font-size: 1.5rem;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
}
.layout_footer .request .request_desc span {
  text-decoration: underline;
}
.layout_footer .sample {
  flex: 1 0 30rem;
}
.layout_footer .sample a {
  color: #0062FF;
  text-decoration: underline;
  transition: all 0.3s;
}
.layout_footer .sample a:hover {
  color: var(--primary);
  text-decoration-color: transparent;
}
.layout_footer .qty_wrap {
  margin-right: 4.6rem;
  cursor: pointer;
}
footer .qty_wrap .qty{
  pointer-events: none;
}
.layout_main[data-main="products"] .tabs {
  margin-bottom: 2.5rem;
}
.layout_main[data-main="products"] .selects {
  margin-bottom: 2rem;
}
.layout_main[data-main="products"] .style ul {
  gap: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.layout_main[data-main="products"] .style li {
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: 2px solid #fff;
  background-color: #fff;
}

.layout_main[data-main="products"] .style li.active {
  border-color: var(--primary);
}
.layout_main[data-main="products"] .style .img {
  padding-bottom: 100%;
  user-select: none;
}
.layout_main[data-main="products"] .list li + li {
  margin-top: 1.6rem;
}
.layout_main[data-main="layers"] .tabs {
  margin-bottom: 4.2rem;
}
.layout_main[data-main="layers"] .list li {
  gap: 2rem;
  display: grid;
  align-items: center;
  grid-template-columns: 7.6rem 1fr 28.089888%;
  border-radius: 0.8rem;
  padding: 1.2rem 2.2rem 1.2rem 1.2rem;
  background-color: #fff;
}

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

.layout_main[data-main="layers"] .list li.basic .funcs {
  display: none; 
}

.layout_main[data-main="layers"] .list li:first-child .btn_up,
.layout_main[data-main="layers"] .list li[data-index="1"] .btn_down{
  /* opacity: .5; */
  pointer-events: none;  
  background-color: #DBDBDB;
}

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

.layout_main[data-main="layers"] .list .title {
  font-weight: 500;
  overflow : hidden;
  white-space: normal;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; 
}
.layout_main[data-main="layers"] .list .funcs {
  gap: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.layout_main[data-main="layers"] .list .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);
}
.layout_main[data-main="layers"] .list .funcs div:hover {
  filter: brightness(1.2);
}
.layout_main[data-main="layers"] .list .funcs .btn_down {
  transform: rotate(180deg);
}
.layout_main[data-main="layers"] .list .funcs .btn_delete {
  margin-left: auto;
  background-image: url(../img/icon-delete.svg);
  background-color: #FF3838;
}
.layout_main[data-main="upload"] .upload .drop_area {
  gap: 1rem;
  min-height: 58.2rem;
}
.layout_main[data-main="upload"] .upload .drop_area::before {
  width: 8.4rem;
  height: 7.5rem;
  margin-top: 16.030534%;
  margin-bottom: 1rem;
}
.layout_main[data-main="upload"] .upload .drop_area strong {
  font-size: 2.2rem;
}
.layout_main[data-main="upload"] .upload .drop_area p {
  font-size: 1.6rem;
}
.layout_main[data-main="upload"] .upload .drop_area .tip {
  font-size: 1.2rem;
  border-radius: 0.6rem;
  background-color: #0F6056;
  padding: 1.9rem 2.2rem;
  margin-top: 5rem;
}

.layout_main[data-main="upload"] .upload .uploaded_list .upload_preview {
  gap: 2rem;
  grid-template-columns: 7.6rem 1fr 20.377358% auto;
  padding: 1.2rem 2.2rem 1.2rem 1.2rem;
  cursor: pointer;
}

.layout_main[data-main="upload"] .upload .uploaded_list .upload_thumb {
  position: relative;
}
.layout_main[data-main="upload"] .upload .uploaded_list .upload_thumb::after {
  content: '';
  display: block;
  padding-bottom: 100%;
}
.layout_main[data-main="upload"] .upload .uploaded_list .upload_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 0;
}
.layout_main[data-main="text"] .controls {
  gap: 3rem;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
}
.layout_main[data-main="text"] .controls .T {
  font-weight: 500;
}
.layout_main[data-main="text"] .controls .selects ul {
  flex-wrap: wrap;
}

.layout_main[data-main="text"] .controls .selects select {
  height: 5rem;
  text-align: left;
  font-size: 1.6rem;
  font-weight: normal;
  padding: 0 3.2rem 0 2.2rem;
}

.layout_main[data-main="text"] .controls input.lineheight{
  height: 5rem;
  text-align: left;
  font-size: 1.6rem;
  font-weight: normal;
  padding: 0 1rem 0 2.2rem;
  border-radius: 5px; 
}

.layout_main[data-main="text"] .controls .selects_color {
  padding: .5rem .8rem;
  background-color: #fff;
  display: inline-block;
  border-radius: 5px;
}
.layout_main[data-main="text"] .controls .selects_color input { 
  text-align: left;
  font-size: 1.6rem;
  border-radius: 5px;
  font-weight: normal; 
} 
.layout_main[data-main="clipart"] .selects {
  margin-bottom: 2.5rem;
}
.layout_main[data-main="clipart"] .list ul {
  gap: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.layout_main[data-main="clipart"] .list li {
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: 2px solid #fff;
  background-color: #fff;
}
.layout_main[data-main="clipart"] .list li.active {
  border-color: var(--primary);
}
.layout_main[data-main="clipart"] .list .img {
  padding-bottom: 100%;
}
.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);
}

.canvas-wrapper { 
  display: none;  
  align-items: center;
  justify-content: center;
}
.canvas-wrapper.active {
  display: flex; 
}
.canvas-wrapper .canvas-container{
  
}
/* .canvas-wrapper .canvas-container{
  width: 100%!important;
  height: 100%!important;
  max-width: 100%;
  max-height: 100%;
} */

@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);
  }
}


 /* Toast container */
 .toast-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* allow clicks through gaps */
}

/* Single toast */
.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  color: #0f172a; 
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto; /* allow clicking inside */
  transform-origin: top right;
  opacity: 0;
  transform: translateX(20px) translateY(-6px) scale(0.98);
  transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
  border: 1px solid rgba(0,0,0,0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
}

/* Visible state */
.toast.show {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* Hide animation */
.toast.hide {
  opacity: 0;
  transform: translateX(12px) translateY(-6px) scale(0.98);
  transition: transform 220ms ease, opacity 180ms ease;
}

/* Types */
.toast .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
}
.toast.info .icon { background: linear-gradient(180deg,#dcfce7,#bbf7d0); color:#166534; }
.toast.error   .icon { background: linear-gradient(180deg,#fee2e2,#fecaca); color:#7f1d1d; }
.toast.success    .icon { background: linear-gradient(180deg,#e0f2fe,#bfdbfe); color:#1e3a8a; }

.toast .body {
  flex: 1;
  font-size: 14px;
  line-height: 1.3;
  word-break: break-word;
}

.toast .close-btn {
  margin-left: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(15,23,42,0.6);
}
.toast .close-btn:hover { background: rgba(0,0,0,0.04); color: rgba(15,23,42,0.9); }

/* small screen adjust */
@media (max-width:420px){
  .toast-wrap { left: 12px; right: 12px; top: 12px; align-items: center; }
  .toast { width: 100%; max-width: unset; }
}

.loading{
  position: relative;
}

.loading:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 9; 
}

.loading::after{
  content: ""; 
  transform-origin: 50% 50%;      /* 旋转中心在圆心 */
  animation: spin 0.9s linear infinite;
  background: url('../img/loading.svg') no-repeat center;
  background-size: 45px;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 45px;
  height: 45px;
}


@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%)  rotate(360deg); }
}
.mobile-setting{
  display: none;
}
div[data-layout="goback"]{
  display: none;
}
.layout_footer > div[data-modal="request"]{
  display: none;
} 
select[name="fontweight"]{
  display: none;
}


@media screen and (max-width: 768px) {
  html {
    font-size: 10px;
  }
  body {
    font-size: 1.4rem;
  }
  body.fixed {
    padding-right: 0;
  }

  .layout_sider{
    position: absolute;
    height: calc(100% - 8.5rem);
    top: 8.5rem;
    left: 0%;
    z-index: 11;
    width: 7.2rem;
  }
  .layout_header .header_title{
    font-size: 16px;
  }
  .layout_header::before{
    width: 100%;
    transform: unset;
    left: 0;
  }
  .layout_header .logo img{
    height: 3rem;
  } 
  .layout_body.active {
    display: block;
  }
  .layout_main{
    padding: 0 1.2rem;
  }
  .tabs li{
    font-size: 1.3rem;
    padding: .8rem;
  }
  .layout_main[data-main="products"] .tabs{
    margin-bottom: .8rem;
  }
  .layout_main[data-main="layers"] .tabs{
    margin-bottom: .8rem;
  }
  .layout_main[data-main="upload"] .upload .drop_area{
    min-height: 28.2rem;
    gap: 0.2rem;
  }
  .selects select{
    background: url(../img/icon-select.svg) no-repeat right 2rem center / 1rem #fff;
  }
  .widget .widget_form input[type="text"]{
    font-size: 1.4rem;
    padding: 0 1.4rem;
  }
  .widget .widget_form input[type="submit"]{
    font-size: 1.4rem;
    line-height: 4rem;
    min-width: 8rem;
  }
  
  .layout_main[data-main="text"] .controls .selects select{
    font-size: 1.3rem;
    padding: .5rem 1rem;
    height: 3rem;
  }
  .layout_main[data-main="text"] .controls input.lineheight{
    font-size: 1.3rem;
    padding: .5rem 1rem;
    height: 3rem;
  }

  .qty_wrap .qty{
    width: 10rem;
    height: 3.4rem;
  }
  .qty_wrap input{
    font-size: 14px;
  }
  .layout_main[data-main="text"] .controls .selects_color input{
    background-color: transparent;
    width: 4rem;
  }
  .layout_main[data-main="upload"] .upload .drop_area::before{
    width: 5.4rem;
    height: 4.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
  }
  .selects select{
    font-size: 13px;
  }
  .layout_main[data-main="text"] .controls .selects_color{
    padding: 0;
    background-color: transparent;
  }
  .layout_main[data-main="upload"] .upload .drop_area strong{
    font-size: 1.313rem;
  }
  .layout_main[data-main="upload"] .upload .drop_area p{
    font-size: 1.2rem;
  }
  .layout_main[data-main="layers"] .list li + li{
    margin-top: 0;
  }
  .layout_main[data-main="layers"] .list .funcs{
    gap: .5rem;
  }
  .layout_main[data-main="upload"] .upload .drop_area .tip{
    margin-top: 1rem;
    padding: 1rem;

  }
  .layout_main[data-main="layers"] .list .funcs div{
    width: 2rem;
    height: 2rem;
    background: url(../img/icon-up.svg) no-repeat center / 1rem var(--primary);
  }
  .layout_main[data-main="layers"] .list li{
    gap: 1rem;
  }

  .layout_main[data-main="layers"] .list .img{
    max-width: 60px;
  }
  .layout_main[data-main="layers"] .list .title{
    font-size: 13px;
  }
  .preview{
    width: 100%; 
    height: 100%;
    margin: 0;
    position: relative;
  }
  .layout_header .header_link{
    display: none;
  }
  .layout_header .header_title{
    display: none;
  }
  .layout_main{
    position: absolute;
    top: 8.5rem;
    right: 0;
    width: calc(100% - 7.2rem);
    background-color: #fff;
    z-index: 10;
    height: calc(100% - 8.5rem);
    margin-right: 0;
  }
  .layout_header .logo{
    margin-left: 0;
  }
  .custom-popup div{
    font-size: 12px;
  }
  .menu_item{
    min-height: 5.5rem;
  }
  .layout_header{
    padding: 0rem 1.4rem ;
  }
  .menu_item .menu_label{
    font-size: 10px;
    line-height: 1.4;
  }
  .mobile-setting{
    display: block;
    flex: 1;
    text-align: right;
  }
  .mobile-setting img{
    width: 26px;
  } 
  .menu_item .menu_icon{
    max-width: 2rem;
  }
  .layout_main[data-main="upload"] .upload .uploaded_list .upload_thumb img{
    object-fit: cover;
  }
  .layout_main[data-main="upload"] .upload .uploaded_list .upload_preview{
    gap: 1rem;
    padding: .5rem;
    margin-top: .5rem;
  }
  .upload .uploaded_list .upload_remove{
    width: 2rem;
    height: 2rem;
    background: url(../img/icon-delete.svg) no-repeat center / 1rem #FF3939;
  }
  .upload .uploaded_list .upload_filesize{ 
    font-size: 11px;
  }
  .upload .uploaded_list .upload_filename{
    font-size: 12px;
  }
  .layout_main[data-main="upload"] .upload .uploaded_list .upload_thumb{
    max-width: 60px;
    border-radius: 5px;
    overflow: hidden;
  }
  .widget .widget_label{
    font-size: 1.6rem;
  }
  .layout_main[data-main="text"] .controls{
    gap: 1.5rem;
  }
  .layout_main[data-main="clipart"] .selects{
    margin-bottom: 1rem;
  }
  .layout_main[data-main="products"] .selects {
    margin-bottom: 1rem;
  }
  .layout_main[data-main="text"] .controls .selects ul{
    flex-direction: column;
  }
  .pd_item{
    grid-template-columns: 5.8rem 1fr auto;
  }
  .pd_item .pd_title{
    font-size: 1.4rem;
  }
  .pd_item .pd_img img{
    object-fit: cover;
  }
  .qty_wrap .qty_label{
    display: none;
  }
  .layout_main[data-main="products"] .list li + li{
    margin-top: 0;
  }
  .layout_main[data-main="help"]{
    display: block;
  }
  .layout_main[data-main="help"] .widgets{
    padding: 1.2rem;
  }
  .layout_main[data-main="help"] .video{
    width: 100%;
    padding: 1.2rem;
    margin:   0;
  }
  .layout_main[data-main="help"] .list li + li{
    margin-top: 1rem;
  }
  .layout_main[data-main="help"] .list li{
    padding: 0;
  }
  .layout_main[data-main="help"] .list .info .title{
    font-size: 1.4rem;
  }
  .layout_main[data-main="help"] .list .info .desc{
    font-size: 12px;
  }
  .widget + .widget{
    margin-top: 2.2rem;
  }
  div[data-layout="goback"]{
    display: flex;
  }

  body.hide_setting .layout_main,
  body.hide_setting .layout_sider
  {
    display: none!important;
  }
  .preview .btns button{
    width: 4rem;
    height: 4rem;
  }
  .preview .preview_sider{
    width: 8rem;
    position: absolute;
    right: 0rem;
  } 
  .preview .options_wrap{
    padding: 1rem 1.2rem 0;
    gap: 4.2rem;
  }
  header{
    border-bottom: #ccc solid 1px;
  }

  .preview .colors li{
    width: 2.2rem;
    height: 2.2rem;
  }
  .preview .colors ul{
    gap: 0.3rem;
    max-height: 16rem;
  }
  .preview .positions li::after{
    width: 1.5rem;
    height: 1.5rem;
  }
  .btn{
    font-size: 1.3rem;
    line-height: 4.8rem;
    min-width: 10.4rem;
    padding: 0 1.5rem;
  }
  .layout_footer::before{
    transform: unset;
    left: 0;
  }
  .layout_footer{
    gap: 1rem;
    padding: 1.2rem;
  }

  .layout_footer .request{
    display: none;
  }
  .layout_footer .qty_wrap{
    margin-right: 0.6rem;
  }
  .layout_footer div[data-modal="request"]{
    margin-left: auto;
  }
  #quantity .list ul{
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
  #quantity .modal_wrap{
    padding: 2rem;
  }
  #quantity .bot{
    gap: 1.5rem;
  }
  #quantity .all_wrap,
  #quantity .btns{
    width: 100%;
    justify-content: space-between;
  }
  .modal .modal_wrap{
    padding: 2rem;
  }
  .modal .modal_main{
    flex-direction: column;
  }
  .modal .summary{
    width: 100%;
  }
  .modal .form{
    width: 100%;
    margin-top: 2.5rem;
  } 
  .modal .modal_title{
    margin-bottom: 1.8rem;
    font-size: 2rem;
  }
  .form input[type="submit"]{
    font-size: 1.4rem;
  }
  .form span:has(input[type="submit"]){
    margin-top: 0;
  }
  .modal .summary li img{
    object-fit: cover;
    max-width: 60px;
  }
  .upload .uploaded_list .upload_preview{
    gap: 1.4rem;
  }
  .modal .summary li{
    grid-template-columns: 6.6rem 1fr 38.172043%;
  }
  .upload .uploaded_list .upload_preview{
    padding: 1.2rem;
  }
  .modal .upload{
    width: 100%;
  } 
  .layout_footer > div[data-modal="request"]{
    display: block;
  }
  
}