/* =============================================
   CART SIDEBAR — Portado de Liam Vercceli
   Colores RISKON: navy #173856 · naranja #F59300
   ============================================= */

.rk-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 24, 44, 0.55);
    z-index: 99998;
}
.rk-cart-overlay.active { display: block; }

.rk-cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(7, 24, 44, 0.18);
}
.rk-cart-sidebar.active { right: 0; }

.rk-cart-sidebar__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 26px 28px 20px;
    border-bottom: 1px solid #e8ecf0;
    flex-shrink: 0;
}
.rk-cart-sidebar__head i {
    color: #173856;
    font-size: 18px;
}
.rk-cart-sidebar__head h3 {
    flex: 1;
    font-family: "Inter", "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    color: #141516;
}
.rk-cart-sidebar__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #45474F;
    padding: 0 2px;
    transition: color 0.2s;
}
.rk-cart-sidebar__close:hover { color: #F59300; }

.rk-cart-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 28px;
}
.rk-cart-sidebar__body::-webkit-scrollbar { width: 4px; }
.rk-cart-sidebar__body::-webkit-scrollbar-thumb {
    background: #d5dae0;
    border-radius: 2px;
}

.rk-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 240px;
    gap: 14px;
    color: #92949F;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}
.rk-cart-empty i { font-size: 48px; color: #c5cad1; }

.rk-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #eef1f4;
    position: relative;
}
.rk-cart-item__img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f4f6f8;
}
.rk-cart-item__info {
    flex: 1;
    min-width: 0;
    padding-right: 28px;
}
.rk-cart-item__name {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #141516;
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rk-cart-item__meta {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}
.rk-cart-item__meta strong {
    color: #173856;
    font-weight: 700;
}

.rk-cart-item__delete {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #92949F;
    font-size: 15px;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}
.rk-cart-item__delete:hover { color: #F59300; }

.rk-cart-notes {
    padding: 16px 0 8px;
}
.rk-cart-notes p {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: #F59300;
    font-style: italic;
    margin: 0 0 4px;
    line-height: 1.5;
}

.rk-cart-sidebar__foot {
    padding: 16px 28px 28px;
    border-top: 1px solid #e8ecf0;
    flex-shrink: 0;
    background: #fff;
}

.rk-cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 18px;
    font-family: "Inter", sans-serif;
}
.rk-cart-subtotal-row .rk-subtotal-label {
    font-size: 13px;
    font-weight: 700;
    color: #141516;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.rk-cart-subtotal-row .rk-subtotal-value {
    font-size: 18px;
    font-weight: 700;
    color: #173856;
}

.rk-cart-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #173856;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 100px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.rk-cart-btn-primary:hover {
    background: #F59300;
    color: #fff;
    text-decoration: none;
}

.mh-icon.rk-cart-trigger {
    cursor: pointer;
    position: relative;
}

@media (max-width: 520px) {
    .rk-cart-sidebar { width: 100vw; right: -100vw; }
    .rk-cart-sidebar__head,
    .rk-cart-sidebar__body,
    .rk-cart-sidebar__foot {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rk-cart-sidebar { transition: none; }
}
