/**
 * ============================================================
 * CtrlEat Official Shopping Website
 * ============================================================
 * CtrlEat 正式版购物网站
 * 版权归天河星雨工作室[thxymc Studio] thxymc.com所有
 * Copyright © 2026 thxymc.com. All rights reserved.
 * 网页由天河星雨工作室制作 thxymc.com
 * ！！未经允许禁止公开源码！！
 * ============================================================
 */

.clear-store-page {
    width: min(1180px, calc(100% - 28px));
    margin: 28px auto 56px;
    display: grid;
    gap: 18px;
}

.clear-store-hero,
.clear-store-card,
.clear-store-submit,
.clear-alert,
.clear-store-empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.clear-store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    padding: 28px;
}

.clear-store-hero h1 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.clear-store-hero p {
    color: #475569;
    line-height: 1.8;
}

.clear-store-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 16px;
    background: #f8fafc;
}

.clear-store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.clear-store-meta span {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .86rem;
    font-weight: 900;
}

.clear-store-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.clear-store-summary article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}

.clear-store-summary span {
    display: block;
    color: #64748b;
    font-size: .86rem;
    font-weight: 800;
}

.clear-store-summary strong {
    display: block;
    margin-top: 6px;
    font-size: 1.35rem;
}

.clear-store-summary .total {
    background: #16a34a;
    color: #fff;
}

.clear-store-summary .total span {
    color: #dcfce7;
}

.clear-store-card {
    padding: 22px;
}

.clear-store-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 14px;
}

.clear-store-card h2 {
    margin: 0;
}

.clear-store-card-head p {
    margin: 0;
    color: #64748b;
}

.clear-store-items {
    display: grid;
    gap: 10px;
}

.clear-store-items article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.clear-store-items img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
}

.clear-store-items strong,
.clear-store-items span {
    display: block;
    overflow-wrap: anywhere;
}

.clear-store-items span {
    color: #64748b;
    font-size: .88rem;
}

.clear-store-items .qty {
    font-weight: 900;
    color: #166534;
}

.clear-store-items .price {
    font-weight: 1000;
}

.clear-store-submit {
    padding: 18px;
    display: flex;
    justify-content: center;
}

.clear-store-admin-preview {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.clear-store-admin-preview img {
    width: 120px;
    height: 86px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.clear-btn {
    border: 0;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    padding: 13px 24px;
    font-weight: 1000;
    text-decoration: none;
    cursor: pointer;
}

.clear-btn.disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.wallet-warning,
.clear-alert,
.clear-store-empty {
    padding: 16px;
    text-align: center;
    font-weight: 900;
}

.clear-alert.success {
    background: #ecfdf5;
    color: #166534;
}

.clear-alert.error,
.wallet-warning {
    background: #fff1f2;
    color: #be123c;
}

@media (max-width: 768px) {
    .clear-store-page {
        width: min(100% - 16px, 1180px);
        margin-top: 12px;
        gap: 12px;
    }

    .clear-store-hero {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .clear-store-hero img {
        max-height: 180px;
    }

    .clear-store-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .clear-store-summary article {
        padding: 11px;
        border-radius: 12px;
    }

    .clear-store-summary .total {
        grid-column: 1 / -1;
    }

    .clear-store-card {
        padding: 14px;
    }

    .clear-store-card-head {
        display: block;
    }

    .clear-store-items article {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .clear-store-items .price {
        grid-column: 2 / -1;
    }

    .clear-store-admin-preview {
        grid-template-columns: 1fr;
    }
}
