/* —— Aloquence: Cart-widget ako pravý drawer (responsívny, usporiadaný) —— */
#cart-widget .popup-widget-inner.cart-widget-inner.adtl-cart{
  position: fixed !important;
  right: 0 !important;
  top: var(--adtl-top, 60px) !important;       /* JS doplní presnú hodnotu */
  width: 360px;
  max-width: 100vw;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.14), 0 4px 10px rgba(0,0,0,.06);
  border-radius: 14px 0 0 14px;
  padding: 16px;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,.06);
  transform: none !important;
  animation: adtlSlideIn .14s ease-out;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - var(--adtl-top, 60px) - 16px);
  overflow: hidden;
}
@keyframes adtlSlideIn { from{opacity:.001;transform:translateX(12px)} to{opacity:1;transform:translateX(0)} }

/* Nadpisy/správy vnútri widgetu */
#cart-widget .adtl-cart h3, 
#cart-widget .adtl-cart strong { color:#0f1720 }
#cart-widget .adtl-cart p { margin:0; }

/* Zoznam produktov */
#cart-widget .adtl-cart .cart-widget-products{ margin:0; }
#cart-widget .adtl-cart .cart-widget-products-inner{
  display:grid;
  gap:12px;
  overflow:auto;
  padding-right: 6px;
  flex: 1 1 auto;
}

/* Karta produktu */
#cart-widget .adtl-cart .cart-widget-product{
  display:grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-areas:
    "img name name"
    "img price actions";
  align-items:center;
  gap:10px 12px;
  padding:12px;
  border:1px solid #e8ebef;
  border-radius:12px;
  background:#f9fafb;
}
#cart-widget .adtl-cart .cart-widget-product-image{ grid-area: img }
#cart-widget .adtl-cart .cart-widget-product-image img{
  width:52px;height:52px;border-radius:8px;object-fit:contain;background:#fff;margin-right:25px;
}
#cart-widget .adtl-cart .cart-widget-product-name{ grid-area:name; width:100% }
#cart-widget .adtl-cart .cart-widget-product-name a{
  font:600 15px/1.35 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:#27313a;text-decoration:none;
}
#cart-widget .adtl-cart .cart-widget-product-price{ grid-area:price; text-align:center }
#cart-widget .adtl-cart .cart-widget-product-price strong{ font:700 15px/1 system-ui; color:#111 }
#cart-widget .adtl-cart .cart-widget-product-amount,
#cart-widget .adtl-cart .cart-widget-product-delete,
#cart-widget .adtl-cart .cart-widget-product-unit{
  grid-area: actions; display:flex; align-items:center; gap:6px;
}
#cart-widget .adtl-cart .cart-widget-product-unit{ display:none }
#cart-widget .adtl-cart .cart-widget-product-amount input.amount{
  width:48px;height:34px;border:1px solid #e8ebef;border-radius:8px;padding:4px;text-align:center;font:500 14px system-ui;
}
#cart-widget .adtl-cart .cart-widget-product-amount button{
  border:1px solid #e8ebef;background:#fff;width:26px;height:26px;border-radius:7px;line-height:24px;text-align:center;font-size:16px;cursor:pointer;
}
#cart-widget .adtl-cart .cart-widget-product-amount button:hover{ background:#f0f2f4 }
#cart-widget .adtl-cart .cart-widget-product-delete button.remove-item{
  background:none;border:0;color:#a1a7ae;cursor:pointer;font-size:18px;padding:4px;border-radius:6px
}
#cart-widget .adtl-cart .cart-widget-product-delete button.remove-item:hover{ color:#e11d48; background:#fff }

/* Spodná časť */
#cart-widget .adtl-cart .cart-widget-bottom{ margin:0; padding-top:8px; border-top:1px solid #e8ebef }
#cart-widget .adtl-cart .cart-widget-button a.btn{
  display:block;width:100%;border-radius:12px;padding:13px 16px;font:700 15px/1 system-ui;text-align:center
}
#cart-widget .adtl-cart .cart-free-shipping{
  margin-top:8px;font:700 15px/1.3 system-ui;color:#0b2930;text-align:center
}

/* “Spolu” */
#cart-widget .adtl-cart .cart-widget-total{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;border:1px solid #e8ebef;border-radius:12px;background:#f6f8fa;margin-bottom:10px;
}
#cart-widget .adtl-cart .cart-widget-total .label{ font:600 14px/1.2 system-ui; color:#27313a }
#cart-widget .adtl-cart .cart-widget-total .amount{ font:800 16px/1 system-ui; color:#0f1720 }

/* Mobil */
@media (max-width: 480px){
  #cart-widget .popup-widget-inner.cart-widget-inner.adtl-cart{
    width: 100vw; border-radius: 0; border-left: 0; border-right: 0;
  }
}
@media (min-width: 992px){
  .popup-widget-inner .cart-widget-products{ max-height: 430px }
}