/* Mini Cart Styling */
.minicart-content {
    max-height: 350px;
    overflow-y: auto;
    padding: 0 5px;
    margin-bottom: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.minicart-content::-webkit-scrollbar {
    width: 4px;
}

.minicart-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.minicart-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.minicart-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.minicart-heading {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
}

.minicart-heading h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.minicart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: background-color 0.2s ease;
}

.minicart-item:hover {
    background-color: #f9f9f9;
}

.item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex-grow: 1;
    padding-right: 25px;
}

.item-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #e66f23;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.remove-item {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-item:hover {
    color: #e66f23;
    background-color: #f0f0f0;
}

.minicart-summary {
    padding: 15px 10px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.summary-value {
    color: #e66f23;
}

.minicart-actions {
    display: flex;
    gap: 10px;
    padding: 15px 10px 10px;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.view-cart-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.view-cart-btn:hover {
    background-color: #e9ecef;
    color: #e66f23;
}

.checkout-btn {
    background-color: #e66f23;
    color: white;
    border: 1px solid #e66f23;
}

.checkout-btn:hover {
    background-color: #d15e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 111, 35, 0.2);
}

.action-btn i {
    margin-right: 5px;
    font-size: 16px;
}

.empty-cart {
    padding: 30px 20px;
    text-align: center;
}

.empty-cart-icon {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #777;
    margin-bottom: 15px;
}

.minicart-continue-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333 !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.minicart-continue-btn:hover {
    background-color: #e9ecef;
    color: #e66f23 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .minicart-content {
        max-height: 250px;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
    
    .item-title {
        font-size: 13px;
    }
    
    .action-btn {
        height: 38px;
        font-size: 13px;
    }
}