#pi-modal-content{
    grid-template-columns: 3fr 3fr 3fr;
}
#pi-header-cart-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #232323;
}

.pi-cart-count {
    background-color: #24b9d7;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
    position: absolute;
    top: -5px;
    right: -10px;
    transition: transform 0.2s ease;
}

.pi-cart-count.pi-cart-hidden {
    transform: scale(0);
}

.modal.fade.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 100%;
    max-width: 420px;
    height: 100%;
    transform: translate3d(100%, 0, 0);
    transition: transform .3s ease-out;
}
.modal.fade.right.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}
.modal-dialog.modal-side.modal-top-right {
    right: 0;
}
.modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
}
.modal-body {
    overflow-y: auto;
}
.modal-footer.flex-column {
    align-items: stretch;
}

.pi-product-list { list-style: none; padding: 0; margin: 0; }
.pi-product-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.pi-product-item:last-child { border-bottom: none; }
.pi-product-image img { width: 80px; border: 1px solid #ddd; }
.pi-product-details { flex-grow: 1; padding: 0 20px; }
.pi-product-name { font-weight: bold; }
.pi-product-attributes { font-size: 0.85em; color: #666; }
.pi-product-price { font-weight: bold; margin: 10px 0; }
.pi-product-quantity { display: flex; align-items: center; }
.pi-qty-btn { width: 28px; height: 28px; }
.pi-qty-value { padding: 0 10px; font-weight: bold; }
.pi-product-remove a { color: #aaa; }
.pi-product-remove a:hover { color: #c00; }
.pi-product-remove a span { font-size: 2rem; font-weight: 400; line-height: 1; }


.pi-cart-summary { margin-bottom: 1rem; }
.pi-summary-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.pi-total { font-weight: bold; font-size: 1.1em; }
.pi-cart-actions { display: flex; gap: 10px; }
.pi-cart-actions .btn { flex: 1; }
.pi-cart-empty { text-align: center; padding: 40px 0; color: #777; }

.pi-loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
}
.pi-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1c1c1c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: pi-spin 1s linear infinite;
}
@keyframes pi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
