/* ===== Parts table ===== */
.rig-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #DDE2E9;
    border-radius: 10px;
    background: #fff;
}
.rig-parts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.rig-parts-table th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8290A6;
    padding: 14px 18px;
    background: #F8F9FB;
    border-bottom: 1px solid #DDE2E9;
}
.rig-parts-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #DDE2E9;
    font-size: 14px;
}
.rig-parts-table tr:last-child td { border-bottom: none; }
.rig-num { text-align: right; }
.rig-part-no { font-weight: 600; }
.rig-mfr { color: #6B7684; font-size: 13px; }

/* Sticky action column so Add to Cart stays visible on mobile scroll */
.rig-parts-table th:last-child,
.rig-parts-table td:last-child {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -6px 0 8px -6px rgba(18,33,61,0.12);
}
.rig-parts-table th:last-child { background: #F8F9FB; }

@media (max-width: 640px) {
    .rig-parts-table th:nth-child(3),
    .rig-parts-table td:nth-child(3) { display: none; }
}

/* ===== Cart drawer ===== */
.rig-overlay {
    position: fixed; inset: 0;
    background: rgba(15,20,32,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9998;
}
.rig-overlay.rig-open { opacity: 1; pointer-events: auto; }

.rig-drawer {
    position: fixed; top: 0; right: 0; height: 100%;
    width: 400px; max-width: 92vw;
    background: #fff;
    box-shadow: -16px 0 40px rgba(18,33,61,0.18);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2,.8,.25,1);
    z-index: 9999;
    display: flex; flex-direction: column;
}
.rig-drawer.rig-open { transform: translateX(0); }

.rig-drawer-head {
    padding: 20px 22px;
    border-bottom: 1px solid #DDE2E9;
    display: flex; align-items: center; justify-content: space-between;
}
.rig-drawer-head h2 { margin: 0; font-size: 20px; }
.rig-close-btn {
    background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer;
    color: #6B7684;
}

.rig-cart-drawer-content { display: flex; flex-direction: column; flex: 1; overflow-y: auto; }
.rig-cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.rig-cart-item {
    display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #EEF0F3;
}
.rig-cart-item-info { flex: 1; min-width: 0; }
.rig-item-desc { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.rig-item-sku { font-size: 11.5px; color: #6B7684; }
.rig-cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rig-qty-stepper {
    display: flex; align-items: center; border: 1px solid #DDE2E9; border-radius: 6px; overflow: hidden;
}
.rig-qty-stepper button {
    background: #F8F9FB; border: none; width: 24px; height: 24px; cursor: pointer; font-size: 14px;
}
.rig-qty-stepper span { width: 26px; text-align: center; font-size: 12.5px; font-weight: 600; }
.rig-remove-link {
    background: none; border: none; color: #C2483A; font-size: 11.5px; cursor: pointer;
    text-decoration: underline;
}
.rig-empty-cart { text-align: center; padding: 60px 20px; color: #6B7684; font-size: 13.5px; }

.rig-drawer-foot { padding: 16px 22px 22px; border-top: 1px solid #DDE2E9; background: #FBFCFD; }
.rig-subtotal-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.rig-checkout-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; background: #12213D; color: #fff; border: none; border-radius: 8px;
    padding: 13px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.rig-checkout-btn:hover { background: #28375A; color: #fff; }
.rig-foot-note { font-size: 11px; color: #6B7684; text-align: center; margin-top: 10px; line-height: 1.4; }