/* Reset dan variabel */
:root {
    --primary-color: #7ab2d3;
    --secondary-color: #4a628a;
    --accent-color: #2ecc71;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --text-color: #7ab2d3;
    --border-color: #e1e8ee;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #dff2eb;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header dan Steps */
.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h1 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
}

.step i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step a {
    text-decoration: none;
    color: var(--primary-color);
}

.step.active {
    color: var(--primary-color);
}

.step.active i {
    color: var(--primary-color);
}

.step a:hover,
.step.active a {
    color: var(--accent-color);
}

.step-line {
    width: 100px;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1rem;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 10px;
    }

    .step-line {
        width: 2px;
        height: 30px;
        margin: 0;
    }
}

.cart-header {
    margin-bottom: 30px;
}

.cart-title {
    font-size: 28px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-count {
    font-size: 25px;
    color: #666;
    font-weight: bold;
}

.shipping-info {
    margin: 10px 0;
    color: #666;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    color: #666;
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 30px;
    padding: 20px 0;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
}

.item-info {
    display: flex;
    gap: 15px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-brand {
    color: #666;
    font-size: 14px;
}

.item-name {
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

.item-name a{
    color: #7ab2d3;
}

.item-count{
    color: #4a628a;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e5e5e5;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.remove-item {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.order-summary {
    background: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.summary-title {
    margin: 0 0 20px 0;
    font-size: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
    margin-top: 1.5rem;
}

.checkout-btn:hover {
    background: var(--accent-color);
    transform: scale(1.02);
    opacity: 0.9;
}

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

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

    .cart-table-header {
        display: none;
    }

    .order-summary {
        padding: 15px;
        font-size: 14px;
    }

    .summary-row span {
        font-size: 16px;
    }

    .checkout-btn {
        padding: 15px;
        font-size: 18px;
    }
}

