/* Cart page styles */
.cart-page {
    max-width: 760px;
}

.cart-empty {
    padding: 60px 0;
    text-align: center;
    color: #d0d0d0;
}

.cart-empty p {
    font-size: 16px;
    margin-bottom: 24px;
}

.cart-items {
    margin: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.cart-item-meta {
    font-size: 13px;
    color: #b8b8b8;
    margin: 0 0 8px;
}

.cart-item-price {
    font-size: 14px;
    color: #ff6ec0;
    font-weight: 600;
}

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

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.cart-qty button {
    width: 28px;
    height: 30px;
    background: transparent;
    color: var(--white);
    border: 0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-qty button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cart-qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--white);
}

.cart-remove {
    background: transparent;
    border: 0;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.cart-remove:hover {
    color: #ff6ec0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.cart-total-label {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--gray-light);
    text-transform: uppercase;
}

.cart-total-amount {
    font-size: 32px;
    font-weight: 600;
    color: var(--white);
}

/* Checkout form */
.checkout-form h2 {
    font-size: 18px;
    color: #ff6ec0;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px;
    font-weight: 600;
}

.checkout-field {
    margin-bottom: 16px;
}

.checkout-field label {
    display: block;
    font-size: 12px;
    color: #b8b8b8;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.checkout-field textarea {
    resize: vertical;
    min-height: 50px;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: #ff6ec0;
}

.checkout-legal {
    font-size: 12px;
    color: #888;
    line-height: 1.55;
    margin: 8px 0 18px;
}

.checkout-legal a {
    color: #ff6ec0;
    text-decoration: underline;
}

.checkout-error {
    padding: 12px 16px;
    background: rgba(217, 41, 41, 0.15);
    border: 1px solid rgba(217, 41, 41, 0.4);
    border-radius: 6px;
    color: #ff9d9d;
    font-size: 13px;
    margin-bottom: 16px;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}

.cart-btn--primary {
    width: 100%;
    background: var(--accent);
    border-color: var(--accent);
}

.cart-btn--primary:hover:not(:disabled) {
    background: #ff6ec0;
    border-color: #ff6ec0;
}

.cart-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cart-btn--secondary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 14px;
    }
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    .cart-item-right {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .cart-total-amount {
        font-size: 26px;
    }
}
