:root{
  --gece:#0A1322;
  --gri:#66748E;
  --mavi:#1E5BD6;
}

.zt-cart-overlay{
  position:fixed;inset:0;background:rgba(10,19,34,.45);
  z-index:10000000;opacity:0;pointer-events:none;
  transition:opacity .3s;
}
.zt-cart-overlay.is-open{opacity:1;pointer-events:auto}
body.zt-cart-open{overflow:hidden}

.zt-cart-drawer{
  position:fixed;top:0;right:0;bottom:0;
  width:min(400px,100%);max-width:100%;
  background:#FAFAFE;z-index:10000001;
  display:flex;flex-direction:column;
  transform:translateX(100%);
  visibility:hidden;
  transition:transform .35s cubic-bezier(.4,0,.2,1),visibility 0s linear .35s;
  box-shadow:-12px 0 40px rgba(10,19,34,.14);
  font-family:'Poppins',system-ui,sans-serif;
}
.zt-cart-drawer.is-open{transform:translateX(0);visibility:visible;transition:transform .35s cubic-bezier(.4,0,.2,1),visibility 0s}

.zt-cart-drawer__head{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:20px 20px 16px;background:#fff;flex-shrink:0;
}
.zt-cart-drawer__title{
  margin:0;font-weight:800;font-size:20px;color:var(--gece);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.zt-cart-drawer__badge{
  display:inline-flex;align-items:center;
  padding:4px 10px;border-radius:999px;
  background:#F0F2F8;color:#66748E;
  font-size:11px;font-weight:700;line-height:1;
}
.zt-cart-drawer__close{
  width:36px;height:36px;border:none!important;border-radius:999px!important;
  background:#F6F8FC!important;color:#66748E!important;cursor:pointer;padding:0!important;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s,color .15s;flex-shrink:0;
  box-shadow:none!important;min-height:0!important;
}
.zt-cart-drawer__close:hover{background:#EAF1FF!important;color:#1E5BD6!important}

.zt-cart-drawer__content{
  flex:1;min-height:0;overflow:hidden;
  display:flex;flex-direction:column;padding:0;
  max-width:100%;width:100%;box-sizing:border-box;
}

.zt-cart-drawer .zt-drawer-list,
.zt-cart-drawer .zt-drawer-list li{
  list-style:none!important;margin:0!important;
}
.zt-cart-drawer .zt-drawer-list li{padding:0!important}
.zt-cart-drawer .zt-drawer-list{
  flex:1 1 auto;min-height:0;
  padding:16px 24px 12px!important;
  display:flex;flex-direction:column;gap:12px;
  box-sizing:border-box;
  overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}

.zt-cart-drawer .zt-drawer-item__card{
  position:relative;
  display:grid;grid-template-columns:72px minmax(0,1fr);
  gap:12px;padding:14px;
  background:#fff;border:1px solid #E8E6F0;border-radius:16px;
  box-shadow:0 2px 8px rgba(10,19,34,.04);
  box-sizing:border-box;width:100%;max-width:100%;
}
.zt-cart-drawer .zt-drawer-item__remove{
  position:absolute;top:10px;right:10px;
  width:28px;height:28px;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;
  color:#98A2B8!important;cursor:pointer;
  background:transparent!important;border:none!important;padding:0!important;
}
.zt-cart-drawer .zt-drawer-item__remove:hover{
  color:#E2401C!important;background:#FFF1EE!important;
}
.zt-cart-drawer .zt-drawer-item__remove svg{display:block}

.zt-cart-drawer .zt-drawer-item__thumb,
.zt-cart-drawer .zt-drawer-item__thumb img{
  display:block;width:72px!important;height:72px!important;
  max-width:72px!important;max-height:72px!important;
  object-fit:cover;border-radius:12px;border:1px solid #EEF0F8;
  margin:0!important;float:none!important;
}
.zt-cart-drawer .zt-drawer-item__body{
  min-width:0;display:flex;flex-direction:column;gap:10px;padding-right:24px;
}
.zt-cart-drawer .zt-drawer-item__title{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;font-weight:700;font-size:13.5px;line-height:1.35;
  color:var(--gece)!important;text-decoration:none!important;
}
.zt-cart-drawer a.zt-drawer-item__title:hover{color:#1E5BD6!important}

.zt-cart-drawer .zt-drawer-item__row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.zt-cart-drawer .zt-drawer-qty{
  display:inline-flex;align-items:center;
  border:1px solid #E8E6F0;border-radius:999px;
  background:#F8F9FC;overflow:hidden;
}
.zt-cart-drawer .zt-drawer-qty--fixed{
  padding:6px 14px;border-radius:999px;
  border:1px solid #E8E6F0;background:#F8F9FC;
}
.zt-cart-drawer .zt-drawer-qty__btn{
  width:32px;height:32px;border:none!important;background:transparent!important;
  color:var(--gece)!important;font-size:16px;font-weight:700;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;padding:0!important;
  box-shadow:none!important;min-height:0!important;line-height:1!important;
}
.zt-cart-drawer .zt-drawer-qty__btn:hover{background:#EAF1FF!important;color:#1E5BD6!important}
.zt-cart-drawer .zt-drawer-qty__val{
  min-width:28px;text-align:center;font-size:13px;font-weight:800;color:var(--gece);
  padding:0 2px;
}
.zt-cart-drawer .zt-drawer-item__price{
  font-size:15px;font-weight:900;color:var(--gece);white-space:nowrap;
}
.zt-cart-drawer .zt-drawer-item__price .amount{
  font-size:inherit!important;font-weight:inherit!important;color:inherit!important;
}

.zt-cart-drawer .zt-drawer-empty-state{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:48px 32px 56px;gap:8px;
}
.zt-cart-drawer .zt-drawer-empty-state__icon{
  color:#C5CDDC;margin-bottom:8px;
}
.zt-cart-drawer .zt-drawer-empty-state__title{
  margin:0;font-size:18px;font-weight:800;color:var(--gece);
}
.zt-cart-drawer .zt-drawer-empty-state__text{
  margin:0 0 16px;font-size:14px;color:var(--gri);line-height:1.5;
}
.zt-cart-drawer .zt-drawer-empty-state .zt-drawer-btn{
  max-width:240px;
}

.zt-cart-drawer .zt-drawer-footer{
  flex-shrink:0;width:100%;max-width:100%;box-sizing:border-box;
  padding:16px 20px calc(16px + env(safe-area-inset-bottom,0))!important;
  background:#fff;border-top:1px solid #E8E6F0;margin-top:auto;
}
.zt-cart-drawer .zt-drawer-sum{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:0 0 14px;padding:0 0 14px;
  border-bottom:1px solid #EEF0F8;width:100%;box-sizing:border-box;
}
.zt-cart-drawer .zt-drawer-sum__label{
  font-size:14px;font-weight:600;color:var(--gri);flex:1;min-width:0;
}
.zt-cart-drawer .zt-drawer-sum__amount{
  font-size:20px;font-weight:900;color:var(--gece);
  flex:none;text-align:right;
}
.zt-cart-drawer .zt-drawer-sum__amount .amount{
  float:none!important;
  font-size:inherit!important;font-weight:inherit!important;color:inherit!important;
}

.zt-cart-drawer .zt-drawer-actions{
  display:flex;flex-direction:column;gap:10px;margin:0!important;
  width:100%;max-width:100%;box-sizing:border-box;
}
.zt-cart-drawer .zt-drawer-btn,
.zt-cart-drawer a.zt-drawer-btn,
.zt-cart-drawer a.wc-forward,
.zt-cart-drawer a.checkout{
  display:flex!important;align-items:center;justify-content:center;gap:8px;
  width:100%!important;max-width:100%!important;
  padding:15px 18px!important;border-radius:14px!important;
  font-family:'Poppins',sans-serif!important;font-weight:700!important;
  font-size:14px!important;text-decoration:none!important;
  text-transform:none!important;box-shadow:none!important;
  line-height:1.3!important;min-height:0!important;
  float:none!important;clear:both!important;
  margin:0!important;box-sizing:border-box!important;
  position:relative!important;left:auto!important;right:auto!important;
  transform:none!important;
}
.zt-cart-drawer .zt-drawer-btn--ghost{
  background:#fff!important;color:var(--gece)!important;
  border:1px solid #E8E6F0!important;
}
.zt-cart-drawer .zt-drawer-btn--ghost:hover{
  background:#F4F6FA!important;border-color:#D5DBE8!important;
}
.zt-cart-drawer .zt-drawer-btn--primary,
.zt-cart-drawer .zt-drawer-btn.checkout{
  background:var(--mavi)!important;color:#fff!important;border:none!important;
  box-shadow:0 10px 28px rgba(30,91,214,.28)!important;
}
.zt-cart-drawer .zt-drawer-btn--primary:hover,
.zt-cart-drawer .zt-drawer-btn.checkout:hover{
  background:#1A4FBC!important;color:#fff!important;
}
.zt-cart-drawer .zt-drawer-btn svg{flex-shrink:0}

.zt-cart-drawer .cart-coupons,
.zt-cart-drawer .rbpazt-list-coupons,
.zt-cart-drawer .woocommerce-mini-cart__total,
.zt-cart-drawer .product-quantity-wrap,
.zt-cart-drawer .woocommerce-mini-cart-scroll,
.zt-cart-drawer .quantity,
.zt-cart-drawer button.minus,
.zt-cart-drawer button.plus{display:none!important}

body.zt-pdp-page .woocommerce-message,
body.sm-zt-custom-header .woocommerce-message{display:none!important}

body.sm-zt-custom-header .site-header-cart-side,
body.sm-zt-custom-header .cart-side-overlay,
body.sm-zt-custom-header .side-wrap,
body.sm-zt-custom-header .side-overlay{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}

@media(max-width:480px){
  .zt-cart-drawer{
    width:100vw;max-width:100vw;
  }
  .zt-cart-drawer .zt-drawer-list{
    padding:16px 16px 12px!important;
  }
  .zt-cart-drawer .zt-drawer-footer{
    padding-left:16px!important;
    padding-right:16px!important;
  }
}
