/* ==========================================================================
   TWIN ROCK TOOLS - RESPONSIVE STYLES
   ========================================================================== */

/* Large Desktops and Monitors (1440px and below) */
@media (max-width: 1440px) {
  .trt-container-wide {
    max-width: 1280px;
  }
}

/* Laptops and Desktops (1200px and below) */
@media (max-width: 1200px) {
  .trt-mega-menu {
    left: -120px;
    width: 720px;
  }

  .trt-card-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .trt-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
  }
}

/* Tablets and Small Laptops (992px and below) */
@media (max-width: 992px) {
  /* Header navigation collapse */
  .trt-main-nav,
  .trt-header-actions .trt-btn {
    display: none;
  }

  .trt-mobile-toggle {
    display: flex;
  }

  .trt-card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trt-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .trt-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .trt-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .trt-footer-bottom a {
    margin: 0 10px;
  }

  /* Form rows */
  .trt-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Split columns in templates */
  .trt-split-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Sticky product bar */
  .trt-sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--trt-color-graphite);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: var(--trt-z-sticky-bar);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Tablets and Mobile Landscape (768px and below) */
@media (max-width: 768px) {
  :root {
    --trt-gutter: 18px;
  }

  .trt-header-inner {
    height: 70px;
  }

  .trt-site-header.is-scrolled .trt-header-inner {
    height: 64px;
  }

  .trt-category-card {
    min-height: 280px;
    padding: 22px;
  }

  .trt-floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .trt-floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .trt-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trt-spec-table th {
    width: 45%;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .trt-spec-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* Phones (576px and below) */
@media (max-width: 576px) {
  .trt-card-grid,
  .trt-card-grid-4 {
    grid-template-columns: 1fr;
  }

  .trt-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .trt-mobile-drawer {
    max-width: 100%;
  }

  .trt-hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px !important;
  }

  .trt-hero-btns .trt-btn {
    width: 100%;
  }
}
