/* Free Shipping Progress Bar */
.ecomus-free-shipping-bar {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ecomus-free-shipping-bar__progress {
    position: relative;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ecomus-free-shipping-bar__progress-bar {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #FFA500 0%, #FF8C00 100%);
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
}

.ecomus-free-shipping-bar__progress-bar.complete {
    background: linear-gradient(90deg, #DC143C 0%, #B22222 100%);
}

.ecomus-free-shipping-bar__icon {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ecomus-free-shipping-bar__icon svg {
    width: 14px;
    height: 14px;
}

.ecomus-free-shipping-bar__message {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.ecomus-free-shipping-bar__message.complete {
    color: #DC143C;
    font-weight: 600;
}

/* Cart Panel */
.offscreen-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 420px;
    height: 100vh;
    background: white;
    z-index: 99999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.offscreen-panel.active {
    right: 0;
}

.panel__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    display: none;
}

.panel__backdrop.active {
    display: block;
}

.panel__container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.panel__button-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.panel__button-close:hover {
    color: #000;
}

.panel__header {
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Cart Items List */
.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.woocommerce-mini-cart li {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.woocommerce-mini-cart li img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.woocommerce-mini-cart li .cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-mini-cart li .cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.woocommerce-mini-cart li .cart-item-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-mini-cart li .cart-item-regular-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.woocommerce-mini-cart li .cart-item-price {
    font-size: 16px;
    color: #ff0000;
    font-weight: 700;
}

.woocommerce-mini-cart li .cart-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.woocommerce-mini-cart li .quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.woocommerce-mini-cart li .quantity-btn:hover {
    border-color: #000;
    color: #000;
}

.woocommerce-mini-cart li .quantity-value {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.woocommerce-mini-cart li .remove-btn {
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: underline;
}

.woocommerce-mini-cart li .remove-btn:hover {
    color: #ff0000;
}

/* Empty Cart Message */
.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 40px 20px;
}

.woocommerce-mini-cart__empty-message h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.woocommerce-mini-cart__empty-message p {
    color: #666;
    margin-bottom: 20px;
}

/* Cart Footer */
.cart-panel__footer {
    border-top: 2px solid #eee;
    padding: 20px;
    background: #f8f8f8;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.cart-subtotal-amount {
    color: #333;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-savings {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions .em-button {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-actions .em-button-outline {
    background: white;
    color: #000;
    border: 2px solid #000;
}

.cart-actions .em-button-outline:hover {
    background: #000;
    color: white;
}

.cart-actions .em-button:not(.em-button-outline) {
    background: #ff0000;
    color: white;
    border: 2px solid #ff0000;
}

.cart-actions .em-button:not(.em-button-outline):hover {
    background: #cc0000;
    border-color: #cc0000;
}

/* Success Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 999999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #4CAF50;
}

.cart-notification.show {
    right: 20px;
}

.cart-notification__content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-notification__icon {
    width: 50px;
    height: 50px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-notification__text {
    flex: 1;
}

.cart-notification__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.cart-notification__message {
    font-size: 14px;
    color: #666;
}

.cart-notification__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-notification__close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .offscreen-panel {
        width: 100%;
        max-width: 400px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-notification {
        width: calc(100% - 40px);
        right: -100%;
    }
    
    .cart-notification.show {
        right: 20px;
    }
}
