
/* ===== ProductDetailAddToCart — SOFRA rev. 4 (buy box + sticky buy bar) ===== */

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc, .cc_d44srw2k_product_detail .kombos-pd-atc {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: var(--mobile-mt);
  margin-bottom: var(--mobile-mb);
  font-family: var(--sofra-font-ui);
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__label, .cc_d44srw2k_product_detail .kombos-pd-atc__label {
  color: var(--sofra-ink);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25rem;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__sr, .cc_d44srw2k_product_detail .kombos-pd-atc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Main actions: stepper + "Sepete Ekle", then "Hemen Al" on its own full row ---- */
.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__actions, .cc_d44srw2k_product_detail .kombos-pd-atc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__btn, .cc_d44srw2k_product_detail .kombos-pd-atc__btn {
  flex: 1 1 9rem;
  min-width: 0;
  min-height: 3.25rem;
  white-space: nowrap;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__actions .kombos-pd__qty, .cc_d44srw2k_product_detail .kombos-pd-atc__actions .kombos-pd__qty {
  height: 3.25rem;
}

/* "Hemen Al": the brand's warm red, so the two actions never look alike */
.cc_d44srw2k_product_detail_add_to_cart .kombos-btn.kombos-pd-atc__buy, .cc_d44srw2k_product_detail .kombos-btn.kombos-pd-atc__buy {
  background-color: var(--sofra-red);
  border-color: var(--sofra-red);
  color: var(--sofra-white);
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-btn.kombos-pd-atc__buy:hover:not(:disabled), .cc_d44srw2k_product_detail .kombos-btn.kombos-pd-atc__buy:hover:not(:disabled) {
  background-color: var(--sofra-red-hover, #8f2a20);
  border-color: var(--sofra-red-hover, #8f2a20);
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-btn.kombos-pd-atc__buy:disabled, .cc_d44srw2k_product_detail .kombos-btn.kombos-pd-atc__buy:disabled {
  background-color: var(--sofra-sand);
  border-color: var(--sofra-line-strong);
  color: var(--sofra-muted);
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__actions--two .kombos-pd-atc__buy, .cc_d44srw2k_product_detail .kombos-pd-atc__actions--two .kombos-pd-atc__buy {
  flex: 1 1 100%;
}

/* ---- Secondary row: WhatsApp · favourite · share ---- */
.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__secondary, .cc_d44srw2k_product_detail .kombos-pd-atc__secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__wa, .cc_d44srw2k_product_detail .kombos-pd-atc__wa {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.5rem 1rem;
  border: var(--sofra-btn-border) solid var(--sofra-line-strong);
  border-radius: var(--sofra-radius-pill);
  background: var(--sofra-white);
  color: var(--sofra-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__wa:hover, .cc_d44srw2k_product_detail .kombos-pd-atc__wa:hover {
  border-color: var(--sofra-forest);
  background: var(--sofra-olive-soft);
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__wa .kombos-pd-atc__wa-icon, .cc_d44srw2k_product_detail .kombos-pd-atc__wa .kombos-pd-atc__wa-icon {
  flex: none;
  color: var(--sofra-whatsapp, #25d366);
  font-size: 1.25rem;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__fav, .cc_d44srw2k_product_detail .kombos-pd-atc__fav {
  flex: none;
  width: 2.875rem;
  height: 2.875rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--sofra-btn-border) solid var(--sofra-line-strong);
  border-radius: 50%;
  background: var(--sofra-white);
  color: var(--sofra-pine);
  font-size: 1.25rem;
  cursor: pointer;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__fav:hover, .cc_d44srw2k_product_detail .kombos-pd-atc__fav:hover {
  background: var(--sofra-olive-soft);
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__fav:focus-visible, .cc_d44srw2k_product_detail .kombos-pd-atc__fav:focus-visible, .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__wa:focus-visible, .cc_d44srw2k_product_detail .kombos-pd-atc__wa:focus-visible {
  outline: 3px solid var(--sofra-focus);
  outline-offset: 3px;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__fav--active, .cc_d44srw2k_product_detail .kombos-pd-atc__fav--active, .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__fav--active:hover, .cc_d44srw2k_product_detail .kombos-pd-atc__fav--active:hover {
  color: var(--sofra-red);
  background: var(--sofra-red-soft);
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__fav--active svg, .cc_d44srw2k_product_detail .kombos-pd-atc__fav--active svg {
  fill: currentColor;
}

/* ---- Sticky buy bar ----
   Phones: fixed to the bottom, above the bottom navigation, rounded top corners.
   Desktop: slim floating bar that slides in under the pinned header. */
.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar, .cc_d44srw2k_product_detail .kombos-pd-atc__bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--sofra-bottom-nav-h, calc(3.5rem + env(safe-area-inset-bottom, 0px)));
  z-index: var(--kombos-z-dropdown);
  padding: 0.625rem var(--sofra-gutter)
    max(0.625rem, env(safe-area-inset-bottom));
  border: 1px solid var(--sofra-line);
  border-bottom: 0;
  border-radius: var(--sofra-radius-section-sm, 20px)
    var(--sofra-radius-section-sm, 20px) 0 0;
  background: var(--sofra-paper);
  box-shadow: 0 -6px 18px rgba(23, 61, 39, 0.08);
  transform: translateY(110%);
  visibility: hidden;
  transition:
    transform 0.28s ease,
    visibility 0s linear 0.28s;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar--visible, .cc_d44srw2k_product_detail .kombos-pd-atc__bar--visible {
  transform: translateY(0);
  visibility: visible;
  transition:
    transform 0.28s ease,
    visibility 0s;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar--no-mobile, .cc_d44srw2k_product_detail .kombos-pd-atc__bar--no-mobile {
  display: none;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-inner, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-thumb, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-thumb {
  display: none;
  flex: none;
  width: 2.75rem;
  height: auto;
  aspect-ratio: var(--sofra-product-ratio, 2 / 3); /* product photo frame, same as the cards */
  border-radius: 10px;
  border: 1px solid var(--sofra-line);
  background: var(--sofra-sand);
  object-fit: cover;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-info, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-info {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
  line-height: 1.2;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-name, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-name {
  display: none;
  overflow: hidden;
  color: var(--sofra-ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-price, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-price {
  display: flex;
  flex-direction: column;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-final, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-final {
  color: var(--sofra-pine);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-old, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-old {
  color: var(--sofra-old-price);
  font-size: 0.75rem;
  text-decoration: line-through;
  white-space: nowrap;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-actions, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-actions {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 0.375rem;
  min-width: 0;
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-btn.kombos-pd-atc__bar-btn, .cc_d44srw2k_product_detail .kombos-btn.kombos-pd-atc__bar-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 11rem;
  min-height: 2.875rem;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  white-space: nowrap;
}

@media (min-width: 380px) {
  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-thumb, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-thumb {
    display: block;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-actions, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-actions {
    gap: 0.5rem;
  }
}

/* ===== Tablet and up: the bar moves under the pinned header ===== */
@media (min-width: 768px) {
  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__btn, .cc_d44srw2k_product_detail .kombos-pd-atc__btn {
    flex-basis: 10rem;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar--no-mobile, .cc_d44srw2k_product_detail .kombos-pd-atc__bar--no-mobile {
    display: block;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar--no-desktop, .cc_d44srw2k_product_detail .kombos-pd-atc__bar--no-desktop {
    display: none;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar, .cc_d44srw2k_product_detail .kombos-pd-atc__bar {
    top: calc(var(--sofra-header-pinned-h, 0px) + 0.5rem);
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(calc(100% - 2 * var(--sofra-gutter-lg)), 60rem);
    padding: 0.5rem 0.625rem 0.5rem 0.5rem;
    border: 1px solid var(--sofra-line);
    border-radius: var(--sofra-radius-pill);
    box-shadow: 0 8px 24px rgba(23, 61, 39, 0.12);
    transform: translate(-50%, -0.75rem);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      visibility 0s linear 0.25s;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar--visible, .cc_d44srw2k_product_detail .kombos-pd-atc__bar--visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      visibility 0s;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-inner, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-inner {
    gap: 0.875rem;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-thumb, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-thumb {
    display: block;
    width: 3rem;
    border-radius: 10px; /* a 2:3 photo cannot be a circle */
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-info, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-info {
    flex: 1 1 auto;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-name, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-name {
    display: block;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-price, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-price {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar-actions, .cc_d44srw2k_product_detail .kombos-pd-atc__bar-actions {
    flex: none;
  }

  .cc_d44srw2k_product_detail_add_to_cart .kombos-btn.kombos-pd-atc__bar-btn, .cc_d44srw2k_product_detail .kombos-btn.kombos-pd-atc__bar-btn {
    flex: none;
    max-width: none;
    padding-left: 1.375rem;
    padding-right: 1.375rem;
  }
}

/* ===== Desktop (>=1024px) ===== */
@media (min-width: 1024px) {
  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc, .cc_d44srw2k_product_detail .kombos-pd-atc {
    margin-top: var(--desktop-mt, var(--mobile-mt));
    margin-bottom: var(--desktop-mb, var(--mobile-mb));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar, .cc_d44srw2k_product_detail .kombos-pd-atc__bar, .cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__bar--visible, .cc_d44srw2k_product_detail .kombos-pd-atc__bar--visible {
    transition: none;
  }
}

.cc_d44srw2k_product_detail_add_to_cart .kombos-pd-atc__ikas-pay, .cc_d44srw2k_product_detail .kombos-pd-atc__ikas-pay {
  display: block;
  border: none;
}
