/* ✅ mobile.css: scoped, desktop-safe */
  @media screen and (max-width: 768px) {

  /*<------------------------ ✅ MOBILE: MENU 768 ---------------->*/
  .menu-toggle span {
  position: absolute;
  width: 30px;
  height: 3px;
  background: #6b6b6b;
  border-radius: 2px;
  transition: all 0.3s ease;
  }

  .menu-toggle span:nth-child(1) { transform: translateY(-8px); }
  .menu-toggle span:nth-child(2) { transform: translateY(0); }
  .menu-toggle span:nth-child(3) { transform: translateY(8px); }

  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 1s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.3);
  }

  .mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-overlay a {
    font-size: 24px;
    text-decoration: none;
    color: #222;
    margin: 20px 0;
    transition: color 0.2s;
  }

  .mobile-menu-overlay a:hover {
    color: #256C28;
  }

  /* Hide desktop menu */
  .menu-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  
  /* Hamburger menu toggle */
  .menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  }

  /* ---> Layer 2: center image grid without background */
  .layer-2 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0px;
    width: 100%;
    height: auto;
    background: none !important;
    left: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  .image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: left;
    align-items: center;
    width: 100vw;
    margin: 0 auto;
    margin-top: 120px;
    background-color: rgb(255, 255, 255);
  }

  .grid-image {
    width: 100vw;
    height: auto;
    object-fit: cover;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
  }

  .img-1 { grid-row: 1; }
  .img-2 { grid-row: 2; }
  .img-3 { grid-row: 3; }
  .img-4 { grid-row: 4; }
  .img-5 { grid-row: 5; }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /*<------------------------ ✅ HOME PAGE 768 - index ---------------->*/
  /* Serpen Chair */
  .grid-image:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    margin-left: -60px;
    margin-top: -100px;
    width: 340px;
    height: 250px;
  }
  /* Wave Chest */
  .grid-image:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    margin-left: -50px;
    margin-top: 50px;
    width: 300px;
    height:280px;
  }
  /* Formation Cab */
  .grid-image:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    margin-left: -120px;
    margin-top: -50px;
    width: 280px;
    height:auto
  }
  /* Slit Table */
  .grid-image:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    margin-left: -50px;
    margin-top: -10px;
    width: 200px;
    height:340px;
  }
  /* Zebra Table */
  .grid-image:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
    margin-left: -30px;
    margin-top: -390px;
    width: 300px;
    height:auto
  }
  
  .layer-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 20px 0;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }
  .content-text {
    width: 370px;
    font-size: 14px;
    margin-bottom: 15px;
  }
  .layer-3 .logo {
    max-width: 150px;
    height: auto;
  }
}

  /*<------------------------ ✅ iPads ---------------->*/
  /* (iPad Pro 11-inch and 12.9-inch (landscape and portrait) */
    @media only screen and (min-width: 834px) and (max-width: 1366px) {

    .layer-2 {
      background: 
    }

    .info-box-button {
      top: 90px;
    }
     
    .related-items-bar {
    position: fixed;
    transition: height 1s cubic-bezier(0.1, 0.4, 0.1, 1); /* Adjust this time value */
    bottom: 0px; /* Adjust this value to move the bar up or down */
    margin-bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%; /* Adjust to ensure it fits well on iPad Pro screens */
    background-color: rgba(113,112,112,0.00)!important; /* Opaque background with 85% opacity */
    border-radius: 1px;
    z-index: 1000;
    padding: 15px 20px 5px; /* Don't Adjust "15px" or problems */
    }

    .related-thumbnails {
    display: flex;
    flex-wrap: wrap; /* Ensure the thumbnails fit within the bar */
    justify-content: space-evenly; /* Distribute thumbnails evenly */
    gap: 10px; /* Add space between thumbnails */
    margin-top: 0px; /* Adjust the value as needed */
    }

    .thumbnail {
    margin-top: 10px; /* This pushes down each image individually */
    }

    .related-items-bar:hover {
    height: 270px; /* Height can be adjusted based on content */
    }

    .related-items-bar .thumbnail {
    width: 100px; /* Adjust thumbnail size to fit four comfortably */
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    }
    .related-title {
      color: rgb(192, 191, 191);
      font-family: Arial, sans-serif;
      font-size: 14px;
      line-height: -20px; /* Adjust this to move the text higher */
      display: block;
      margin-top: 0px;
      margin-bottom: 0px; /* Add space below the title */
      }
}
  
/*<!------------------ ✅ MOBILE 768: iPhone 16 Pro Max  ----------------------------------------->*/
  
@media screen and (max-width: 768px) {
  /* Hide desktop menu */
  .menu-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  }
  
  .header {
  margin-top: 30px;         /* ✅ Space Top Menu Bar */
  }

  .menu ul {
  display: flex;
  list-style: none;
  }

  .menu-item {
  margin-right: 20px; 
  }

  .login-box {
  display: inline-block;
  padding: 5px 10px;
  background-color: black;
  border-radius: 4px;
  }

  .login-box a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  }

  .login-box a:hover {
  text-decoration: underline;
  }  

  .thumbnail {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover;
  flex-shrink: 0;
  }

  /* Layer 2: Sidebar */
  .layer-2 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0px;
  width: 100%;
  height: auto;
  background: none !important;
  }

  .layer-2 .logo {
  width: 80px; /* Adjust logo size */
  height: auto;
  margin-top: 0px;
  margin-left: 10px;
  transform: rotate(0deg);
  animation: fadeInLogo 5s ease-in-out forwards; /* Custom animation for logo */
  }

  .image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-items: left;
  align-items: center;
  width: 100vw;
  margin: 0 auto;
  margin-top: 0px;
  background-color: rgb(255, 255, 255);
  }

  .grid-image {
  width: 100vw;
  height: auto;
  object-fit: cover;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

  .img-1 { grid-row: 1; }
  .img-2 { grid-row: 2; }
  .img-3 { grid-row: 3; }
  .img-4 { grid-row: 4; }
  .img-5 { grid-row: 5; }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /*<!------------------ ✅ MOBILE 414: iPhone 16 Pro  ----------------------------------------->*/

@media screen and (max-width: 414px) {
  .title {
      font-size: 1.5rem;
      margin-bottom: -60px;
    }

    .headline {
 margin-top: 30px;
  }

    /* Thumbnails */
    .thumbnail-container {
      display: flex;
      flex-direction: row;
      justify-content: center;   /* center items horizontally */
      align-items: center;       /* center items vertically */
      gap: 20px;                 /* this controls spacing */
      margin-top: 40px;
    }
  
    .thumbnail {
      width: 90px;
      height: 90px;
      object-fit: cover;
      flex-shrink: 0;            /* prevent shrinking */
    }

    .thumbnail:not(:last-child) {
      margin-right: 10px;
    }
  
    .related-items-bar {
      padding: 30px 16px;
      width: 100%;
      margin-top: -40px; /* Pulls up */
    }
  
    .related-title {
      font-size: 13px;
      padding: 6px 10px;
      margin-top: 10px; /* Pull this up with -minus */
    }

    #info-modal {
      padding-right: 30px;
    }
}

    /*<------------------------ ✅ MOBILE 768: MENU ---------------->*/

    /* Hamburger menu toggle */
    .menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }

    .menu-toggle span {
    position: absolute;
    width: 30px;
    height: 3px;
    background: #6b6b6b;
    border-radius: 2px;
    transition: all 0.3s ease;
    }

    .menu-toggle span:nth-child(1) { transform: translateY(-8px); }
    .menu-toggle span:nth-child(2) { transform: translateY(0); }
    .menu-toggle span:nth-child(3) { transform: translateY(8px); }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

    .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.8s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    }

  .mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    }

    .mobile-menu-overlay a {
    font-size: 24px;
    text-decoration: none;
    color: #222;
    margin: 20px 0;
    transition: color 0.2s;
    }

    .mobile-menu-overlay a:hover {
    color: #256C28;
    }

    /*<------------------------ ✅ MOBILE 768: THUMBNAILS @ bottom ---------------->*/

    .related-items-bar {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 16px 16px;
    margin-top: 10px;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
    background: transparent;
    height: auto !important;
    }

    .related-title {
      display: block;
      text-align: center;
      font-size: 0.8rem;
      font-weight: 500;
      margin-bottom: 30px;
      margin-top: 450px;
      color: #323131;
      width: 100%;
      padding: 10px 0;
      position: relative;
    }
    
    .related-title::after {
      content: "";
      position: absolute;
      bottom: -2px; /* Space below title */
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 40px solid transparent;
      border-right: 40px solid transparent;
      border-top: 10px solid rgba(47, 47, 47, 0.469); /* Triangle color */
    }

    .related-thumbnails {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: -20px; /* Adjusted to fit the screen */
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    }

    .related-thumbnails a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    }

    .related-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    }

    .related-thumbnails .thumbnail:active {
    transform: scale(0.97);
    }

    .related-items-bar:hover {
    height: auto !important;
    }

    .related-items-bar .related-thumbnails {
      opacity: 1 !important;
    }

    .related-items-bar:hover .related-thumbnails {
      opacity: 1 !important;
    }

    .related-items-bar:hover .thumbnail:hover {
      transform: none !important;
      animation: none !important;
    }

    /*---------------  MOBILE 768: MODAL START ---------------------*/
    .layer-1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    z-index: 1;
    transition: background-image 1s ease-in-out;
    }

    .modal-content {
    padding: 20px;
    position: relative;
    }

    .close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    }

    .product-info {
    position: relative;
    margin-top: 20px;
    color: #333;
    font-family: Arial, sans-serif;
    }

    .info-image {
    position: absolute;
    right: -15px; 
    top: 50px;
    width: 40px;
    }

    .info-box-button {
    top: 90px;
    right: 15px;
    z-index: 1000; 
    background-color: #0000005b;
    color: #fff;
    padding: 10px 9px;
    font-size: 11px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s;
    }

    .info-box-button:hover {
      background-color: #000000;
    }

    #info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90vw;
    height: 500px; /* 🎯 Fixed height */
    overflow-y: auto; /* Enable scroll if content is too long */
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.69);
    border: thick solid;
    animation: fadeIn 0.4s ease;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    }  

    #info-modal .product-info {
    font-family: Arial, sans-serif !important; /* Ensures the font applies */
    color: #333 !important; /* Dark gray text color */
    font-size: 14px !important; /* Base font size */
    line-height: 1.6 !important; /* Line spacing */
    margin-top: 20px;
    }

    #info-modal .product-info p {
    margin: 10px 0 !important; /* Spacing between paragraphs */
    }

    #info-modal .product-info p:first-of-type {
    font-weight: bold !important; /* Emphasize the first paragraph */
    }

    #info-modal .product-info p:nth-of-type(2) {
    font-style: italic !important; /* Style the second paragraph as italic */
    }

    /* Optional: Add border at the bottom of each paragraph */
    #info-modal .product-info p {
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 5px;
    }

    /* Headers inside product-info, if any */
    #info-modal .product-info h2 {
    font-size: 18px !important;
    font-weight: bold;
    color: #222;
    margin-top: 0;
    transform: uppercase;
    }

      /*<------------------------ ✅ MOBILE 768: Home page - index ---------------->*/
      .layer-2-index {
        position: relative;
        left: 0px;
        width: 100vw;
  }
}