/*
 * Classic Style - Cart Page CSS (PC)
 * Complete migration from 站点模版/folding-bed-website-pc/cart.html inline styles
 * DO NOT MODIFY - Keep exact same as original template
 */

.cart-page {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: calc(100vh - 200px);
}

.cart-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.2);
}

.cart-header h1 {
    font-size: 2.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.cart-header h1 i {
    color: #60a5fa;
    font-size: 2.5rem;
}

.cart-items {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr auto auto;
    gap: 25px;
    padding: 30px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: all 0.3s;
}

.cart-item:hover {
    background: #fafbfc;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-item-info h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 600;
}

.cart-item-info .item-specs {
    color: #6b7280;
    font-size: 0.95rem;
}

.cart-item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2563eb;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    background: white;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
}

.quantity-control button:hover {
    background: #2563eb;
    color: white;
}

.quantity-control span {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
}

.btn-remove {
    color: #dc2626;
    background: #fef2f2;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #dc2626;
    color: white;
}

.cart-empty {
    text-align: center;
    padding: 80px 40px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.cart-empty i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.cart-empty h2 {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cart-empty p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-continue-shopping {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-continue-shopping:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.cart-summary {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 35px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #4b5563;
    font-size: 1.05rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    padding-top: 20px;
    border-top: 3px solid #e5e7eb;
    margin-top: 20px;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 35px;
}

/* Checkout Form Section Styles */
.checkout-form-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 60px 0;
}

.checkout-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

.checkout-form-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 10px;
}

.checkout-form-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
}

.order-review {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.order-review h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-review h3 i {
    color: #2563eb;
}

.order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-info h4 {
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 5px;
}

.order-item-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

.order-item-qty {
    color: #6b7280;
    font-weight: 500;
}

.order-item-price {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 2px solid #e5e7eb;
    font-size: 1.2rem;
    font-weight: 600;
}

.order-total-amount {
    color: #2563eb;
    font-size: 1.5rem;
}

/* Order Summary Box Styles */
.order-summary-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #e5e7eb;
}

.order-summary-box h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary-box h3 i {
    color: #2563eb;
}

.order-summary-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.order-summary-item-info h4 {
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.order-summary-item-info p {
    color: #6b7280;
    font-size: 0.85rem;
}

.order-summary-item-qty {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
}

.order-summary-item-price {
    color: #2563eb;
    font-weight: 700;
    font-size: 1rem;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #2563eb;
    font-size: 1.2rem;
    font-weight: 700;
}

.order-summary-total span:last-child {
    color: #2563eb;
    font-size: 1.4rem;
}

.checkout-form h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form h3 i {
    color: #2563eb;
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
}

.checkout-form .form-group label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.checkout-form .form-group input:focus,
.checkout-form .form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.checkout-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-back {
    flex: 1;
    padding: 14px 24px;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-submit-order {
    flex: 2;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

@media (max-width: 968px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 120px 1fr;
        gap: 20px;
    }

    .cart-item-price,
    .cart-item-actions {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .checkout-form-container {
        padding: 25px;
    }

    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .order-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }

    .order-item-qty,
    .order-item-price {
        grid-column: 2;
    }
}