.eshop-template-box {
    width: 100%;
    text-align: left;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 0;
}

.eshop-template-box .content {
    width: 100%;
}

.eshop-template-box .content img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.eshop-template-box .content p {
    margin: 0;
}

.eshop-line-btn {
    position: fixed;
    right: 20px;
    bottom: 120px;
    width: 40px;
    min-height: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #18a058;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
    z-index: 9999;
}

.eshop-line-btn svg {
    width: 32px;
    height: 32px;
    display: block;
}

.eshop-theme-template-4 {
    color: #333;
    background: #fff;
    font-size: 16px;
    line-height: normal;
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.eshop-theme-template-4 * {
    box-sizing: border-box;
}

.eshop-theme-template-4 .eshop-t4-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    color: #fff;
    background-image: linear-gradient(to right, #fc6672 22%, #d356eb 76%);
    border-width: 1px;
    border-radius: 10px 10px 0 0;
    padding-left: 5px;
    padding-right: 5px;
}

.eshop-theme-template-4 .eshop-t4-back-price {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
}

.eshop-theme-template-4 .eshop-t4-back-price span:last-child {
    font-size: 30px;
    margin-left: 4px;
    line-height: 1;
}

.eshop-theme-template-4 .eshop-t4-hot {
    font-size: 20px;
    font-weight: 700;
}

.eshop-theme-template-4 .eshop-t4-old-price {
    color: #fff;
    opacity: 0.8;
    text-decoration: line-through;
}

.eshop-theme-template-4 .eshop-t4-title {
    padding: 10px 5px;
    font-size: 17.5px;
    color: #000;
}

.eshop-theme-template-4 .eshop-t4-label-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2%;
}

.eshop-theme-template-4 .eshop-t4-label-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eshop-theme-template-4 .eshop-t4-label-left > span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #cdbc1d;
}

.eshop-theme-template-4 .eshop-t4-label-left > span > i {
    display: inline-flex;
    width: 15px;
    height: 15px;
}

.eshop-theme-template-4 .eshop-t4-label-left > span > i > img {
    width: 15px;
    height: 15px;
}

.eshop-theme-template-4 .eshop-t4-label-right {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.eshop-theme-template-4 .eshop-t4-label-right .stars {
    color: #fb364d;
    font-size: 12px;
    letter-spacing: 1px;
}

.eshop-theme-template-4 .eshop-t4-label-right .score {
    color: #cdbc1d;
    font-weight: 700;
    margin-left: 2px;
}

.eshop-theme-template-4 .eshop-t4-tips {
    margin-left: 10px;
    margin-top: 14px;
    padding: 1%;
    font-size: 14px;
    font-weight: 700;
    color: #cdbc1d;
}

.eshop-theme-template-4 .eshop-t4-tips p {
    margin: 0;
}

.eshop-theme-template-4 .eshop-t4-content {
    border-top: 10px solid rgb(241, 241, 241);
}

.eshop-theme-template-4 .eshop-t4-detail-title {
    display: block;
    text-align: center;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.65);
    font-weight: bolder;
    margin: 10px auto;
}

.eshop-theme-template-4 .eshop-t4-confirm {
    border-top: 10px solid rgb(241, 241, 241);
}

.eshop-theme-template-4 .eshop-t4-confirm-title {
    padding: 10px;
    font-size: 20px;
    text-align: center;
    background-color: #fff;
}

.eshop-theme-template-4 .eshop-t4-confirm-row {
    display: flex;
    background: #f5f5f5;
    margin-bottom: 10px;
    padding: 10px;
}

.eshop-theme-template-4 .eshop-t4-confirm-image {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
}

.eshop-theme-template-4 .eshop-t4-confirm-image img {
    width: 100%;
    height: 100%;
}

.eshop-theme-template-4 .eshop-t4-confirm-info {
    display: flex;
    flex-direction: column;
    width: calc(100% - 100px);
    min-width: 0;
    padding: 0 8px;
}

.eshop-theme-template-4 .eshop-t4-confirm-price {
    display: flex;
    align-items: center;
    color: #cdbc1d;
    font-size: 18px;
    font-weight: 700;
}

.eshop-theme-template-4 .eshop-t4-confirm-price #eshop-total {
    font-size: inherit;
}

.eshop-theme-template-4 .eshop-t4-confirm-name {
    color: #666;
    font-size: 16px;
    line-height: 1.4;
    word-break: break-all;
    display: block;
    overflow-wrap: break-word;
    margin-top: 8px;
}

.eshop-theme-template-4 .eshop-t4-package-box {
    background: #fff;
    padding: 0 10px;
}

.eshop-theme-template-4 .package-item {
    border-radius: 4px;
    border: 2px solid #cdbc1d;
    background: #fff;
    color: #111;
    box-shadow: 2px 2px 10px #cdbc1d;
    font-size: 16px;
    font-weight: 400;
}

.eshop-theme-template-4 #eshop-packages {
    display: block;
}

.eshop-theme-template-4 #eshop-packages .eshop-pkg-item {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 0;
    padding: 1.3%;
    text-align: center;
    line-height: 1.35;
}

.eshop-theme-template-4 #eshop-packages .eshop-pkg-item .package-image {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-block !important;
}

.eshop-theme-template-4 #eshop-packages .eshop-pkg-item.is-active {
    color: #fff;
    background: #cdbc1d !important;
    border-color: #cdbc1d;
}

.eshop-theme-template-4 .box-group {
    margin: 8px 8px 20px 8px;
    border-radius: 2px;
    box-shadow: 0 0 0 4px #f4f4f4;
    background: #fafafa;
    padding: 0 10px 10px;
}

.eshop-theme-template-4 .eshop-pkg-detail {
    margin: 10px 0 16px;
}

.eshop-theme-template-4 .eshop-pkg-detail-title {
    font-size: 13px;
    color: #333;
}

.eshop-theme-template-4 .eshop-divider {
    height: 1px;
    background: #efeff5;
    margin: 12px 0;
}

.eshop-theme-template-4 .eshop-attr-group {
    margin: 8px 0 12px;
}

.eshop-theme-template-4 .eshop-attr-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 6px 0;
}

.eshop-theme-template-4 .eshop-attr-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eshop-theme-template-4 .eshop-attr-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    white-space: nowrap;
    max-width: none;
    margin: 0;
    text-align: center;
}

.eshop-theme-template-4 .eshop-attr-option.is-active {
    color: #fff;
    background: #cdbc1d !important;
    border-color: #cdbc1d;
}

.eshop-theme-template-4 .eshop-attr-option img {
    width: 128px;
    height: auto;
    display: block;
}

.eshop-theme-template-4 .eshop-attr-option span {
    padding:8px 16px;
    margin: 0;
    display: block;
    width: 100%;
    font-size: 16px;
    text-align: center;
    line-height: 1.3;
}

.eshop-theme-template-4 .eshop-t4-form {
    padding: 0 10px;
    overflow: hidden;
}

.eshop-theme-template-4 .eshop-form-wrap .form-group {
    margin-bottom: 10px;
}

.eshop-theme-template-4 .eshop-form-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 8px;
}

.eshop-theme-template-4 .eshop-form-label {
    width: 72px;
    margin: 0;
    font-size: 19.36px;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
}

.eshop-theme-template-4 .eshop-form-label em {
    color: #ff4d4f;
    font-style: normal;
}

.eshop-theme-template-4 .eshop-form-item > .form-control,
.eshop-theme-template-4 .eshop-form-item > .eshop-store-area-row,
.eshop-theme-template-4 .eshop-form-item > .eshop-t4-pay-static-value {
    width: 100%;
    min-width: 0;
}

.eshop-theme-template-4 .form-control,
.eshop-theme-template-4 select.form-control,
.eshop-theme-template-4 textarea.form-control {
    width: 100%;
    font-size: 16.94px;
}

.eshop-theme-template-4 .form-control::-webkit-input-placeholder,
.eshop-theme-template-4 .form-control::-moz-placeholder,
.eshop-theme-template-4 .form-control:-ms-input-placeholder {
    font-size: 15.4px;
}

.eshop-theme-template-4 .eshop-form-item textarea.form-control {
    min-height: 24px;
    height: auto;
    overflow-y: hidden;
    word-wrap: break-word;
    word-break: break-all;
    resize: none;
    line-height: 1.5;
    box-sizing: border-box;
}

.eshop-theme-template-4 .eshop-form-item input.form-control {
    word-wrap: break-word;
    word-break: break-all;
}

.eshop-theme-template-4 .eshop-form-item input.form-control.eshop-input-error {
    border-color: #cf2a4f;
    background-color: #fff5f5;
}

.eshop-theme-template-4 .eshop-phone-error {
    color: #cf2a4f;
    font-size: 16.94px;
    margin-top: 4px;
    grid-column: 2;
}

.eshop-theme-template-4 .eshop-store-area-row {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.eshop-theme-template-4 .eshop-store-area-row .form-control {
    flex: 1 1 0;
    min-width: 0;
}

.eshop-theme-template-4 #eshop-pay-box .wfform-label {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    line-height: 1.4;
    padding-right: 0;
    margin-bottom: 8px;
}

.eshop-theme-template-4 .eshop-pay-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 10px;
}

.eshop-theme-template-4 .eshop-pay-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 0.4rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s linear 0s;
}

.eshop-theme-template-4 .eshop-pay-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eshop-theme-template-4 .eshop-pay-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 0;
    margin-right: 0;
    background: url('/assets/img/payment.png') no-repeat;
    background-size: 171.875px 365.75px;
    flex-shrink: 0;
}

.eshop-theme-template-4 .eshop-pay-text {
    padding-right: 3px;
}

.eshop-theme-template-4 .eshop-pay-icon-cashOnDelivery {
    background-position: 1.375px -4.8125px;
}

.eshop-theme-template-4 .eshop-pay-icon-711 {
    background-position: 1.375px -240.625px;
}

.eshop-theme-template-4 .eshop-pay-icon-family {
    background-position: 1.375px -275px;
}

.eshop-theme-template-4 .eshop-pay-item input[type="radio"]:checked + .eshop-pay-icon-cashOnDelivery {
    background-position: -137.5px -4.8125px;
}

.eshop-theme-template-4 .eshop-pay-item input[type="radio"]:checked + .eshop-pay-icon-711 {
    background-position: -137.5px -240.625px;
}

.eshop-theme-template-4 .eshop-pay-item input[type="radio"]:checked + .eshop-pay-icon-family {
    background-position: -137.5px -275px;
}

.eshop-theme-template-4 .eshop-pay-item input[type="radio"]:checked + .eshop-pay-icon + .eshop-pay-text,
.eshop-theme-template-4 .eshop-pay-item.is-active .eshop-pay-text {
    color: #fff;
}

.eshop-theme-template-4 .eshop-pay-item.is-active {
    color: #fff;
    background: #cf2a4f;
    border-color: #cf2a4f;
}

.eshop-theme-template-4 .eshop-t4-pay-static-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

.eshop-theme-template-4 .eshop-t4-pay-static-radio input {
    margin: 0;
}

.eshop-theme-template-4 .eshop-t4-submit {
    width: calc(100% - 20px);
    margin: 10px;
    text-align: center;
    line-height: 38px;
    font-size: 20px;
    background-color: #cdbc1d;
    color: #fff;
    box-shadow: 0 0 8px #cdbc1d;
}

.eshop-theme-template-4 .fix-bottom-box {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    min-height: 50px;
    line-height: 50px;
    color: #fff;
    z-index: 9998;
}

.eshop-theme-template-4 .fix-bottom-box.is-hidden {
    display: none;
}

.eshop-theme-template-4 .fix-bottom-box .query-btn {
    cursor: pointer;
    width: 120px;
    background: #ff9902;
    text-align: center;
    font-size: 18px;
    line-height: 50px;
    white-space: nowrap;
}

.eshop-theme-template-4 .fix-bottom-box .buy-btn {
    cursor: pointer;
    flex: 1 1 auto;
    background: #cdbc1d;
    display: block;
    line-height: 50px;
    font-size: 19.2px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.eshop-theme-template-4 .eshop-top-btn {
    position: fixed;
    right: 20px;
    bottom: 170px;
    width: 40px;
    min-height: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cdbc1d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 14.5px;
    font-weight: 700;
    font-family: Avenir, Helvetica, Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
    z-index: 9999;
}

.eshop-t1-old-price {
    margin-left: 5px;
    font-size: 17px;
    font-weight: 400;
    color: #666;
    text-decoration: line-through;
    margin-top: 9px;
}

.eshop-theme-template-4 .content img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    float: none !important;
    position: static !important;
    clear: both !important;
}

@media (max-width: 360px) {
    .eshop-theme-template-4 .eshop-t4-label-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.eshop-theme-template-4 .eshop-t4-qty {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 12px;
}

.eshop-theme-template-4 .eshop-t4-qty label {
    margin: 0;
    color: #222;
    font-size: 18px;
    font-weight: 500;
}

.eshop-theme-template-4 .eshop-t4-qty-control {
    display: inline-flex;
    align-items: center;
    width: 220px;
    height: 34px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    overflow: hidden;
}

.eshop-theme-template-4 .eshop-t4-qty-btn {
    width: 40px;
    height: 32px;
    border: 0;
    background: #fff;
    color: #666;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.eshop-theme-template-4 #eshop-qty-minus {
    border-right: 1px solid #e3e3e3;
}

.eshop-theme-template-4 #eshop-qty-plus {
    border-left: 1px solid #e3e3e3;
}

.eshop-theme-template-4 .eshop-t4-qty-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    border: 0;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 14px;
    text-align: center;
    box-shadow: none;
    padding: 0;
}

.eshop-theme-template-4 .eshop-t4-qty-input::-webkit-outer-spin-button,
.eshop-theme-template-4 .eshop-t4-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.eshop-theme-template-4 .eshop-t4-qty-input[type=number] {
    -moz-appearance: textfield;
}

/* 模板4 轮播图样式修复 - 防止错位 */
.eshop-theme-template-4 .eshop-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 10px 10px 0 0;
}

.eshop-theme-template-4 .eshop-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.eshop-theme-template-4 .eshop-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.eshop-theme-template-4 .eshop-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.eshop-theme-template-4 .eshop-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    cursor: pointer;
}

.eshop-theme-template-4 .eshop-carousel-arrow.is-prev {
    left: 10px;
}

.eshop-theme-template-4 .eshop-carousel-arrow.is-next {
    right: 10px;
}

.eshop-theme-template-4 .eshop-carousel-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.eshop-theme-template-4 .eshop-carousel-arrow.is-prev::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.eshop-theme-template-4 .eshop-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.eshop-theme-template-4 .eshop-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.eshop-theme-template-4 .eshop-carousel-dot.is-active {
    background: #cdbc1d;
    border-color: #cdbc1d;
}
