@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

.goods,
.template {
  --color-primary: #2A6F6F;
  --color-secondary: #2A6F6F;
  --color-cta: #2A6F6F;
  --color-bg: #EAE6DF;
  --color-text: #1A1A1A;
  --color-price-text: #E86A33;
  --color-discount-num: #E86A33;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

.goods *,
.goods *::before,
.goods *::after,
.template *,
.template *::before,
.template *::after {
  border-radius: 0 !important;
}

.goods, .template { font-family: var(--font-body); color: #1A1A1A; }

.goods h1, .goods h2, .goods h3,
.template h1, .template h2, .template h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #1A1A1A;
}

.goods .el-button,
.template .el-button {
  border-radius: 0 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  border: 3px solid #1A1A1A;
  transition: none;
}

.goods .el-button--primary,
.template .el-button--primary {
  background: #2A6F6F;
  border-color: #1A1A1A;
  color: #EAE6DF;
}

.goods .el-button--primary:hover,
.template .el-button--primary:hover {
  background: #E86A33;
  border-color: #1A1A1A;
  color: #FFFFFF;
}

.goods .el-button--default,
.template .el-button--default {
  background: #FFFFFF;
  border-color: #1A1A1A;
  color: #1A1A1A;
}

.goods .el-button--default:hover,
.template .el-button--default:hover {
  background: #1A1A1A;
  color: #EAE6DF;
}

.goods .el-input__inner,
.template .el-input__inner {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: var(--font-body);
}

.goods .el-input__inner:focus,
.template .el-input__inner:focus {
  border-color: #2A6F6F;
  box-shadow: none;
}

.goods .el-card,
.template .el-card {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
}

.goods .el-table,
.template .el-table {
  border: 2px solid #1A1A1A;
  border-radius: 0 !important;
  color: #1A1A1A;
}

.goods .el-table th.el-table__cell,
.template .el-table th.el-table__cell {
  background: #1A1A1A;
  color: #EAE6DF;
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: 2px solid #1A1A1A;
}

.goods .el-table td.el-table__cell,
.template .el-table td.el-table__cell {
  border-bottom: 1px solid #1A1A1A;
}

.goods .el-table--border td.el-table__cell,
.template .el-table--border td.el-table__cell {
  border-right: 1px solid #1A1A1A;
}

.goods .el-table__body tr:hover > td,
.template .el-table__body tr:hover > td {
  background: rgba(42, 111, 111, 0.08);
}

.goods .el-dialog,
.template .el-dialog {
  border-radius: 0 !important;
  border: 3px solid #1A1A1A;
}

.goods .el-dialog__header,
.template .el-dialog__header {
  background: #1A1A1A;
  color: #EAE6DF;
  border-bottom: 3px solid #2A6F6F;
}

.goods .el-dialog__title,
.template .el-dialog__title {
  color: #EAE6DF;
  font-family: var(--font-heading);
  font-weight: 700;
}

.goods .el-dialog__body,
.template .el-dialog__body {
  background: #FFFFFF;
}

.goods .el-dialog__footer,
.template .el-dialog__footer {
  border-top: 2px solid #1A1A1A;
  background: #FFFFFF;
}

.goods .el-checkbox__inner,
.template .el-checkbox__inner {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
}

.goods .el-checkbox__input.is-checked .el-checkbox__inner,
.template .el-checkbox__input.is-checked .el-checkbox__inner {
  background: #2A6F6F;
  border-color: #1A1A1A;
}

.goods .el-radio__inner,
.template .el-radio__inner {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
}

.goods .el-radio__input.is-checked .el-radio__inner,
.template .el-radio__input.is-checked .el-radio__inner {
  background: #2A6F6F;
  border-color: #1A1A1A;
}

.goods .el-tag,
.template .el-tag {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
  font-weight: 600;
}

.goods .el-tag--primary,
.template .el-tag--primary {
  background: #2A6F6F;
  border-color: #1A1A1A;
  color: #EAE6DF;
}

.goods .el-select-dropdown,
.template .el-select-dropdown {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
}

.goods .el-select-dropdown__item.selected,
.template .el-select-dropdown__item.selected {
  color: #2A6F6F;
  font-weight: 700;
}

.goods .el-popover,
.template .el-popover {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
}

.goods .el-loading-mask,
.template .el-loading-mask {
  background: rgba(234, 230, 223, 0.8);
}

.goods .el-empty__description p,
.template .el-empty__description p {
  color: #1A1A1A;
}

.goods .el-link--primary,
.template .el-link--primary {
  color: #2A6F6F;
  font-weight: 600;
}

.goods .el-link--primary:hover,
.template .el-link--primary:hover {
  color: #E86A33;
}

.goods .el-input-number__increase,
.goods .el-input-number__decrease,
.template .el-input-number__increase,
.template .el-input-number__decrease {
  border-radius: 0 !important;
  border: 2px solid #1A1A1A;
  background: #FFFFFF;
  color: #1A1A1A;
}

.goods .el-input-number__increase:hover,
.goods .el-input-number__decrease:hover,
.template .el-input-number__increase:hover,
.template .el-input-number__decrease:hover {
  background: #2A6F6F;
  color: #EAE6DF;
}

.goods .el-main,
.template .el-main {
  background: #EAE6DF;
}

.goods .main-card,
.template .main-card {
  background: #FFFFFF;
  border: 3px solid #1A1A1A;
}

.goods .main-card-title,
.goods .main-title,
.template .main-card-title,
.template .main-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #1A1A1A;
  border-bottom: 3px solid #1A1A1A;
  padding-bottom: 0.2rem;
  margin-bottom: 0.3rem;
}

.goods .el-header,
.template .el-header {
  background: #FFFFFF;
  border-bottom: 3px solid #1A1A1A;
}

.goods .el-aside,
.template .el-aside {
  background: #1A1A1A;
  border-right: 3px solid #2A6F6F;
}

.goods .el-menu,
.template .el-menu {
  background: #1A1A1A;
  border-right: none;
}

.goods .el-menu-item,
.template .el-menu-item {
  color: #EAE6DF;
  border-bottom: 1px solid rgba(234, 230, 223, 0.1);
}

.goods .el-menu-item:hover,
.template .el-menu-item:hover {
  background: rgba(42, 111, 111, 0.6);
  color: #EAE6DF;
}

.goods .el-menu-item.is-active,
.template .el-menu-item.is-active {
  background: #2A6F6F;
  color: #EAE6DF;
  border-left: 4px solid #E86A33;
}

.goods .el-footer,
.template .el-footer {
  background: #FFFFFF;
  border-top: 3px solid #1A1A1A;
  box-shadow: none;
}

.goods .el-tabs__item.is-active,
.template .el-tabs__item.is-active {
  color: #2A6F6F;
}

.goods .el-tabs__active-bar,
.template .el-tabs__active-bar {
  background: #2A6F6F;
  height: 3px;
}

.goods .el-form-item__label,
.template .el-form-item__label {
  font-family: var(--font-body);
  font-weight: 600;
  color: #1A1A1A;
}

@media screen and (max-width: 750px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  .template .el-button { min-height: 0.7rem; border-width: 2px; }
  .template .el-input__inner { height: 0.7rem; border-width: 2px; }
  .template .el-table { border-width: 2px; }
  .template .el-dialog { border-width: 2px; }
  .template .main-card { border-width: 2px; }
  .template .el-header { height: 1rem !important; }
  .template .el-aside { border-right-width: 2px; }

  .template .f-order { height: auto !important; padding: 0 !important; }
  .template .f-order .l-empty { display: none !important; }
  .template .f-order .el-main { padding: 0.1rem 0.12rem !important; }
  .template .f-order .main-card {
    flex-direction: column !important;
    gap: 0.08rem !important;
  }
  .template .f-order .main-card .left {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .template .f-order .time { margin-right: 0 !important; }
  .template .f-order .duration-select { width: 1.2rem !important; }
  .template .f-order .el-input-number { width: 1rem !important; }
  .template .f-order .mid {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .template .f-order .line-empty { display: none !important; }
  .template .f-order .bot-price { margin-left: 0 !important; }
  .template .f-order .bot-price .new span { font-size: 0.2rem !important; }
  .template .f-order .bot-price .old { margin-top: 0.04rem !important; flex-wrap: wrap !important; }
  .template .f-order .right {
    width: 100% !important;
    justify-content: flex-end !important;
    gap: 0.08rem !important;
  }
  .template .f-order .right .add-cart {
    width: 0.5rem !important;
    height: 0.4rem !important;
    flex-shrink: 0 !important;
  }
  .template .f-order .right .buy {
    flex: 1 !important;
    width: auto !important;
    line-height: 0.4rem !important;
    margin-left: 0 !important;
  }

  .template .top-select {
    flex-direction: column !important;
    gap: 0.08rem !important;
  }
  .template .top-select .el-select { width: 100% !important; }
  .template .el-table { width: 100% !important; }
  .template .el-table__body-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .template .el-form-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 0.1rem !important;
  }
  .template .el-form-item__label {
    float: none !important;
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    margin-bottom: 0.04rem !important;
  }
  .template .el-form-item__content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .template .el-select { width: 100% !important; }
  .template .el-slider { width: 100% !important; }
  .template .el-tabs { width: 100% !important; overflow-x: auto !important; }
  .template .el-radio-group { flex-wrap: wrap !important; gap: 0.04rem !important; }
  .template .el-radio-button { margin-bottom: 0.04rem !important; }
  .template .el-checkbox { margin-bottom: 0.04rem !important; width: 100% !important; }
  .template .el-input-number { width: 1.2rem !important; }
  .template img { max-width: 100% !important; height: auto !important; }
  .template .image-box .image-item { flex: 0 0 calc(33.33% - 0.04rem) !important; }
  .template .custom-config .el-input,
  .template .custom-config .el-textarea,
  .template .custom-config .el-select { width: 100% !important; }
  .template .el-main { padding-bottom: 1.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .goods *, .goods *::before, .goods *::after,
  .template *, .template *::before, .template *::after {
    animation: none !important;
    transition: none !important;
  }
}
