/* DISTRACTION FREE CART CSS */

body {
    background-color: #f7f9fa;
    color: var(--text-main);
    margin: 0;
}

.cart-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-header-logo {
    display: block;
    max-width: 150px;
}

.cart-header-logo img {
    width: 100%;
    height: auto;
}

.cart-secure-badge {
    position: absolute;
    right: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-secure-badge i {
    font-size: 16px;
}

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

.cart-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.cart-title-area h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.cart-steps {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
}

.cart-step {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.cart-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cart-step.active .cart-step-num {
    background: var(--primary);
    color: white;
}

.cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cart-items-section {
    flex: 2;
}

.cart-summary-section {
    flex: 1;
    position: sticky;
    top: 30px;
}

.cart-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

/* Items */
.cart-item-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item-modern:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 10px;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

.cart-item-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
}

.cart-item-actions-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: #f9f9f9;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-main);
}

.cart-qty-btn:hover {
    background: #eaeaea;
}

.cart-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    background: #fee;
}

/* Summary */
.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-muted);
}

.summary-line.highlight {
    color: #27ae60;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.checkout-btn-large {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 25px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.checkout-btn-large:hover {
    background: var(--primary-dark);
}

.back-to-shop {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.back-to-shop:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cart-footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

/* Checkout Form specific */
.checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

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

.checkout-full {
    margin-bottom: 20px;
}

.checkout-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.checkout-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.checkout-input:focus {
    border-color: var(--primary);
}

.checkout-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 30px;
}

.checkout-checkbox-wrap input {
    margin-top: 3px;
    cursor: pointer;
}

.checkout-secure-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.checkout-secure-footer i {
    color: #27ae60;
}

@media (max-width: 998px) {
    .cart-layout {
        flex-direction: column;
    }
    .cart-items-section,
    .cart-summary-section {
        width: 100%;
        position: static;
    }
    .cart-secure-badge {
        display: none; /* Hide badge on mobile header to save space */
    }
    .cart-title-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .checkout-grid-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .cart-container {
        margin: 20px auto 40px;
        padding: 0 15px;
    }
    .cart-box {
        padding: 15px;
    }
    .cart-item-modern {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        align-items: flex-start;
    }
    .cart-item-img {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
    }
    .cart-item-info {
        flex: 1;
        min-width: 150px;
    }
    .cart-item-title {
        font-size: 14px;
    }
    .cart-item-price {
        font-size: 16px;
    }
    .cart-item-bottom {
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .cart-title-area {
        margin-bottom: 15px;
    }
    .cart-steps {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }
    .cart-header {
        padding: 15px;
    }
    .cart-title-area h1 {
        font-size: 22px;
    }
}
