/* --- Custom Side Drawer Mini Cart Styles --- */

.custom-mini-cart-wrapper {
    position: relative;
    display: inline-block;
}

.custom-mini-cart-toggle {
    display: block;
    text-decoration: none !important;
    cursor: pointer;
    padding: 10px;
    color: #186532;
    transition: all 0.3s ease;
}

.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-container svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #186532;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Side Drawer Overlay */
.mini-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: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.custom-mini-cart-wrapper.active .mini-cart-overlay {
    opacity: 1;
    visibility: visible;
}

/* Side Drawer Container */
.custom-mini-cart-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-mini-cart-wrapper.active .custom-mini-cart-dropdown {
    transform: translateX(0);
}

/* Drawer Header */
.mini-cart-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: "Instrument Sans", sans-serif;
}

.close-mini-cart {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-mini-cart:hover {
    color: #cc0000;
}

/* Content Area */
.custom-mini-cart-dropdown .widget_shopping_cart_content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
.custom-mini-cart-dropdown .widget_shopping_cart_content::-webkit-scrollbar {
    width: 6px;
}
.custom-mini-cart-dropdown .widget_shopping_cart_content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-mini-cart-dropdown .widget_shopping_cart_content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* WooCommerce List Overrides */
.woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mini_cart_item {
    display: flex !important;
    gap: 15px;
    padding: 20px 0 !important;
    border-bottom: 1px solid #f2f2f2 !important;
    position: relative;
    align-items: flex-start;
}

.mini_cart_item:last-child {
    border-bottom: none !important;
}

.mini_cart_item img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 !important;
}

.mini_cart_item .product-details {
    flex: 1;
}

.mini_cart_item a:not(.remove) {
    display: block;
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    margin-bottom: 4px;
    line-height: 1.3;
}

.mini_cart_item .remove_from_cart_button {
    position: absolute !important;
    top: 20px;
    right: 0;
    width: 24px;
    height: 24px;
    background: #fee;
    color: #cc0000 !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.mini_cart_item .remove_from_cart_button:hover {
    background: #cc0000;
    color: #fff !important;
}

/* Booking data in mini cart */
.variation, .wc-item-meta {
    margin: 5px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 12px !important;
    color: #666 !important;
}

.variation dt, .wc-item-meta dt {
    font-weight: 700;
    color: #333;
    display: block;
    float: none !important;
    margin: 3px 0 0 !important;
}

.variation dd, .wc-item-meta dd {
    display: block;
    margin: 0 0 5px !important;
}

.mini_cart_item .quantity {
    display: block;
    font-size: 0.95rem;
    color: #186532;
    font-weight: 700;
    margin-top: 8px;
}

/* Footer / Action Area */
.mini-cart-footer {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.custom-mini-cart-dropdown .total {
    padding: 25px 25px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
    background: #fafafa !important;
}

.custom-mini-cart-dropdown .total strong {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.custom-mini-cart-dropdown .total .amount {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 800;
}

.custom-mini-cart-dropdown .buttons {
    padding: 0 25px 25px !important;
    background: #fafafa !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.custom-mini-cart-dropdown .buttons a {
    display: block !important;
    text-align: center !important;
    padding: 16px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-mini-cart-dropdown .buttons a.wc-forward:not(.checkout) {
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #ddd !important;
}

.custom-mini-cart-dropdown .buttons a.checkout {
    background: #186532 !important;
    color: #fff !important;
}

.custom-mini-cart-dropdown .buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Empty Cart Style */
.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.woocommerce-mini-cart__empty-message .button.wc-backward {
    background: #186532 !important;
    color: #fff !important;
    padding: 12px 25px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: inline-block !important;
}

.woocommerce-mini-cart__empty-message .button.wc-backward:hover {
    background: #145229 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 20px rgba(24, 101, 50, 0.2) !important;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .custom-mini-cart-dropdown {
        width: 100%;
    }
}
