/* ==========================================================================
   PrivilegeServer - Engineered Cart System (Light Theme)
   Aesthetic: Mission Procurement, Technical Precision
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --brand-lime: #a3e635;
    --brand-dark: #000000;
    --text-dim: rgba(0, 0, 0, 0.6);
}

.cart-modern-section {
    background: #fff;
    padding: 80px 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.cart-modern-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1.5px, transparent 1.5px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Fix for the container squeezing issue */
.cart-engineered-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.cart-engineered-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

/* Procurement List */
.procurement-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.procurement-card h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #000;
}

.procurement-card h2::before {
    content: '//';
    color: var(--brand-lime);
}

.cart-item-engineered {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.item-icon-box {
    width: 60px;
    height: 60px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--brand-lime);
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.item-details h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.item-details p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}

.item-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    transition: 0.2s;
}

.remove-btn:hover {
    color: #b91c1c;
    transform: scale(1.1);
}

/* Order Summary Sidebar */
.summary-card-engineered {
    background: var(--brand-lime);
    padding: 35px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
    position: sticky;
    top: 40px;
    box-shadow: 0 20px 40px rgba(163, 230, 53, 0.2);
}

.summary-card-engineered h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #000;
    font-size: 16px;
}

.summary-row.total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 32px;
    font-weight: 700;
}

.btn-checkout-engineered {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 18px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.3s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-checkout-engineered:hover {
    background: #222;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Coupon Box */
.coupon-engineered {
    margin-top: 35px;
    display: flex;
    gap: 10px;
}

.coupon-engineered input {
    flex: 1;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.btn-apply {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* Responsiveness Fix */
@media (max-width: 1100px) {
    .cart-engineered-grid {
        grid-template-columns: 1fr;
    }

    .summary-card-engineered {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cart-item-engineered {
        grid-template-columns: 60px 1fr auto;
        gap: 15px;
    }

    .item-price {
        grid-column: 2;
        font-size: 18px;
    }

    .remove-btn {
        grid-row: span 2;
    }

    .procurement-card {
        padding: 25px;
        clip-path: none;
    }
}

@media (max-width: 480px) {
    .cart-item-engineered {
        grid-template-columns: 1fr auto;
    }

    .item-icon-box {
        display: none;
    }

    .item-details {
        grid-column: 1;
    }

    .item-price {
        grid-column: 1;
    }

    .remove-btn {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}