@charset "UTF-8";
/* ==========================================================================
   YeShe — Shop pages (Cart, Checkout, Order result, Payment)
   ========================================================================== */

/* ---------- Cart ---------- */
.ys-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.ys-cart__list {
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: 18px;
    overflow: hidden;
    padding: 0 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.ys-cart__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px 172px 112px 44px;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ys-line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ys-muted);
}
.ys-cart__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px 172px 112px 44px;
    gap: 14px;
    align-items: center;
    padding: 20px;
    margin: 0 -22px;
    border-bottom: 1px solid var(--ys-line);
    transition: background var(--ys-dur) var(--ys-ease);
}
.ys-cart__row:hover { background: var(--ys-surface-alt); }
.ys-cart__product { display: flex; align-items: center; gap: 16px; }
.ys-cart__img {
    flex: 0 0 84px;
    width: 84px; height: 84px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ys-surface-alt);
    border: 1px solid var(--ys-line);
}
.ys-cart__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ys-cart__pinfo { display: flex; flex-direction: column; gap: 4px; }
.ys-cart__pname {
    font-weight: 700;
    font-size: 14px;
    color: var(--ys-ink);
    line-height: 1.35;
}
.ys-cart__pname:hover { text-decoration: underline; }
.ys-cart__sku { font-size: 12px; color: var(--ys-faint); }
.ys-cart__price, .ys-cart__sub { font-size: 14px; }
.ys-cart__sub { font-weight: 700; }

.ys-cart__qty form { display: flex; align-items: center; gap: 10px; }
.ys-input--qty {
    width: 68px; min-height: 38px;
    padding: 6px 10px;
    text-align: center;
    border-radius: 999px;
    border-color: var(--ys-line);
    font-weight: 600;
}
.ys-input--qty:focus { border-color: var(--ys-ink); box-shadow: 0 0 0 3px rgba(18, 24, 40, .08); }
.ys-cart__qty .ys-link--sm {
    border: 1px solid var(--ys-line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 11px; font-weight: 600;
    color: var(--ys-ink); background: #fff;
    transition: all var(--ys-dur) var(--ys-ease);
}
.ys-cart__qty .ys-link--sm:hover {
    background: var(--ys-ink); color: #fff;
    border-color: var(--ys-ink); text-decoration: none;
}
.ys-link--sm {
    font-size: 11px;
    letter-spacing: .04em;
    padding-bottom: 1px;
}
.ys-iconlink {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--ys-line);
    border-radius: 50%;
    background: #fff;
    color: var(--ys-muted);
    cursor: pointer;
    transition: border-color var(--ys-dur) var(--ys-ease), color var(--ys-dur) var(--ys-ease);
}
.ys-iconlink:hover { border-color: var(--ys-sale); color: var(--ys-sale); }

/* free-shipping bar */
.ys-shipbar {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 26px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ys-body);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.ys-shipbar strong { color: var(--ys-ink); }
.ys-shipbar--done { color: var(--ys-success); background: #e8f5ec; }
.ys-shipbar__track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--ys-line);
    overflow: hidden;
    max-width: 260px;
}
.ys-shipbar__fill {
    display: block;
    height: 100%;
    background: var(--ys-ink);
    border-radius: 3px;
}

/* order summary (cart + checkout side) */
.ys-summary {
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: 18px;
    padding: 28px 26px 30px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.ys-summary--sticky { position: sticky; top: 116px; }
.ys-summary--flat { background: #fff; border: 1px solid var(--ys-line); padding: 20px 22px; }
.ys-summary__title {
    font-family: var(--ys-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ys-ink);
    margin-bottom: 18px;
}
.ys-summary__title::after {
    content: '';
    display: block;
    width: 36px; height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--ys-ink);
}
.ys-summary__row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--ys-body);
    border-bottom: 1px solid var(--ys-line);
}
.ys-summary__row:last-of-type { border-bottom: 0; }
.ys-summary__row--total {
    font-size: 16px;
    font-weight: 700;
    color: var(--ys-ink);
    padding-top: 16px;
    border-top: 1px solid var(--ys-line-strong);
    border-bottom: 0;
}
.ys-summary__continue {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ys-muted);
}
.ys-summary__continue:hover { color: var(--ys-ink); text-decoration: underline; }
.ys-summary__assurance {
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--ys-line);
    display: grid;
    gap: 7px;
    font-size: 12px;
    color: var(--ys-muted);
}
.ys-summary__assurance li { display: flex; align-items: center; gap: 8px; }
.ys-summary__assurance li::before {
    content: '';
    width: 14px; height: 14px;
    border-radius: 50%;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a3f' stroke-width='2.4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Checkout ---------- */
.ys-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}
.ys-checkout__main { display: grid; gap: 24px; }
.ys-block {
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
    padding: 26px;
}
.ys-block--flat { border: 0; padding: 0; }
.ys-block__title {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--ys-font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ys-ink);
    margin-bottom: 20px;
}
.ys-block__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ys-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

/* payment options */
.ys-pay { display: grid; gap: 12px; }
.ys-pay__option {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    border: 1.5px solid var(--ys-line);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
}
.ys-pay__option:hover {
    border-color: #6c5ce7;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.1);
}
.ys-pay__option:has(input:checked) {
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.04);
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.15);
}
.ys-pay__option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ys-pay__option input:checked + .ys-pay__body::before {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #6c5ce7;
    background: #6c5ce7;
    box-shadow: inset 0 0 0 3px #fff;
}
.ys-pay__body {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    position: relative;
}
.ys-pay__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f8f9fa;
    flex-shrink: 0;
}
/* credit-card brand badges */
.ys-cardb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6c5ce7;
}
.ys-cardb__badges {
    display: flex;
    gap: 3px;
}
.ys-cardb__b {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 2px 3px;
    border-radius: 3px;
    color: #fff;
    line-height: 1;
}
.ys-cardb__b--visa { background: #1a1f71; }
.ys-cardb__b--mc { background: linear-gradient(90deg, #eb001b 0 50%, #f79e1b 50% 100%); }
.ys-cardb__b--amex { background: #2e77bc; }
.ys-pay__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ys-pay__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ys-ink);
}
.ys-pay__desc {
    font-size: 13px;
    color: var(--ys-muted);
}

/* checkout line items */
.ys-co-items { display: grid; gap: 12px; }
.ys-co-items--plain { gap: 10px; }
.ys-co-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: 10px;
    transition: box-shadow .2s ease;
}
.ys-co-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ys-co-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ys-co-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ys-co-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ys-co-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ys-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ys-co-meta {
    font-size: 13px;
    color: var(--ys-muted);
}
.ys-co-sub {
    font-size: 15px;
    font-weight: 700;
    color: #6c5ce7;
    white-space: nowrap;
}

/* ---------- Order result / pay ---------- */
.ys-resultcard {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
    padding: 44px 40px 40px;
    text-align: center;
}
.ys-resultcard__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: #e8f5ec;
    color: var(--ys-success);
    margin-bottom: 20px;
}
.ys-resultcard .ys-title { margin-bottom: 10px; }
.ys-resultcard .ys-text-muted { margin-bottom: 22px; }
.ys-resultcard .ys-summary--flat { text-align: left; margin-bottom: 24px; }
.ys-resultcard .ys-co-items--plain { text-align: left; margin-bottom: 24px; }

/* ---------- Order result card (luxury redesign) ---------- */
.ys-resultwrap {
    margin-top: -72px;
    position: relative;
    z-index: 2;
}
.ys-resultcard {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: 24px;
    padding: 48px 48px 44px;
    box-shadow: 0 18px 48px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
    animation: ysResultIn .5s cubic-bezier(.2,.8,.3,1);
}
@keyframes ysResultIn {
    from { opacity:0; transform:translateY(28px) scale(.97); }
    to   { opacity:1; transform:none; }
}

/* Badge | animated checkmark */
.ys-resultcard__badge {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 88px; height: 88px;
    margin: 0 auto 24px;
}
.ys-resultcard__check {
    position: relative;
    z-index: 2;
    display: inline-flex; align-items: center; justify-content: center;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f7a3f, #3ccf7a);
    color: #fff;
    box-shadow: 0 8px 24px rgba(31, 122, 63, .32);
}
.ys-resultcard__check svg { width: 36px; height: 36px; }
.ys-resultcard__ring {
    position: absolute;
    border-radius: 50%;
    border: 1.8px solid transparent;
    animation: ysRingPulse 2.2s cubic-bezier(.2,.8,.3,1) infinite;
}
.ys-resultcard__ring--1 { width: 100%; height: 100%; border-color: rgba(60, 207, 122, .24); }
.ys-resultcard__ring--2 { width: 100%; height: 100%; border-color: rgba(60, 207, 122, .12); animation-delay: .6s; }
@keyframes ysRingPulse {
    0%   { transform:scale(1); opacity:1; }
    100% { transform:scale(1.6); opacity:0; }
}

/* Head */
.ys-resultcard__head { text-align: center; margin-bottom: 26px; }
.ys-resultcard__head .ys-resultcard__title {
    font-family: var(--ys-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ys-ink, #0a0a0a);
    margin: 0 0 8px;
}
.ys-resultcard__head .ys-resultcard__sub {
    font-size: 14px;
    color: var(--ys-muted, #7b8494);
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Chips row */
.ys-resultcard__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}
.ys-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 18px;
    background: var(--ys-surface, #f5f6f8);
    border: 1px solid var(--ys-line, #e5e5e5);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ys-body, #4a4a4a);
}
.ys-chip__lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ys-muted, #7b8494);
}
.ys-chip strong { font-weight: 700; color: var(--ys-ink, #0a0a0a); }

/* Block */
.ys-resultcard__block { margin-bottom: 26px; }
.ys-resultcard__blocktitle {
    font-family: var(--ys-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ys-ink, #0a0a0a);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ys-line, #e5e5e5);
}

/* Summary */
.ys-resultcard__summary { margin-bottom: 26px; }
.ys-summary__free { color: #1f7a3f; font-weight: 700; }

/* Payment block */
/* ---------- Payment section: separated with a soft band ---------- */
.ys-resultcard__payblock {
    margin: 0 -32px;
    padding: 28px 32px 34px;
    background: var(--ys-surface, #f7f8fa);
    border-top: 1px solid var(--ys-line, #e5e5e5);
    border-bottom: 1px solid var(--ys-line, #e5e5e5);
}
.ys-resultcard__payblock .ys-resultcard__blocktitle {
    border: 0;
    text-align: center;
    color: var(--ys-muted, #7b8494);
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 12px;
    margin: 0 0 18px;
    padding: 0;
}
.ys-resultcard__pay {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.ys-resultcard__pay .ys-btn {
    flex: 1 1 190px;
    max-width: 250px;
    margin: 0;
}

/* ---------- In-card actions: clear separation + bottom breathing room ---------- */
.ys-resultcard .ys-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 34px;
    padding-bottom: 2px;
}
.ys-resultcard .ys-cta-actions .ys-btn {
    min-width: 150px;
    margin: 0;
}

/* Card and page bottom spacing so content never hugs the footer */
.ys-resultwrap { padding-bottom: 42px; }
.ys-resultcard { margin-bottom: 4px; }

/* Pay card */
.ys-paycard {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
    padding: 44px 40px;
}
.ys-paycard .ys-title { margin: 6px 0 12px; }
.ys-paycard__amount {
    font-family: var(--ys-font-display);
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ys-ink);
    margin: 26px 0;
}
.ys-paycard form { margin-bottom: 14px; }
.ys-paycard__note {
    font-size: 12px;
    color: var(--ys-muted);
    line-height: 1.6;
    margin: 26px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .ys-cart, .ys-checkout { grid-template-columns: 1fr; }
    .ys-summary--sticky { position: static; }
    .ys-cart__head { display: none; }
    .ys-cart__row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 12px;
        position: relative;
        padding: 18px 0;
    }
    .ys-cart__product { grid-column: 1 / -1; }
    .ys-cart__price::before, .ys-cart__sub::before, .ys-cart__qty::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--ys-muted);
        margin-bottom: 4px;
    }
    .ys-cart__del { position: absolute; top: 18px; right: 0; }
}
@media (max-width: 560px) {
    .ys-block { padding: 20px 18px; }
    .ys-resultcard, .ys-paycard { padding: 30px 22px; }
}
