
.cart-wrapper {
    background: #000;
    color: #fff;
    padding: 60px 20px;
    min-height: 100vh;
}

.cart-box {
    max-width: 1100px;
    margin: auto;
    background: #111;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.04);
}

.cart-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #333;
    font-size: 13px;
    text-transform: uppercase;
    color: #aaa;
}

.cart-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #222;
    vertical-align: middle;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-cell img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
}

.remove-btn {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 14px;
}

.remove-btn:hover {
    text-decoration: underline;
}

.cart-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 18px;
    font-weight: 600;
}

.checkout-btn {
    padding: 10px 20px;
    background: #D46A3A;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #caa34d;
}

/* =============================
   RELATED SECTION
============================= */

.related-section {
    margin-top: 60px;
}

.related-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #222;
    transition: 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-info {
    padding: 15px;
    text-align: center;
}

.related-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.related-price {
    color: #ccc;
    margin-bottom: 12px;
}

.view-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    color: #000;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.view-btn:hover {
    background: #ddd;
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        margin-bottom: 20px;
        border-bottom: 1px solid #333;
        padding-bottom: 15px;
    }

    .cart-table td {
        border: none;
        padding: 8px 0;
    }

    .product-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: #ccc;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.3s;
}

.continue-btn:hover {
    background: #D46A3A;
    color: #fff;
    border-color: #555;
}

.continue-icon {
    font-size: 14px;
}

.cart-total-bar {
    margin-top: 15px;
    padding: 18px 20px;
    background: #1a1a1a;
    border-top: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
}
.qty-input {
    width: 45px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f5f5f5;
    cursor: default;
    pointer-events: none; /* disables clicking */
}

/* Mobile refinement */
@media (max-width: 768px) {
    .cart-total-bar {
        padding: 15px;
    }

    .total-label {
        font-size: 15px;
    }

    .total-price {
        font-size: 17px;
    }
}


@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
