* {
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    background: #f8f4f1;
    color: #2d2d2d;
    margin: 0;
}

.cart-page {
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 120px;
}

.cart-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 42px 48px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
}

.cart-card::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 20px;
    right: 20px;
    height: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.12);
    filter: blur(6px);
    z-index: -1;
}

.cart-card h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.cart-count {
    margin: 0 auto 24px;
    font-size: 1.2rem;
}

.cart-message {
    background: #e8fff4;
    border: 1px solid #30a779;
    color: #247253;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.empty-text {
    margin: 30px 0 26px;
    color: #6b6b6b;
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #dadada;
}

.cart-item:first-child {
    border-top: none;
}

.item-details {
    text-align: left;
}

.product-name {
    font-weight: 600;
    margin: 0 0 6px;
}

.product-info,
.product-qty {
    margin: 0;
    font-size: 0.95rem;
}

.item-actions {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.item-subtotal {
    margin: 0;
    font-weight: bold;
}

.remove-btn {
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.remove-btn:hover {
    opacity: 0.85;
}

.cart-total {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 1.1rem;
    margin-bottom: 24px;
    border-top: 1px solid #1f1f1f;
    padding-top: 18px;
}

.total-amount {
    font-weight: 700;
}

.primary-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    background: #0f7f67;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(15, 127, 103, 0.35);
}

@media (max-width: 480px) {
    .cart-card {
        padding: 32px 28px;
    }

    .item-actions {
        align-items: flex-start;
    }

    .cart-total {
        flex-direction: column;
        align-items: center;
    }
}
