/* ── Cart page ── */
.commerce-list--cart {
    gap: 0.85rem;
}

.commerce-list-item {
    background: #fff;
    border: 1px solid rgba(22, 93, 49, 0.1);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.commerce-list-item:hover {
    border-color: rgba(27, 131, 84, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.commerce-list-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.commerce-list-thumb {
    display: block;
    width: 112px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f7fa;
    border: 1px solid rgba(22, 93, 49, 0.08);
}

.commerce-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.commerce-list-item:hover .commerce-list-thumb img {
    transform: scale(1.04);
}

.commerce-list-body {
    flex: 1;
    min-width: 0;
}

.commerce-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.commerce-list-type,
.commerce-list-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
}

.commerce-list-type {
    background: rgba(27, 131, 84, 0.1);
    color: #135f3d;
}

.commerce-list-type--diploma {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.commerce-list-chip {
    background: #f1f5f9;
    color: #475569;
}

.commerce-list-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.commerce-list-title__link {
    color: #1a1a1a;
    text-decoration: none;
    display: inline;
    transition: color 0.15s ease;
}

.commerce-list-title__link:hover {
    color: #1b8354;
}

.commerce-list-title__hint {
    display: inline-block;
    margin-inline-start: 0.35rem;
    font-size: 0.72rem;
    opacity: 0;
    transform: translateY(2px);
    color: #1b8354;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.commerce-list-title__link:hover .commerce-list-title__hint,
.commerce-list-item:hover .commerce-list-title__hint {
    opacity: 0.85;
    transform: translateY(0);
}

.commerce-list-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    flex-shrink: 0;
    text-align: end;
}

.commerce-list-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #135f3d;
    white-space: nowrap;
    line-height: 1.2;
}

.commerce-list-price small {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5c6b64;
}

.cart-summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    max-height: 12rem;
    overflow-y: auto;
}

.cart-summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: 0.8rem;
}

.cart-summary-item__title {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    min-width: 0;
    line-height: 1.4;
}

.cart-summary-item__title:hover {
    color: #1b8354;
}

.cart-summary-item__price {
    color: #5c6b64;
    font-weight: 700;
    white-space: nowrap;
}

/* Guest cart hero */
.cart-guest-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(22, 93, 49, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.cart-guest-hero__main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cart-guest-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(27, 131, 84, 0.12), rgba(27, 131, 84, 0.04));
    color: #1b8354;
    font-size: 1.15rem;
}

.cart-guest-hero__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
}

.cart-guest-hero__desc {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: #5c6b64;
}

.cart-guest-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    background: #f7faf8;
    border: 1px solid rgba(22, 93, 49, 0.08);
}

.cart-guest-hero__stat span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #5c6b64;
}

.cart-guest-hero__stat strong {
    font-size: 1.05rem;
    color: #135f3d;
}

/* Keep sticky checkout/summary below the fixed site header */
.cart-sticky-panel {
    position: sticky;
    top: calc(var(--header-height, 85px) + 1.25rem);
    z-index: 5;
}

.commerce-cart-guest .page-content {
    position: relative;
    z-index: 1;
}

.commerce-cart-guest .commerce-guest-checkout {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

@media (max-width: 991.98px) {
    .cart-sticky-panel {
        position: static;
        top: auto;
        z-index: auto;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .commerce-list-row {
        flex-wrap: wrap;
    }

    .commerce-list-thumb {
        width: 100%;
        height: 160px;
    }

    .commerce-list-side {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 0.15rem;
    }

    .commerce-list-price {
        margin-bottom: 0;
    }
}
