/* Cementare Responsive Components v1 — grids, modals, forms, footer. */
@media (max-width:1199px){
  .ev-g-gallery,
  .ct-color-grid,
  .cf-product-grid,
  .ca-product-grid,
  .c8-system-grid,
  .c18-system-grid,
  .c18-why-grid,
  .c35-manifesto-grid,
  .c35-manifesto-dark-grid,
  .ct-order-grid,
  .cementare-offer-grid,
  .cementare-form-grid,
  .c8-footer-grid{
    min-width:0!important;
  }

  .ev-g-gallery > *,
  .ct-color-grid > *,
  .cf-product-grid > *,
  .ca-product-grid > *,
  .c8-system-grid > *,
  .c18-system-grid > *,
  .c18-why-grid > *,
  .c35-manifesto-grid > *,
  .c35-manifesto-dark-grid > *,
  .ct-order-grid > *,
  .cementare-offer-grid > *,
  .cementare-form-grid > *,
  .c8-footer-grid > *{
    min-width:0!important;
    max-width:100%;
  }
}

@media (min-width:701px) and (max-width:991px){
  .ev-g-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .ct-color-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .cf-product-grid,.ca-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .c8-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:34px 42px!important;}
}

@media (max-width:700px){
  .ev-g-gallery{grid-template-columns:minmax(0,1fr)!important;}
  .ct-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .cf-product-grid,.ca-product-grid{grid-template-columns:minmax(0,1fr)!important;}
  .c8-intro-grid,.c8-system-grid,.c18-system-grid,.c18-why-grid,.c35-manifesto-grid,.c35-manifesto-dark-grid,
  .ct-order-grid,.cementare-offer-grid,.cementare-form-grid,.c8-footer-grid{grid-template-columns:minmax(0,1fr)!important;}
  .c8-footer-grid{gap:30px!important;}

  .cementare-field input,
  .cementare-field select,
  .cementare-field textarea,
  .cementare-offer-field input,
  .cementare-offer-field select,
  .cementare-offer-field textarea,
  .c8-subscribe-form input{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    font-size:16px!important;
  }

  .cementare-contact-card,
  .ct-order-form-card,
  .cementare-order-form,
  .cementare-offer-form{
    min-width:0!important;
    max-width:100%!important;
  }

  .ct-color-modal,
  .c35-color-modal{
    padding:max(10px,var(--cementare-safe-top)) max(10px,var(--cementare-safe-right)) max(10px,var(--cementare-safe-bottom)) max(10px,var(--cementare-safe-left))!important;
    box-sizing:border-box!important;
  }

  .ct-color-modal-panel,
  .c35-color-modal-panel{
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:calc(var(--ct-mobile-vh-px,100dvh) - max(20px,var(--cementare-safe-top)) - max(20px,var(--cementare-safe-bottom)))!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
  }

  .ct-color-modal-image,
  .c35-color-modal-image{min-height:0!important;max-height:58dvh!important;}
  .ct-color-modal-image img,
  .c35-color-modal-image img{width:100%!important;height:100%!important;max-height:58dvh!important;object-fit:contain!important;}
  .ct-color-modal-close,
  .c35-color-modal-close{top:max(10px,var(--cementare-safe-top))!important;right:max(10px,var(--cementare-safe-right))!important;}
  .ct-color-modal-prev,.c35-color-modal-prev{left:max(8px,var(--cementare-safe-left))!important;}
  .ct-color-modal-next,.c35-color-modal-next{right:max(8px,var(--cementare-safe-right))!important;}
}

@media (max-width:340px){
  .ct-color-grid{grid-template-columns:minmax(0,1fr)!important;}
}

@media (max-width:991px) and (orientation:landscape) and (max-height:560px){
  .ct-color-modal-panel,.c35-color-modal-panel{grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr)!important;grid-template-rows:minmax(0,1fr)!important;}
  .ct-color-modal-image,.c35-color-modal-image,.ct-color-modal-image img,.c35-color-modal-image img{max-height:100%!important;}
}
