/**
 * Cart Drawer Visibility Fixes
 */

/* Task 1: Keep cart icon visible when drawer is open */
/* The cart icon should not be affected by the wrapper container shift */
.tbay-topcart,
.mini-cart.v2,
.mini-cart-btn,
.cart-icon {
  position: relative;
  z-index: 10001;
}

/* Ensure the cart icon container stays in place */
.topbar-device-desktop .tbay-topcart,
.topbar .mini-cart {
  z-index: 10001;
  position: relative;
}

/* Task 2: Add padding to Carrinho heading (can be overridden by JS for dynamic adjustment) */
.widget-header-cart .widget-title {
  padding-top: 30px;
}

/* Task 3 & 4: Smooth closing animation for cart drawer */
.tbay-dropdown-cart.v2 .dropdown-content {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure remove buttons have proper z-index */
.mini_cart_content a.remove {
  z-index: 100;
}
