/* OTEL CORE 11.12.30 — targeted phone layout fixes; no cart/payment logic. */
@media (max-width: 767px) {
  body.single-product .mp-section:has(.mp-prodgrid) {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    padding: 22px 16px 26px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }
  body.single-product .mp-prodgrid,
  body.single-product .mp-prodgrid .wc-block-product-template,
  body.single-product .mp-prodgrid ul.wc-block-product-template,
  body.single-product .mp-prodgrid .is-flex-container,
  body.single-product .mp-prodgrid ul.is-flex-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: initial !important;
    justify-content: initial !important;
    overflow: visible !important;
  }
  body.single-product .mp-prodgrid li.wc-block-product,
  body.single-product .mp-prodgrid .wc-block-product-template > li,
  body.single-product .mp-prodgrid .is-flex-container > li {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.single-product .mp-prodgrid li.wc-block-product .wp-block-post-title,
  body.single-product .mp-prodgrid li.wc-block-product .wp-block-post-title a {
    font-size: 16px !important;
    line-height: 1.42 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal !important;
  }
  body.single-product .mp-prodgrid li.wc-block-product .wc-block-components-product-image {
    aspect-ratio: 1.4 / 1 !important;
    height: auto !important;
  }
  body.single-product .mp-prodgrid li.wc-block-product .wc-block-components-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body.single-product .mp-prodgrid li.wc-block-product .wc-block-components-product-price,
  body.single-product .mp-prodgrid li.wc-block-product .wp-block-button__link {
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  body.single-product .mp-prodgrid li.wc-block-product .wp-block-woocommerce-product-button,
  body.single-product .mp-prodgrid li.wc-block-product .wc-block-components-product-button {
    align-self: stretch !important;
  }
  /* In a column flex layout, flex-basis:180px means 180px of HEIGHT. */
  body.single-product .otel-core-pdp form.cart:not(.variations_form) .single_add_to_cart_button,
  body.single-product .otel-core-pdp .variations_form .single_add_to_cart_button,
  body.single-product .otel-core-pdp form.cart .single_add_to_cart_button {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  /* Remove artificial stretch even if preceding declarations use flex. */
  body.single-product .otel-core-pdp .woocommerce-variation-add-to-cart,
  body.single-product .otel-core-pdp form.cart:not(.variations_form) {
    align-content: flex-start !important;
    align-items: flex-start !important;
  }
  body.single-product .otel-core-pdp .quantity { flex: 0 0 auto !important; }
}
@media (max-width: 440px) {
  .otkc-box .otkc-timeline { display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:0 !important;align-items:start !important;width:100% !important; }
  .otkc-box .otkc-step { min-width:0 !important;width:100% !important;overflow:visible !important; }
  .otkc-box .otkc-step:not(:last-child)::after { left:65% !important;right:-35% !important; }
  .otkc-box .otkc-step-label { font-size:11px !important;line-height:1.35 !important;letter-spacing:-.025em !important;word-break:normal !important;overflow-wrap:normal !important;white-space:normal !important;hyphens:none !important; }
  .otkc-box .otkc-step:nth-child(2) .otkc-step-label,
  .otkc-box .otkc-step:nth-child(3) .otkc-step-label,
  .otkc-box .otkc-step:nth-child(4) .otkc-step-label { font-size:0 !important; }
  .otkc-box .otkc-step:nth-child(2) .otkc-step-label::after { content:'Hazırlık';font-size:11px !important; }
  .otkc-box .otkc-step:nth-child(3) .otkc-step-label::after { content:'Kargoda';font-size:11px !important; }
  .otkc-box .otkc-step:nth-child(4) .otkc-step-label::after { content:'Teslim';font-size:11px !important; }
  .otkc-box .otkc-track-btn { box-sizing:border-box !important;min-height:54px !important;width:100% !important;max-width:100% !important;padding:14px 18px !important;font-size:14px !important;line-height:1.4 !important;white-space:normal !important;justify-content:center !important; }
}
