/**
 * 晚夜深秋 · 授权管理 —— 前台商城样式
 * 布局参考 YunMen 购买页，作用域限定在本插件模板。
 */

/* ---- 购买页 ---- */
.wy-ls-shop-single .products-container {
    margin-top: -21px;
}

.wy-ls-shop-single .products-box {
    padding: 60px 0;
    color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #88c0fd 10%, #0757af 100%);
}

.wy-ls-shop-single .products-background {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #28b1bb 0%, #5038c8 100%);
    opacity: 0.35;
    pointer-events: none;
}

.wy-ls-shop-single .products-box.relative,
.wy-ls-shop-single .products-row.relative,
.wy-ls-shop-single .relative {
    position: relative;
}

.wy-ls-shop-single .products-box .products-row {
    padding: 0 20px;
    max-width: 1400px;
    margin: auto;
}

.wy-ls-shop-single .products-row .payrow-6 {
    padding: 0 10px;
    display: inline-block;
    vertical-align: middle;
    width: calc(50% - 10px);
}

.wy-ls-shop-single .wy-ls-shop-cover img,
.wy-ls-shop-single .wy-ls-shop-cover__empty {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.12);
}

.wy-ls-shop-single .wy-ls-shop-cover__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.7;
}

.wy-ls-shop-single .pay-content {
    max-width: 400px;
    margin: auto;
}

.wy-ls-shop-single .products-header {
    font-size: 24px;
    letter-spacing: 0.1em;
}

.wy-ls-shop-single .products-doc {
    opacity: 0.8;
    margin: 20px 0;
}

.wy-ls-shop-single .products-pay {
    margin: 20px 0;
}

.wy-ls-shop-single .products-pay .but {
    padding: 0.5em 2em;
    margin: 0;
}

.wy-ls-shop-single .products-pay .but + .but {
    margin-left: 20px;
}

.wy-ls-shop-single .wy-ls-shop-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 8px;
}

.wy-ls-shop-single .wy-ls-shop-plan {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    border-radius: 6px;
    padding: 0.45em 1em;
    cursor: pointer;
    line-height: 1.3;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wy-ls-shop-single .wy-ls-shop-plan:hover {
    background: rgba(255, 255, 255, 0.22);
}

.wy-ls-shop-single .wy-ls-shop-plan.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: #1a3a5c;
    border-color: transparent;
    font-weight: 600;
}

.wy-ls-shop-single .wy-ls-shop-plan__badge {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    padding: 0 5px;
    border-radius: 3px;
    background: #e74c3c;
    color: #fff;
    font-weight: 500;
    vertical-align: middle;
}

.wy-ls-shop-single .wy-ls-shop-plan-hint {
    margin-top: 4px;
}

.wy-ls-shop-single .wy-ls-shop-countdown {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.wy-ls-shop-single .wy-ls-shop-cd-label {
    margin-right: 6px;
    opacity: 0.85;
}

.wy-ls-shop-single .wy-ls-shop-cd-time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.18);
    padding: 2px 8px;
    border-radius: 4px;
}

.wy-ls-shop-single .wy-ls-shop-cta .wy-ls-shop-cta-pay-wrap {
    display: inline-block;
    vertical-align: middle;
}

.wy-ls-shop-single .wy-ls-shop-cta .wy-ls-shop-cta-pay-wrap .but {
    margin-left: 0;
}

.wy-ls-shop-single .wy-ls-shop-cta .but + .but,
.wy-ls-shop-single .wy-ls-shop-cta .but + .wy-ls-shop-cta-pay-wrap {
    margin-left: 20px;
}

.wy-ls-shop-single .products-details {
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.85;
    max-width: 300px;
    text-align: left;
}

.wy-ls-shop-single .products-details ul {
    margin: 0;
    padding-left: 1.2em;
}

@media (max-width: 768px) {
    .wy-ls-shop-single .products-row .payrow-6 {
        padding: 10px;
        width: 100%;
    }

    .wy-ls-shop-single .products-box .products-row {
        text-align: center;
    }

    .wy-ls-shop-single .products-details {
        margin: auto;
    }
}

/* ---- 列表卡片 ---- */
.wy-ls-shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.wy-ls-shop-card {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wy-ls-shop-card:hover {
    transform: translateY(-2px);
}

.wy-ls-shop-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.wy-ls-shop-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wy-ls-shop-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    opacity: 0.35;
}

.wy-ls-shop-card__tag {
    position: absolute;
    left: 10px;
    top: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}

.wy-ls-shop-card__body {
    padding: 14px 16px 16px;
}

.wy-ls-shop-card__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.wy-ls-shop-card__desc {
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wy-ls-shop-card__price {
    color: #e74c3c;
}
