/* Responsive Layout & Mobile Enhancements */

/* Mobile & Tablet Breakpoint (<= 992px: FullPage Snap & Layout) */
@media screen and (max-width: 992px) {
  #fullpage .section {
    padding-top: 75px;
    padding-bottom: 25px;
  }

  .fp-overflow {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  #section_about .flex-container {
    flex-direction: column;
  }

  #section_about .col-lg-50 {
    width: 100%;
  }

  #section_about .col-lg-50 img {
    max-width: 90%;
    margin: 10px auto;
    display: block;
  }

  #section2 .main {
    flex-direction: column;
  }

  .col-lg-35,
  .col-lg-65 {
    width: 100%;
  }
}

/* Tablet & Phablet Breakpoint (<= 800px) */
@media screen and (max-width: 800px) {
  .flex-container .flex-item {
    flex: 0 0 calc(33.33% - 10px);
  }

  .col-lg-50 {
    width: 100%;
  }

  .pr-sm {
    padding-right: 20px;
    padding-left: 20px;
  }

  /* Form & Enquiry Modal Responsiveness */
  #formEnqury>.modal-dialog {
    width: 85% !important;
    max-width: 520px;
    margin: auto;
    height: auto !important;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
  }

  .contactForm .d-flex {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .contactForm .d-flex .input-container {
    width: 100% !important;
  }

  /* Floating WhatsApp button scaling */
  .float {
    width: 60px !important;
    height: 60px !important;
    bottom: 25px !important;
    right: 20px !important;
  }

  .float img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  /* Fixed, easily accessible modal close button */
  .modal-dialog .close-modal {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1050 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  /* Higher z-index for topmost enquiry modal */
  #formEnqury {
    z-index: 1100 !important;
  }

  .style-0 {
    position: relative;
  }
}

/* Mobile Screen Breakpoint (<= 550px) */
@media screen and (max-width: 550px) {

  /* Clean 2-column product tiles */
  .flex-container .flex-item {
    flex: 0 0 calc(50% - 10px) !important;
    margin: 5px !important;
  }

  .category-hub-section {
    padding: 0px 10px;
  }

  #section0 .twelve {
    padding-top: 60px;
  }

  .twelve h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .twelve p {
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.5;
  }

  .category-hub-section span {
    font-size: 16px !important;
  }

  /* Readable modal headings on mobile */
  .modal .twelve h1 {
    font-size: 20px !important;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    line-height: 1.3 !important;
  }

  /* Enquiry modal full-width on small phones */
  #formEnqury>.modal-dialog {
    width: 94% !important;
    padding: 10px;
  }

  .modal-content .contact-form {
    padding: 15px !important;
  }

  /* Compact floating WhatsApp button on mobile */
  .float {
    width: 52px !important;
    height: 52px !important;
    bottom: 20px !important;
    right: 15px !important;
  }

  /* 3D Spin Carousel mobile sizing */
  #spin-container img {
    box-shadow: 0 0 5px #fff;
  }
}