/**
 * ORKIDEM-SELLER-MOBILE-WAVE-A-PRODUCTS-V11
 * PRODUCT LIST + PRODUCT CREATE/EDIT
 * <=820px only. Desktop remains untouched.
 */

/* ---------------------------------------------------------
   Common product-family containment
   --------------------------------------------------------- */
@media (max-width: 820px) {
  body.seller-master-v2.seller-page--urunler-urun-listesi,
  body.seller-master-v2.seller-page--urunler-urun-formu,
  body.seller-master-v2.seller-page--urunler-urun-duzenle {
    overflow-x: clip !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi #ana-icerik,
  body.seller-master-v2.seller-page--urunler-urun-listesi #ana-icerik > .master-content,
  body.seller-master-v2.seller-page--urunler-urun-formu #ana-icerik,
  body.seller-master-v2.seller-page--urunler-urun-formu #ana-icerik > .master-content,
  body.seller-master-v2.seller-page--urunler-urun-duzenle #ana-icerik,
  body.seller-master-v2.seller-page--urunler-urun-duzenle #ana-icerik > .master-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
  }
}

/* ---------------------------------------------------------
   PRODUCT LIST
   Desktop table-like density -> phone operational rows.
   No card wall; thin dividers only.
   --------------------------------------------------------- */
@media (max-width: 820px) {
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-sayfa-baslik,
  body.seller-master-v2.seller-page--urunler-urun-listesi .seller-p2e-filter-section,
  body.seller-master-v2.seller-page--urunler-urun-listesi .psv2-summary-section,
  body.seller-master-v2.seller-page--urunler-urun-listesi .psv2-product-list-section,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-urun-listesi-form,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-urun-kart-listesi {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-ana-aksiyon,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri input:not([type="checkbox"]):not([type="radio"]),
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri select,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri button,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri a.buton {
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri > .r13-arama {
    grid-column: 1 / -1 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri > label,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri > button,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri > a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri input,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Summary metrics stay inside viewport and remain one-hand reachable. */
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-hizli-ozet.r150-product-summary.v120-functional-filter-band {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-hizli-ozet.r150-product-summary.v120-functional-filter-band > a {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 40px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Product row: dense divider-first operational layout. */
  body.seller-master-v2.seller-page--urunler-urun-listesi article.seller-p2e-product-row.r13-urun-satiri {
    display: grid !important;
    grid-template-columns: 40px 52px minmax(0, 1fr) 40px !important;
    grid-template-areas:
      "select media identity action"
      "price  price price    price"
      "stock  stock stock    stock" !important;
    gap: 6px 8px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(23, 63, 51, .14) !important;
    overflow: visible !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-urun-sec {
    grid-area: select !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .v111-product-select-all {
    display: inline-grid !important;
    place-items: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-urun-sec input,
  body.seller-master-v2.seller-page--urunler-urun-listesi .v111-product-select-all input {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r47-seller-product-media-link {
    grid-area: media !important;
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r47-seller-product-media-link img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: cover !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-urun-kimlik {
    grid-area: identity !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-urun-kimlik,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-urun-kimlik > *,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-urun-kod-satiri {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-urun-kimlik h3,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r47-seller-product-name-link {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-urun-aksiyon.w268-product-action-cell {
    grid-area: action !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    justify-self: end !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .w268-product-actions,
  body.seller-master-v2.seller-page--urunler-urun-listesi .w268-product-actions > summary {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .w268-product-actions > summary svg,
  body.seller-master-v2.seller-page--urunler-urun-listesi .w268-product-actions > summary i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-urun-hizli-alan:not(.r13-stok-alani) {
    grid-area: price !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-stok-alani {
    grid-area: stock !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-urun-hizli-alan {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-urun-hizli-alan > label,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-para-alani {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-para-alani input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi article.r13-urun-satiri > .r13-stok-alani {
    display: grid !important;
    grid-template-columns: minmax(72px, .36fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-stok-alani > label {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-stok-alani input,
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-stok-alani select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
  }
}

/* ---------------------------------------------------------
   CREATE + EDIT FORMS
   Constrain intrinsic width and make primary controls thumb-safe.
   --------------------------------------------------------- */
@media (max-width: 820px) {
  body.seller-master-v2.seller-page--urunler-urun-formu #ana-icerik *,
  body.seller-master-v2.seller-page--urunler-urun-duzenle #ana-icerik * {
    box-sizing: border-box !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu .r284-create-header,
  body.seller-master-v2.seller-page--urunler-urun-formu form.r13-urun-editor,
  body.seller-master-v2.seller-page--urunler-urun-formu form.s5-product-create,
  body.seller-master-v2.seller-page--urunler-urun-formu form.r284-create-product,
  body.seller-master-v2.seller-page--urunler-urun-duzenle form,
  body.seller-master-v2.seller-page--urunler-urun-duzenle .smv2-page,
  body.seller-master-v2.seller-page--urunler-urun-duzenle .panel-sayfa-baslik {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu .r284-create-header,
  body.seller-master-v2.seller-page--urunler-urun-formu .r284-create-header > *,
  body.seller-master-v2.seller-page--urunler-urun-formu form.r13-urun-editor > *,
  body.seller-master-v2.seller-page--urunler-urun-duzenle #ana-icerik > .master-content > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.seller-master-v2.seller-page--urunler-urun-formu select,
  body.seller-master-v2.seller-page--urunler-urun-formu textarea,
  body.seller-master-v2.seller-page--urunler-urun-duzenle input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.seller-master-v2.seller-page--urunler-urun-duzenle select,
  body.seller-master-v2.seller-page--urunler-urun-duzenle textarea {
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu .s5-create-head-actions > a.buton,
  body.seller-master-v2.seller-page--urunler-urun-formu .p46-action-buttons > a,
  body.seller-master-v2.seller-page--urunler-urun-formu .p46-action-buttons > button,
  body.seller-master-v2.seller-page--urunler-urun-formu button.buton,
  body.seller-master-v2.seller-page--urunler-urun-formu a.buton,
  body.seller-master-v2.seller-page--urunler-urun-duzenle button.buton,
  body.seller-master-v2.seller-page--urunler-urun-duzenle a.buton,
  body.seller-master-v2.seller-page--urunler-urun-duzenle button[class*="btn"],
  body.seller-master-v2.seller-page--urunler-urun-duzenle a[class*="btn"] {
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu input[type="checkbox"],
  body.seller-master-v2.seller-page--urunler-urun-formu input[type="radio"],
  body.seller-master-v2.seller-page--urunler-urun-duzenle input[type="checkbox"],
  body.seller-master-v2.seller-page--urunler-urun-duzenle input[type="radio"] {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu label:has(> input[type="checkbox"]),
  body.seller-master-v2.seller-page--urunler-urun-formu label:has(> input[type="radio"]),
  body.seller-master-v2.seller-page--urunler-urun-duzenle label:has(> input[type="checkbox"]),
  body.seller-master-v2.seller-page--urunler-urun-duzenle label:has(> input[type="radio"]) {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu .p46-wizard-actions,
  body.seller-master-v2.seller-page--urunler-urun-formu .p46-action-buttons {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Phone: actions should never create intrinsic body width. */
@media (max-width: 600px) {
  body.seller-master-v2.seller-page--urunler-urun-formu .r284-create-header,
  body.seller-master-v2.seller-page--urunler-urun-formu .s5-create-head-actions,
  body.seller-master-v2.seller-page--urunler-urun-formu .p46-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-formu .s5-create-head-actions > *,
  body.seller-master-v2.seller-page--urunler-urun-formu .p46-action-buttons > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-hizli-ozet.r150-product-summary.v120-functional-filter-band {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Tablet: retain density, only repair interaction geometry. */
@media (min-width: 601px) and (max-width: 820px) {
  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-hizli-ozet.r150-product-summary.v120-functional-filter-band {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri {
    grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(100px, 1fr)) !important;
  }

  body.seller-master-v2.seller-page--urunler-urun-listesi .r13-filtre-satiri > .r13-arama {
    grid-column: auto !important;
  }
}