/* Mall */
html.mall-mobile-root {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html.mall-mobile-root::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.mall-mobile-page {
    --mall-floating-edge: max(
        var(--mobile-shell-gutter),
        calc((100% - var(--mobile-shell-width, min(560px, 100%))) / 2 + var(--mobile-shell-gutter))
    );
    min-width: 0;
    padding-top: 0;
}

.mall-mobile-shell {
    padding-top: var(--mobile-shell-top-gap);
    padding-bottom: 18px;
    background: transparent;
}

.mall-mobile-slider {
    position: relative;
    overflow: hidden;
    height: 168px;
    border-radius: 8px;
    background: #7f2c27;
    box-shadow: none;
}

.mall-mobile-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 20px 18px;
    color: #fff6e8;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mall-mobile-slide.is-active {
    opacity: 1;
}

.mall-mobile-slide::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(96, 33, 29, 0.9), rgba(47, 95, 85, 0.42)),
        radial-gradient(circle at 78% 28%, rgba(201, 153, 87, 0.32), transparent 38%);
    content: "";
}

.mall-mobile-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-mobile-slide > div {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    max-width: 260px;
}

.mall-mobile-slide span {
    width: fit-content;
    padding: 3px 9px;
    border: 1px solid rgba(255, 246, 232, 0.42);
    color: rgba(255, 246, 232, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.mall-mobile-slide h1 {
    margin: 0;
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: 0;
}

.mall-mobile-slide p {
    margin: 0;
    color: rgba(255, 246, 232, 0.84);
    font-size: 14px;
    line-height: 1.6;
}

.mall-mobile-recommend {
    padding: 12px 0 0;
}

.mall-mobile-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 24px;
    margin-bottom: 0;
    color: #806e60;
}

.mall-mobile-title span {
    display: block;
    height: 1px;
    background: rgba(128, 110, 96, 0.24);
}

.mall-mobile-title h2 {
    margin: 0;
    color: #2a211b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.mall-category-section-title {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 24px;
    color: #806e60;
}

.mall-category-section-title span {
    display: block;
    height: 1px;
    background: rgba(128, 110, 96, 0.24);
}

.mall-category-section-title strong {
    color: #2a211b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.mall-mobile-content {
    display: block;
}

.mall-mobile-categories {
    display: none;
}

.mall-products-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.mall-mobile-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mall-mobile-page .mall-card {
    grid-template-rows: 1fr auto;
    min-height: 0;
    border: 1px solid rgba(112, 43, 36, 0.06);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    contain: content;
}

.mall-mobile-page .mall-card:hover {
    transform: none;
    border-color: rgba(141, 45, 40, 0.12);
    box-shadow: none;
}

.mall-mobile-page .mall-card-cover {
    aspect-ratio: 1 / 0.92;
    min-height: 0;
    background: #eee3d5;
}

.mall-mobile-page .mall-card-cover img {
    background: #eee3d5;
}

.mall-mobile-page .mall-card-body {
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 9px;
}

.mall-mobile-page .mall-card-body span,
.mall-mobile-page .mall-card-body p,
.mall-mobile-page .mall-card-foot em,
.mall-mobile-page .mall-card-badge {
    display: none;
}

.mall-mobile-page .mall-card-body h2 {
    overflow: hidden;
    margin: 0;
    color: #2a211b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-mobile-page .mall-card-foot {
    display: block;
}

.mall-mobile-page .mall-card-foot strong {
    color: #f06a22;
    font-size: 15px;
    font-weight: 800;
}

.mall-product-skeleton {
    min-height: 206px;
    overflow: hidden;
    border: 1px solid rgba(112, 43, 36, 0.06);
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent),
        linear-gradient(#eee3d5 0 66%, #fffdf8 66% 100%);
    background-size: 180px 100%, 100% 100%;
    background-position: -180px 0, 0 0;
    animation: mallSkeleton 1.15s ease-in-out infinite;
}

.mall-load-more {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(141, 45, 40, 0.14);
    border-radius: 8px;
    color: #8d2d28;
    background: #fffdf8;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.mall-load-more:disabled {
    color: #8b7969;
    cursor: wait;
    opacity: 0.78;
}

@keyframes mallSkeleton {
    to {
        background-position: calc(100% + 180px) 0, 0 0;
    }
}

.mall-floating-actions {
    position: fixed;
    right: var(--mall-floating-edge);
    bottom: calc(104px + env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    gap: 12px;
}

.mall-floating-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(64, 48, 34, 0.13);
    border-radius: 50%;
    color: #5b5149;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 18px rgba(42, 33, 27, 0.13);
    cursor: pointer;
    touch-action: manipulation;
}

.mall-floating-actions svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.mall-mobile-toast {
    position: fixed;
    right: var(--mall-floating-edge);
    bottom: calc(214px + env(safe-area-inset-bottom));
    z-index: 95;
    max-width: min(280px, calc(100% - 32px));
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    background: rgba(42, 33, 27, 0.9);
    font-size: 13px;
    line-height: 1.5;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-slider,
.mall-mobile-page.is-mall-list-mode .mall-mobile-title {
    display: none;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-shell {
    background: transparent;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-recommend {
    padding: 12px 0 0;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-content {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    min-height: 0;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-categories {
    position: sticky;
    top: 8px;
    align-self: start;
    display: grid;
    align-content: start;
    gap: 7px;
    max-height: calc(100dvh - 170px);
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(112, 43, 36, 0.08);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.86);
    box-shadow: none;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-categories button {
    position: relative;
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #7d6a55;
    background: transparent;
    font-size: 14px;
    line-height: 1.25;
    cursor: pointer;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-categories button.active {
    color: #8d2d28;
    border-color: rgba(141, 45, 40, 0.12);
    background: #fff6e8;
}

.mall-mobile-page.is-mall-list-mode .mall-products-panel,
.mall-mobile-page.is-mall-list-mode .mall-mobile-products {
    display: grid;
}

.mall-mobile-page.is-mall-list-mode .mall-products-panel {
    gap: 8px;
    min-width: 0;
}

.mall-mobile-page.is-mall-list-mode .mall-mobile-products {
    grid-template-columns: 1fr;
    gap: 0;
    align-self: start;
    align-content: start;
    grid-auto-rows: max-content;
    padding: 0;
    background: transparent;
}

.mall-mobile-page.is-mall-list-mode .mall-card {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto;
    align-self: start;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 8px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.mall-mobile-page.is-mall-list-mode .mall-card + .mall-card {
    border-top: 1px solid rgba(128, 110, 96, 0.18);
}

.mall-mobile-page.is-mall-list-mode .mall-card-cover {
    width: 84px;
    height: 84px;
    aspect-ratio: auto;
    border-radius: 3px;
    align-self: start;
}

.mall-mobile-page.is-mall-list-mode .mall-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 84px;
    padding: 0;
}

.mall-mobile-page.is-mall-list-mode .mall-card-body h2 {
    display: -webkit-box;
    font-size: 15px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

.mall-mobile-page.is-mall-list-mode .mall-card-foot strong {
    font-size: 15px;
}

.mall-mobile-page.is-mall-list-mode .mall-product-skeleton {
    min-height: 100px;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent),
        linear-gradient(90deg, #eee3d5 0 96px, #fffdf8 96px 100%);
    background-size: 180px 100%, 100% 100%;
    background-position: -180px 0, 0 0;
}

@media (max-width: 560px) {
    .mall-mobile-page .mall-mobile-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mall-mobile-page .mall-card {
        grid-template-columns: none;
        grid-template-rows: 1fr auto;
    }

    .mall-mobile-page .mall-card-cover {
        min-height: 0;
    }

    .mall-mobile-page.is-mall-list-mode .mall-mobile-products {
        grid-template-columns: 1fr;
    }

    .mall-mobile-page.is-mall-list-mode .mall-card {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 380px) {
    .mall-mobile-page.is-mall-list-mode .mall-mobile-content {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 8px;
    }

    .mall-mobile-page.is-mall-list-mode .mall-mobile-categories {
        padding: 6px;
    }

    .mall-mobile-page.is-mall-list-mode .mall-mobile-categories button {
        min-height: 40px;
        padding: 0 6px;
        font-size: 13px;
    }

    .mall-mobile-page.is-mall-list-mode .mall-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
    }

    .mall-mobile-page.is-mall-list-mode .mall-card-cover {
        width: 72px;
        height: 72px;
    }

    .mall-mobile-page.is-mall-list-mode .mall-card-body {
        min-height: 72px;
    }
}

/* Cart */
.cart-mobile-page {
    min-width: 0;
    color: #2a211b;
}

.cart-mobile-shell {
    padding-top: 0;
    padding-bottom: 156px;
}

.cart-mobile-head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 60px;
    align-items: center;
    min-height: 54px;
    margin: 0 0 8px;
    padding: 0;
    background: #f3f3f3;
    backdrop-filter: blur(12px);
}

.cart-mobile-head a,
.cart-mobile-head button {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    color: #5b5149;
    background: transparent;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
}

.cart-mobile-head a {
    display: grid;
    justify-self: start;
    place-items: center;
    width: 44px;
}

.cart-mobile-head svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-mobile-head h1 {
    overflow: hidden;
    margin: 0;
    color: #1f1712;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-mobile-head button {
    color: #8d2d28;
    font-size: 14px;
    font-weight: 800;
}

.cart-mobile-head button:disabled {
    color: #b8aa9a;
    cursor: default;
}

.cart-list {
    display: grid;
    gap: 10px;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px 86px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 8px 10px 10px;
    border: 1px solid rgba(112, 43, 36, 0.08);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 1px 2px rgba(42, 33, 27, 0.06);
}

.cart-item-check,
.cart-check-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #5b5149;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.cart-item-check {
    justify-content: center;
    width: 30px;
}

.cart-item-check input,
.cart-check-all input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.cart-item-check span,
.cart-check-all span::before {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1.5px solid #b8aa9a;
    border-radius: 50%;
    background: #fffdf8;
    content: "";
}

.cart-item-check input:checked + span,
.cart-check-all input:checked + span::before {
    border-color: #f06a22;
    background: #f06a22;
}

.cart-item-check input:checked + span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    transform: translate(-50%, -62%) rotate(-45deg);
}

.cart-check-all span {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 7px;
}

.cart-check-all input:checked + span::after {
    position: absolute;
    top: 50%;
    left: 5px;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    transform: translateY(-62%) rotate(-45deg);
}

.cart-item-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 86px;
    aspect-ratio: 1;
    border-radius: 6px;
    color: #8d2d28;
    background: linear-gradient(135deg, #f2e4c7, #fff7ea);
    font-size: 28px;
    font-weight: 900;
}

.cart-item-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-main {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.cart-item-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #241c16;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cart-item-main p {
    overflow: hidden;
    margin: 0;
    color: #8b7969;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.cart-item-bottom strong {
    color: #ff3d18;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart-qty {
    display: inline-grid;
    grid-template-columns: 30px 36px 30px;
    align-items: center;
    overflow: hidden;
    height: 32px;
    border: 1px solid rgba(112, 43, 36, 0.12);
    border-radius: 999px;
    background: #fffaf2;
}

.cart-qty button,
.cart-qty input {
    width: 100%;
    height: 32px;
    min-width: 0;
    border: 0;
    color: #4e4036;
    background: transparent;
    font: inherit;
    text-align: center;
}

.cart-qty button {
    min-width: 30px;
    font-size: 17px;
    cursor: pointer;
    touch-action: manipulation;
}

.cart-qty input {
    font-size: 13px;
    font-weight: 800;
    outline: none;
    appearance: textfield;
}

.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.cart-item-remove {
    display: grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 44px;
    border: 0;
    color: #9a8776;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.cart-item-remove svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 32px 22px;
    border: 1px solid rgba(112, 43, 36, 0.08);
    border-radius: 8px;
    background: #fffdf8;
    text-align: center;
    box-shadow: 0 1px 2px rgba(42, 33, 27, 0.06);
}

.cart-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #8d2d28;
    background: #fff1df;
}

.cart-empty svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-empty strong {
    color: #241c16;
    font-size: 17px;
    line-height: 1.35;
}

.cart-empty p {
    max-width: 280px;
    margin: 0;
    color: #806e60;
    font-size: 14px;
    line-height: 1.65;
}

.cart-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff6e8;
    background: #8d2d28;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(141, 45, 40, 0.18);
}

.cart-action-bar {
    position: fixed;
    right: 0;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 82;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 112px;
    gap: 10px;
    align-items: center;
    width: var(--mobile-shell-width);
    max-width: var(--mobile-shell-width);
    min-height: 62px;
    margin: 0 auto;
    padding: 9px 14px;
    border-top: 1px solid rgba(112, 43, 36, 0.1);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 -8px 20px rgba(42, 33, 27, 0.08);
    backdrop-filter: blur(14px);
}

.cart-total {
    min-width: 0;
    text-align: right;
}

.cart-total span {
    display: block;
    color: #8b7969;
    font-size: 12px;
    line-height: 1.2;
}

.cart-total strong {
    display: block;
    overflow: hidden;
    color: #ff3d18;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cart-action-bar button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #f06a22;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 8px 18px rgba(240, 106, 34, 0.2);
}

.cart-action-bar button:disabled {
    color: rgba(255, 246, 232, 0.75);
    background: #c9b9a8;
    box-shadow: none;
    cursor: default;
}

.cart-toast {
    position: fixed;
    right: 50%;
    bottom: calc(144px + env(safe-area-inset-bottom));
    z-index: 96;
    max-width: min(280px, calc(100% - 32px));
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    background: rgba(42, 33, 27, 0.9);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translate(50%, 0);
}

@media (max-width: 380px) {
    .cart-mobile-head {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .cart-item {
        grid-template-columns: 26px 74px minmax(0, 1fr);
        gap: 8px;
    }

    .cart-item-cover {
        width: 74px;
    }

    .cart-item-remove {
        position: absolute;
        top: 4px;
        right: 2px;
    }

    .cart-item-main {
        padding-right: 24px;
    }

    .cart-item-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-action-bar {
        grid-template-columns: auto minmax(0, 1fr) 96px;
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
    }
}

.mall-page,
.mall-detail-page {
    padding-top: 20px;
    padding-bottom: 42px;
}

.mall-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 180px;
    padding: 28px 32px;
    border: 1px solid rgba(117, 47, 39, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(116, 37, 31, 0.95), rgba(151, 84, 46, 0.92)),
        radial-gradient(circle at 84% 20%, rgba(232, 195, 123, 0.24), transparent 28%);
    color: #fff6e8;
    box-shadow: 0 16px 34px rgba(76, 31, 24, 0.12);
}

.mall-hero h1 {
    margin: 5px 0 8px;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 0;
}

.mall-hero p:last-child {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 246, 232, 0.84);
    line-height: 1.8;
}

.mall-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 14px;
    align-items: center;
    margin: 18px 0;
}

.mall-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mall-category-tabs button,
.mall-search button,
.mall-order-form button[type="submit"] {
    height: 38px;
    border: 1px solid rgba(112, 43, 36, 0.18);
    border-radius: 6px;
    color: #5a1e1b;
    background: rgba(255, 251, 243, 0.82);
    font: inherit;
    cursor: pointer;
}

.mall-category-tabs button {
    padding: 0 14px;
}

.mall-category-tabs button.active,
.mall-category-tabs button:hover,
.mall-search button,
.mall-order-form button[type="submit"] {
    border-color: #6f2923;
    color: #fff6e8;
    background: #6f2923;
}

.mall-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 8px;
}

.mall-filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
}

.mall-search input,
.mall-order-form input,
.mall-order-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(112, 43, 36, 0.18);
    border-radius: 6px;
    color: #2a211b;
    background: #fffaf2;
    font: inherit;
    outline: none;
}

.mall-search input {
    height: 38px;
    padding: 0 12px;
}

.mall-sort {
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid rgba(112, 43, 36, 0.18);
    border-radius: 6px;
    color: #2a211b;
    background: #fffaf2;
    font: inherit;
    outline: none;
}

.mall-search input:focus,
.mall-sort:focus,
.mall-order-form input:focus,
.mall-order-form textarea:focus {
    border-color: #b8823a;
    box-shadow: 0 0 0 3px rgba(184, 130, 58, 0.14);
}

.mall-result-row {
    margin: -4px 0 12px;
    color: #8b7969;
    font-size: 13px;
}

.mall-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mall-card {
    display: grid;
    grid-template-rows: 150px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(112, 43, 36, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(76, 31, 24, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mall-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 130, 58, 0.42);
    box-shadow: 0 16px 34px rgba(76, 31, 24, 0.12);
}

.mall-card-cover,
.mall-product-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f4e5ca, #fffaf2);
}

.mall-card-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff6e8;
    background: #9b2e24;
    font-size: 12px;
    line-height: 1.4;
    font-style: normal;
}

.mall-card-badge.is-empty {
    background: rgba(42, 33, 27, 0.72);
}

.mall-card-cover img,
.mall-product-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(112, 43, 36, 0.18);
    border-radius: 50%;
    color: #8d3a2e;
    background: rgba(255, 250, 242, 0.86);
    font-size: 30px;
    font-weight: 700;
}

.mall-card-body {
    display: grid;
    grid-template-rows: auto auto minmax(42px, 1fr) auto;
    gap: 8px;
    padding: 13px;
}

.mall-card-body span {
    width: fit-content;
    max-width: 100%;
    padding: 2px 7px;
    border-radius: 4px;
    color: #8a5a25;
    background: #f2e4c7;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-card-body h2 {
    margin: 0;
    color: #2a211b;
    font-size: 17px;
    line-height: 1.35;
}

.mall-card-body p {
    display: -webkit-box;
    margin: 0;
    color: #6f5a49;
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mall-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mall-card-foot strong,
.mall-price-row strong {
    color: #f06a22;
    font-size: 20px;
}

.mall-card-foot em {
    color: #8b7969;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

.mall-empty {
    grid-column: 1 / -1;
    padding: 34px 18px;
    border: 1px dashed rgba(112, 43, 36, 0.2);
    border-radius: 8px;
    color: #7a6254;
    background: rgba(255, 250, 242, 0.66);
    text-align: center;
}

.mall-detail {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.mall-product-cover {
    min-height: 360px;
    border: 1px solid rgba(112, 43, 36, 0.12);
    border-radius: 8px;
}

.mall-product-info,
.mall-order-box,
.mall-product-detail-card {
    border: 1px solid rgba(112, 43, 36, 0.12);
    border-radius: 8px;
    background: #fffaf2;
    box-shadow: 0 12px 28px rgba(76, 31, 24, 0.08);
}

.mall-product-info {
    padding: 24px;
}

.mall-product-info h1 {
    margin: 4px 0 10px;
    color: #2a211b;
    font-size: 30px;
    line-height: 1.25;
}

.mall-product-summary {
    margin: 0 0 16px;
    color: #6f5a49;
    line-height: 1.8;
}

.mall-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(112, 43, 36, 0.1);
    border-bottom: 1px solid rgba(112, 43, 36, 0.1);
}

.mall-price-row span {
    color: #9a8777;
    text-decoration: line-through;
}

.mall-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mall-meta-row span {
    padding: 5px 9px;
    border-radius: 4px;
    color: #6f3a21;
    background: #f3e5cb;
    font-size: 13px;
}

.mall-product-content {
    color: #4f3f34;
    font-size: 15px;
    line-height: 1.9;
    word-break: break-word;
}

.mall-product-detail-card {
    margin-top: 22px;
    padding: 20px 22px 22px;
}

.mall-product-detail-card .section-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(112, 43, 36, 0.1);
}

.mall-product-detail-card .section-title h2 {
    font-size: 20px;
}

.mall-product-detail-card .mall-product-content {
    padding: 0;
}

.mall-order-box {
    margin-top: 22px;
    padding: 20px 22px 22px;
}

.mall-order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mall-order-form label {
    display: grid;
    gap: 6px;
    color: #5a4639;
    font-size: 14px;
}

.mall-order-form label:nth-of-type(4),
.mall-order-form label:nth-of-type(5),
.mall-order-result {
    grid-column: 1 / -1;
}

.mall-order-form input {
    height: 40px;
    padding: 0 12px;
}

.mall-order-form textarea {
    min-height: 86px;
    padding: 10px 12px;
    resize: vertical;
}

.mall-order-form button[type="submit"] {
    width: 160px;
    font-weight: 700;
}

.mall-order-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mall-order-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 38px;
    border: 1px solid #6f2923;
    border-radius: 6px;
    color: #fff6e8;
    background: #6f2923;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mall-order-actions button[type="button"] {
    border-color: #b8823a;
    color: #5a1e1b;
    background: #f0d29a;
}

.mall-order-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.mall-pay-field {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mall-pay-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.mall-pay-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 112px;
    max-width: 180px;
    padding: 8px 12px;
    border: 1px solid rgba(112, 43, 36, 0.14);
    border-radius: 6px;
    background: #fffaf2;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.mall-pay-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mall-pay-option span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mall-pay-option b {
    color: #2a211b;
    font-size: 14px;
    line-height: 1.2;
}

.mall-pay-option em,
.mall-pay-note,
.mall-pay-tip {
    color: #7a6254;
    font-size: 12px;
    font-style: normal;
}

.mall-pay-option:has(input:checked) {
    border-color: #9b2e24;
    background: #fff1df;
}

.mall-pay-option:has(input:checked) b {
    color: #8d2d28;
}

.mall-pay-option.disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.mall-pay-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    color: #fff6e8;
    background: #9b2e24;
    vertical-align: middle;
}

.mall-order-form button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
}

.mall-qty {
    display: grid;
    grid-template-columns: 38px minmax(0, 88px) 38px;
    width: fit-content;
    border: 1px solid rgba(112, 43, 36, 0.18);
    border-radius: 6px;
    overflow: hidden;
    background: #fffaf2;
}

.mall-qty input {
    height: 38px;
    padding: 0 6px;
    border: 0;
    border-left: 1px solid rgba(112, 43, 36, 0.12);
    border-right: 1px solid rgba(112, 43, 36, 0.12);
    border-radius: 0;
    text-align: center;
    box-shadow: none;
}

.mall-qty-btn {
    width: 38px;
    height: 38px;
    border: 0;
    color: #6f2923;
    background: #f3e5cb;
    font: inherit;
    cursor: pointer;
}

.mall-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 38px;
    border: 1px solid rgba(112, 43, 36, 0.18);
    border-radius: 6px;
    color: #6f2923;
    background: rgba(255, 251, 243, 0.82);
    font-weight: 700;
}

.mall-related {
    margin-top: 24px;
}

.mall-related-grid {
    margin-top: 12px;
}

.mall-order-result {
    min-height: 24px;
    color: #7a6254;
    line-height: 1.7;
}

.mall-order-result.success {
    color: #236b3b;
}

.mall-order-result.error {
    color: #9b2e24;
}

@media (max-width: 980px) {
    .mall-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mall-detail {
        grid-template-columns: 1fr;
    }

    .mall-product-cover {
        min-height: 300px;
    }
}

@media (max-width: 820px) {
    .mall-page,
    .mall-detail-page {
        padding-top: 16px;
    }

    .mall-toolbar {
        grid-template-columns: 1fr;
    }

    .mall-filter-panel {
        grid-template-columns: 1fr;
    }

    .mall-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mall-page,
    .mall-detail-page {
        padding-bottom: 28px;
    }

    .mall-hero {
        align-items: stretch;
        flex-direction: column;
        min-height: auto;
        padding: 22px 18px;
    }

    .mall-hero h1,
    .mall-product-info h1 {
        font-size: 26px;
    }

    .mall-grid {
        grid-template-columns: 1fr;
    }

    .mall-card {
        grid-template-columns: 110px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .mall-card-cover {
        min-height: 132px;
    }

    .mall-product-info,
    .mall-order-box,
    .mall-product-detail-card {
        padding: 18px;
    }

    .mall-order-form {
        grid-template-columns: 1fr;
    }

    .mall-order-form button[type="submit"],
    .mall-back-link,
    .mall-order-actions button {
        width: 100%;
    }

    .mall-pay-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mall-pay-option {
        max-width: none;
        min-width: 0;
    }

    .mall-qty {
        width: 100%;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }
}

/* Mall product purchase page */
.mall-product-mobile-page {
    --mall-buy-width: var(--mobile-shell-width, min(560px, 100%));
    min-width: 0;
    min-height: 100dvh;
    color: #2a211b;
}

.mall-product-mobile-page .mall-detail-page {
    width: var(--mall-buy-width);
    margin: 0 auto;
    padding: 0 8px calc(62px + env(safe-area-inset-bottom));
}

.mall-product-mobile-page .mall-buy-hero,
.mall-product-mobile-page .mall-product-detail-card,
.mall-product-mobile-page .mall-order-box,
.mall-product-mobile-page .mall-related {
    overflow: hidden;
    border: 1px solid rgba(48, 72, 64, 0.09);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 10px 24px rgba(42, 33, 27, 0.07);
}

.mall-product-mobile-page .mall-buy-hero {
    display: grid;
    margin-top: 0;
}

.mall-product-mobile-page .mall-product-cover {
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.mall-product-mobile-page .mall-buy-cover {
    aspect-ratio: 1 / 1.08;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 246, 232, 0.35), transparent 30%),
        linear-gradient(135deg, #4d1c19, #13172b);
}

.mall-product-mobile-page .mall-buy-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-product-mobile-page .mall-product-info {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mall-product-mobile-page .mall-buy-info {
    display: grid;
    gap: 9px;
    padding: 14px 12px 16px;
}

.mall-product-mobile-page .mall-buy-info h1 {
    margin: 0;
    color: #1f1712;
    font-size: 19px;
    line-height: 1.35;
}

.mall-product-mobile-page .mall-product-summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #9b6a38;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mall-product-mobile-page .mall-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px;
    padding: 0;
    border: 0;
}

.mall-product-mobile-page .mall-price-row > span:first-child {
    color: #7a6254;
    font-size: 13px;
    text-decoration: none;
}

.mall-product-mobile-page .mall-price-row strong {
    margin-left: 0;
    color: #ff5a1f;
    font-size: 26px;
    line-height: 1.1;
}

.mall-product-mobile-page .mall-price-row strong em {
    color: #ff5a1f;
    font-size: 13px;
    font-style: normal;
}

.mall-product-mobile-page .mall-price-row span:not(:first-child) {
    color: #a58c78;
    font-size: 13px;
}

.mall-product-mobile-page .mall-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.mall-product-mobile-page .mall-meta-row span {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: #7a6254;
    background: transparent;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-product-mobile-page .mall-buy-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin: 6px 0;
    padding: 0 12px;
    border: 1px solid rgba(122, 98, 84, 0.18);
    border-radius: 8px;
    color: #2a211b;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mall-product-mobile-page .mall-buy-spec-row svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke: #8d2d28;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.mall-product-mobile-page .mall-product-detail-card,
.mall-product-mobile-page .mall-order-box {
    margin-top: 10px;
    padding: 0;
}

.mall-product-mobile-page .mall-buy-guide-body {
    display: grid;
    gap: 8px;
    padding: 12px;
    color: #6c5748;
    font-size: 13px;
    line-height: 1.45;
}

.mall-product-mobile-page .mall-buy-guide-body span:first-child {
    color: #1f2b28;
    font-size: 14px;
    font-weight: 700;
}

.mall-product-mobile-page .mall-buy-section-title,
.mall-product-mobile-page .mall-order-box .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 0 12px;
    border-bottom: 1px solid rgba(48, 72, 64, 0.08);
    text-align: center;
}

.mall-product-mobile-page .mall-order-box .section-title {
    justify-content: flex-start;
    text-align: left;
}

.mall-product-mobile-page .mall-product-detail-card .section-title h2,
.mall-product-mobile-page .mall-order-box .section-title h2 {
    margin: 0;
    color: #1f2b28;
    font-size: 16px;
    line-height: 1.25;
}

.mall-product-mobile-page .mall-order-box .section-title p {
    margin: 4px 0 0;
    color: #8a7a69;
    font-size: 12px;
    line-height: 1.45;
}

.mall-product-mobile-page .mall-product-content {
    padding: 12px;
    color: #4f3f34;
    font-size: 15px;
    line-height: 1.85;
}

.mall-product-mobile-page .mall-order-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
}

.mall-product-mobile-page .mall-order-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #5a4639;
    font-size: 14px;
    font-weight: 700;
}

.mall-product-mobile-page .mall-order-form label:nth-of-type(4),
.mall-product-mobile-page .mall-order-form label:nth-of-type(5),
.mall-product-mobile-page .mall-order-result {
    grid-column: auto;
}

.mall-product-mobile-page .mall-order-form input,
.mall-product-mobile-page .mall-order-form textarea {
    min-width: 0;
    border-color: rgba(112, 43, 36, 0.14);
    border-radius: 8px;
    background: #fffaf2;
    font-size: 16px;
}

.mall-product-mobile-page .mall-order-form input {
    height: 44px;
}

.mall-product-mobile-page .mall-order-form textarea {
    min-height: 78px;
}

.mall-product-mobile-page .mall-qty {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    border-radius: 8px;
}

.mall-product-mobile-page .mall-qty input,
.mall-product-mobile-page .mall-qty-btn {
    height: 44px;
}

.mall-product-mobile-page .mall-qty-btn {
    width: 44px;
    font-size: 18px;
    font-weight: 800;
}

.mall-product-mobile-page .mall-pay-field {
    grid-column: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mall-product-mobile-page .mall-pay-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 0;
}

.mall-product-mobile-page .mall-pay-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 56px;
    padding: 10px 12px 10px 10px;
    border: 1px solid rgba(48, 72, 64, 0.08);
    border-radius: 12px;
    background: #fffdfa;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.mall-product-mobile-page .mall-pay-option:has(input:checked) {
    border-color: rgba(240, 106, 34, 0.34);
    background: #fff8ee;
    box-shadow: none;
}

.mall-product-mobile-page .mall-pay-option .mall-pay-option-text {
    gap: 4px;
}

.mall-product-mobile-page .mall-pay-option .mall-pay-option-text b {
    color: #3f2824;
    font-size: 14px;
    line-height: 1.25;
}

.mall-product-mobile-page .mall-pay-option .mall-pay-option-text em {
    overflow: hidden;
    color: #9a806c;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-product-mobile-page .mall-pay-option-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #f06a22;
    background: #fff1df;
    box-shadow: inset 0 0 0 1px rgba(141, 45, 40, 0.06);
}

.mall-product-mobile-page .mall-pay-option-mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mall-product-mobile-page .mall-pay-option:has(input:checked) .mall-pay-option-mark {
    color: #fff;
    background: #f06a22;
    box-shadow: none;
}

.mall-product-mobile-page .mall-pay-option i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(122, 98, 84, 0.24);
    border-radius: 999px;
    background: #fff;
    justify-self: end;
}

.mall-product-mobile-page .mall-pay-option i::after {
    content: "";
    width: 8px;
    height: 5px;
    border: 0;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    transform: rotate(-45deg) translate(1px, -1px);
}

.mall-product-mobile-page .mall-pay-option:has(input:checked) i {
    border-color: #f06a22;
    background: #f06a22;
}

.mall-product-mobile-page .mall-pay-option:has(input:checked) i::after {
    border-color: #fff;
    background: transparent;
}

.mall-product-mobile-page .mall-order-result {
    min-height: 22px;
    font-size: 14px;
}

.mall-product-mobile-page .mall-checkout-address,
.mall-product-mobile-page .mall-checkout-product,
.mall-product-mobile-page .mall-checkout-options {
    width: 100%;
    border: 1px solid rgba(48, 72, 64, 0.08);
    border-radius: 12px;
    background: #fffdfa;
}

.mall-product-mobile-page .mall-checkout-address {
    appearance: none;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mall-product-mobile-page .mall-checkout-address-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ff6a1f;
    background: #fff1df;
}

.mall-product-mobile-page .mall-checkout-address-icon svg,
.mall-product-mobile-page .mall-checkout-chevron {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.mall-product-mobile-page .mall-checkout-address-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.mall-product-mobile-page .mall-checkout-address-main b {
    overflow: hidden;
    color: #1f1712;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-product-mobile-page .mall-checkout-address-main em {
    overflow: hidden;
    color: #7a6254;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-product-mobile-page .mall-checkout-address.is-empty .mall-checkout-address-main b {
    color: #8d2d28;
}

.mall-product-mobile-page .mall-checkout-product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.mall-product-mobile-page .mall-checkout-product-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    color: #fff6e8;
    background: linear-gradient(135deg, #4d1c19, #13172b);
    font-weight: 800;
}

.mall-product-mobile-page .mall-checkout-product-cover {
    width: 76px;
    height: 76px;
}

.mall-product-mobile-page .mall-checkout-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-product-mobile-page .mall-checkout-product-side {
    display: grid;
    justify-items: start;
    gap: 10px;
    min-width: 0;
}

.mall-product-mobile-page .mall-checkout-product-side b {
    color: #ff5a1f;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mall-product-mobile-page .mall-checkout-qty {
    width: 112px;
    grid-template-columns: 28px minmax(40px, 1fr) 28px;
    border: 0;
    background: #f8f3ed;
    border-radius: 6px;
    overflow: hidden;
}

.mall-product-mobile-page .mall-checkout-qty input,
.mall-product-mobile-page .mall-checkout-qty .mall-qty-btn {
    height: 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mall-product-mobile-page .mall-checkout-qty input {
    min-width: 40px;
    padding: 0 4px;
    font-size: 14px;
}

.mall-product-mobile-page .mall-checkout-qty .mall-qty-btn {
    width: 28px;
    color: #7a6254;
    font-size: 15px;
}

.mall-product-mobile-page .mall-checkout-options {
    display: grid;
    gap: 8px;
    padding: 8px 0 0;
    border: 0;
    border-top: 0;
    background: transparent;
    box-shadow: none;
}

.mall-product-mobile-page .mall-sheet-layer {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    align-items: end;
    justify-items: stretch;
}

.mall-product-mobile-page .mall-sheet-layer[hidden] {
    display: none;
}

.mall-product-mobile-page .mall-sheet-mask {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(18, 18, 18, 0.5);
    cursor: pointer;
}

.mall-product-mobile-page .mall-bottom-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: min(88dvh, 760px);
    margin: 0 auto;
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px 16px 0 0;
    background: #fffdfa;
    box-shadow: 0 -16px 40px rgba(42, 33, 27, 0.18);
    transform: translateY(100%);
    transition: transform 0.24s ease;
}

.mall-product-mobile-page .mall-sheet-layer.is-open .mall-bottom-sheet {
    transform: translateY(0);
}

.mall-product-mobile-page .mall-payment-sheet {
    max-height: min(90dvh, 760px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mall-product-mobile-page .mall-payment-sheet::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.mall-product-mobile-page .mall-sheet-grip {
    width: 42px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: rgba(48, 72, 64, 0.18);
}

.mall-product-mobile-page .mall-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mall-product-mobile-page .mall-sheet-head h2 {
    margin: 0;
    color: #1f1712;
    font-size: 18px;
    line-height: 1.25;
}

.mall-product-mobile-page .mall-sheet-head p {
    margin: 4px 0 0;
    color: #8a7a69;
    font-size: 12px;
    line-height: 1.45;
}

.mall-product-mobile-page .mall-sheet-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    color: #6b5a4d;
    background: transparent;
    box-shadow: none;
}

.mall-product-mobile-page .mall-sheet-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

.mall-product-mobile-page .mall-sheet-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mall-product-mobile-page .mall-sheet-cover {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #4d1c19, #13172b);
}

.mall-product-mobile-page .mall-sheet-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-product-mobile-page .mall-sheet-product strong {
    display: block;
    margin-top: 4px;
    color: #ff5a1f;
    font-size: 18px;
}

.mall-product-mobile-page .mall-sheet-product p {
    margin: 4px 0 0;
    color: #8a7a69;
    font-size: 12px;
}

.mall-product-mobile-page .mall-sheet-form {
    padding: 0;
}

.mall-product-mobile-page .mall-payment-form {
    gap: 10px;
}

.mall-product-mobile-page .mall-payment-form .mall-sheet-primary {
    margin-top: 4px;
}

.mall-product-mobile-page .mall-payment-preview {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(48, 72, 64, 0.08);
    border-radius: 12px;
    background: #fff8ed;
}

.mall-product-mobile-page .mall-payment-preview-cover {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 10px;
    color: #fff6e8;
    background: linear-gradient(135deg, #4d1c19, #13172b);
    font-weight: 800;
}

.mall-product-mobile-page .mall-payment-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-product-mobile-page .mall-payment-preview-main {
    min-width: 0;
}

.mall-product-mobile-page .mall-payment-preview-main strong {
    display: block;
    overflow: hidden;
    color: #1f1712;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-product-mobile-page .mall-payment-preview-main p {
    margin: 5px 0 0;
    color: #8a7a69;
    font-size: 12px;
    line-height: 1.35;
}

.mall-product-mobile-page .mall-payment-preview-price {
    color: #ff5a1f;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.mall-product-mobile-page .mall-payment-form {
    padding: 0;
}

.mall-product-mobile-page .mall-payment-form input,
.mall-product-mobile-page .mall-payment-form textarea {
    background: #fffdfa;
}

.mall-product-mobile-page .mall-sheet-primary,
.mall-product-mobile-page .mall-sheet-secondary {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.mall-product-mobile-page .mall-sheet-primary {
    color: #fff6e8;
    background: #f06a22;
}

.mall-product-mobile-page .mall-sheet-secondary {
    color: #2a211b;
    background: #f5eee2;
}

.mall-product-mobile-page .mall-payment-summary {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(48, 72, 64, 0.08);
    border-radius: 12px;
    background: #fffaf2;
}

.mall-product-mobile-page .mall-payment-summary[hidden],
.mall-product-mobile-page .mall-payment-action[hidden] {
    display: none;
}

.mall-product-mobile-page .mall-payment-amount {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.mall-product-mobile-page .mall-payment-amount span {
    color: #8a7a69;
    font-size: 13px;
}

.mall-product-mobile-page .mall-payment-amount strong {
    color: #ff5a1f;
    font-size: 22px;
}

.mall-product-mobile-page .mall-payment-summary dl {
    margin: 0;
    display: grid;
    gap: 8px;
}

.mall-product-mobile-page .mall-payment-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.mall-product-mobile-page .mall-payment-summary dt {
    color: #8a7a69;
}

.mall-product-mobile-page .mall-payment-summary dd {
    margin: 0;
    color: #2a211b;
    text-align: right;
}

.mall-product-mobile-page .mall-payment-tip {
    margin: 0;
    color: #8a7a69;
    font-size: 12px;
    line-height: 1.55;
}

body.is-mall-sheet-open {
    overflow: hidden;
}

.mall-product-mobile-page .mall-related {
    margin-top: 10px;
    padding: 12px;
}

.mall-product-mobile-page .mall-related .section-title {
    margin-bottom: 10px;
}

.mall-product-mobile-page .mall-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.mall-product-mobile-page .mall-related .mall-card {
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 6px;
    min-height: 100%;
    box-shadow: none;
}

.mall-product-mobile-page .mall-related .mall-card-cover {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.mall-product-mobile-page .mall-related .mall-card-body {
    display: grid;
    grid-template-rows: auto auto minmax(34px, auto) auto;
    gap: 6px;
    padding: 9px;
}

.mall-product-mobile-page .mall-related .mall-card-body h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mall-product-mobile-page .mall-related .mall-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #6f5a49;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mall-product-mobile-page .mall-related .mall-card-foot {
    align-self: end;
}

.mall-product-mobile-page .mall-related .mall-card-foot em {
    display: inline;
    color: #8b7969;
    font-size: 11px;
}

.mall-product-mobile-page .mall-buy-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 48px 48px 48px minmax(84px, 0.96fr) minmax(92px, 1.04fr);
    width: var(--mall-buy-width);
    min-height: calc(62px + env(safe-area-inset-bottom));
    margin: 0 auto;
    padding: 0 0 env(safe-area-inset-bottom);
    overflow: hidden;
    border-top: 1px solid rgba(48, 72, 64, 0.1);
    background: #fffdfa;
    box-shadow: none;
}

.mall-product-mobile-page .mall-buy-bar-link,
.mall-product-mobile-page .mall-buy-cart,
.mall-product-mobile-page .mall-buy-submit {
    appearance: none;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 62px;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mall-product-mobile-page .mall-buy-bar-link {
    align-content: center;
    gap: 3px;
    color: #2a211b;
    font-size: 12px;
}

.mall-product-mobile-page .mall-buy-bar-link + .mall-buy-bar-link,
.mall-product-mobile-page .mall-buy-cart {
    border-left: 1px solid rgba(48, 72, 64, 0.07);
}

.mall-product-mobile-page .mall-buy-bar-link svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.mall-product-mobile-page .mall-buy-favorite.is-favorited {
    color: #8d2d28;
}

.mall-product-mobile-page .mall-buy-favorite.is-favorited svg {
    fill: currentColor;
}

.mall-product-mobile-page .mall-buy-cart {
    color: #8d2d28;
    background: #fff4e0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.mall-product-mobile-page .mall-buy-submit {
    color: #fff6e8;
    background: linear-gradient(135deg, #8d2d28, #b77d32);
    font-size: 15px;
    font-weight: 900;
}

.mall-product-mobile-page .mall-buy-cart:disabled,
.mall-product-mobile-page .mall-buy-submit:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.mall-product-mobile-page .mall-buy-bar-link:active,
.mall-product-mobile-page .mall-buy-cart:active,
.mall-product-mobile-page .mall-buy-submit:active {
    filter: brightness(0.96);
}

.mall-product-mobile-page .mall-buy-toast {
    position: fixed;
    right: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 80;
    width: max-content;
    max-width: min(340px, calc(100% - 48px));
    padding: 9px 12px;
    border-radius: 999px;
    color: #fff6e8;
    background: rgba(42, 33, 27, 0.86);
    box-shadow: 0 10px 24px rgba(42, 33, 27, 0.2);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mall-product-mobile-page .mall-buy-toast.is-visible {
    opacity: 1;
    transform: translate(50%, 0);
}

@media (min-width: 720px) {
    .mall-product-mobile-page {
        --mall-buy-width: var(--mobile-shell-width);
    }

    .mall-product-mobile-page .mall-detail-page {
        padding-top: 22px;
    }

    .mall-product-mobile-page .mall-buy-hero {
        grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .mall-product-mobile-page .mall-buy-cover {
        aspect-ratio: auto;
        min-height: 360px;
    }

    .mall-product-mobile-page .mall-buy-info {
        align-content: center;
        padding: 24px;
    }

    .mall-product-mobile-page .mall-buy-info h1 {
        font-size: 26px;
    }

    .mall-product-mobile-page .mall-order-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px;
    }

    .mall-product-mobile-page .mall-payment-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .mall-product-mobile-page .mall-payment-form > * {
        grid-column: 1 / -1;
    }

    .mall-product-mobile-page .mall-order-form label:nth-of-type(4),
    .mall-product-mobile-page .mall-order-form label:nth-of-type(5),
    .mall-product-mobile-page .mall-pay-field,
    .mall-product-mobile-page .mall-order-result {
        grid-column: 1 / -1;
    }

    .mall-product-mobile-page .mall-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mall-product-mobile-page .mall-bottom-sheet {
        width: min(100%, 760px);
        border-radius: 16px 16px 0 0;
    }

}

@media (min-width: 921px) {
    .mall-product-mobile-page {
        --mall-buy-width: var(--mobile-shell-width);
    }

    .mall-product-mobile-page .mall-detail-page {
        padding-top: 34px;
        padding-right: 0;
        padding-left: 0;
    }

    .mall-product-mobile-page .mall-buy-cover {
        min-height: 420px;
    }

    .mall-product-mobile-page .mall-buy-info h1 {
        font-size: 30px;
    }

    .mall-product-mobile-page .mall-product-detail-card,
    .mall-product-mobile-page .mall-order-box,
    .mall-product-mobile-page .mall-related {
        margin-top: 14px;
    }

    .mall-product-mobile-page .mall-product-content {
        padding: 18px;
    }

    .mall-product-mobile-page .mall-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mall-product-mobile-page .mall-buy-bar {
        grid-template-columns: 78px 78px 78px minmax(150px, 0.96fr) minmax(160px, 1.04fr);
        min-height: calc(68px + env(safe-area-inset-bottom));
    }

    .mall-product-mobile-page .mall-buy-bar-link,
    .mall-product-mobile-page .mall-buy-cart,
    .mall-product-mobile-page .mall-buy-submit {
        min-height: 68px;
    }
}

@media (min-width: 1200px) {
    .mall-product-mobile-page {
        --mall-buy-width: var(--mobile-shell-width);
    }

    .mall-product-mobile-page .mall-buy-bar {
        width: var(--mall-buy-width);
    }
}

.mall-mobile-shell,
.mall-product-mobile-page .mall-detail-page {
    padding-top: var(--mobile-shell-top-gap);
    padding-bottom: 18px;
}

.mall-mobile-shell {
    padding-top: var(--mobile-shell-top-gap);
}

.mall-mobile-slider,
.mall-mobile-recommend,
.mall-buy-hero,
.mall-detail-card,
.cart-list-card {
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.mall-mobile-recommend,
.mall-products-panel,
.mall-mobile-products {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.mall-floating-actions {
    right: max(14px, calc((100% - var(--mobile-shell-width)) / 2 + 14px));
    bottom: calc(var(--bottom-nav-height) + 18px + env(safe-area-inset-bottom));
    display: grid;
    gap: 10px;
}

.mall-floating-actions button {
    display: grid;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border: 1px solid rgba(58, 58, 58, 0.16);
    border-radius: 50%;
    color: #666;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 10px 24px rgba(60, 39, 24, 0.16);
    place-items: center;
}

.mall-floating-actions svg {
    width: 22px;
    height: 22px;
}

.mall-mobile-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mall-card {
    overflow: hidden;
    border: 1px solid rgba(126, 92, 62, 0.13);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.mall-card-cover {
    aspect-ratio: 1 / 0.86;
}

.mall-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-card-foot strong {
    color: #f06a22;
}

.mall-buy-bar,
.cart-action-bar {
    right: 0;
    left: 0;
    margin: 0 auto;
    border-radius: 0;
}

.mall-buy-favorite.is-active {
    color: var(--color-accent);
}

.mall-checkout-qty,
.cart-qty {
    border-radius: 0;
}

.mall-mobile-page,
.cart-mobile-page,
.mall-product-mobile-page {
    --mall-floating-edge: max(
        var(--mobile-shell-gutter),
        calc((100% - var(--mobile-shell-width)) / 2 + var(--mobile-shell-gutter))
    );
}

.mall-mobile-shell,
.cart-mobile-shell,
.mall-product-mobile-page .mall-detail-page {
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.mall-product-mobile-page .mall-detail-page {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
}

.mall-mobile-page .mall-mobile-shell {
    padding-bottom: 0;
}

.mall-product-mobile-page .mall-detail-page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

/* Product gallery, price compactness, and image preview. */
.mall-product-mobile-page .mall-product-gallery {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.mall-product-mobile-page button.mall-product-cover {
    width: 100%;
    padding: 0;
    border: 0;
    text-align: inherit;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.mall-product-mobile-page .mall-product-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.mall-product-mobile-page .mall-product-thumbs button {
    display: grid;
    place-items: center;
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(48, 72, 64, 0.1);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.mall-product-mobile-page .mall-product-thumbs button.is-active {
    border-color: rgba(240, 106, 34, 0.78);
}

.mall-product-mobile-page .mall-product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-product-mobile-page .mall-price-row {
    justify-content: flex-start;
    gap: 3px;
}

.mall-product-mobile-page .mall-price-row strong {
    margin-left: 0;
}

.mall-product-mobile-page .mall-spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mall-product-mobile-page .mall-spec-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0;
    color: #64615d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mall-product-mobile-page .mall-spec-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mall-product-mobile-page .mall-spec-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(100, 97, 93, 0.32);
    border-radius: 6px;
    background: transparent;
    transition: border-color .18s ease, color .18s ease;
}

.mall-product-mobile-page .mall-spec-chip.is-active span {
    border-color: #f06a22;
    color: #f06a22;
    background: transparent;
}

.mall-product-mobile-page .mall-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.mall-product-mobile-page .mall-image-viewer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mall-product-mobile-page .mall-image-viewer-mask {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
}

.mall-product-mobile-page .mall-image-viewer-panel {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(100%, 760px);
    min-height: 240px;
}

.mall-product-mobile-page .mall-image-viewer-panel img {
    display: block;
    max-width: 100%;
    max-height: min(78dvh, 720px);
    border-radius: 10px;
    object-fit: contain;
}

.mall-product-mobile-page .mall-image-viewer-close,
.mall-product-mobile-page .mall-image-viewer-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.34);
    cursor: pointer;
}

.mall-product-mobile-page .mall-image-viewer-close {
    top: -8px;
    right: -8px;
}

.mall-product-mobile-page .mall-image-viewer-nav.prev {
    left: 4px;
}

.mall-product-mobile-page .mall-image-viewer-nav.next {
    right: 4px;
}

.mall-product-mobile-page .mall-image-viewer-close svg,
.mall-product-mobile-page .mall-image-viewer-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mall-product-mobile-page #mallImageViewerCounter {
    position: absolute;
    right: 50%;
    bottom: -36px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.34);
    font-size: 12px;
    transform: translateX(50%);
}

.mall-floating-actions {
    right: var(--mall-floating-edge);
}

.mall-buy-bar,
.cart-action-bar {
    width: 100%;
    max-width: 100%;
    right: 0;
    left: 0;
    margin-right: auto;
    margin-left: auto;
}

.mall-product-info,
.mall-order-box,
.mall-product-detail-card,
.mall-product-mobile-page .mall-buy-hero,
.mall-product-mobile-page .mall-product-detail-card,
.mall-product-mobile-page .mall-order-box,
.mall-product-mobile-page .mall-related,
.cart-item,
.mall-mobile-slider,
.mall-mobile-recommend,
.mall-products-panel,
.mall-mobile-products,
.mall-card {
    box-shadow: none;
}

.mall-mobile-recommend,
.mall-products-panel,
.mall-mobile-products {
    border-color: transparent;
    background: transparent;
}

.mall-product-info,
.mall-order-box,
.mall-product-detail-card,
.mall-product-mobile-page .mall-buy-hero,
.mall-product-mobile-page .mall-product-detail-card,
.mall-product-mobile-page .mall-order-box,
.mall-product-mobile-page .mall-related {
    background: transparent;
}

/* Product detail final rules. */
.mall-product-mobile-page .mall-detail-page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.mall-product-mobile-page .mall-buy-bar {
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.mall-product-mobile-page .mall-buy-submit {
    border: 0;
    color: #fff;
    background: #f06a22;
}

.mall-product-mobile-page .mall-related-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
}

.mall-product-mobile-page .mall-related .mall-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.mall-product-mobile-page .mall-related .mall-card-cover {
    align-self: stretch;
    width: 96px;
    height: 100%;
    min-height: 96px;
    aspect-ratio: auto;
}

.mall-product-mobile-page .mall-related .mall-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-product-mobile-page .mall-related .mall-card-body {
    min-width: 0;
    min-height: 0;
    padding: 9px 10px;
}

.mall-product-mobile-page .mall-related .mall-card-body h2 {
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}

.mall-product-mobile-page .mall-related .mall-card-body p {
    display: -webkit-box;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.mall-product-mobile-page .mall-related .mall-card-foot {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 6px;
    min-width: 0;
}

.mall-product-mobile-page .mall-related .mall-card-foot strong {
    font-size: 14px;
    line-height: 1.2;
}

.mall-product-mobile-page .mall-related .mall-card-foot em {
    display: inline;
    min-width: 0;
    font-size: 10px;
    white-space: normal;
}

.mall-product-mobile-page .mall-checkout-qty {
    width: 112px;
    grid-template-columns: 28px minmax(40px, 1fr) 28px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
}

.mall-product-mobile-page .mall-checkout-qty input {
    border: 0;
    text-align: center;
}

.mall-product-mobile-page .mall-pay-field {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: none;
}

.mall-product-mobile-page .mall-pay-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.mall-product-mobile-page .mall-payment-form label.mall-pay-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    box-shadow: none;
}

.mall-product-mobile-page .mall-payment-form label.mall-pay-option:has(input:checked) {
    background: transparent;
}

.mall-product-mobile-page .mall-payment-form label.mall-pay-option.disabled {
    opacity: 0.56;
}

.mall-product-mobile-page .mall-payment-form label.mall-pay-option .mall-pay-option-mark,
.mall-product-mobile-page .mall-payment-form label.mall-pay-option:has(input:checked) .mall-pay-option-mark {
    color: #f06a22;
    background: transparent;
    box-shadow: none;
}

.mall-product-mobile-page .mall-payment-form label.mall-pay-option .mall-pay-option-text {
    display: grid;
    gap: 2px;
    color: inherit;
}

.mall-product-mobile-page .mall-payment-form label.mall-pay-option .mall-pay-option-text b {
    color: #2a211b;
    font-size: 14px;
}

.mall-product-mobile-page .mall-payment-form label.mall-pay-option .mall-pay-option-text em {
    display: block;
    color: #9a806c;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
}

.mall-product-mobile-page .mall-order-result:not(:empty) {
    min-height: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(155, 46, 36, 0.07);
    font-size: 13px;
    line-height: 1.5;
}

.mall-product-mobile-page .mall-order-result:empty {
    min-height: 0;
    padding: 0;
}

.mall-product-mobile-page .mall-payment-form button.mall-sheet-primary {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: #f06a22;
    box-shadow: none;
}

.mall-product-mobile-page .mall-payment-form button.mall-sheet-primary:disabled {
    opacity: 0.72;
    cursor: wait;
}

.mall-product-mobile-page .mall-payment-action {
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    border: 0 !important;
    outline: 0;
    color: #f06a22;
    background: transparent !important;
    box-shadow: none !important;
}

.mall-product-mobile-page .mall-payment-action:active {
    background: rgba(240, 106, 34, 0.08);
}

@media (min-width: 720px) {
    .mall-product-mobile-page .mall-buy-bar {
        width: var(--mall-buy-width);
        max-width: var(--mall-buy-width);
    }

    .mall-product-mobile-page .mall-payment-sheet {
        width: min(var(--mobile-shell-width), 760px);
    }

    .mall-product-mobile-page .mall-payment-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .mall-product-mobile-page .mall-checkout-address,
    .mall-product-mobile-page .mall-order-result,
    .mall-product-mobile-page .mall-payment-form button.mall-sheet-primary {
        grid-column: 1 / -1;
    }

    .mall-product-mobile-page .mall-pay-field {
        align-self: stretch;
    }

    .mall-product-mobile-page .mall-checkout-product,
    .mall-product-mobile-page .mall-checkout-options,
    .mall-product-mobile-page .mall-pay-field {
        min-height: 100%;
        border: 0;
        border-top: 0;
        box-shadow: none;
    }
}


