
:root {
    --primary-pink: #F3D6DD;
    --soft-pink: #FFF6F8;
    --pale-pink: #FFFBFC;
    --dark-pink: #DFA0AE;
    --deep-pink: #B86B7F;
    --rose-text: #65545A;

    --blue: #5db3ff;
    --green: #8cd98c;
    --light-bg: #FAFAFB;
    --panel: rgba(255, 255, 255, .9);
    --text-main: #33343A;
    --muted: #888A92;
    --line: #E8DDE1;
    --line-strong: #DCCBD1;

    --shadow: 0 14px 36px rgba(90, 65, 75, 0.10);
    --shadow-hover: 0 18px 44px rgba(90, 65, 75, 0.16);
    --card-shadow: 0 8px 24px rgba(45, 45, 55, 0.06);

    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --checkout-table-sticky-top: 0px;
    --page-max-width: 1220px;
    --page-side-padding: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 12% 0%, rgba(243, 214, 221, .28), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(255, 246, 248, .55), transparent 24%),
    linear-gradient(180deg, #fff 0%, #FAFAFB 46%, #fff 100%);
    color: var(--text-main);
    line-height: 1.6;
}

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px var(--page-side-padding) 10px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(246, 220, 228, .86);
    box-shadow: 0 10px 30px rgba(80, 45, 58, .05);
    backdrop-filter: blur(14px);
}

.top-bar {
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px minmax(360px, 1fr) minmax(0, auto);
    align-items: center;
    gap: 16px;
}

.logo {
    width: 154px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}

.logo img {
    width: 146px;
    max-height: 60px;
    height: auto;
    display: block;
    object-fit: contain;
    transform: translateX(10px);
    filter: drop-shadow(0 6px 12px rgba(237, 127, 159, .16));
}

.search-box {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-sort {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.header-sort-box {
    justify-content: flex-end;
    gap: 6px;
    font-size: 13px;
}

.header-sort-box select {
    min-width: 138px;
    height: 38px;
    padding: 0 32px 0 12px;
    font-size: 13px;
    background-position: right 13px center;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 204px 0 24px;
    border: 2px solid var(--primary-pink);
    border-radius: 999px;
    outline: none;
    color: var(--text-main);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 22px rgba(237, 127, 159, .07);
    transition: .22s ease;
}

.search-box input::placeholder {
    color: #c2a4ad;
}

.search-box input:focus {
    border-color: var(--dark-pink);
    box-shadow: 0 0 0 5px rgba(255, 214, 224, .52), 0 10px 24px rgba(237, 127, 159, .10);
}

.search-btn {
    position: absolute;
    right: 103px;
    top: 5px;
    height: calc(100% - 10px);
    border: none;
    width: 92px;
    min-width: 92px;
    padding: 0 14px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 800;
    color: #7b4e5a;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    transition: 0.3s;
    white-space: nowrap;
}

.remove-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: calc(100% - 10px);
    width: 92px;
    min-width: 92px;
    padding: 0 14px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    background: #fff;
    color: var(--rose-text);
    font-weight: 800;
    transition: .18s ease;
}

.remove-search-btn:hover {
    color: var(--deep-pink);
    border-color: var(--dark-pink);
    background: var(--soft-pink);
}

.search-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 5px 15px rgba(255, 171, 189, 0.35);
}

.top-links {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 247, 250, .72);
}

.top-links a {
    color: #777;
    font-size: 14px;
    transition: .2s;
    position: relative;
}

.top-links a:hover,
.top-links a.active {
    color: var(--deep-pink);
}

.mobile-category-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    background: #fff;
    color: var(--deep-pink);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.mobile-category-toggle-icon {
    font-size: 17px;
    line-height: 1;
}

.mobile-category-toggle:hover,
.mobile-category-toggle:focus-visible {
    outline: none;
    border-color: var(--dark-pink);
    background: var(--soft-pink);
    box-shadow: 0 0 0 3px rgba(243, 214, 221, .5);
}

.account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 112px;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.account-dropdown form {
    padding: 6px;
    border: 1px solid rgba(246, 220, 228, .95);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(80, 45, 58, .14);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.account-logout-btn {
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #777;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

.account-logout-btn:hover,
.account-logout-btn:focus-visible {
    outline: none;
    color: var(--deep-pink);
    background: var(--soft-pink);
}

.logout-label-zh {
    display: none;
}

html:lang(zh) .logout-label-en {
    display: none;
}

html:lang(zh) .logout-label-zh {
    display: inline;
}

.top-cart-badge {
    position: absolute;
    right: -11px;
    top: -11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--deep-pink);
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
}

/* Main */
.container {
    width: calc(100% - (var(--page-side-padding) * 2));
    max-width: var(--page-max-width);
    margin: 8px auto 70px;
    padding: 0;
}

.section-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: #2f2f36;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 0;
    padding-left: 0;
}

.section-title::before {
    content: '';
    width: 8px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--deep-pink), var(--primary-pink));
    box-shadow: 0 0 0 6px rgba(255, 214, 224, .35);
}

/* Home toolbar */
.toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 9px 12px;
    background: linear-gradient(135deg, rgba(255, 214, 224, .85), rgba(255, 240, 245, .76));
    border: 1px solid rgba(241, 193, 207, .78);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.category-toolbar {
    position: relative;
    z-index: 900;
    overflow: visible;
    backdrop-filter: blur(12px);
}

.category-toolbar .sort-box {
    display: none;
}

.category-picker {
    position: relative;
    z-index: 101;
    overflow: visible;
}

.category-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
    min-height: 36px;
    padding: 6px 16px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .54);
    cursor: pointer;
    font-weight: 800;
    color: var(--rose-text);
    user-select: none;
    transition: .2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: #fff;
    color: var(--deep-pink);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(237, 127, 159, .11);
}

.nav-item:hover {
    z-index: 10020;
}

.dropdown {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    min-width: 250px;
    padding: 10px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: .22s ease;
    z-index: 9999;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-row {
    position: relative;
}

.dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.dropdown a:hover {
    background: var(--soft-pink);
    color: var(--deep-pink);
}

.menu-row.has-children > a::after {
    content: '›';
    color: #c48a9a;
    font-size: 18px;
    line-height: 1;
}

.submenu {
    position: absolute;
    left: calc(100% + 8px);
    top: -10px;
    min-width: 250px;
    padding: 10px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: .18s ease;
    z-index: 10000;
}

.menu-row:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-text);
    white-space: nowrap;
    font-weight: 700;
}

.sort-box select {
    min-width: 135px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 36px 9px 14px;
    outline: none;
    color: var(--text-main);

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2365545A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
    background-size: 12px 8px;
}

/* Grouped products */
.product-groups {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.category-group {
    padding: 18px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(246, 220, 228, .72);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
}

.group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 0 4px 14px;
    border-bottom: 1px solid var(--line);
}

.group-title-btn {
    border: 0;
    background: transparent;
    color: var(--deep-pink);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    padding: 4px 0;
    transition: .2s;
}

.group-title-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--deep-pink);
    box-shadow: 0 0 0 6px rgba(255, 214, 224, .58);
}

.group-title-btn::after {
    content: 'Filter';
    margin-left: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--soft-pink);
    color: #c48a9a;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-4px);
    transition: .2s;
}

.group-title-btn:hover {
    transform: translateX(2px);
}

.group-title-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.group-count {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft-pink);
    color: #b07b8a;
    font-size: 13px;
    font-weight: 700;
}

/* Product cards */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: .24s ease;
    border: 1px solid rgba(255, 214, 224, 0.68);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 84px;
    background: linear-gradient(180deg, rgba(255, 214, 224, .25), transparent);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line-strong);
}

.product-label {
    display: none;
}

.quick-view-btn {
    display: none;
}

.product-card:hover .quick-view-btn {
    display: none;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ccc;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.product-img.can-preview {
    cursor: pointer;
}

.product-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .55;
}

.product-img.has-image::before {
    opacity: 0;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-thumb.is-broken {
    display: none;
}

.product-price-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3bdca;
    color: #80515e;
    box-shadow: 0 3px 8px rgba(181, 99, 123, .16);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    pointer-events: none;
}

.preview-text {
    position: relative;
    z-index: 1;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    color: #d08397;
    font-weight: 900;
}

.product-title {
    --product-title-line-height: 22px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #3f3f46;
    height: calc(var(--product-title-line-height) * 3);
    min-height: calc(var(--product-title-line-height) * 3);
    max-height: calc(var(--product-title-line-height) * 3);
    line-height: var(--product-title-line-height);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    cursor: default;
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
}

.product-code {
    white-space: nowrap;
}

.product-remark {
    overflow-wrap: anywhere;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--muted);
}

.price {
    color: var(--deep-pink);
    font-size: 17px;
    font-weight: 900;
}

.add-cart-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: #7b4e5a;
    border: none;
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin-top: auto;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: 0.3s;
    letter-spacing: 0.2px;
}

.cart-icon {
    font-size: 16px;
    line-height: 1;
}

.add-cart-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 5px 15px rgba(255, 171, 189, 0.4);
    transform: translateY(-1px);
}

.empty-state {
    grid-column: 1 / -1;
    min-height: 245px;
    border: 1px dashed var(--line-strong);
    border-radius: 24px;
    background: rgba(255, 255, 255, .66);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
}

.empty-state strong {
    color: var(--deep-pink);
}

/* Big filter page - unified pink version */
.filter-page-mode .section-title {
    display: none;
}

.filter-page {
    animation: fadeUp .22s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9a7a84;
    margin-bottom: 12px;
    font-size: 14px;
}

.breadcrumb button {
    border: 0;
    background: transparent;
    color: var(--deep-pink);
    font-weight: 800;
}

.breadcrumb button:hover {
    color: #7b4e5a;
    text-decoration: underline;
}

.breadcrumb-path.active {
    color: var(--rose-text);
}

.breadcrumb span {
    color: #d2b7c0;
}

.big-filter-card {
    padding: 10px 12px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255, 214, 224, .34), rgba(255, 255, 255, .88)),
    #fff;
    border: 1px solid rgba(246, 220, 228, .86);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 0 5px;
}

.filter-row + .filter-row {
    border-top: 1px solid rgba(246, 220, 228, .95);
    padding-top: 8px;
}

.filter-pill-btn {
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid rgba(241, 193, 207, .95);
    background: rgba(255, 255, 255, .86);
    color: var(--rose-text);
    border-radius: 999px;
    font-weight: 700;
    transition: .16s;
    box-shadow: 0 4px 12px rgba(237, 127, 159, .04);
}

.filter-pill-btn:hover {
    border-color: var(--dark-pink);
    color: var(--deep-pink);
    transform: translateY(-1px);
}

.filter-pill-btn.active {
    background: linear-gradient(135deg, var(--deep-pink), var(--dark-pink));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(237, 127, 159, .22);
}

.result-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
    padding: 12px 14px;
    color: var(--rose-text);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(246, 220, 228, .80);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.result-toolbar > span:first-child {
    margin-right: 4px;
    font-weight: 800;
}

.sort-tab {
    border: 1px solid rgba(241, 193, 207, .95);
    background: #fff;
    padding: 7px 16px;
    color: var(--rose-text);
    border-radius: 999px;
    font-weight: 700;
    transition: .16s;
}

.sort-tab + .sort-tab {
    margin-left: 0;
}

.sort-tab:hover {
    border-color: var(--dark-pink);
    color: var(--deep-pink);
}

.sort-tab.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: #7b4e5a;
    box-shadow: 0 6px 16px rgba(237, 127, 159, .13);
}

/* Filter result cards use same language as home, only slightly denser */
.filter-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-result-grid .product-card {
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--card-shadow);
}

.filter-result-grid .product-card:hover {
    transform: translateY(-7px);
}

.filter-result-grid .product-img {
    height: auto;
    min-height: 220px;
    border-radius: 16px;
    margin-bottom: 14px;
}

.filter-result-grid .product-title {
    --product-title-line-height: 23px;
    text-align: left;
    padding: 0 4px;
    font-size: 16px;
    height: calc(var(--product-title-line-height) * 3);
    min-height: calc(var(--product-title-line-height) * 3);
    max-height: calc(var(--product-title-line-height) * 3);
}

.filter-result-grid .product-meta {
    padding: 0 4px;
}

.filter-result-grid .add-cart-btn {
    padding: 10px 14px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 28px;
    row-gap: 14px;
    margin-top: 32px;
    color: var(--rose-text);
    font-weight: 800;
}

.page-total-size {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-size-group,
.page-number-group,
.page-jump {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-number-group {
    gap: 9px;
}

.page-total-size {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    background: #fff;
    color: var(--rose-text);
    font-weight: 900;
    transition: .16s;
    padding: 0 14px;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: #7b4e5a;
    box-shadow: 0 6px 16px rgba(237, 127, 159, .13);
}

.page-btn:disabled {
    cursor: default;
    opacity: .45;
    box-shadow: none;
}

.page-ellipsis {
    color: #b5919c;
    font-weight: 900;
    padding: 0 2px;
}

.page-total {
    color: #8a6f78;
    white-space: nowrap;
}

.page-jump input {
    width: 64px;
    height: 38px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    text-align: center;
    outline: none;
    color: var(--text-main);
    font-weight: 900;
}

.page-size-group select {
    height: 38px;
    min-width: 86px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    padding: 0 12px;
    outline: none;
    font-weight: 900;
}

/* Floating buttons */
.floating-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 900;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .13);
    transition: .25s;
    border: 0;
    position: relative;
}

.float-home,
.float-home-page {
    background: linear-gradient(135deg, #9be19b, #62c562);
}

.float-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.float-back-top {
    background: linear-gradient(135deg, #f0b7c5, #c98195);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.float-back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-cart {
    background: linear-gradient(135deg, #70bfff, #3498ff);
}

.float-btn:hover {
    transform: scale(1.08) translateY(-2px);
}

.float-badge {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 999px;
    background: var(--deep-pink);
    color: white;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

#toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(63, 63, 70, .96);
    color: white;
    padding: 12px 25px;
    border-radius: 999px;
    display: none;
    z-index: 2000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

#toast.show {
    display: block;
    animation: toastFadeIn .3s;
}

.site-disclaimer {
    max-width: 1220px;
    margin: 30px auto 26px;
    padding: 0 20px;
    color: #8a7b81;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

html[lang="zh-CN"] .disclaimer-en {
    display: none;
}

html:not([lang="zh-CN"]) .disclaimer-zh {
    display: none;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart drawer */
.mask {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 26, .28);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 1500;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    box-shadow: -12px 0 38px rgba(55, 35, 45, .16);
    transform: translateX(105%);
    transition: .28s ease;
    z-index: 1600;
    display: flex;
    flex-direction: column;
}

body.cart-open .mask {
    opacity: 1;
    pointer-events: auto;
}

body.cart-open .drawer {
    transform: translateX(0);
}

body.cart-open,
body.category-open {
    overflow: hidden;
}

/* Mobile category drawer */
.category-mask {
    position: fixed;
    inset: 0;
    z-index: 1700;
    background: rgba(30, 20, 26, .28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
}

.category-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1800;
    display: flex;
    flex-direction: column;
    width: min(380px, 90vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background: #fff;
    box-shadow: 12px 0 38px rgba(55, 35, 45, .18);
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform .28s ease, visibility 0s linear .28s;
}

body.category-open .category-mask {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

body.category-open .category-drawer {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
}

.category-drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #f4eef0;
    background: linear-gradient(135deg, var(--soft-pink), #fff);
}

.category-drawer-head h3 {
    color: var(--rose-text);
    font-size: 20px;
}

.category-drawer-head .icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 214, 221, .65);
}

.category-drawer-search {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 16px;
    border-bottom: 1px solid #f4eef0;
    background: #fff;
}

.category-drawer-search input {
    width: 100%;
    height: 40px;
    padding: 0 42px 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    color: var(--text-main);
    background: var(--pale-pink);
}

.category-drawer-search input:focus {
    border-color: var(--dark-pink);
    box-shadow: 0 0 0 4px rgba(243, 214, 221, .45);
}

.category-drawer-search > button {
    position: absolute;
    top: 17px;
    right: 21px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #b07b8a;
    font-weight: 900;
}

.mobile-category-tree {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 7px 12px 18px;
    scrollbar-gutter: stable;
}

.mobile-category-node {
    min-width: 0;
}

.mobile-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 4px;
    min-height: 46px;
    padding-left: calc(var(--category-depth, 0) * 16px);
    border-bottom: 1px solid #f7f0f2;
}

.mobile-category-select,
.mobile-category-expand {
    border: 0;
    background: transparent;
    color: #66575d;
}

.mobile-category-select {
    min-width: 0;
    min-height: 40px;
    padding: 7px 10px;
    border-radius: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.mobile-category-select:hover,
.mobile-category-select:focus-visible {
    outline: none;
    background: var(--soft-pink);
    color: var(--deep-pink);
}

.mobile-category-select.active {
    background: var(--primary-pink);
    color: var(--rose-text);
    box-shadow: none;
}

.mobile-category-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
}

.mobile-category-expand:hover,
.mobile-category-expand:focus-visible {
    outline: none;
    background: var(--soft-pink);
    color: var(--deep-pink);
}

.mobile-category-expand span {
    transition: transform .18s ease;
}

.mobile-category-expand[aria-expanded="true"] span {
    transform: rotate(180deg);
}

.mobile-category-children[hidden] {
    display: none;
}

.mobile-category-empty {
    padding: 42px 18px;
    color: var(--muted);
    text-align: center;
}

.site-filing {
    display: block;
    width: fit-content;
    margin: 4px auto 0;
    color: inherit;
    text-decoration: none;
}

.site-filing:hover {
    color: #c45d7b;
    text-decoration: underline;
}

.category-drawer-foot {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #f4eef0;
    background: linear-gradient(135deg, #fff, var(--soft-pink));
}

.category-drawer-foot form {
    min-width: 0;
}

.category-account-link,
.category-account-action {
    color: #77656c;
    font-size: 13px;
    font-weight: 800;
}

.category-account-link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-account-action {
    padding: 5px 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    white-space: nowrap;
}

.category-language-switch {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.category-language-switch .lang {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #8a7a80;
    font-size: 13px;
}

.category-language-switch .lang.active {
    color: var(--deep-pink);
    font-weight: 900;
}

.drawer-head {
    padding: 22px;
    border-bottom: 1px solid #f4eef0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--soft-pink), #fff);
}

.drawer-head h3 {
    font-size: 22px;
    color: var(--rose-text);
}

.icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--deep-pink);
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(237, 127, 159, .12);
}

.cart-list {
    flex: 1;
    overflow: auto;
    padding: 10px 18px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.cart-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #f5edf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 12px rgba(90, 65, 75, 0.06);
}


/* 非卡片 */
/*.cart-list {*/
/*    flex: 1;*/
/*    overflow: auto;*/
/*    padding: 14px 22px;*/
/*}*/

/*.cart-card {*/
/*    display: grid;*/
/*    gap: 8px;*/
/*    padding: 12px 0 18px;*/
/*    margin-bottom: 14px;*/
/*    border-bottom: 1px solid #f5edf0;*/
/*}*/

.cart-layout {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    align-items: stretch;
}

.cart-thumb {
    width: 76px;
    min-height: 80px;
    border-radius: 12px;
    background: #fff0f4;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-pink);
    font-weight: 900;
    font-size: 12px;
    overflow: hidden;
}

.cart-detail {
    min-width: 0;
    display: grid;
    gap: 7px;
    align-content: start;
}

.cart-detail {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 6px;
    align-content: start;
}

.cart-main-text {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow-wrap: anywhere;
}

.cart-name {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.cart-product-remark {
    min-width: 0;
    color: #7f6670;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cart-type-label {
    color: #8a6f78;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.cart-type-select {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--text-main);
    font-size: 13px;
    padding: 0 9px;
}

.cart-type-select.is-empty {
    border-color: #e67a93;
    background: #fff6f8;
}

.cart-type-text {
    min-width: 0;
    min-height: 30px;
    display: flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.cart-name {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.cart-product-remark {
    min-width: 0;
    color: var(--text-main);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cart-type-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.cart-type-label {
    color: #8a6f78;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.cart-type-line select {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--text-main);
    font-size: 13px;
    padding: 0 9px;
}

.cart-type-text {
    min-width: 0;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.cart-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    height: 28px;
    background: #fff;
}

.qty-box button {
    width: 28px;
    height: 28px;
    border: 0;
    background: white;
    color: var(--deep-pink);
    font-weight: 900;
}

.qty-box span {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

.qty-box input {
    width: 48px;
    height: 28px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--text-main);
    outline: none;
    background: #fff;
}

.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button,
.checkout-qty-box input::-webkit-outer-spin-button,
.checkout-qty-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-box input,
.checkout-qty-box input {
    -moz-appearance: textfield;
}

.remove-btn {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #f0dfe5;
    border-radius: 999px;
    background: #fff;
    color: #b07b8a;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: .16s ease;
}

.remove-btn:hover {
    color: #fff;
    border-color: var(--deep-pink);
    background: var(--deep-pink);
    box-shadow: 0 6px 14px rgba(184, 107, 127, .16);
}


.drawer-foot {
    border-top: 1px solid #f4eef0;
    padding: 18px 22px 24px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 900;
}

.total-line strong {
    color: var(--deep-pink);
    font-size: 22px;
}

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.outline-btn, .checkout-btn {
    border-radius: 16px;
    padding: 12px;
    font-weight: 900;
    border: 0;
}

.outline-btn {
    background: white;
    color: var(--deep-pink);
    border: 1px solid var(--line);
}

.checkout-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: #7b4e5a;
}

/* Checkout */
.checkout-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(246, 220, 228, .78);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .76);
    box-shadow: var(--card-shadow);
}

.checkout-eyebrow {
    color: var(--deep-pink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.checkout-head h1 {
    font-size: 26px;
    line-height: 1.2;
    color: var(--text-main);
}

.checkout-summary {
    min-width: 132px;
    padding: 10px 14px;
    border: 1px solid rgba(241, 193, 207, .82);
    border-radius: var(--radius-md);
    background: #fff;
    text-align: center;
}

.checkout-summary span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.checkout-summary strong {
    display: block;
    color: var(--deep-pink);
    font-size: 24px;
    line-height: 1.2;
}

.checkout-table-wrap {
    overflow: auto;
    max-height: calc(100vh - 250px);
    border: 1px solid rgba(246, 220, 228, .78);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--card-shadow);
}

.checkout-table-wrap.is-empty {
    display: none;
}

.checkout-table {
    width: 100%;
    min-width: 1420px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.col-check {
    width: 60px;
}

.col-image {
    width: 88px;
}

.col-collections {
    width: 190px;
}

.col-name {
    width: 100px;
}

.col-image-remark {
    width: 110px;
}

.col-product-type {
    width: 240px;
}

.col-price {
    width: 100px;
}

.col-cart-note {
    width: 200px;
}

.col-qty {
    width: 120px;
}

.col-actions {
    width: 230px;
}

.checkout-table th,
.checkout-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.checkout-table th,
.checkout-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.checkout-table th {
    position: sticky;
    top: var(--checkout-table-sticky-top);
    z-index: 80;
    color: var(--rose-text);
    font-size: 13px;
    font-weight: 900;
    background: #fff7fa;
    background-clip: padding-box;
    box-shadow: none;
    white-space: nowrap;
    text-align: center;
}

.checkout-table td {
    color: var(--text-main);
    font-size: 14px;
}

.checkout-table tbody tr:last-child td {
    border-bottom: 0;
}

.checkout-table td strong {
    display: block;
    font-size: 15px;
    color: #3f3f46;
}

.checkout-table td span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.checkout-collections,
.order-collections {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.checkout-table td.checkout-collections {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
}

.checkout-status-row td {
    padding: 38px 18px;
    color: var(--muted);
    text-align: center;
}

.checkout-status-row td strong {
    display: block;
    color: var(--rose-text);
    font-size: 15px;
}

.checkout-status-row td span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.order-collections {
    width: 150px;
    max-width: 150px;
    word-break: break-all;
    overflow-wrap: normal;
}

.checkout-thumb {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(246, 220, 228, .88);
    border-radius: 12px;
    background-color: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #c2a4ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.checkout-empty {
    display: none;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 36px 20px;
    border: 1px dashed rgba(223, 160, 174, .78);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .72);
    color: var(--muted);
    text-align: center;
}

.checkout-empty.show {
    display: flex;
}

.checkout-empty strong {
    color: var(--text-main);
    font-size: 20px;
}

.checkout-back-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    color: #7b4e5a;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    font-weight: 900;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.show {
    display: flex;
}

.modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 20, 26, .34);
}

.modal-card {
    position: relative;
    width: 720px;
    max-width: 94vw;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(55, 35, 45, .22);
    padding: 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
}

.modal-img {
    height: 260px;
    border-radius: 22px;
    background: #fff0f4;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-pink);
    font-weight: 900;
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #353540;
}

.modal-content p {
    color: var(--muted);
    margin-bottom: 14px;
}

.modal-content .price {
    margin-bottom: 18px;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
}


/* Image Original Preview Modal */
.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(3px);
}

.image-preview-modal.show {
    display: flex;
}

.image-preview-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 70px;
}

.image-preview-frame {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    line-height: 0;
    transform-origin: center center;
    transition: transform .18s ease;
}

.image-preview-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 86vw;
    max-height: calc(100vh - 112px);
    object-fit: contain;
    background: #ffffff;
    pointer-events: none;
}

.image-preview-shield {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
}

.image-preview-close {
    position: fixed;
    right: 28px;
    top: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    z-index: 1810;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, .34);
}

.checkout-check-col {
    width: 64px;
    text-align: center !important;
}

.checkout-row-check,
#checkoutSelectAll {
    width: 18px;
    height: 18px;
    accent-color: var(--deep-pink);
}

.checkout-type-select {
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    color: var(--text-main);
    outline: none;
    font-size: 13px;
}

.checkout-note-input {
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    resize: vertical;
    outline: none;
    color: var(--text-main);
}

.checkout-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    height: 28px;
    background: #fff;
}

.checkout-qty-box button {
    width: 26px;
    height: 28px;
    border: 0;
    background: #fff;
    color: var(--deep-pink);
    font-weight: 900;
    font-size: 13px;
}

.checkout-qty-box input {
    width: 40px;
    height: 28px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--text-main);
    outline: none;
    background: #fff;
}

.checkout-qty-box span {
    min-width: 38px;
    text-align: center;
    font-weight: 900;
}

.checkout-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border: 1px solid rgba(246, 220, 228, .78);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--card-shadow);
}

.checkout-action-bar.is-empty {
    display: none;
}

.checkout-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-text);
    font-weight: 900;
}

.checkout-selected-info {
    color: var(--rose-text);
    font-weight: 800;
}

.checkout-selected-info strong {
    color: var(--deep-pink);
    font-size: 18px;
}

.checkout-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.checkout-small-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    background: #fff;
    color: var(--deep-pink);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: .16s ease;
}

.checkout-small-btn:hover {
    color: #fff;
    background: var(--deep-pink);
    border-color: var(--deep-pink);
    box-shadow: 0 6px 14px rgba(184, 107, 127, .16);
}

.checkout-type-select.is-empty {
    border-color: #e67a93;
    background: #fff6f8;
}

.checkout-left-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.checkout-delete-text {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--deep-pink);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.checkout-delete-text:hover {
    color: #93485d;
    text-decoration: underline;
}

.checkout-thumb {
    cursor: default;
    transition: .18s ease;
}

.checkout-thumb.can-preview {
    cursor: zoom-in;
}

.checkout-thumb.can-preview:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(184, 107, 127, .14);
}

.checkout-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.checkout-row-delete-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(241, 193, 207, .95);
    border-radius: 999px;
    background: #fff;
    color: #b85b72;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: .16s ease;
}

.checkout-row-delete-btn:hover {
    color: #fff;
    background: #b85b72;
    border-color: #b85b72;
    box-shadow: 0 6px 14px rgba(184, 91, 114, .16);
}

/* 登录/注册 */
.auth-page {
    max-width: 460px;
    margin: 32px auto 80px;
}

.auth-card {
    padding: 28px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(246, 220, 228, .86);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.auth-card h2 {
    margin-bottom: 20px;
    color: var(--deep-pink);
    font-size: 24px;
}

.auth-field-row,
.auth-inline-row {
    margin-top: 12px;
}

.auth-inline-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-card label {
    display: block;
    margin: 0 0 6px;
    color: var(--rose-text);
    font-weight: 800;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.auth-card input,
.auth-card select {
    height: 44px;
}

.auth-card textarea {
    min-height: 44px;
    height: 44px;
    padding-top: 10px;
    resize: vertical;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: var(--dark-pink);
    box-shadow: 0 0 0 4px rgba(255, 214, 224, .42);
}

.auth-card button {
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: #7b4e5a;
    font-weight: 900;
}

.account-card [data-account-field][readonly] {
    background: rgba(255, 248, 250, .84);
    color: #6b5960;
    cursor: default;
}

.account-card.is-editing [data-account-field] {
    background: #fff;
    color: var(--text-main);
}

.auth-actions.account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.auth-card .account-actions button {
    width: 100%;
    margin-top: 0;
}

.auth-card .account-actions .outline-btn {
    border: 1px solid rgba(241, 193, 207, .95);
    background: #fff;
    color: var(--rose-text);
}

.auth-card .account-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.auth-msg {
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #fff1f1;
    color: #b64242;
    border: 1px solid #ffd6d6;
}

.auth-link,
.auth-row-links {
    margin-top: 14px;
    color: var(--deep-pink);
    font-weight: 800;
}

.auth-link {
    display: block;
    text-align: center;
}

.auth-row-links {
    display: flex;
    justify-content: space-between;
}

/* 订单页面 */
.orders-page {
    max-width: 1060px;
    margin: 0 auto;
}

.orders-search-card {
    padding: 28px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(246, 220, 228, .86);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.orders-search-card h2 {
    margin-bottom: 8px;
    color: var(--deep-pink);
    font-size: 26px;
}

.orders-search-card p {
    margin-bottom: 18px;
    color: var(--muted);
}

.orders-search-box {
    display: flex;
    gap: 12px;
}

.orders-search-box input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: #fff;
}

.orders-search-box input:focus {
    border-color: var(--dark-pink);
    box-shadow: 0 0 0 4px rgba(255, 214, 224, .46);
}

.orders-search-box > button {
    min-width: 130px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: #7b4e5a;
    font-weight: 900;
}

.order-detail-card {
    padding: 24px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(246, 220, 228, .86);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.order-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.order-detail-head h3 {
    color: var(--text-main);
    font-size: 20px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--soft-pink);
    color: var(--deep-pink);
    font-weight: 800;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.order-meta-grid div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--pale-pink);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-meta-grid span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.order-meta-grid strong {
    color: var(--muted);
    white-space: nowrap;
}

.order-table-wrap {
    overflow-x: auto;
}

.order-table {
    width: 100%;
    min-width: 970px;
    border-collapse: collapse;
    background: #fff;
}

.order-table th,
.order-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.order-table th {
    color: var(--rose-text);
    background: var(--soft-pink);
    font-weight: 900;
}

.order-item-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
}

.order-item-img.is-broken {
    visibility: hidden;
}

.recent-orders-card {
    padding: 22px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(246, 220, 228, .86);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.recent-orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.recent-orders-head h3 {
    color: var(--deep-pink);
    font-size: 20px;
}

.recent-orders-head button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--rose-text);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 800;
}

.recent-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.recent-order-row:last-child {
    border-bottom: none;
}

.recent-order-row strong {
    display: block;
    color: var(--text-main);
    font-size: 15px;
}

.recent-order-row span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.recent-order-row button {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: #7b4e5a;
    font-weight: 900;
    white-space: nowrap;
}

.recent-empty {
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: var(--pale-pink);
    color: var(--muted);
    text-align: center;
}

.recent-tip {
    margin-top: 6px;
    font-size: 13px;
    color: #aaa;
}

/* 我的列表：查询 + 最近订单合并卡片 */
.orders-panel {
    padding: 18px 22px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(246, 220, 228, .86);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.orders-search-row {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.orders-panel .orders-search-box {
    display: flex;
    gap: 12px;
    margin: 0;
}

.orders-panel .orders-search-box input {
    flex: 1;
    height: 44px;
    padding: 0 52px 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: #fff;
}

.order-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.order-search-input-wrap input {
    width: 100%;
}

.order-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(196, 106, 136, .35);
    border-radius: 50%;
    background: #fff;
    color: var(--deep-pink);
    transform: translateY(-50%);
    line-height: 1;
    font-size: 18px;
    font-weight: 900;
}

.order-search-clear.show {
    display: inline-flex;
}

.order-search-clear:hover {
    background: var(--soft-pink);
    border-color: rgba(196, 106, 136, .65);
}

.orders-panel .orders-search-box input:focus {
    border-color: var(--dark-pink);
    box-shadow: 0 0 0 4px rgba(255, 214, 224, .46);
}

.orders-panel .orders-search-box > button {
    min-width: 120px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: #7b4e5a;
    font-weight: 900;
}

.recent-orders-section {
    padding-top: 14px;
}

.orders-panel .recent-orders-head {
    margin-bottom: 10px;
}

.orders-panel .recent-orders-head h3 {
    font-size: 18px;
}

.order-status-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cancel-order-btn,
.edit-order-btn,
.copy-order-btn {
    border: 1px solid rgba(184, 91, 114, .32);
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    color: #b85b72;
    font-size: 13px;
    font-weight: 900;
    transition: .16s ease;
}

.cancel-order-btn:hover,
.edit-order-btn:hover,
.copy-order-btn:hover {
    color: #fff;
    background: #b85b72;
    border-color: #b85b72;
    box-shadow: 0 6px 14px rgba(184, 91, 114, .16);
}


.checkout-table col.col-image-remark {
    width: 120px;
}

/* 结算页：数量栏居中 */
.checkout-table td:nth-child(7),
.checkout-table th:nth-child(7) {
    text-align: center;
}

.checkout-table td:nth-child(8),
.checkout-table th:nth-child(8) {
    text-align: center;
}

.checkout-table td:nth-child(9),
.checkout-table th:nth-child(9) {
    text-align: center;
}

.checkout-price {
    color: var(--deep-pink) !important;
    font-weight: 900;
    white-space: nowrap;
}

.checkout-qty-box {
    justify-content: center;
    margin: 0 auto;
}

/* 结算页：表格整体更紧凑 */
.checkout-table th {
    height: 48px;
    padding: 12px 14px;
    vertical-align: middle;
}

.checkout-table td {
    padding: 14px 14px;
    vertical-align: middle;
}

/* 图片缩略图稍微统一尺寸 */
.checkout-thumb {
    width: 58px;
    height: 58px;
    margin: 0 auto;
}

/* 结算页：Title / Item No. 内容居中 */
.checkout-table td:nth-child(3),
.checkout-table td:nth-child(5) {
    text-align: center;
    vertical-align: middle;
}

/* 产品类型下拉框垂直居中 */
.checkout-type-select {
    height: 34px;
}

/* 数量栏彻底居中 */
.checkout-table td:nth-child(7),
.checkout-table th:nth-child(7) {
    text-align: center;
}

.checkout-table td:nth-child(8),
.checkout-table th:nth-child(8) {
    text-align: center;
}

.checkout-table td:nth-child(9),
.checkout-table th:nth-child(9) {
    text-align: center;
}

.checkout-qty-box {
    justify-content: center;
    margin: 0 auto;
}

/* 备注栏输入框高度统一 */
.checkout-note-input {
    min-height: 42px;
    height: 42px;
    resize: vertical;
}

/* 操作按钮区域居中 */
.checkout-row-actions {
    justify-content: center;
    align-items: center;
}

/* 结算页：操作按钮优化 */
.checkout-small-btn,
.checkout-row-delete-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-small-btn {
    background: #fff;
    color: var(--rose-text);
    border: 1px solid rgba(196, 106, 136, .35);
}

.checkout-small-btn:hover {
    color: var(--rose-text);
    background: rgba(255, 239, 244, .9);
    border-color: rgba(196, 106, 136, .65);
}

.checkout-row-delete-btn {
    background: #fff;
    color: #b35b73;
    border: 1px solid rgba(196, 106, 136, .35);
}

.checkout-row-delete-btn:hover {
    background: #fff1f4;
    border-color: rgba(196, 106, 136, .7);
    color: #9f405d;
}
/* 结算页：底部操作栏优化 */
.checkout-action-bar {
    padding: 16px 18px;
    align-items: center;
}

.checkout-selected-info {
    font-size: 15px;
    font-weight: 700;
}

.checkout-actions .outline-btn,
.checkout-actions .checkout-btn {
    height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 800;
}


/* 我的列表页：整体卡片缩紧 */
.orders-panel,
.order-detail-card {
    padding: 20px 24px;
}

/* 查询栏更紧凑 */
.orders-search-row {
    margin-bottom: 12px;
}

.orders-search-box {
    gap: 12px;
}

.orders-search-box input {
    height: 42px;
}

.orders-search-box > button {
    height: 44px;
    padding: 0 22px;
}

/* 最近订单区域压缩 */
.recent-orders-section {
    margin-top: 12px;
}

.recent-orders-head {
    margin-bottom: 8px;
}

.recent-orders-head h3 {
    font-size: 16px;
}

/* 最近订单列表：订单多时内部滚动，不把页面撑很长 */
#recentOrdersList {
    max-height: 230px;
    overflow-y: auto;
    padding-right: 4px;
}

/* 单条订单缩紧 */
.recent-order-row {
    padding: 12px 0;
    min-height: 54px;
}

.recent-order-row strong {
    font-size: 14px;
}

.recent-order-row span {
    margin-top: 4px;
    font-size: 12px;
}

.recent-order-row button {
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
}
/* 订单详情：标题区缩紧 */
.order-detail-head {
    margin-bottom: 14px;
}

.order-detail-head h3 {
    font-size: 18px;
}

/* 订单状态按钮更轻巧 */
.order-status-actions {
    gap: 8px;
}

.edit-order-btn,
.cancel-order-btn,
.copy-order-btn,
.order-status {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
}

/* 订单信息三块压缩 */
.order-meta-grid {
    gap: 10px;
    margin-bottom: 14px;
}

.order-meta-grid > div {
    min-height: 44px;
    padding: 10px 14px;
}

/* 订单明细表格压缩 */
.order-table th {
    padding: 12px 14px;
}

.order-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

/* 订单详情里的小图缩小一点 */
.order-item-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}
/* 订单详情表格：图片、数量、单价居中 */
.order-table th:nth-child(2),
.order-table td:nth-child(2),
.order-table th:nth-child(5),
.order-table td:nth-child(5),
.order-table th:nth-child(6),
.order-table td:nth-child(6) {
    text-align: center;
}

.order-table th:first-child,
.order-table td:first-child {
    width: 150px;
    max-width: 150px;
    white-space: normal;
}

/* 我的列表页：订单列表拉长 */
#recentOrdersList {
    max-height: none;
    overflow: visible;
}

/* 每条订单作为独立折叠块 */
.recent-order-item {
    border-bottom: 1px solid rgba(246, 220, 228, .88);
}

.recent-order-item:last-child {
    border-bottom: none;
}

.recent-order-row {
    padding: 12px 0;
    min-height: 54px;
}

/* 展开详情区域 */
.recent-order-detail {
    padding: 4px 0 18px;
}

/* 嵌入列表里的订单卡，比原详情卡更紧凑 */
.embedded-order-card {
    margin: 8px 0 0;
    padding: 18px 20px;
    border-radius: 20px;
    box-shadow: none;
    background: rgba(255, 255, 255, .72);
}

.embedded-order-card .order-detail-head {
    margin-bottom: 12px;
}

.embedded-order-card .order-meta-grid {
    margin-bottom: 12px;
}

.embedded-order-card .order-table th,
.embedded-order-card .order-table td {
    padding: 10px 12px;
}

/* 订单列表分页 */
.order-list-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 0 4px;
    color: #7f6d75;
    font-size: 13px;
}

.order-list-pagination button {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(196, 106, 136, .25);
    background: #fff;
    color: var(--rose-text);
    font-weight: 800;
    cursor: pointer;
}

.order-list-pagination button:hover:not(:disabled) {
    background: rgba(255, 239, 244, .95);
    border-color: rgba(196, 106, 136, .5);
}

.order-list-pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.order-list-pagination span {
    font-weight: 800;
    color: #51404a;
}

.order-list-pagination em {
    font-style: normal;
    color: #9a8b91;
}

/* 下面旧的单独详情区不用占位 */
.orders-result:empty {
    display: none;
}

/* 我的列表页：内嵌订单详情卡进一步缩紧 */
.embedded-order-card {
    padding: 14px 16px;
    border-radius: 18px;
}

.embedded-order-card .order-detail-head {
    margin-bottom: 10px;
}

.embedded-order-card .order-detail-head h3 {
    font-size: 18px;
    line-height: 1.2;
}

.embedded-order-card .order-status-actions {
    gap: 8px;
}

.embedded-order-card .edit-order-btn,
.embedded-order-card .cancel-order-btn,
.embedded-order-card .copy-order-btn,
.embedded-order-card .order-status {
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
}

.embedded-order-card .order-meta-grid {
    gap: 8px;
    margin-bottom: 10px;
}

.embedded-order-card .order-meta-grid > div {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 14px;
}

.embedded-order-card .order-meta-grid strong {
    font-size: 14px;
}

.embedded-order-card .order-table th {
    padding: 9px 12px;
    height: 38px;
}

.embedded-order-card .order-table td {
    padding: 9px 12px;
    height: 58px;
    vertical-align: middle;
}

.embedded-order-card .order-item-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.embedded-order-card .order-table th:nth-child(2),
.embedded-order-card .order-table td:nth-child(2),
.embedded-order-card .order-table th:nth-child(5),
.embedded-order-card .order-table td:nth-child(5),
.embedded-order-card .order-table th:nth-child(6),
.embedded-order-card .order-table td:nth-child(6) {
    text-align: center;
}

.embedded-order-card .order-table th:first-child,
.embedded-order-card .order-table td:first-child {
    width: 135px;
    max-width: 135px;
}

/* 我的列表页：分页和每页条数 */
.order-list-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0 4px;
    color: #7f6d75;
    font-size: 13px;
}

.order-page-size,
.order-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-page-size select {
    height: 34px;
    min-width: 72px;
    padding: 0 28px 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(196, 106, 136, .25);
    background: #fff;
    color: #51404a;
    font-weight: 800;
    outline: none;
}

.order-page-size select:focus {
    border-color: rgba(196, 106, 136, .6);
}

.order-page-actions button {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(196, 106, 136, .25);
    background: #fff;
    color: var(--rose-text);
    font-weight: 800;
    cursor: pointer;
}

.order-page-actions button:hover:not(:disabled) {
    background: rgba(255, 239, 244, .95);
    border-color: rgba(196, 106, 136, .5);
}

.order-page-actions button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.order-page-actions span {
    font-weight: 800;
    color: #51404a;
}

.order-page-actions em {
    font-style: normal;
    color: #9a8b91;
}

/* 我的列表页：订单状态胶囊垂直居中 */
.embedded-order-card .order-status-actions {
    display: flex;
    align-items: center;
}

.embedded-order-card .order-status,
.embedded-order-card .edit-order-btn,
.embedded-order-card .cancel-order-btn,
.embedded-order-card .copy-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.auth-tip {
    color: #9a8b91;
    font-size: 12px;
    font-weight: 500;
}

.auth-divider {
    margin: 14px 0 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(246, 220, 228, .9);
    color: #b76f86;
    font-weight: 800;
    font-size: 13px;
}

.auth-help {
    margin: 8px 0 12px;
    color: #9a8b91;
    font-size: 12px;
    line-height: 1.6;
}

.security-question-box {
    padding: 10px 12px;
    margin: 8px 0 10px;
    border: 1px solid rgba(246, 220, 228, .9);
    border-radius: 14px;
    background: rgba(255, 247, 249, .78);
}

.security-question-text {
    margin-top: 6px;
    color: #51404a;
    font-weight: 800;
    line-height: 1.5;
}

/* 图片防拖拽/防误选中：前端基础保护 */
.product-img,
.product-thumb,
.cart-thumb,
.checkout-thumb,
.order-item-img,
.image-preview-modal,
.image-preview-stage,
.image-preview-frame,
.image-preview-shield,
.image-preview-stage img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
}

.product-thumb {
    pointer-events: none;
}
/* 结算页：订单表格缩略图改成正常展示，不裁切、不圆角 */
.checkout-thumb {
    border-radius: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    box-shadow: none;
}
/* 右侧列表抽屉缩略图也改成正常展示 */
.cart-thumb {
    border-radius: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    box-shadow: none;
}
/* Responsive */
@media (max-width: 1180px) {
    .grid,
    .filter-result-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    :root {
        --checkout-table-sticky-top: 0px;
        --page-side-padding: 18px;
    }

    header {
        padding: 12px var(--page-side-padding);
    }

    .grid,
    .filter-result-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .top-bar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .logo {
        width: 148px;
        height: 60px;
    }

    .logo img {
        width: 140px;
        max-height: 65px;
    }

    .top-links {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .header-search-sort {
        grid-template-columns: minmax(240px, 1fr) auto;
    }

    .header-sort-box {
        width: auto;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 18px;
    }

    .category-picker {
        width: 100%;
    }

    .nav-item {
        flex: 1;
        text-align: center;
        min-width: 170px;
    }

    .sort-box {
        width: 100%;
        justify-content: space-between;
    }

    .sort-box select {
        flex: 1;
    }

    .header-sort-box {
        width: auto;
        justify-content: flex-end;
    }

    .header-sort-box select {
        flex: 0 0 auto;
    }

    .checkout-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-summary {
        width: 100%;
    }

    .modal-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .grid,
    .filter-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .order-meta-grid {
        grid-template-columns: 1fr;
    }

    .order-meta-grid span,
    .order-meta-grid strong {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    :root {
        --checkout-table-sticky-top: 0px;
        --page-side-padding: 14px;
    }

    .container {
        margin-top: 10px;
        padding: 0;
    }

    .grid, .filter-result-grid {
        grid-template-columns: 1fr;
    }

    .floating-menu {
        right: 18px;
        bottom: 18px;
    }

    .modal-img {
        height: 220px;
    }

    .search-btn {
        width: 82px;
        min-width: 82px;
        right: 93px;
        padding: 0 10px;
    }

    .remove-search-btn {
        right: 5px;
        width: 82px;
        min-width: 82px;
        padding: 0 10px;
    }

    .search-box input {
        padding-right: 184px;
    }

    .header-search-sort {
        grid-template-columns: 1fr;
    }

    .header-sort-box {
        width: 100%;
        justify-content: flex-end;
    }

    .auth-inline-row {
        grid-template-columns: 1fr;
    }

    .filter-row {
        gap: 7px;
    }

    .filter-pill-btn {
        padding: 6px 11px;
    }

    .big-filter-card {
        padding: 6px 8px;
        margin-bottom: 12px;
        border-radius: 20px;
    }

    .result-toolbar {
        border-radius: 18px;
        margin: 10px 0 14px;
        padding: 10px 14px;
    }
}

@media (max-width: 520px) {
    .image-preview-stage {
        padding: 54px 16px 72px;
    }

    .image-preview-stage img {
        max-width: 96vw;
        max-height: 82vh;
    }

    .image-preview-close {
        right: 16px;
        top: 16px;
    }
}

@media (max-width: 520px) {
    .cart-list {
        padding: 12px 16px;
    }

    .cart-layout {
        grid-template-columns: 82px 1fr;
        gap: 12px;
    }

    .cart-thumb {
        width: 76px;
        min-height: 108px;
    }

    .cart-row {
        grid-template-columns: 64px 1fr;
        gap: 8px;
    }

    .cart-line {
        grid-template-columns: auto 1fr;
    }

    .remove-btn {
        justify-self: end;
        grid-column: 2;
    }

}

@media (max-width: 720px) {
    header {
        padding: 7px var(--page-side-padding) 8px;
    }

    .top-bar {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-areas:
            "logo search"
            "links links";
        gap: 8px 10px;
    }

    .shop-page .top-bar {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-areas:
            "logo search"
            "sort links";
        gap: 8px 10px;
    }

    .logo {
        grid-area: logo;
        width: 120px;
        height: 48px;
    }

    .logo img {
        width: 114px;
        max-height: 48px;
        transform: translateX(4px);
    }

    .header-search-sort {
        grid-area: search;
        min-width: 0;
        display: block;
    }

    .shop-page .header-search-sort {
        display: contents;
    }

    .search-box {
        grid-area: search;
    }

    .search-box input {
        height: 40px;
        padding-right: 132px;
        padding-left: 14px;
        font-size: 12px;
    }

    .search-btn {
        right: 69px;
        top: 4px;
        width: 58px;
        min-width: 58px;
        height: calc(100% - 8px);
        padding: 0 5px;
        font-size: 12px;
    }

    .remove-search-btn {
        right: 4px;
        top: 4px;
        width: 61px;
        min-width: 61px;
        height: calc(100% - 8px);
        padding: 0 5px;
        font-size: 12px;
    }

    body:not(.shop-page) .top-links {
        grid-area: links;
        min-height: 36px;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0 8px;
    }

    body:not(.shop-page) .top-links a,
    body:not(.shop-page) .account-logout-btn {
        font-size: 13px;
    }

    .shop-page .header-sort-box {
        grid-area: sort;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: 5px;
    }

    .shop-page .header-sort-box select {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        height: 36px;
        padding-left: 10px;
        padding-right: 28px;
        background-position: right 10px center;
    }

    .shop-page .top-links {
        grid-area: links;
        min-width: 0;
        min-height: 36px;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .shop-page .top-links .mobile-overflow-link {
        display: none;
    }

    .top-links .mobile-primary-link {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        font-size: 13px;
    }

    .shop-page .mobile-category-toggle {
        display: inline-flex;
        margin-left: 0;
    }

    .shop-page .category-toolbar,
    .shop-page .filter-page > .breadcrumb,
    .shop-page .filter-page > .big-filter-card,
    .shop-page .filter-page > .result-toolbar {
        display: none;
    }

    .shop-page .container {
        margin-top: 8px;
    }

    .top-cart-badge {
        top: -5px;
    }

    .product-price-badge {
        right: 3px;
        bottom: 3px;
        width: 38px;
        height: 38px;
        font-size: 11px;
    }

    .float-home {
        font-size: 28px;
        padding: 0;
    }

    .mobile-category-toggle-icon {
        transform: translate(1px, -1px);
    }

    .float-home-icon {
        width: 100%;
        height: 100%;
        transform: translateY(-1px);
    }

    .drawer {
        height: 100vh;
        height: -webkit-fill-available;
        height: 100dvh;
        max-height: 100dvh;
    }

    .cart-list {
        min-height: 0;
        padding-bottom: 16px;
        overscroll-behavior: contain;
    }

    .drawer-foot {
        flex: 0 0 auto;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
        background: #fff;
    }

    .drawer-actions .outline-btn,
    .drawer-actions .checkout-btn {
        font-size: 14px;
        line-height: 1.2;
    }

    body.orders-page-body .order-detail-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    body.orders-page-body .order-detail-head h3 {
        width: 100%;
        overflow-wrap: anywhere;
    }

    body.orders-page-body .order-status-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        width: 100%;
        gap: 8px;
    }

    body.orders-page-body .order-status-actions .edit-order-btn,
    body.orders-page-body .order-status-actions .cancel-order-btn,
    body.orders-page-body .order-status-actions .copy-order-btn,
    body.orders-page-body .order-status-actions .order-status {
        width: 100%;
        height: auto;
        min-height: 34px;
        padding: 6px 8px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    body.orders-page-body .order-list-pagination {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 10px;
    }

    body.orders-page-body .order-page-actions {
        display: grid;
        grid-template-columns: auto auto auto;
        justify-content: end;
        gap: 8px;
    }

    body.orders-page-body .order-page-actions em {
        grid-column: 1 / -1;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .shop-page .mobile-category-toggle {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    .shop-page .mobile-category-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 420px) {
    .shop-page .top-bar {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: 8px;
    }

    .shop-page .header-sort-box > span {
        display: inline;
        font-size: 11px;
    }

    .shop-page .top-links {
        gap: 9px;
        margin-left: 0;
    }

    .shop-page .top-links .mobile-primary-link {
        font-size: 12px;
    }

    .shop-page .search-btn {
        right: 65px;
        width: 54px;
        min-width: 54px;
        padding: 0 4px;
        font-size: 11px;
    }

    .shop-page .remove-search-btn {
        width: 57px;
        min-width: 57px;
        padding: 0 4px;
        font-size: 11px;
    }

    .shop-page .search-box input {
        padding-right: 124px;
    }

    .shop-page .header-sort-box select {
        padding-left: 6px;
        padding-right: 22px;
        font-size: 12px;
        background-position: right 7px center;
    }
}



