* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --shop-accent-start: #667eea;
    --shop-accent-end: #764ba2;
    --shop-accent-shadow: rgba(102,126,234,0.35);
    --shop-accent-shadow-hover: rgba(118,75,162,0.40);
    --shop-accent-outline: rgba(102,126,234,0.52);
    --shop-accent-glow: rgba(118,75,162,0.45);
    --shop-accent-soft-bg: rgba(102,126,234,0.14);
    --shop-accent-soft-border: rgba(102,126,234,0.32);
}

/* 主题A：海军蓝 */
body.theme-ocean {
    --shop-accent-start: #667eea;
    --shop-accent-end: #764ba2;
    --shop-accent-shadow: rgba(102,126,234,0.35);
    --shop-accent-shadow-hover: rgba(118,75,162,0.40);
    --shop-accent-outline: rgba(102,126,234,0.52);
    --shop-accent-glow: rgba(118,75,162,0.45);
    --shop-accent-soft-bg: rgba(102,126,234,0.14);
    --shop-accent-soft-border: rgba(102,126,234,0.32);
}

/* 主题B：翡翠绿 */
body.theme-emerald {
    --shop-accent-start: #0f766e;
    --shop-accent-end: #14b8a6;
    --shop-accent-shadow: rgba(15,118,110,0.34);
    --shop-accent-shadow-hover: rgba(20,184,166,0.40);
    --shop-accent-outline: rgba(15,118,110,0.52);
    --shop-accent-glow: rgba(20,184,166,0.45);
    --shop-accent-soft-bg: rgba(15,118,110,0.14);
    --shop-accent-soft-border: rgba(15,118,110,0.32);
}

/* 主题C：石墨灰蓝 */
body.theme-graphite {
    --shop-accent-start: #374151;
    --shop-accent-end: #4b5563;
    --shop-accent-shadow: rgba(55,65,81,0.34);
    --shop-accent-shadow-hover: rgba(75,85,99,0.40);
    --shop-accent-outline: rgba(55,65,81,0.52);
    --shop-accent-glow: rgba(75,85,99,0.44);
    --shop-accent-soft-bg: rgba(55,65,81,0.14);
    --shop-accent-soft-border: rgba(55,65,81,0.32);
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    touch-action: manipulation; /* ダブルタップズーム防止 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    touch-action: manipulation; /* ダブルタップズーム防止 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body > .container {
    flex: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    z-index: 10001;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--shop-accent-start);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-icon {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 6px rgba(37, 99, 235, 0.18));
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, var(--shop-accent-start) 0%, var(--shop-accent-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 800;
}

/* ナビバー カートボタン */
.navbar-cart-btn {
    font-size: 22px;
    text-decoration: none;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s;
    margin-left: auto;
    margin-right: 8px;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

.navbar-cart-btn:hover {
    background: #f0f4ff;
}
.shop-bottom-cart-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 18px 0 8px;
}
.shop-bottom-viewcart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    margin: 0;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--shop-accent-start), var(--shop-accent-end));
    color: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px var(--shop-accent-shadow);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    flex: 1;
}
.shop-bottom-viewcart-btn:hover {
    opacity: 0.92;
    box-shadow: 0 8px 18px var(--shop-accent-shadow-hover);
}
.shop-bottom-viewcart-btn .cart-badge {
    top: -6px;
    right: -6px;
}
.shop-bottom-contact-btn {
    margin-right: 0;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--shop-accent-start), var(--shop-accent-end));
    color: #fff;
    border: 0;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 6px 16px var(--shop-accent-shadow);
    gap: 6px;
    flex: 1;
    justify-content: center;
}
.shop-bottom-contact-btn .navbar-contact-text {
    font-size: 16px;
}
.shop-bottom-contact-btn .navbar-contact-icon {
    font-size: 16px;
}
.shop-bottom-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 联系店主ボタン */
.navbar-contact-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    padding: 7px 13px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--shop-accent-start), var(--shop-accent-end));
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px var(--shop-accent-shadow);
    margin-right: 4px;
    white-space: nowrap;
}
.navbar-contact-btn:hover {
    opacity: 0.88;
    box-shadow: 0 4px 14px var(--shop-accent-shadow-hover);
}
.navbar-contact-icon { font-size: 15px; }
.navbar-contact-text { font-size: 15px; }

/* 底部按钮组：联系店主与查看购物车统一形状 */
.shop-bottom-cart-entry .shop-bottom-contact-btn {
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 6px 16px var(--shop-accent-shadow);
    gap: 6px;
}
.shop-bottom-cart-entry .shop-bottom-contact-btn:hover {
    opacity: 0.92;
    box-shadow: 0 8px 18px var(--shop-accent-shadow-hover);
}
.shop-bottom-cart-entry .shop-bottom-contact-btn .navbar-contact-text {
    font-size: 16px;
}
.shop-bottom-cart-entry .shop-bottom-contact-btn .navbar-contact-icon {
    font-size: 16px;
}

/* 联系店主モーダル */
#contact-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 20000;
    align-items: center;
    justify-content: center;
}
.contact-modal {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    width: 92%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.contact-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e1e2e;
}
.contact-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
}
.contact-modal-close:hover { background: #f3f4f6; }
.contact-modal-sub {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px;
}
.contact-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8f9ff;
    border: 1.5px solid #e8eaf6;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.contact-item-link:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.15);
}
.contact-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon-wechat  { background: #07c160; }
.contact-icon-line    { background: #06c755; }
.contact-icon-whatsapp { background: #25d366; }
.contact-item-info { flex: 1; }
.contact-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e1e2e;
}
.contact-item-id {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.contact-copy-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.contact-copy-btn:hover { background: #5a6fd6; }
.contact-open-btn {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* WeChat QRコード */
.contact-item-wechat-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.contact-wechat-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.contact-qr-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid #e8eaf6;
}
.contact-qr-label {
    font-size: 12px;
    color: #07c160;
    font-weight: 600;
}
.contact-qr-hint {
    font-size: 14px;
    color: #f59e0b;
    font-weight: 500;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 4px 10px;
    margin-top: 2px;
}



/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

/* 语言切换按钮 */
.nav-language {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.lang-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #cbd5e0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.lang-btn.active {
    background: #2563eb;
    color: white;
}

/* ===== 按钮 ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: #48bb78;
    color: white;
    border: 2px solid #38a169;
}

.btn-success:hover {
    background: #38a169;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-danger {
    background: #f56565;
    color: white;
    border: 2px solid #e53e3e;
}

.btn-danger:hover {
    background: #e53e3e;
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
}

.btn-secondary {
    background: #cbd5e0;
    color: #333;
    border: 2px solid #a0aec0;
}

.btn-secondary:hover {
    background: #a0aec0;
    box-shadow: 0 5px 15px rgba(160, 174, 192, 0.4);
}

.btn-info {
    background: #4299e1;
    color: white;
    border: 2px solid #3182ce;
}

.btn-info:hover {
    background: #3182ce;
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    width: 100%;
    margin: 10px 0;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* ===== 商城首页 ===== */
.shop-page {
    padding-bottom: 20px;
    width: 100%;
    min-height: 60vh;
    background: linear-gradient(180deg, #eef0ff 0%, #f0f2f5 120px);
    border-radius: 0 0 16px 16px;
}

/* ===== 宣传横幅轮播 ===== */
.promo-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    height: 100px;
}

.promo-track {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.promo-slide {
    width: 20%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.promo-slide-1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
}
.promo-slide-2 {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #22d3ee 100%);
}
.promo-slide-3 {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
}
.promo-slide-4 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 60%, #d44000 100%);
}
.promo-slide-5 {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 55%, #c084fc 100%);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.promo-text {
    flex: 1;
}

.promo-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.promo-sub {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.promo-icons {
    flex-shrink: 0;
    opacity: 0.85;
    margin-left: 16px;
}

.promo-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.promo-dot.active {
    background: white;
    transform: scale(1.25);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ===== 快捷入口 ===== */
.quick-entry {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 22px;
    padding: 18px 10px 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px rgba(102,126,234,0.12), 0 1px 3px rgba(0,0,0,0.04);
    width: 100%;
    gap: 4px;
    border: 1px solid rgba(102,126,234,0.10);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, opacity 0.2s;
    flex: 1;
}

.quick-item:active {
    transform: scale(0.88);
}

.quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 7px;
    position: relative;
    overflow: hidden;
}

.quick-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: rgba(255,255,255,0.15);
    border-radius: 16px 16px 60% 60%;
    pointer-events: none;
}

.quick-label {
    font-size: 11px;
    font-weight: 700;
    color: #444;
    text-align: center;
    letter-spacing: 0.5px;
}

.q-purple,
.q-orange,
.q-blue,
.q-teal,
.q-rose,
.q-gray {
    background: linear-gradient(135deg, var(--shop-accent-start), var(--shop-accent-end));
    color: white;
}

/* 选中状态 */
.quick-icon.active {
    outline: 3px solid var(--shop-accent-outline);
    outline-offset: 3px;
    transform: scale(1.12);
    box-shadow: 0 8px 22px var(--shop-accent-glow);
}

/* ===== 分类横向滚动 ===== */
.category-tabs-wrap {
    margin-bottom: 12px;
    padding-bottom: 2px;
    width: 100%;
}

/* 商品列表头 */
.products-section-header {
    padding: 2px 4px 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.products-section-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    flex-shrink: 0;
}

.products-count-label {
    font-size: 17px;
    color: #555;
    font-weight: 800;
    flex-shrink: 0;
}

.products-section-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.products-seller-marquee {
    flex: 0 0 auto;
    width: 310px;
    max-width: 100%;
    margin-left: auto;
    overflow: hidden;
    position: relative;
    height: 24px;
    text-align: center;
}

.products-seller-marquee-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: seller-marquee-vertical 8s ease-in-out infinite;
    will-change: transform;
}

.products-seller-line {
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #ea580c;
    text-shadow: 0 1px 10px rgba(251, 146, 60, 0.22);
    background: linear-gradient(90deg, #f97316 0%, #ea580c 45%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-seller-marquee::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(249,115,22,0) 0%, rgba(249,115,22,0.45) 18%, rgba(225,29,72,0.5) 82%, rgba(225,29,72,0) 100%);
}

@keyframes seller-marquee-vertical {
    0%, 22% {
        transform: translateY(0);
    }
    30%, 52% {
        transform: translateY(-24px);
    }
    60%, 82% {
        transform: translateY(-48px);
    }
    100% {
        transform: translateY(-72px);
    }
}

@media (max-width: 640px) {
    .products-section-header {
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
    }

    .products-count-label {
        width: auto;
        white-space: nowrap;
        font-size: 15px;
    }

    .products-section-tools {
        width: auto;
        flex: 1 1 auto;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .products-seller-marquee {
        width: min(250px, calc(100vw - 120px));
        max-width: calc(100vw - 120px);
        margin-left: auto;
        height: 22px;
    }

    .products-seller-line {
        height: 22px;
        line-height: 22px;
        font-size: 15px;
    }

    .products-seller-marquee-track {
        animation-name: seller-marquee-vertical-mobile;
    }
}

@keyframes seller-marquee-vertical-mobile {
    0%, 22% {
        transform: translateY(0);
    }
    30%, 52% {
        transform: translateY(-22px);
    }
    60%, 82% {
        transform: translateY(-44px);
    }
    100% {
        transform: translateY(-66px);
    }
}

/* 标签页 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 2px;
}

.tab-link {
    padding: 6px 12px;
    background: #e0e7ff;
    color: #1e40af;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-link:hover {
    background: #c7d2fe;
    color: #1e3a8a;
}

.tab-link.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 6px;
    padding: 0 8px;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    align-items: stretch;
    height: auto;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.product-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

@media (min-width: 768px) {
    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
}

/* 图片轮播容器 */
.product-images {
    position: relative;
    width: 40%;
    flex-shrink: 0;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: none;
    background: #f5f5f5;
    cursor: pointer;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--shop-accent-soft-bg);
    color: var(--shop-accent-start);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    border: 1px solid var(--shop-accent-soft-border);
    box-shadow: 0 2px 6px var(--shop-accent-shadow);
}
.product-badge-condition {
    background: var(--shop-accent-soft-bg);
    color: var(--shop-accent-start);
    border: 1px solid var(--shop-accent-soft-border);
    box-shadow: 0 2px 6px var(--shop-accent-shadow);
}

/* 人気No.1 バッジ */
.popular-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 14px;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.55);
    letter-spacing: 0.5px;
    transform-origin: center;
    animation: popular-breath 1.4s ease-in-out infinite;
}

@keyframes popular-breath {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.55);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.88);
    }
}

/* 仅此一台 バッジ */
.stock-one-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b35 100%);
    color: #fff;
    font-size: 8.6px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 14px;
    z-index: 4;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.55);
    animation: stock-one-flash 1.4s ease-in-out infinite;
}

@keyframes stock-one-flash {
    0%, 100% { transform: translateX(-50%) scale(1);    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.55); }
    50%       { transform: translateX(-50%) scale(1.07); box-shadow: 0 4px 16px rgba(255, 59, 48, 0.85); }
}

/* 人気No.1と仅此一台が同時にある場合は位置をずらさない（それぞれ独立した位置） */
.popular-badge ~ .stock-one-badge {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.product-position-note {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 4px;
    max-width: calc(100% - 16px);
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--shop-accent-soft-bg);
    border: 1px solid var(--shop-accent-soft-border);
    color: var(--shop-accent-start);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-shadow: 0 6px 14px var(--shop-accent-shadow);
    backdrop-filter: blur(4px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.stock-one-badge ~ .product-position-note {
    bottom: 32px;
}

.product-card-popular {
    outline: 2.5px solid #f59e0b;
    outline-offset: -2px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

/* 图片放大弹窗 */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10200;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-direction: column;
    box-sizing: border-box;
    contain: layout;
}

.image-modal.active {
    display: flex;
}

.image-modal .modal-content {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 32px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 100;
    transition: all 0.3s;
}

.modal-prev {
    left: 15px;
}

.modal-next {
    right: 15px;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.image-modal .close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 101;
}

.modal-meta {
    width: min(760px, calc(100% - 48px));
    max-width: 100%;
    margin: 2px auto 0;
    padding: 0 8px;
}

.modal-title {
    color: #fff;
    text-align: center;
    width: 100%;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    padding: 0;
}

.image-modal .caption {
    color: rgba(255,255,255,0.75);
    text-align: center;
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    margin-top: 2px;
    padding: 0;
}

.modal-position-note {
    width: 100%;
    text-align: center !important;
    color: rgba(255,255,255,0.86) !important;
    font-size: 14px !important;
    font-weight: 700;
    margin-top: 2px;
}

/* 缩略图轨道 */
.modal-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    max-width: 700px;
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.modal-thumbnail:hover {
    opacity: 0.8;
}

.modal-thumbnail.active {
    border-color: #2563eb;
    opacity: 1;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.image-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.image-count {
    font-weight: 600;
}

.product-info {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-info h3 {
    margin: 0 0 6px 0;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-info .description {
    color: #888;
    font-size: 13px;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: pre-wrap;
    word-break: break-all;
}

.product-info .price {
    font-size: 24px;
    color: #e84040;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: 0.2px;
}

.price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 8px 0;
}

.price-row-original,
.price-row-sale {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-wrap .price {
    margin: 0;
}

.price-label-original {
    font-size: 10px;
    color: #bbb;
    font-weight: 600;
    white-space: nowrap;
    min-width: 26px;
}

.price-label-sale {
    font-size: 10px;
    color: #e84040;
    font-weight: 700;
    white-space: nowrap;
    min-width: 26px;
}

.price-original {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 500;
    white-space: nowrap;
}

.price-unit {
    font-size: 11px;
    font-weight: 500;
    color: #999;
}

.product-actions {
    display: flex;
    gap: 5px;
    width: 100%;
    margin-top: auto;
    align-items: stretch;
}

.product-info .btn {
    height: 34px;
    font-size: 11px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 1;
    white-space: nowrap;
}

.btn-primary {
    flex: 1;
}

.btn-share {
    background: #f0fdf4;
    color: #16a34a;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex: 1;
}

.btn-share:active {
    transform: scale(0.92);
    background: #dcfce7;
}

.btn-share span:first-child {
    font-size: 14px;
}

.share-text {
    display: none;
}

/* 详情按钮 */
.btn-detail,
.btn-buynow,
.btn-addcart {
    background: rgba(15, 76, 129, 0.08);
    color: var(--shop-accent-start);
    border: 1.5px solid var(--shop-accent-outline);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-detail:active,
.btn-buynow:active,
.btn-addcart:active {
    background: var(--shop-accent-outline);
    transform: scale(0.96);
}

.btn-buynow {
    flex: 1;
}

.btn-addcart {
    padding: 0;
    flex: 0 0 40px;
    min-width: 40px;
}

.btn-addcart svg {
    width: 17px;
    height: 17px;
}

/* 商品详情弹窗 */
.detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10100;
    align-items: flex-end;
    justify-content: center;
}

.detail-modal.active {
    display: flex;
}

.detail-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.detail-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,0.35);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
}

/* ── カルーセル ── */
.detail-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 20px 20px 0 0;
}

.detail-carousel-track {
    display: flex;
    transition: transform 0.35s ease;
}

.detail-slide {
    min-width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.detail-carousel-placeholder {
    min-width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: #f3f4f6;
    color: #9ca3af;
}

.detail-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.detail-carousel-prev { left: 10px; }
.detail-carousel-next { right: 10px; }

.detail-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.detail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.detail-dot.active {
    background: white;
    transform: scale(1.3);
}

.detail-carousel-counter {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 5;
}

/* ── 商品情報 ── */
.detail-body {
    padding: 16px 20px 32px;
}

.detail-header {
    margin-bottom: 8px;
}

.detail-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    margin-bottom: 6px;
}

.detail-body h2 {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

.detail-price {
    font-size: 26px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 14px;
}

.detail-price-row-original,
.detail-price-row-sale {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.detail-price-label-original {
    font-size: 12px;
    color: #bbb;
    font-weight: 600;
    min-width: 32px;
}

.detail-price-label-sale {
    font-size: 12px;
    color: #ef4444;
    font-weight: 700;
    min-width: 32px;
}

.detail-price-original {
    font-size: 16px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}

.detail-price-sale {
    font-size: 26px;
    font-weight: 800;
    color: #ef4444;
}

.detail-divider {
    height: 1px;
    background: #f0f0f0;
    margin-bottom: 14px;
}

.detail-desc-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 6px;
}

.detail-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 16px;
}

.detail-service-card {
    background: #f3f7fb;
    border: 1px solid #dde7f0;
    border-radius: 12px;
    padding: 11px 12px;
}

.detail-service-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.65;
    white-space: pre-wrap;
}

.detail-service-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.detail-service-card-merged {
    background: linear-gradient(180deg, #eef6f3 0%, #f8fcfa 100%);
    box-shadow: none;
}

.detail-service-card-merged .detail-desc-label {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    background: none;
    border-radius: 0;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.detail-service-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 3px 0;
}

.detail-service-item-label {
    flex: 0 0 64px;
    font-size: 11px;
    font-weight: 700;
    color: #166534;
}

.detail-service-card-used {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border-color: #fdba74;
}

@media (max-width: 640px) {
    .detail-service-item {
        flex-direction: column;
        gap: 4px;
    }

    .detail-service-item-label {
        flex-basis: auto;
    }
}

.detail-actions {
    display: flex;
    gap: 10px;
}

.detail-btn-share {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #166534;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.detail-btn-share:active {
    transform: scale(0.98);
}

.detail-btn-cart {
    flex: 1;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #2563eb;
    color: #2563eb;
    background: white;
    border-radius: 10px;
    cursor: pointer;
}

.detail-btn-buy {
    flex: 1;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* 分享模态框 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    z-index: 12050;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal-content {
    background: white;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 4px;
}

.share-url-box {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #666;
    word-break: break-all;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border: none;
    border-radius: 12px;
    padding: 16px 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.share-option:active {
    background: #dbeafe;
    transform: scale(0.95);
}

.share-icon {
    font-size: 22px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f4ff;
}

/* ===== 购物车 ===== */
.cart-page h1,
.checkout-page h1,
.admin-page h1 {
    color: #1e293b;
    margin-bottom: 30px;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cart-items,
.order-items,
.customer-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== 后台商品卡片列表 ===== */
.admin-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.admin-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.admin-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    overflow: hidden;
}

.admin-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
}

.admin-img-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.admin-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.admin-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.admin-card-off-label {
    font-size: 10px;
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 7px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #fca5a5;
}

.product-card-inactive {
    opacity: 0.55;
    filter: grayscale(40%);
}

/* 管理画面 カテゴリ絞り込みタブ */
.admin-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.admin-cat-tab {
    padding: 5px 14px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.admin-cat-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.admin-cat-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.admin-card-id {
    font-size: 11px;
    color: #999;
}

.admin-card-category {
    font-size: 11px;
    background: #e0e7ff;
    color: #2563eb;
    padding: 2px 7px;
    border-radius: 8px;
    font-weight: 600;
}

.admin-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-card-price {
    font-size: 14px;
    font-weight: 800;
    color: #ef4444;
}

.admin-card-date {
    font-size: 11px;
    color: #aaa;
}

.admin-card-sort-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

.btn-sort-move {
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-sort-move:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.btn-sort-move:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.admin-card-actions .btn {
    flex: 1;
    text-align: center;
}

.cart-table,
.order-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

/* 注文管理 — バッジ・ハイライト */
.order-row-new {
    background: #fefce8;
}
.order-badge-new {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.pay-badge-paid {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.pay-badge-unpaid {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ===== カートトースト通知 ===== */
#cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #1a1a1a;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border-left: 4px solid #22c55e;
    min-width: 260px;
    max-width: 360px;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    pointer-events: auto;
}
#cart-toast.cart-toast-show {
    transform: translateX(0);
    opacity: 1;
}
.cart-toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-toast-body {
    flex: 1;
    min-width: 0;
}
.cart-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
.cart-toast-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#cart-toast .cart-toast-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--shop-accent-start), var(--shop-accent-end)) !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px var(--shop-accent-shadow);
    transition: all 0.2s;
}
#cart-toast .cart-toast-btn:hover {
    opacity: 0.92;
    box-shadow: 0 8px 18px var(--shop-accent-shadow-hover);
}
.cart-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 18px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.cart-toast-close:hover {
    color: #6b7280;
}
@media (max-width: 480px) {
    #cart-toast {
        top: auto;
        bottom: 80px;
        right: 12px;
        left: 12px;
        max-width: none;
        transform: translateY(calc(100% + 20px));
    }
    #cart-toast.cart-toast-show {
        transform: translateY(0);
    }
}

/* 注文フィルターバー */
.order-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.order-subtabs {
    margin-bottom: 12px;
}

.order-subtab-panel {
    min-width: 0;
}

.order-filter-bar-unpaid {
    justify-content: flex-start;
}

.order-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.order-filter-group label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.order-filter-group select {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.order-count-label {
    margin-left: auto;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    align-self: flex-end;
    padding-bottom: 3px;
}
.order-table-wrap {
    overflow-x: auto;
}

/* ===== 注文カードリスト（モバイル対応） ===== */
.order-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.order-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.order-card-pending {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fb923c;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

.order-card-pending .order-card-header {
    background: #ffedd5;
    border-bottom-color: #fdba74;
}

.order-card-pending .order-card-total {
    color: #c2410c;
}

.order-card-completed {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #86efac;
}

.order-card-completed .order-card-header {
    background: #dcfce7;
    border-bottom-color: #bbf7d0;
}

.order-card-completed .order-card-total {
    color: #166534;
}

.order-card-unpaid-separate {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-color: #cbd5e1;
    opacity: 0.92;
}

.order-card-unpaid-separate .order-card-header {
    background: #f1f5f9;
    border-bottom-color: #e2e8f0;
}

.order-card-new {
    border-left: 4px solid #ef4444;
    background: #fefce8;
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 8px;
}

.order-card-id {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.order-card-date {
    font-size: 12px;
    color: #94a3b8;
}

.order-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-card-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-wrap: wrap;
}

.order-card-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.order-card-value {
    color: #1e293b;
    font-size: 13px;
}

.order-card-name {
    font-weight: 600;
    font-size: 14px;
}

.order-card-phone {
    color: #64748b;
    font-size: 12px;
    margin-left: auto;
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    gap: 8px;
    flex-wrap: wrap;
}

.order-card-total {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.order-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-select-sm {
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    color: #374151;
    max-width: 110px;
}

.btn-order-detail {
    padding: 5px 14px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-order-detail:hover {
    background: #2563eb;
}

.cart-table th,
.cart-table td,
.order-table th,
.order-table td,
.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cart-table th,
.order-table th,
.admin-table th {
    background: #f7fafc;
    font-weight: 600;
}

/* ===== 购物车新版 ===== */
.cart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.cart-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.cart-item-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}
.cart-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cart-items-header {
    display: grid;
    grid-template-columns: 1fr 120px 110px 32px;
    padding: 10px 16px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 4px;
}
.cart-item-card {
    display: grid;
    grid-template-columns: 64px 1fr 110px 32px;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, opacity 0.2s;
}
.cart-item-card:hover {
    box-shadow: 0 4px 16px rgba(102,126,234,0.12);
}
.cart-item-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8faff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8faff;
    display: block;
}
.cart-item-icon {
    font-size: 28px;
    text-align: center;
    width: 64px;
    height: 64px;
    background: #f8faff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-info {
    min-width: 0;
}
.cart-item-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.cart-item-price {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}
.cart-item-price span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 4px;
    width: fit-content;
}
.cqb {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s, transform 0.1s;
    line-height: 1;
    padding: 0;
}
.cqb:active { transform: scale(0.9); background: #667eea; color: white; }
.cqb-minus { color: #94a3b8; }
.cqb-num {
    min-width: 28px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.cart-item-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
    text-align: right;
}
.cart-item-subtotal span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}
.cart-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #cbd5e1;
    font-size: 15px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cart-item-remove:hover { background: #fee2e2; color: #ef4444; }

/* 空购物车 */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    color: #94a3b8;
}
.cart-empty-icon { font-size: 56px; margin-bottom: 12px; }
.cart-empty-state p { font-size: 16px; margin-bottom: 16px; }
.cart-loading { padding: 40px; text-align: center; color: #94a3b8; }

/* ===== \u63a8\u8350\u914d\u4ef6\u30bb\u30af\u30b7\u30e7\u30f3 ===== */
.cart-recommend-section {
    max-width: 900px;
    margin: 4px auto 6px;
    padding: 0;
}
.cart-bottom-checkout {
    max-width: 900px;
    margin: 14px auto 0;
    padding: 0 0 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-bottom-checkout .btn-checkout {
    width: 100%;
    min-width: 0;
    padding: 16px;
    font-size: 21px;
    margin: 0;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}
.cart-bottom-checkout .btn-continue {
    margin: 0;
}
.cart-recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border-radius: 14px;
    border: 1px solid #e8edff;
}
.cart-recommend-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-recommend-icon { display: flex; align-items: center; line-height: 1; }
.cart-recommend-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}
.cart-recommend-sub { font-size: 12px; color: #7c8db0; font-weight: 400; }
.cart-recommend-more {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8edff;
    transition: background 0.15s;
}
.cart-recommend-more:hover { background: #f0f4ff; }
.cart-recommend-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    justify-content: start;
    column-gap: 12px;
    row-gap: 8px;
    padding-bottom: 2px;
    width: 100%;
    min-width: 0;
}
.cart-recommend-list::-webkit-scrollbar { height: 4px; }
.cart-recommend-list::-webkit-scrollbar-thumb { background: #dde3f0; border-radius: 4px; }
.rec-card {
    width: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edff;
    box-shadow: 0 2px 12px rgba(102,126,234,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
}
.rec-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(102,126,234,0.15); }
.rec-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fc;
    overflow: hidden;
}
.rec-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}
.rec-card:hover .rec-card-img { transform: scale(1.05); }
.rec-card-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    height: 100%;
}
.rec-card-discount {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}
.rec-stock-one {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    text-align: center;
    background: linear-gradient(135deg, #ff3b30, #ff6b35);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 10px;
    white-space: nowrap;
}
.rec-card-body {
    padding: 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.rec-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.rec-card-price-row { display: flex; align-items: baseline; gap: 5px; margin-top: 0; }
.rec-card-orig { font-size: 11px; color: #b0b8c9; text-decoration: line-through; }
.rec-card-price { font-size: 15px; font-weight: 900; color: #ef4444; }
.rec-card-price span { font-size: 10px; font-weight: 400; color: #94a3b8; }
.rec-card-btn {
    margin-top: auto;
    padding: 8px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.3px;
}
.rec-card-btn:hover { opacity: 0.9; }
.rec-card-btn:active { transform: scale(0.97); }
.rec-card-btn:disabled { cursor: default; }
.rec-btn-icon { font-size: 17px; font-weight: 900; line-height: 1; }


.cart-aside { position: sticky; top: 80px; }
.cart-summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(102,126,234,0.1);
    border: 1px solid #e8edff;
}
.summary-title {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.summary-total {
    font-size: 26px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 4px;
    line-height: 1.1;
    white-space: nowrap;
}
.summary-total span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    white-space: nowrap;
}
.cart-summary-card .btn-checkout {
    width: auto;
    min-width: 138px;
    padding: 13px 18px;
    font-size: 21px;
    margin-left: auto;
    margin-right: auto;
    align-self: flex-end;
}
.summary-note {
    font-size: 12px;
    color: #22c55e;
    margin-bottom: 20px;
    padding: 8px 10px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-top: 10px;
}
.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}
.btn-checkout:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-checkout:active { transform: scale(0.98); }
.btn-continue {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-continue:hover { border-color: #667eea; color: #667eea; }

/* 数量控件（商品卡片内，legacy兼容） */
.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.qty-btn:active { background: #667eea; color: white; }
.qty-num {
    font-size: 17px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.cart-summary,
.order-total {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-summary h2 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.order-total {
    text-align: center;
    margin-top: 15px;
}

.order-total h3 {
    font-size: 24px;
    color: #f56565;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===== 后台管理 ===== */
.admin-page {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.admin-logout-btn:hover {
    transform: translateY(-1px);
    border-color: #fca5a5;
    color: #b91c1c;
    background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.16);
}

.admin-logout-btn:active {
    transform: translateY(0);
}

.admin-logout-btn-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: inherit;
    transition: background 0.18s ease;
}

.admin-logout-btn:hover .admin-logout-btn-icon {
    background: #fee2e2;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
}

.add-product-form {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* 管理タブ */
.admin-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    align-items: end;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    padding: 7px 4px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
}

.admin-tab:hover {
    color: #2563eb;
}

.admin-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #eff6ff;
}

/* 图片上传网格 */
.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.image-upload-box {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #f0f0f0;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.image-upload-box:hover {
    border-color: #2563eb;
    background: #f0f4ff;
}

.image-upload-box.filled {
    border: 2px solid #2563eb;
}

.image-upload-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 8px;
}

.image-upload-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 25000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 4px solid #2563eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
    transform: translateY(-16px) translateX(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-toast.show {
    transform: translateY(0) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.admin-toast.is-success {
    border-left-color: #16a34a;
}

.admin-toast.is-error {
    border-left-color: #dc2626;
}

.admin-toast.is-info {
    border-left-color: #2563eb;
}

.admin-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    flex-shrink: 0;
}

.admin-toast.is-success .admin-toast-icon {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.admin-toast.is-error .admin-toast-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.admin-toast-body {
    min-width: 0;
    flex: 1;
}

.admin-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.admin-toast-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}

.admin-toast-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    flex-shrink: 0;
}

.admin-toast-close:hover {
    color: #475569;
}

.image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.image-upload-box:hover .image-remove-btn {
    display: flex;
}

.image-upload-box.filled .image-remove-btn {
    display: flex;
}

.image-remove-btn:hover {
    background: rgba(245, 101, 101, 0.8);
}

.admin-thumb {
    height: 50px;
    width: 50px;
    max-height: 50px;
    max-width: 50px;
    object-fit: contain;
    object-position: center;
    display: inline-block;
    border-radius: 5px;
    margin-right: 5px;
    background: #fff;
    cursor: default;
    pointer-events: none;
}

.image-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
    margin-top: auto;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px 50px;
    background: white;
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.empty-state-icon {
    margin-bottom: 20px;
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}

.empty-state-sub {
    font-size: 14px;
    color: #aaa;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {

    /* ===== 导航栏 ===== */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 58px;
    .admin-toast {
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 90px;
        min-width: 0;
        max-width: none;
        transform: translateY(calc(100% + 18px));
    }

    .admin-toast.show {
        transform: translateY(0);
    }
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        z-index: 10001;
    }

    .nav-links.active {
        max-height: 320px;
    }

    .nav-links li {
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding: 12px 0;
    }

    .nav-links a {
        display: block;
        font-size: 15px;
    }

    .nav-language {
        justify-content: center;
        margin-left: 0;
    }

    /* ===== 容器内边距 ===== */
    .container {
        padding: 0 12px;
        width: 100%;
    }

    /* ===== 购物车页 ===== */
    .cart-page h1,
    .checkout-page h1,
    .admin-page h1 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .admin-page-header {
        align-items: stretch;
    }

    .admin-logout-btn {
        width: 100%;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-aside {
        position: static;
        order: -1;
    }
    .cart-summary-card {
        padding: 16px 14px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        align-items: center;
    }
    .summary-title { grid-column: 1; }
    .summary-total { grid-column: 1; font-size: 22px; white-space: nowrap; }
    .summary-note { grid-column: 1 / -1; margin: 0; }
    .cart-summary-card .btn-checkout {
        grid-column: 2;
        grid-row: 1 / 3;
        justify-self: end;
        align-self: end;
        margin: 0;
        width: auto;
        min-width: 124px;
        height: auto;
        padding: 11px 14px;
            font-size: 19px;
    }
    .btn-continue { grid-column: 1 / -1; }

    .cart-items-header { display: none; }
    .cart-item-card {
        grid-template-columns: 56px 1fr 32px;
        grid-template-rows: auto auto;
        gap: 10px 10px;
        padding: 14px 12px;
    }
    .cart-item-img-wrap,
    .cart-item-icon { grid-row: 1 / 3; width: 56px; height: 56px; font-size: 24px; }
    .cart-item-info { grid-column: 2; grid-row: 1 / 3; }
    .cart-item-meta-row {
        gap: 8px;
    }
    .cart-item-subtotal { grid-column: 2; display: none; }
    .cart-item-remove { grid-column: 3; grid-row: 1; }

    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-items,
    .order-items,
    .customer-form,
    .cart-summary,
    .order-total {
        padding: 14px;
        border-radius: 12px;
    }

    /* 购物车表格改为卡片式 */
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 12px;
        background: #fafafa;
    }

    .cart-table td {
        padding: 4px 0;
        border: none;
        font-size: 14px;
        text-align: left;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #999;
        font-size: 11px;
        display: block;
        margin-bottom: 2px;
    }

    /* 订单表格同款处理 */
    .order-table thead {
        display: none;
    }

    .order-table,
    .order-table tbody,
    .order-table tr,
    .order-table td {
        display: block;
        width: 100%;
    }

    .order-table tr {
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 12px;
        background: #fafafa;
    }
}

/* ==============================
   结算页面 (Checkout Page) 新样式
   ============================== */

/* 步骤进度条 */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 0 16px;
}
.step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.step.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}
.step.done {
    background: #e0e7ff;
    color: #667eea;
}
.step-icon { font-size: 16px; }
.step-arrow {
    color: #cbd5e1;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

/* 主布局 */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}
.checkout-layout #checkout-recommend {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

/* 公用卡片标题 */
.checkout-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}
.checkout-form-title-text {
    font-size: 22px;
    line-height: 1.2;
}
.checkout-summary-title-text {
    font-size: 22px;
    line-height: 1.2;
}
.checkout-card-icon { font-size: 20px; }
.order-item-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    background: #e0e7ff;
    padding: 2px 10px;
    border-radius: 50px;
}

/* 左侧：收货信息卡片 */
.checkout-form-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.payment-page {
    width: 100%;
    max-width: 1360px;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 0 auto;
}

.payment-page .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}

.payment-page .checkout-form-card {
    padding: 22px;
}

.payment-page .checkout-summary-card {
    padding: 20px;
}

/* 支付页右侧订单内容：价格与合计字号提升 */
.payment-page .co-item-meta {
    font-size: 14px;
}
.payment-page .co-item-subtotal {
    font-size: 16px;
}
.payment-page .co-item-subtotal span {
    font-size: 12px;
}
.payment-page .co-total-row {
    font-size: 16px;
}
.payment-page .co-total-label {
    font-size: 15px;
}
.payment-page .co-total-price {
    font-size: 16px;
}
.payment-page .co-total-price span {
    font-size: 13px;
}
.payment-page .co-total-ship .co-total-free {
    font-size: 15px;
}
.payment-page .co-final-price {
    font-size: 22px !important;
}
.payment-page .co-final-price span {
    font-size: 13px !important;
}
.co-form-group {
    margin-bottom: 18px;
}
.co-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.co-form-group .required { color: #ef4444; }
.co-form-group input,
.co-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.4;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
}
.co-form-group input:focus,
.co-form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
    background: white;
}
/* 配送日時 2列グリッド */
.co-delivery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
/* 配送日付セレクター */
.co-date-wrap {
    position: relative;
}
.co-date-display {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}
.co-date-display-actions {
    position: relative;
    z-index: 3;
}
.co-date-wrap:focus-within .co-date-display {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    background: #fff;
}
.co-date-clear-btn {
    position: relative;
    z-index: 4;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}
.co-date-clear-btn:hover { color: #ef4444; }
/* ---- 自定义日历弹窗 ---- */
.co-cal-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    padding: 16px;
    min-width: 288px;
    user-select: none;
}
.co-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.co-cal-title {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}
.co-cal-nav {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.co-cal-nav:hover:not(:disabled) { background: #f1f5f9; color: #1e293b; }
.co-cal-nav:disabled { opacity: 0.25; cursor: default; }
.co-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.co-cal-wday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    padding: 4px 0 6px;
}
.co-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.co-cal-day--disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}
.co-cal-day--available {
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.co-cal-day--available:hover {
    background: #ede9fe;
    color: #6366f1;
}
.co-cal-day--selected {
    background: #6366f1;
    color: #fff !important;
    cursor: pointer;
}
.co-cal-day--today.co-cal-day--available,
.co-cal-day--today.co-cal-day--disabled {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.co-cal-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.co-cal-reset-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.co-cal-reset-btn:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}
.co-delivery-row .co-form-group { margin-bottom: 0; }
/* selectも inputと同スタイルに */
.co-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.4;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.co-form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
    background-color: white;
}
.co-form-group select.is-placeholder {
    color: #94a3b8;
    font-family: inherit;
}
.co-form-group select option {
    color: #1e293b;
    font-family: inherit;
}
.co-shipping-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    font-size: 13px;
    color: #16a34a;
    margin-bottom: 20px;
}
.co-shipping-notice span:last-child {
    font-size: 14px;
    font-weight: 700;
}
.btn-submit-order {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(102,126,234,0.45);
}
.btn-submit-order:active { transform: translateY(0); }
.btn-submit-order:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-back-cart {
    display: block;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    padding: 8px;
    transition: color 0.2s;
}
.btn-back-cart:hover { color: #667eea; }

/* 右侧：订单摘要卡片 */
.checkout-summary-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 80px;
}

/* 订单商品列表 */
.co-order-list {
    border-top: 2px solid #f1f5f9;
    padding-top: 16px;
    margin-bottom: 16px;
    max-height: none;
    overflow: visible;
}
.co-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.co-order-item:last-child { border-bottom: none; }
.co-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
    background: #f8faff;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}
.co-item-thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f4ff, #e8e0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.co-item-info {
    flex: 1;
    min-width: 0;
}
.co-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.co-item-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.co-item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    flex-shrink: 0;
}
.co-item-subtotal span {
    font-size: 10px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 1px;
}

/* 价格汇总行 */
.co-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}
.co-total-label { color: #64748b; font-weight: 500; }
.co-total-price {
    font-weight: 700;
    color: #1e293b;
}
.co-total-price span { font-size: 11px; font-weight: 400; color: #94a3b8; margin-left: 2px; }
.co-total-ship .co-total-free { color: #16a34a; font-weight: 700; font-size: 13px; }
.co-divider { height: 1px; background: #f1f5f9; margin: 10px 0; }
.co-total-final { margin-top: 4px; }
.co-final-price { font-size: 20px !important; color: #e11d48 !important; }
.co-final-price span { font-size: 12px !important; }

/* 滚动条美化 */
.co-order-list::-webkit-scrollbar { width: 4px; }
.co-order-list::-webkit-scrollbar-track { background: transparent; }
.co-order-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* 郵便番号入力行 */
.co-zip-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.co-zip-prefix {
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}
.co-zip-row input {
    flex: 1;
    min-width: 0;
    max-width: 168px;
}
.co-zip-btn {
    flex-shrink: 0;
    padding: 0 18px;
    height: 44px;
    background: linear-gradient(135deg, var(--shop-accent-start), var(--shop-accent-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 12px var(--shop-accent-shadow);
}
.co-zip-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.co-zip-btn:active { transform: translateY(0); }
.co-zip-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; background: #c7cde8; box-shadow: none; }
.co-zip-msg {
    margin-top: 6px;
    font-size: 12px;
    min-height: 18px;
}
.co-zip-ok { color: #16a34a; }
.co-zip-err { color: #dc2626; }

/* ===== 结算页响应式 ===== */
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .payment-page {
        max-width: none;
        padding: 0 8px;
    }
    .payment-page .checkout-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .payment-page .checkout-form-card,
    .payment-page .checkout-summary-card {
        padding: 16px;
    }
    .checkout-summary-card {
        position: static;
        order: -2;
    }
    #checkout-recommend {
        order: -1;
        grid-column: 1 / -1;
    }
    .checkout-steps .step-label { display: none; }
    .step { padding: 8px 10px; }
    .co-delivery-row {
        grid-template-columns: 1fr;
    }
    .co-zip-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .co-zip-prefix {
        font-size: 15px;
    }
    .co-zip-row input {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 150px;
    }
    .co-zip-btn {
        flex: 0 0 auto;
        width: auto;
        max-width: 112px;
        padding: 0 12px;
        height: 42px;
        border-radius: 10px;
        font-size: 14px;
    }

    .btn-submit-order {
        font-size: 19px;
    }

    .cart-bottom-checkout .btn-checkout {
        min-width: 0;
        padding: 16px;
        font-size: 19px;
    }
}

    .order-table td {
        padding: 4px 0;
        border: none;
        font-size: 14px;
    }

    /* 结算合计 */
    .order-total h3 {
        font-size: 20px;
    }

    .summary-row {
        font-size: 15px;
        padding: 12px 0;
    }

    /* 按钮全宽 */
    .btn-lg {
        font-size: 15px;
        padding: 14px 20px;
        border-radius: 10px;
    }

    /* ===== 表单 ===== */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* 防止 iOS 自动缩放 */
        padding: 12px;
        border-radius: 8px;
    }

    /* ===== 图片弹窗 ===== */
    .image-modal {
        padding: 0;
    }

    .image-modal .modal-content {
        max-width: 100%;
        max-height: 75vh;
        width: auto;
        height: auto;
    }

    .modal-image-container {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 75vh;
        border-radius: 0;
        margin-bottom: 0;
    }

    .modal-nav-btn {
        font-size: 22px;
        padding: 10px 14px;
    }

    .modal-thumbnails {
        max-width: 100%;
        padding: 8px;
    }

    .modal-meta {
        width: calc(100% - 56px);
        margin-top: 2px;
        padding: 0;
    }

    .modal-title {
        font-size: 17px;
    }

    .modal-position-note {
        font-size: 13px !important;
        margin-top: 1px;
    }

    .modal-thumbnail {
        width: 48px;
        height: 48px;
    }

    .image-modal .close {
        top: 12px;
        right: 16px;
        font-size: 34px;
        background: rgba(0,0,0,0.3);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    /* ===== 后台管理 ===== */
    .admin-page {
        padding: 16px;
        border-radius: 12px;
    }

    .add-product-form {
        padding: 14px;
    }

    .image-upload-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }

    /* ===== Hero Banner 缩小 ===== */
    .hero-banner {
        height: 140px;
        border-radius: 12px;
    }

    .hero-slide {
        height: 140px;
    }

    .hero-slide-content {
        padding: 16px 18px;
    }

    .hero-text h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .hero-emoji {
        font-size: 60px;
    }

    .hero-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* ===== 快捷入口 ===== */
    .quick-entry {
        gap: 4px;
        padding: 12px 4px;
    }

    .quick-icon {
        height: 46px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* ===== 分类标签 ===== */
    .category-tabs-wrap {
        padding: 0 2px;
    }

    .category-tabs {
        gap: 5px;
        padding: 0;
    }

    .tab-link {
        padding: 5px 10px;
        font-size: 11px;
        flex-shrink: 0;
    }

    /* ===== 商品卡片 ===== */
    .product-card {
        height: auto;
        width: 100%;
    }

    .product-images {
        width: 40%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-info {
        padding: 10px 12px;
    }

    .product-position-note {
        left: 50%;
        right: auto;
        max-width: calc(100% - 12px);
        bottom: 3px;
        padding: 4px 8px;
        font-size: 10px;
        font-weight: 800;
        transform: translateX(-50%);
    }

    .product-info h3 {
        font-size: 16px;
    }

    .product-info .price {
        font-size: 21px;
    }

    .product-info .btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    /* ===== 分享弹窗 ===== */
    .share-modal-content {
        padding: 16px;
    }

    .share-options {
        gap: 8px;
    }

    .share-option {
        padding: 12px 6px;
        font-size: 11px;
        border-radius: 10px;
    }

    .share-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }

    /* ===== 商品编辑弹窗 ===== */
    .edit-modal-content,
    .edit-product-panel {
        border-radius: 16px 16px 0 0;
        width: 100% !important;
        max-height: 92vh;
        overflow-y: auto;
        margin: 0 !important;
    }

/* ===== 极小屏 (320px 以下) ===== */
@media (max-width: 360px) {
    .quick-entry {
        gap: 2px;
    }

    .quick-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .hero-text h2 {
        font-size: 15px;
    }

    .product-card {
        height: auto;
    }

    .product-images {
        width: 40%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* ==============================
   支払いページ (Payment Page)
   ============================== */

/* 支払い方法リスト */
.pay-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.pay-method-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
    background: #f8fafc;
}
.pay-method-item:hover {
    border-color: #a5b4fc;
    background: #f0f4ff;
}
.pay-method-item.selected {
    border-color: #667eea;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.pay-method-icon { font-size: 26px; flex-shrink: 0; }
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.pay-method-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.pay-method-badges { flex-shrink: 0; }
.pay-badge {
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 2px 8px;
    border-radius: 50px;
}
.pay-method-check {
    font-size: 16px;
    color: #667eea;
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.pay-method-item.selected .pay-method-check { opacity: 1; }

/* 支払いサブフォーム */
.pay-sub-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    overflow-x: hidden;
}
/* 支払い方法別カラー */
.pay-sub-wechat {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.pay-sub-wechat .alipay-cny-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #4ade80;
}
.pay-sub-wechat .alipay-cny-label { color: #166534; }
.pay-sub-wechat .alipay-cny-amount { color: #16a34a; }
.pay-sub-wechat .alipay-cny-rate { color: #15803d; }
.pay-sub-alipay {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.pay-sub-alipay .alipay-cny-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #60a5fa;
}
.pay-sub-alipay .alipay-cny-label { color: #1e40af; }
.pay-sub-alipay .alipay-cny-amount { color: #1d4ed8; }
.pay-sub-alipay .alipay-cny-rate { color: #1e40af; }
.pay-sub-alipay .alipay-cny-disclaimer { color: #1e40af; border-color: #bfdbfe; }
.pay-sub-alipay .alipay-cny-unit { color: #1e40af; }
.pay-sub-paypay {
    background: #fff5f5;
    border-color: #fecaca;
}
.pay-card-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.pay-card-icons img {
    width: 36px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: white;
    padding: 1px;
}
.pay-secure-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
}

/* コンビニ選択 */
.pay-cvs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.pay-cvs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: white;
    transition: border-color 0.2s;
    position: relative;
}
.pay-cvs-item.selected { border-color: #667eea; color: #667eea; background: #f0f4ff; }
.pay-cvs-icon { font-size: 16px; }
.pay-cvs-check { margin-left:auto; opacity:0; font-size:14px; color:#667eea; font-weight:900; }
.pay-cvs-item.selected .pay-cvs-check { opacity:1; }

.pay-notice-text { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; }

/* 銀行振込情報 */
.pay-bank-info {
    background: white;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
}
.pay-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.pay-bank-row:last-child { border-bottom: none; }
.pay-bank-row span { color: #94a3b8; }
.pay-bank-row strong { color: #1e293b; }

/* 代引きノーティス */
.pay-cod-notice {
    background: #fff7ed;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #fed7aa;
    font-size: 13px;
    color: #7c2d12;
    line-height: 1.7;
}
.pay-cod-notice p { margin: 0; }
.pay-pickup-option-card {
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
}
.pay-pickup-card-green {
    background: #f0fdf4;
    border: 1.5px solid #07c160;
    color: #065f46;
}
.pay-pickup-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #07c160;
    margin-bottom: 4px;
}

/* 注文メタ情報 */
.pay-order-meta {
    margin-bottom: 12px;
}
.pay-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    font-size: 15px;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}
.pay-meta-row:last-child { border-bottom: none; }
.pay-meta-row > span:first-child { color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.pay-meta-row > span:last-child,
.pay-meta-row > strong { color: #1e293b; }

/* 成功アニメーション */
.pay-success-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pay-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pay-pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* レスポンシブ */
@media (max-width: 520px) {
    .pay-cvs-list { grid-template-columns: 1fr; }
}

/* PayPay / WeChat / Alipay アイコン共通 */
.pay-paypay-icon,
.pay-wechat-icon,
.pay-alipay-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
/* 公式ブランドアイコン（Simple Icons） */
.pay-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pay-brand-icon img,
.pay-brand-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.pay-brand-wechat { background: #07C160; }
.pay-brand-alipay { background: #1677FF; }
.pay-brand-paypay {
    background: #FF0033;
}
.pay-brand-paypay img {
    width: 42px !important;
    height: 42px !important;
    object-fit: cover;
    border-radius: 9px;
}
.pay-inline-brand {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

/* おすすめバッジ（中国語版）*/
.pay-badge-cn {
    background: linear-gradient(135deg, #07c160, #0a9e4e);
}

/* QRコードフォーム共通 */
.pay-qr-wrap { text-align: center; padding: 4px 0; }
.pay-qr-wrap img, .pay-qr-area img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}
.pay-qr-logo {
    display: inline-block;
    font-size: 22px;
    font-weight: 900;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.pay-wechat-logo { background: #e8f9ee; color: #07c160; }
.pay-alipay-logo { background: #e6f2ff; color: #1677ff; }

/* 支付宝 CNY換算ボックス */
.alipay-cny-box {
    background: linear-gradient(135deg, #fff7e6, #fff3d6);
    border: 2px solid #f59e0b;
    border-radius: 14px;
    padding: 16px 18px;
    text-align: center;
    margin: 4px 0 10px;
    width: 100%;
    box-shadow: 0 2px 12px rgba(245,158,11,0.15);
}
.alipay-cny-label {
    font-size: 13px;
    color: #92400e;
    font-weight: 700;
    margin-bottom: 6px;
}
.alipay-cny-amount {
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 900;
    color: #d97706;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
}
.paypay-jpy-amount {
    font-size: clamp(24px, 4vw, 30px);
    gap: 2px;
    white-space: nowrap;
}
.paypay-jpy-amount .alipay-cny-symbol {
    font-size: clamp(15px, 2.2vw, 18px);
}
.paypay-jpy-amount .alipay-cny-unit {
    font-size: clamp(11px, 1.8vw, 13px);
}
.alipay-cny-symbol {
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 700;
}
.alipay-cny-unit {
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 600;
    color: #b45309;
}
.alipay-cny-rate {
    font-size: 11px;
    color: #a16207;
    margin-top: 5px;
}
.alipay-cny-disclaimer {
    font-size: 11px;
    color: #b45309;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #fde68a;
    opacity: 0.85;
}
.alipay-cny-spinner {
    font-size: 14px;
    color: #92400e;
    animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.pay-qr-mock {
    width: 120px;
    height: 120px;
    border: 3px dashed #e2e8f0;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    gap: 6px;
}
.pay-qr-inner { font-size: 40px; }
.pay-qr-hint { font-size: 10px; color: #94a3b8; margin: 0; }
/* QRコード生成エリア */
.pay-qr-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 14px;
    min-height: 200px;
    justify-content: center;
}
.pay-qr-loading {
    font-size: 13px;
    color: #94a3b8;
    animation: pulse 1.2s ease-in-out infinite;
}
.pay-qr-no-account {
    font-size: 12px;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 6px 12px;
    margin: 0 0 10px;
    text-align: center;
}
.pay-qr-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    display: inline-flex;
    margin-bottom: 10px;
}
.pay-qr-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}
.pay-step-green { background: #07c160 !important; }
.pay-step-blue  { background: #1677ff !important; }
.pay-paypay-wrap { text-align: center; padding: 0; width: 100%; }
.pay-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-radius: 12px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}
.pay-account-text {
    font-size: clamp(18px, 1.75vw, 21px);
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
    word-break: keep-all;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
}
.pay-account-copy {
    font-size: 10px;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.pay-paypay-logo {
    display: inline-block;
    font-size: 32px;
    font-weight: 900;
    color: #e00;
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.pay-steps-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f3ff;
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    padding: 5px 14px 5px 10px;
    font-size: 15px;
    color: #6366f1;
    cursor: pointer;
    margin: 10px auto 4px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.18s, color 0.15s, border-color 0.15s;
    width: auto;
}
.pay-steps-toggle:hover {
    background: #ede9fe;
    border-color: #c7d2fe;
    color: #4f46e5;
}
.pay-steps-toggle-paypay {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #FF0033;
}
.pay-steps-toggle-paypay:hover {
    background: #ffe4e6;
    border-color: #fca5a5;
    color: #cc0028;
}
.pay-steps-arrow { font-size: 9px; color: #a5b4fc; transition: transform 0.2s; }
.pay-steps-hidden { display: none !important; }
.pay-paypay-steps {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
    margin: 8px 0;
    width: 100%;
}
.pay-paypay-step {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #475569;
    font-weight: 600;
}
.pay-paypay-step > span:last-child {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
.pay-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e00;
    color: white;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pay-step-btn-label {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    vertical-align: middle;
    margin: 0 2px;
    letter-spacing: 0.3px;
}
.pay-contact-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}
.pay-contact-hint > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pay-contact-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pay-contact-link:hover { color: #764ba2; }
.pay-pickup-contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
    letter-spacing: 0.5px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.pay-pickup-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.45);
}

/* ===== 自取/上門 クイックサービスバー (checkout) ===== */
.quick-service-bar {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
.quick-service-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    text-align: center;
}
.quick-service-btns {
    display: flex;
    gap: 10px;
}
.btn-quick-service {
    flex: 1;
    padding: 14px 10px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    line-height: 1.4;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.btn-quick-service:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn-pickup  { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }
.btn-visit   { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.quick-service-note {
    font-size: 12px;
    line-height: 1.45;
    color: #9ca3af;
    margin-top: 9px;
    text-align: center;
}

/* モーダル内送信ボタン */
.btn-service-contact {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(22,163,74,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    margin-top: 12px;
}
.btn-service-contact:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22,163,74,0.45); }
.btn-service-contact.btn-service-visit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 3px 12px rgba(37,99,235,0.35);
}
.btn-service-contact.btn-service-visit:hover { box-shadow: 0 6px 18px rgba(37,99,235,0.45); }

/* ===== 自取/上門 完了カード (payment) ===== */
.service-complete-card {
    max-width: 480px;
    margin: 24px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px 28px;
    text-align: center;
}
.service-complete-icon { font-size: 52px; margin-bottom: 12px; }
.service-complete-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}
.service-complete-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}
.service-complete-msg {
    font-size: 14px;
    color: #374151;
    background: #f0fdf4;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    line-height: 1.6;
}
.service-complete-items {
    text-align: left;
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 4px;
}
.service-complete-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}
.service-complete-item:last-child { border-bottom: none; }
.service-complete-item-name { flex: 1; font-weight: 600; color: #374151; }
.service-complete-item-qty  { color: #6b7280; }
.service-complete-item-price { font-weight: 700; color: #111; }
.service-complete-total {
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: #111;
    padding-top: 8px;
}
.service-complete-back {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.service-complete-back:hover { color: #2563eb; }
