/**
 * MP Alışveriş Sepeti - Premium Tasarım CSS Dosyası (v2.0.0)
 * Google Outfit ve Inter yazı tipleri, gölgelendirmeler ve kargo aşaması özellikleri içerir.
 */

/* Google Fonts - Modern Typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ==================================================
   MODAL GENEL & ARKA PLAN
================================================== */

#blockcart-modal {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999 !important;
  padding: 15px !important;
  transition: opacity 0.25s ease-in-out;
}

#blockcart-modal.mp-show,
#blockcart-modal.mp-in {
  display: flex !important;
  opacity: 1 !important;
}

#blockcart-modal .modal-dialog {
  width: 100% !important;
  max-width: 680px !important;
  margin: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 40px) !important;
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transform: none !important;
  display: block !important;
  padding: 0 !important;
}

#blockcart-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
  background: #fff;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

#blockcart-modal .modal-header {
  position: relative;
  padding: 18px 45px 18px 20px;
  color: #fff;
  background: #42730c;
  border-bottom: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#blockcart-modal .modal-header .modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

#blockcart-modal .modal-header .modal-title .material-icons {
  font-size: 22px;
}

#blockcart-modal .modal-header .close {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 2;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  opacity: 1;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#blockcart-modal .modal-header .close:hover {
  opacity: 0.8;
}

#blockcart-modal .modal-body {
  background: #fff;
}


/* ==================================================
   ÜRÜN ALANI
================================================== */

.custom-cart-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
}

.custom-cart-row .img-container {
  display: flex;
  flex: 0 0 115px;
  align-items: center;
  justify-content: center;
  width: 115px;
  height: 115px;
  padding: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 9px;
}

.custom-cart-row .img-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.custom-cart-row .product-details {
  flex: 1;
  min-width: 0;
}

.custom-cart-row .product-name {
  margin: 0 0 7px;
  color: #292929;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.product-variant-info {
  margin-bottom: 10px;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.product-variant-info .variant-line strong {
  color: #444;
  font-weight: 600;
}

.product-qty {
  display: inline-block;
  margin-right: 8px;
  padding: 5px 10px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  background: #f2f2f2;
  border-radius: 5px;
}

.product-total-box {
  display: inline-block;
  color: #42730c;
  font-size: 17px;
  font-weight: 800;
}


/* ==================================================
   ÜCRETSİZ KARGO ALANI
================================================== */

.free-shipping-wrapper {
  margin: 0 25px 22px;
  padding: 17px 18px 20px;
  background: #f7f9f4;
  border: 1px solid #dce7d2;
  border-radius: 10px;
}

.free-shipping-text {
  margin-bottom: 15px;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.free-shipping-text strong {
  color: #42730c;
  font-weight: 800;
}

.free-shipping-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #42730c;
  font-weight: 700;
}

.free-shipping-success .material-icons {
  font-size: 21px;
}


/* ==================================================
   NORMAL İLERLEME ÇUBUĞU
================================================== */

.mp-progress-bar-container {
  position: relative;
  width: 100%;
  height: 9px;
  background: #dfe6d9;
  border-radius: 30px;
}

.mp-progress-bar-fill {
  position: relative;
  height: 100%;
  background: #42730c;
  border-radius: 30px;
  transition: width 0.35s ease;
}

.mp-progress-icon {
  position: absolute;
  top: 50%;
  right: -17px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #42730c;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
}

.mp-progress-icon .material-icons {
  font-size: 19px;
}


/* ==================================================
   ÜRÜNE ÖZEL KARGO BEDAVA
================================================== */

.free-shipping-product-active {
  background: #f1f8ea;
  border-color: #b7d59b;
}

.product-free-shipping-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 16px;
}

.free-shipping-gift-icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #42730c;
  border-radius: 50%;
  box-shadow: 0 4px 11px rgba(66, 115, 12, 0.25);
}

.free-shipping-gift-icon .material-icons {
  font-size: 24px;
}

.free-shipping-message-content {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  text-align: left;
}

.free-shipping-message-content strong {
  color: #42730c;
  font-size: 15px;
  font-weight: 800;
}

.free-shipping-message-content span {
  margin-top: 2px;
  color: #66705f;
  font-size: 12px;
}

.free-shipping-completed-bar {
  position: relative;
  width: 100%;
  height: 9px;
  background: #d8e8ca;
  border-radius: 30px;
}

.free-shipping-completed-fill {
  position: relative;
  width: 100%;
  height: 100%;
  background: #42730c;
  border-radius: 30px;
}

.free-shipping-completed-icon {
  position: absolute;
  top: 50%;
  right: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  color: #fff;
  background: #42730c;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
}

.free-shipping-completed-icon .material-icons {
  font-size: 19px;
}


/* ==================================================
   ALT BUTONLAR
================================================== */

.cart-modal-footer-buttons {
  display: flex;
  gap: 12px;
  padding: 20px 25px;
  background: #f7f7f7;
  border-top: 1px solid #ededed;
}

.cart-modal-footer-buttons .btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 15px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cart-modal-footer-buttons .btn-continue {
  color: #444;
  background: #e7e7e7;
  cursor: pointer;
}

.cart-modal-footer-buttons .btn-continue:hover {
  color: #222;
  background: #d9d9d9;
}

.cart-modal-footer-buttons .btn-checkout {
  gap: 6px;
  color: #fff;
  background: #42730c;
  cursor: pointer;
}

.cart-modal-footer-buttons .btn-checkout:hover {
  color: #fff;
  background: #2d4f08;
}

.cart-modal-footer-buttons .btn-checkout .material-icons {
  font-size: 19px;
}


/* ==================================================
   MOBİL HIZLI ENTEGRASYON
================================================== */

@media (max-width: 575px) {
  #blockcart-modal .modal-dialog {
    margin: 15px;
    max-width: 95% !important;
  }

  #blockcart-modal .modal-header {
    padding: 16px 42px 16px 15px;
  }

  #blockcart-modal .modal-header .modal-title {
    font-size: 13px;
  }

  #blockcart-modal .modal-body {
    padding: 0 15px !important;
  }

  .custom-cart-row {
    align-items: flex-start;
    gap: 13px;
    padding: 18px 0;
  }

  .custom-cart-row .img-container {
    flex-basis: 90px;
    width: 90px;
    height: 90px;
  }

  .custom-cart-row .product-name {
    font-size: 14px;
  }

  .product-total-box {
    font-size: 15px;
  }

  .free-shipping-wrapper {
    margin: 0 15px 18px;
    padding: 15px 15px 18px;
  }

  .product-free-shipping-message {
    justify-content: flex-start;
    gap: 10px;
  }

  .free-shipping-gift-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .free-shipping-message-content strong {
    font-size: 14px;
  }

  .cart-modal-footer-buttons {
    flex-direction: column;
    padding: 16px 15px;
  }

  .cart-modal-footer-buttons .btn {
    width: 100%;
  }
}


/* ==================================================
   DRAWER MODE (Sağdan Açılır Sepet Paneli)
================================================== */

#blockcart-modal.mp-drawer {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
}

#blockcart-modal.mp-drawer .modal-dialog {
  max-width: 480px !important;
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #ffffff !important;
  transform: none !important;
}

#blockcart-modal.mp-drawer .modal-content {
  border-radius: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border: none !important;
  box-shadow: none !important;
}

#blockcart-modal.mp-drawer .modal-body {
  flex-grow: 1 !important;
  overflow-y: auto !important;
  padding: 30px 24px !important;
}

#blockcart-modal.mp-drawer .custom-cart-row {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 0 0 25px 0 !important;
}

#blockcart-modal.mp-drawer .custom-cart-row .product-details {
  width: 100% !important;
}

#blockcart-modal.mp-drawer .product-qty {
  display: block !important;
  margin-right: 0 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
}

#blockcart-modal.mp-drawer .product-total-box {
  display: block !important;
  text-align: center !important;
  margin-top: 10px !important;
}

#blockcart-modal.mp-drawer .free-shipping-wrapper {
  margin: 0 20px 20px !important;
}

#blockcart-modal.mp-drawer .cart-modal-footer-buttons {
  flex-direction: column !important;
  border-radius: 0 !important;
}

#blockcart-modal.mp-drawer .cart-modal-footer-buttons .btn {
  width: 100% !important;
}

/* Drawer Slide In Animation */
#blockcart-modal.mp-drawer .modal-dialog {
  transform: translateX(100%) !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#blockcart-modal.mp-drawer.mp-show .modal-dialog,
#blockcart-modal.mp-drawer.mp-in .modal-dialog {
  transform: translateX(0) !important;
}
