/* Sliding Cart Styles */
.sliding-cart-header-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.sliding-cart-trigger {
    /*background: #fff;*/
    padding: 0px 12px;
    /*border-radius: 25px;*/
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    /*transition: all 0.3s ease;*/
}

/*.sliding-cart-trigger:hover {*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 4px 20px rgba(0,0,0,0.15);*/
/*}*/

.sliding-cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sliding-cart-panel.active {
    right: 0;
}

.sliding-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-header {
    padding:8px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header-content {
    display: flex;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

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

.cart-items {
    flex: 1;
    overflow: hidden;
    padding: 20px;
}

/* Add scrollbar only when needed */
.cart-items.scrollable {
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    flex-shrink: 0;
}

.item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 400;
}

.item-attributes {
    margin: 5px 0;
}

.item-attributes .attribute {
    display: block;
    font-size: 12px;
    color: #666;
    margin: 2px 0;
}

.item-quantity {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.item-price {
    font-weight: 700;
    color: #710014;
    font-size: 18px;
}

.remove-item {
    position: absolute;
    top: 15px;
    right: 0;
    background: #fff;
    border: none;
    border-radius: 5px;
    width: auto;
    height: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    transition: all 0.3s ease;
    padding: 0;
}

.remove-item:hover {
    /*background: #ff3742;*/
    /*transform: scale(1.1);*/
}

.remove-item svg {
    width: 16px;
    height: 16px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.checkout-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #710014;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-size:18px;
}

.checkout-button:hover {
    background: #005a87;
    color: white;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 50px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sliding-cart-panel {
        width: 100%;
        right: -100%;
    }
    
    .cart-items {
        height: calc(100vh - 160px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-footer {
        background: #fff;
    }
    
    .sliding-cart-header-icon {
        top: 10px;
        right: 10px;
    }
    
    .sliding-cart-trigger {
        padding: 0px 9px;
        font-size: 14px;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.quantity-btn {
    width: auto;
    height: auto;
    /*border: 1px solid #ddd;*/
    background: #fff;
    cursor: pointer;
    /*border-radius: 5px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*font-weight: bold;*/
    transition: all 0.2s ease;
    padding:0;
    border:none;
}

.quantity-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
    border:none;
}

.quantity-display {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size:18px;
    color:#000;
}

/* Update existing empty-cart class */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

.cart-icon img {width:90px; color:#01082f;}
@media (max-width: 768px) {
    .cart-icon img {width:100px;}    
}

/* New empty cart icon styles */
.empty-cart-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-cart p {
    margin: 0;
    font-size: 16px;
}

/* Ensure cart-items takes full height when empty */
.cart-items:has(.empty-cart) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback for browsers that don't support :has() */
.cart-items {
    min-height: 300px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .empty-cart-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .empty-cart p {
        font-size: 14px;
    }
}
.woocommerce-Price-amount {color:#01082f !important; font-family:"Poppins"; font-weight:500 !important; font-size:16px;}
