/*
 * v24.1.7 Faz 5 — Mağaza responsive görsel güvence katmanı.
 * Kart ve yatay vitrin elemanlarını dar ekranda kendi kapsayıcısında tutar.
 */
html,
body {
  max-width: 100%;
}

/* v24.1.106: cards must not combine a two-column grid with a narrow horizontal interior. */
@media (max-width: 1024px) {
  body .product-card.r27-product-card {
    display: flex !important; flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body .product-card.r27-product-card > .product-image {
    width: 100% !important; min-width: 0 !important; flex: none !important;
    height: 160px !important; min-height: 160px !important;
    border-right: 0 !important; border-bottom: 1px solid var(--line);
  }
  body .product-card.r27-product-card > .product-info {
    width: 100% !important; min-width: 0 !important; padding: 12px !important;
  }
  body .product-card.r27-product-card .product-price-main {
    display: flex !important; flex-wrap: wrap !important; gap: 6px !important;
  }
  body .product-card.r27-product-card .product-price-main strong {
    font-size: clamp(16px, 2.4vw, 22px) !important;
    white-space: normal !important; overflow-wrap: anywhere;
  }
  body .product-card.r27-product-card .product-actions {
    display: grid !important; grid-template-columns: minmax(0,1fr) !important;
    gap: 8px !important; position: static !important;
  }
  body .product-card.r27-product-card .quick-add-form {
    display: grid !important; grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important; gap: 6px !important;
  }
  body .product-card.r27-product-card .product-actions :is(.btn,.small-qty) {
    position: static !important; width: 100% !important; min-width: 0 !important;
    min-height: 44px !important; height: auto !important; margin: 0 !important;
    white-space: normal !important; padding: 8px !important;
  }
}

body :is(.container, .container.narrow, .product-grid, .product-list-managed) {
  min-width: 0;
}

body :is(.product-card, .r27-product-card) {
  min-width: 0;
}

body :is(.product-card, .r27-product-card) :is(h3, .product-meta, .product-price) {
  overflow-wrap: anywhere;
}

body .home-discount-carousel {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 760px) {
  body :is(.header-actions, .product-actions, .section-head, .page-title-row) {
    min-width: 0;
    max-width: 100%;
  }

  body :is(.header-actions, .product-actions) > * {
    min-width: 0;
  }
}
/* Kargo kısıtlı ürün: uyarı ve iki aksiyon her genişlikte dengeli kalır. */
.detail-actions.detail-actions-cargo-restricted {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.detail-actions.detail-actions-cargo-restricted > .notice {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}
.detail-actions.detail-actions-cargo-restricted > .btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
@media (max-width: 560px) {
  .premium-footer .container.footer-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .premium-footer .footer-main-grid > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .detail-actions.detail-actions-cargo-restricted {
    grid-template-columns: 1fr;
  }
}
