/* Stitchize requested layout refinements — August 2026 */

/* Shop category selector is mobile-only; desktop keeps the full category list. */
.st-mobile-category-control {
  display: none;
}

/* Product carousel: constant low-speed movement with seamless DOM rotation. */
.st-continuous-carousel .st-carousel-viewport {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  overflow-anchor: none;
}
.st-continuous-carousel .st-carousel-track > * {
  scroll-snap-align: none !important;
}

@media (min-width: 992px) {
  /* Compact only the homepage content between the hero ticker and footer. */
  .st-home-main .st-quick-paths {
    padding: 40px 0 2px !important;
  }
  .st-home-main .st-fork-image-cards {
    max-width: 760px !important;
    gap: 30px !important;
  }
  .st-home-main .st-section {
    padding: 44px 0 !important;
  }
  .st-home-main .st-section-compact {
    padding-top: 14px !important;
    padding-bottom: 24px !important;
  }
  .st-home-main .st-section-head {
    margin-bottom: 24px !important;
  }
  .st-home-main .st-pricing-intro {
    margin-bottom: 24px !important;
  }
  .st-home-main .st-reviews-section {
    padding-bottom: 50px !important;
  }

  /* Make the featured-products block visibly shorter on desktop. */
  .st-home-main #shop.st-section {
    padding-top: 28px !important;
    padding-bottom: 24px !important;
  }
  .st-home-main #shop .st-section-head {
    margin-bottom: 17px !important;
  }
  .st-home-main #shop .st-product-card .st-product-image {
    aspect-ratio: 1 / 1.04 !important;
  }

  /* Reduce the blue custom-patches block while retaining its two-column layout. */
  .st-home-main .st-patches-strip {
    padding: 24px 30px !important;
    gap: 26px !important;
  }
  .st-home-main .st-patches-strip h2 {
    margin: 8px 0 9px !important;
    font-size: 26px !important;
  }
  .st-home-main .st-patches-strip p {
    margin-bottom: 14px !important;
    line-height: 1.5 !important;
  }
  .st-home-main .st-work-gallery {
    gap: 9px !important;
  }
  .st-home-main .st-work-gallery a {
    aspect-ratio: 1 / 0.72 !important;
  }

  /* Keep one, two or three pricing cards compact and centred. */
  .st-home-main .st-pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 286px)) !important;
    justify-content: center !important;
    gap: 18px !important;
  }

  /* Shorter final homepage section without changing its mobile treatment. */
  .st-home-main .st-motion-welcome {
    padding: 50px 0 44px !important;
  }
  .st-home-main .st-motion-welcome-grid {
    min-height: 350px !important;
    gap: 46px !important;
  }
  .st-home-main .st-motion-scene {
    min-height: 335px !important;
  }
  .st-home-main .st-motion-copy h2 {
    font-size: clamp(36px, 3.8vw, 52px) !important;
    margin-bottom: 14px !important;
  }
  .st-home-main .st-motion-copy > p {
    margin-bottom: 18px !important;
  }
  .st-home-main .st-motion-points {
    margin-bottom: 20px !important;
  }
}

/* Slightly shorter product artwork on desktop/laptop shop views only. */
@media (min-width: 1200px) {
  #shop-live-area .st-shop-product-card .st-product-image {
    aspect-ratio: 1 / 1.08 !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #shop-live-area .st-shop-product-card .st-product-image {
    aspect-ratio: 1 / 1.1 !important;
  }
}

@media (max-width: 767.98px) {
  /* A compact native dropdown scales cleanly when many categories are added. */
  #shop-live-area .st-category-box {
    padding: 14px !important;
  }
  #shop-live-area .st-category-box h6 {
    margin-bottom: 9px !important;
  }
  #shop-live-area .st-mobile-category-control {
    position: relative;
    display: block !important;
  }
  #shop-live-area .st-mobile-category-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #202943;
    border-bottom: 2px solid #202943;
    transform: translateY(-68%) rotate(45deg);
    pointer-events: none;
  }
  #shop-live-area .st-mobile-category-select {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 44px 10px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid rgba(32, 41, 67, 0.2) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #202943 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    box-shadow: 0 5px 14px rgba(32, 41, 67, 0.06) !important;
    cursor: pointer;
  }
  #shop-live-area .st-mobile-category-select:focus {
    border-color: #e9572f !important;
    box-shadow: 0 0 0 3px rgba(233, 87, 47, 0.12) !important;
  }
  #shop-live-area .st-category-box .category-list {
    display: none !important;
  }

  /* Equal, full-width CTA buttons on service pages. */
  .service-cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 340px !important;
  }
  .service-cta-group .pill-btn {
    width: 100% !important;
    min-height: 44px !important;
    margin-left: 0 !important;
    padding: 10px 16px !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
}
