/* Drawer Styling */
.vp-cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 32vw;
    max-width: 480px;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.vp-cart-drawer.open { right: 0; }

/* Overlay */
.vp-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.vp-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Header */
.vp-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #004d40; /* VetPrime Green */
    margin-bottom: 25px;
    padding-bottom: 15px;
}
.vp-cart-header h3 {
    margin: 0;
    color: #004d40;
    font-size: 24px;
    font-weight: 600;
}
#vp-cart-close-d968fe7b {
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #37474f;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}
#vp-cart-close-d968fe7b:hover {
    color: #004d40;
}

/* Dynamic Content (Variation Form) */
.vp-cart-dynamic-content {
    margin-bottom: 20px;
}
.vp-cart-dynamic-content form.cart {
    display: block !important;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 25px;
}
.vp-cart-dynamic-content .variations {
    width: 100%;
    margin-bottom: 15px;
}
.vp-cart-dynamic-content .variations td {
    padding-bottom: 10px;
    display: block;
}
.vp-cart-dynamic-content .variations label {
    font-weight: 600;
    color: #37474f;
}
.vp-cart-dynamic-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}
.vp-cart-dynamic-content .woocommerce-variation-price {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #004d40;
}
.vp-cart-dynamic-content .single_add_to_cart_button {
    width: 100%;
    background-color: #004d40;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.vp-cart-dynamic-content .single_add_to_cart_button:hover {
    background-color: #00332a;
}
.vp-cart-dynamic-content .single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* WooCommerce Mini Cart Overrides */
.vp-cart-drawer .widget_shopping_cart_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.vp-cart-drawer ul.cart_list {
    flex-grow: 1;
    overflow-y: auto;
    margin: 0 0 25px 0;
    padding: 0;
}
.vp-cart-drawer ul.cart_list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.vp-cart-drawer ul.cart_list li:last-child {
    border-bottom: none;
}
.vp-cart-drawer ul.cart_list li img {
    width: 70px; /* Reduced from default to prevent domination */
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: cover;
}
.vp-cart-drawer ul.cart_list li a {
    font-size: 15px;
    font-weight: 500;
    color: #37474f;
    display: block;
    margin-bottom: 5px;
}
.vp-cart-drawer ul.cart_list li .quantity {
    font-size: 14px;
    color: #666;
}

.vp-cart-drawer .woocommerce-mini-cart__buttons {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.vp-cart-drawer .woocommerce-mini-cart__buttons .button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
    background-color: #004d40;
    color: #fff;
    border-radius: 4px;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}
.vp-cart-drawer .woocommerce-mini-cart__buttons .button:hover {
    background-color: #00332a;
}
.vp-cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
    background-color: #263238;
}
.vp-cart-drawer .woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #1a2327;
}
.vp-cart-drawer .woocommerce-mini-cart__total {
    font-size: 18px;
    font-weight: 600;
    color: #37474f;
    margin-bottom: 20px;
    text-align: center;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .vp-cart-drawer { 
        width: 45vw;
        max-width: none;
    }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .vp-cart-drawer { 
        width: 90vw; 
        padding: 25px 20px;
    }
}