/* SelfHealth Side Cart - Premium Styles */

.sh-side-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100%;
    background: #ffffff;
    z-index: 100000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.sh-side-cart.active {
    right: 0;
}

.sh-side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sh-side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.sh-side-cart-header {
    padding: 25px;
    border-bottom: 1px solid #f1f5f9;
}

/* Content Area */
.sh-side-cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

/* Items */
.sh-cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f8fafc;
}

.sh-item-thumb {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
}

.sh-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sh-item-name {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 0.95rem;
}

.sh-item-price {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

/* Stepper */
.sh-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
    margin-right: 15px;
}

.sh-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-qty-btn:hover {
    color: #f26522;
}

.sh-qty-input {
    width: 30px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.sh-qty-input::-webkit-outer-spin-button,
.sh-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sh-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.sh-item-remove:hover {
    text-decoration: underline;
}

/* Loader */
.sh-side-cart-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f2652222;
    border-top: 3px solid #f26522;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons */
.sh-btn-orange {
    background: #f26522;
    color: #fff !important;
    border: none;
    transition: all 0.3s ease;
}

.sh-cart-toggle .sh-cart-count {
    background: #f26522;
}

.sh-btn-orange:hover {
    background: #3f4079;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}

/* Toggle Button */
.sh-cart-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #f26522;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sh-cart-toggle:hover {
    transform: scale(1.1);
}

.sh-cart-toggle .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.sh-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #3f4079;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Helper Classes */
.sh-item-locked-msg {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty Cart */
.sh-empty-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    opacity: 0.1;
}

@media (max-width: 480px) {
    .sh-side-cart {
        width: 100%;
        right: -100%;
    }
}
