/* Havuzmalzemem — modern su/havuz temalı alışveriş sepeti */

.hm-cart {
  position: relative;
}

.hm-cart .hm-cart-preview {
  line-height: 1.2;
  padding-left: 0;
  position: relative;
}

.hm-cart .hm-cart-trigger {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 255, 0.98) 100%);
  border: 1px solid rgba(26, 107, 154, 0.28);
  border-radius: 14px;
  box-shadow:
    0 8px 24px rgba(13, 59, 102, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: inline-flex;
  float: none !important;
  gap: 12px;
  min-height: 54px;
  padding: 7px 16px 7px 10px !important;
  position: relative;
  text-decoration: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  width: auto !important;
}

.hm-cart .hm-cart-trigger:hover {
  border-color: rgba(13, 59, 102, 0.38);
  box-shadow:
    0 10px 28px rgba(13, 59, 102, 0.14),
    0 0 0 3px rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}

.hm-cart .hm-cart-icon-wrap {
  align-items: center;
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 52%, #0d3b66 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(13, 59, 102, 0.24);
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px 2px;
  position: relative;
  width: auto;
}

.hm-cart .hm-cart-trolley-icon {
  color: #fff;
  display: block;
  flex-shrink: 0;
  height: 32px;
  width: 46px;
}

.hm-cart .hm-cart-icon-wrap .material-icons {
  display: none !important;
}

.hm-cart .cart-products-count {
  align-items: center;
  background: #fff !important;
  border: 2px solid #0d3b66;
  border-radius: 999px !important;
  box-shadow: 0 2px 6px rgba(13, 59, 102, 0.18);
  color: #0d3b66 !important;
  display: inline-flex;
  font-size: 10px !important;
  font-weight: 700;
  height: 18px !important;
  justify-content: center;
  left: auto !important;
  line-height: 1 !important;
  min-width: 18px;
  padding: 0 4px;
  position: absolute !important;
  right: -7px;
  top: -6px !important;
  width: auto !important;
  z-index: 2;
}

.hm-cart .hm-cart-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.hm-cart .hm-cart-title {
  color: #0d3b66 !important;
  display: block;
  float: none !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hm-cart .hm-cart-amount,
.hm-cart .checkout_total {
  clear: none !important;
  color: #1a6b9a !important;
  float: none !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* Dropdown panel */
.hm-cart .hm-cart-dropdown,
.hm-cart .body.cart-hover-content {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(26, 107, 154, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px rgba(13, 59, 102, 0.16) !important;
  margin-top: 10px !important;
  overflow: hidden;
  padding: 0 !important;
  position: absolute;
  right: 0;
  top: 100%;
  width: 320px;
  z-index: 200;
}

@media (min-width: 992px) {
  #header .header-top > .container:first-of-type {
    overflow: visible;
    position: relative;
    z-index: 120;
  }

  #header .header-top .menu_and_cattree {
    position: relative;
    z-index: 100;
  }

  #header .header-top #_desktop_cart.hm-cart,
  #header .header-top .hm-cart .hm-cart-preview {
    position: relative;
    z-index: 130;
  }

  .hm-cart .hm-cart-dropdown,
  .hm-cart .body.cart-hover-content,
  #_desktop_cart:hover .body.cart-hover-content {
    z-index: 200;
  }
}

.hm-cart .hm-cart-dropdown::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(26, 107, 154, 0.2) 25%,
    rgba(56, 189, 248, 0.38) 50%,
    rgba(26, 107, 154, 0.2) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  content: "";
  display: block;
  height: 3px;
  width: 100%;
}

#_desktop_cart:hover .hm-cart-dropdown::before,
.hm-cart-preview.active:hover .hm-cart-dropdown::before {
  animation: hm-cart-wave 2.4s ease-in-out infinite;
}

@keyframes hm-cart-wave {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.hm-cart .hm-cart-dropdown-header {
  align-items: baseline;
  border-bottom: 1px solid rgba(26, 107, 154, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.hm-cart .hm-cart-dropdown-title {
  color: #0d3b66;
  font-size: 15px;
  font-weight: 700;
}

.hm-cart .hm-cart-dropdown-count {
  color: #1a6b9a;
  font-size: 12px;
  font-weight: 600;
}

.hm-cart .hm-cart-items,
.hm-cart .body.cart-hover-content > ul {
  float: none !important;
  margin: 0 !important;
  max-height: 280px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 12px !important;
  width: 100% !important;
}

.hm-cart .hm-cart-item,
.hm-cart .cart-wishlist-item {
  align-items: center;
  border-bottom: 1px solid rgba(26, 107, 154, 0.1) !important;
  display: flex !important;
  float: none !important;
  gap: 10px;
  padding: 12px 28px 12px 0 !important;
  width: 100% !important;
}

.hm-cart .shoppingcart_img {
  flex-shrink: 0;
}

.hm-cart .shoppingcart_img img {
  border: 1px solid rgba(26, 107, 154, 0.12);
  border-radius: 10px;
  height: auto;
  object-fit: cover;
  width: 64px;
}

.hm-cart .shoppingcart_des {
  flex: 1 1 auto;
  min-width: 0;
}

.hm-cart .cart_productname,
.hm-cart .cart_productname .product-name {
  color: #0a1628 !important;
  font-size: 13px !important;
  font-weight: 600;
  white-space: normal !important;
}

.hm-cart .cart_productname .product-quantity {
  color: #1a6b9a;
  font-weight: 700;
}

.hm-cart .product-price {
  color: #0d3b66 !important;
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 0;
}

.hm-cart .remove-from-cart {
  align-items: center;
  background: rgba(240, 249, 255, 0.95) !important;
  border: 1px solid rgba(26, 107, 154, 0.15) !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  height: 24px !important;
  justify-content: center;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
}

.hm-cart .remove-from-cart i {
  color: #0d3b66 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.hm-cart .remove-from-cart:hover {
  background: #0d3b66 !important;
}

.hm-cart .remove-from-cart:hover i {
  color: #fff !important;
}

.hm-cart-empty {
  color: rgba(13, 59, 102, 0.65);
  font-size: 13px;
  margin: 0;
  padding: 16px;
  text-align: center;
}

.hm-cart .hm-cart-subtotals,
.hm-cart .cart-subtotals {
  border-bottom: 1px solid rgba(26, 107, 154, 0.1) !important;
  float: none !important;
  padding: 8px 16px !important;
  width: 100% !important;
}

.hm-cart .hm-cart-subtotal-line,
.hm-cart .cart-subtotals > div {
  align-items: center;
  display: flex;
  float: none !important;
  justify-content: space-between;
  margin: 0;
  width: 100% !important;
}

.hm-cart .cart-subtotals .label,
.hm-cart .cart-total .label {
  color: #0d3b66 !important;
  float: none !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.hm-cart .cart-subtotals .value {
  color: #1a6b9a !important;
  float: none !important;
  font-size: 13px;
  font-weight: 600;
}

.hm-cart .hm-cart-total-line,
.hm-cart .cart-total {
  align-items: center;
  border-bottom: none !important;
  display: flex;
  float: none !important;
  font-weight: 700;
  justify-content: space-between;
  padding: 10px 16px 0 !important;
  text-transform: none;
  width: 100% !important;
}

.hm-cart .cart-total .value {
  color: #0d3b66 !important;
  float: none !important;
  font-size: 16px;
  font-weight: 700;
}

.hm-cart .hm-cart-actions,
.hm-cart .cart-wishlist-action {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px !important;
  width: 100% !important;
}

.hm-cart .hm-cart-view-link {
  border: 1px solid rgba(26, 107, 154, 0.22);
  border-radius: 999px;
  color: #0d3b66 !important;
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.hm-cart .hm-cart-view-link:hover {
  background: rgba(240, 249, 255, 0.95);
  color: #0a1628 !important;
}

.hm-cart .hm-cart-checkout-btn,
.hm-cart .cart-wishlist-checkout {
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 52%, #0d3b66 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.24);
  color: #fff !important;
  display: block !important;
  float: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100% !important;
}

.hm-cart .hm-cart-checkout-btn:hover,
.hm-cart .cart-wishlist-checkout:hover {
  background: linear-gradient(145deg, #4fc3f7 0%, #1a6b9a 52%, #0a1628 100%) !important;
  box-shadow: 0 8px 22px rgba(13, 59, 102, 0.3);
  color: #fff !important;
  transform: translateY(-1px);
}

#_desktop_cart.hm-cart {
  float: right;
  margin-top: 0;
  padding: 8px 15px 8px 0;
}

@media (min-width: 992px) {
  #header .header-top #_desktop_cart.hm-cart {
    float: none !important;
    padding: 0 0 0 15px;
  }
}

#header .header-nav .hm-cart .hm-cart-trigger {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

#header .header-nav .hm-cart .hm-cart-title,
#header .header-nav .hm-cart .hm-cart-amount {
  color: #fff !important;
}

#header .header-nav .hm-cart .hm-cart-trigger:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Ürün ekleme modalı */
#blockcart-modal .modal-header {
  background: linear-gradient(135deg, #0d3b66 0%, #1a6b9a 100%) !important;
  border-bottom: none;
}

#blockcart-modal .modal-title {
  color: #fff !important;
}

#blockcart-modal .modal-title i.material-icons {
  color: #fff !important;
}

#blockcart-modal .modal-body {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%) !important;
}

#blockcart-modal .product-name {
  color: #0d3b66 !important;
}

#blockcart-modal .cart-content .btn-primary {
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 52%, #0d3b66 100%) !important;
  border: none !important;
  border-radius: 999px !important;
}

@media (max-width: 991px) {
  #header .header-top > .container:first-of-type {
    overflow: visible;
    position: relative;
    z-index: 120;
  }

  #header .header-top .menu_and_cattree {
    margin-top: 0 !important;
    position: relative;
    z-index: 100;
  }

  .hm-cart .hm-cart-dropdown,
  .hm-cart .body.cart-hover-content,
  #_desktop_cart:hover .body.cart-hover-content {
    display: none !important;
  }

  .hm-cart .hm-cart-text {
    display: none;
  }

  .hm-cart .hm-cart-trigger {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    box-shadow: none;
    box-sizing: border-box;
    height: 48px;
    justify-content: center;
    min-height: 48px;
    padding: 0 6px !important;
    width: 58px !important;
  }

  .hm-cart .hm-cart-trigger:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    transform: none;
  }

  .hm-cart .hm-cart-icon-wrap {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.95) 0%, rgba(26, 107, 154, 0.98) 52%, rgba(13, 59, 102, 1) 100%);
    border-radius: 10px;
    box-shadow: none;
    height: 38px;
    min-width: 46px;
    padding: 3px 6px 1px;
    width: auto;
  }

  .hm-cart .hm-cart-trolley-icon {
    height: 28px;
    width: 40px;
  }

  #_desktop_cart.hm-cart {
    margin-top: 0;
    padding: 0;
  }

  .hm-cart .cart-products-count {
    display: inline-flex !important;
    right: -5px;
    top: -5px !important;
  }
}

@media (max-width: 767px) {
  .hm-cart .hm-cart-dropdown {
    left: 12px;
    right: 12px;
    width: auto;
  }
}

/* —— Sepet sayfası (/sepet) özeti —— */
body#cart .hm-cart-page-summary {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.65) 0%, #fff 42%);
  border: 1px solid rgba(26, 107, 154, 0.2) !important;
  border-radius: 20px;
  box-shadow:
    0 18px 44px rgba(13, 59, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

body#cart .hm-cart-totals {
  background: transparent;
  border: none !important;
  margin-bottom: 0;
  position: relative;
}

body#cart .hm-cart-totals::after {
  background:
    radial-gradient(circle at 12% 88%, rgba(56, 189, 248, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 96%, rgba(26, 107, 154, 0.1) 0%, transparent 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

body#cart .hm-cart-totals-head {
  background: linear-gradient(135deg, #0d3b66 0%, #1a6b9a 100%);
  padding: 14px 18px;
  position: relative;
  z-index: 1;
}

body#cart .hm-cart-totals-head::after {
  animation: hm-cart-wave 3s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(56, 189, 248, 0.45) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

body#cart .hm-cart-totals-title,
body#cart .hm-cart-totals-head .hm-cart-totals-title,
body#cart .hm-cart-totals-head span.hm-cart-totals-title {
  color: #fff !important;
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(13, 59, 102, 0.22);
  text-transform: uppercase;
}

body#cart .hm-cart-totals-sub,
body#cart .hm-cart-totals-footer,
body#cart .hm-cart-totals .block-promo {
  position: relative;
  z-index: 1;
}

body#cart .hm-cart-totals-sub {
  padding: 14px 18px 8px !important;
}

body#cart .hm-cart-totals .cart-summary-line {
  align-items: center;
  border-bottom: 1px solid rgba(26, 107, 154, 0.1);
  display: flex;
  float: none !important;
  justify-content: space-between;
  line-height: 1.4;
  margin: 0;
  padding: 10px 0 !important;
  width: 100%;
}

body#cart .hm-cart-totals .cart-summary-line:last-child {
  border-bottom: none;
}

body#cart .hm-cart-totals .cart-summary-line .label {
  color: #0d3b66 !important;
  float: none !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  width: auto;
}

body#cart .hm-cart-totals .cart-summary-line .value {
  color: #1a6b9a !important;
  float: none !important;
  font-size: 14px;
  font-weight: 700;
  width: auto;
}

body#cart .hm-cart-totals-divider {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(26, 107, 154, 0.22) 20%,
    rgba(56, 189, 248, 0.42) 50%,
    rgba(26, 107, 154, 0.22) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: hm-cart-wave 2.8s ease-in-out infinite;
  height: 2px;
  margin: 0 18px;
  opacity: 0.85;
}

body#cart .hm-cart-totals-footer {
  padding: 6px 0 16px !important;
}

body#cart .hm-cart-total-line {
  align-items: center;
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 52%, #0d3b66 100%);
  border: none !important;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(13, 59, 102, 0.22);
  box-sizing: border-box;
  clear: both !important;
  display: flex !important;
  float: none !important;
  gap: 12px;
  justify-content: space-between;
  margin: 0 14px;
  overflow: hidden;
  padding: 16px 18px !important;
  width: auto;
}

body#cart .hm-cart-total-line .label {
  flex: 1 1 auto;
  line-height: 1.35;
  min-width: 0;
  padding-right: 8px;
}

body#cart .hm-cart-total-line .value {
  flex: 0 0 auto;
  line-height: 1.35;
  padding-left: 4px;
  text-align: right;
}

body#cart .hm-cart-total-line .label,
body#cart .hm-cart-total-line .value,
body#cart .hm-cart-totals .hm-cart-total-line.cart-summary-line.cart-total .label,
body#cart .hm-cart-totals .hm-cart-total-line.cart-summary-line.cart-total .value,
body#cart .hm-cart-totals .hm-cart-total-line.cart-summary-line.cart-total span,
body#cart .hm-cart-totals .cart-total.hm-cart-total-line .label,
body#cart .hm-cart-totals .cart-total.hm-cart-total-line .value,
body[body_class]#cart .hm-cart-totals .cart-total .value {
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(13, 59, 102, 0.18);
}

body#cart .hm-cart-total-line .value {
  font-size: 18px;
  white-space: nowrap;
}

body#cart .hm-cart-tax-line {
  border-bottom: none !important;
  margin-top: 8px;
  opacity: 0.85;
  padding: 4px 18px 0 !important;
}

body#cart .hm-cart-totals .cart-summary-line.hm-cart-total-line::after {
  display: none;
}

body#cart .hm-cart-totals .cart-total.hm-cart-total-line {
  border-bottom: none !important;
  line-height: 1.35;
  text-align: inherit;
  text-transform: none;
}

body#cart .hm-cart-tax-line .label,
body#cart .hm-cart-tax-line .value {
  color: rgba(13, 59, 102, 0.72) !important;
  font-size: 12px;
  font-weight: 600;
}

body#cart .hm-cart-totals hr {
  display: none;
}

body#cart .hm-cart-totals .block-promo {
  border-top: 1px solid rgba(26, 107, 154, 0.1);
  margin: 0;
  padding: 0 18px 12px;
}

body#cart .hm-cart-totals .promo-code-button {
  color: #1a6b9a !important;
  font-weight: 600;
}

body#cart .hm-cart-totals .promo-input {
  border: 1px solid rgba(26, 107, 154, 0.22);
  border-radius: 999px;
}

body#cart .hm-cart-totals .cart-voucher .btn-primary {
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 52%, #0d3b66 100%) !important;
  border: none !important;
  border-radius: 999px !important;
}

body#cart .hm-cart-page-actions {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.5) 0%, #fff 100%);
  border-top: 1px solid rgba(26, 107, 154, 0.1) !important;
  padding: 18px !important;
  position: relative;
  z-index: 1;
}

body#cart .hm-cart-page-actions::before {
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 55%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body#cart .hm-cart-page-actions .btn-primary {
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 52%, #0d3b66 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(13, 59, 102, 0.24);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 48px;
  padding: 12px 24px !important;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

body#cart .hm-cart-page-actions .btn-primary:hover {
  box-shadow: 0 10px 28px rgba(13, 59, 102, 0.3);
  transform: translateY(-1px);
}

/* Sepet sayfası — sağ sütun özeti, sol ürün kartının altına hizalı */
@media (min-width: 992px) {
  body#cart .cart-grid {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
  }

  body#cart .cart-grid-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  body#cart .cart-grid-right .hm-cart-page-summary {
    margin-bottom: 0;
    margin-top: auto;
  }

  body#cart .cart-grid-right #block-reassurance {
    flex: 0 0 auto;
    margin-top: 14px;
  }
}

body#cart #block-reassurance {
  margin-top: 14px;
}

body#cart #block-reassurance ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body#cart #block-reassurance li {
  border-bottom: 1px solid rgba(26, 107, 154, 0.1);
  margin: 0;
  padding: 0;
}

body#cart #block-reassurance li:last-child {
  border-bottom: none;
}

body#cart #block-reassurance .block-reassurance-item {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 10px 4px;
}

body#cart #block-reassurance img {
  flex: 0 0 auto;
  height: 28px;
  width: 28px;
}

body#cart #block-reassurance .h6,
body#cart #block-reassurance span.h6 {
  color: #0d3b66 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 991px) {
  body#cart .hm-cart-page-summary {
    margin-top: 16px;
  }
}
