/* FotoCity v1.0.24 — global responsive hardening + Elementor sync */
html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas,iframe{max-width:100%}
img{height:auto}

/* Elementor containers must never force horizontal overflow. */
.elementor,.elementor-section,.elementor-container,.elementor-column,.elementor-widget-wrap,
.e-con,.e-con-inner,.elementor-element,.elementor-widget{min-width:0;max-width:100%}
.elementor img{max-width:100%;height:auto}
.fc-elementor-location,.fc-elementor-location>.elementor{width:100%;max-width:100%;overflow:visible}

/* FotoCity shells/components. */
.fch-container,.fcf-shell,.fc-about-shell,.fcp-wrap,.fcp-component-wrap,.fc-shop-wrap,
.fc-contact-shell,.fcp-contact-wrap,.fc-account-shell,.fc-cart-shell,.fc-checkout-shell,
.fc-gallery-shell,.fc-faq-shell,.fc-legal-shell{max-width:100%;min-width:0}

/* Prevent long content from breaking cards and grids. */
[class*="fc-"]{overflow-wrap:anywhere}
[class*="fc-"] input,[class*="fc-"] select,[class*="fc-"] textarea,[class*="fc-"] button{max-width:100%}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{max-width:100%}

/* Tables stay usable on narrow screens without expanding the page. */
.woocommerce table.shop_table,.woocommerce-account table,.fc-table-wrap{max-width:100%}
@media(max-width:767px){
  .woocommerce-account .woocommerce-MyAccount-content,.woocommerce-account .woocommerce-MyAccount-navigation{width:100%!important;float:none!important}
  .elementor-section>.elementor-container,.e-con{max-width:100%!important}
  .fc-elementor-location{overflow-x:clip}
}

/* Common FotoCity multi-column sections collapse safely on tablets/phones. */
@media(max-width:1024px){
  .fc-about-hero-grid,.fc-story-grid,.fc-product-grid,.fc-process-grid,
  .fc-contact-grid,.fc-checkout-layout,.fc-cart-layout{min-width:0}
}
@media(max-width:767px){
  .fc-product-grid,.fc-story-grid,.fc-contact-grid{grid-template-columns:1fr!important}
  .fc-about-shell,.fch-container{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
}
