/*
 * Custom styles for Shop The Look archive page
 * Only loaded on the archive page for CPT 'shop_the_look'
 * Fixes mobile Safari/Chrome spacing/overlap issues without affecting other styles
 */

@media only screen and (max-width: 600px) {
  body.archive.post-type-archive-shop_the_look {
    /* Ensure main container and footer do not overlap */
    min-height: 100vh;
    position: relative;
  }
  
  .shop-the-look-archive-main, .shop-the-look-archive-content {
    padding-bottom: 80px !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }

  /* Fix footer overlap */
  footer,
  .site-footer {
    position: static !important;
    width: 100%;
    margin-top: 32px;
    clear: both;
  }

  /* Ensure dropdowns and gallery images have spacing */
  .shop-the-look-archive-main select,
  .shop-the-look-archive-main img,
  .shop-the-look-archive-content select,
  .shop-the-look-archive-content img {
    margin-bottom: 18px !important;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Add spacing for cards/items */
  .shop-the-look-archive-main > *,
  .shop-the-look-archive-content > * {
    margin-bottom: 22px !important;
  }

  /* Prevent elements from stacking with no gap */
  .shop-the-look-archive-main,
  .shop-the-look-archive-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
}
