@import 'fonts.css';
@import 'nav.css';
@import 'footer.css';
/*
.page {}
.legend {}
.nav {}
.main {}
.footer {}
*/



header {
  width: 100%;
  height: 75px;
  top: 0;
  z-index: 1000;

  transition: background-color 0.3s;
  position: fixed;
}


nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: space-between;
  
  margin: 0 auto;
  height: 75px;

  width: clamp(1280px, 1500px, 95vw);
}


body[page_id='index'] div#banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 999;
}
body[page_id='account'] {
  background: var(--color-light-250-opacity);
}
body[page_id='brand'],
body[page_id='blog'] {
  background: var(--color-light-250);
}


main {
  margin-top: 75px;
  flex: 1;
}


section {
  display: grid;
  gap: 1rem;
}


footer {
  width: 100%;
  border-top: 1px solid #161616;
  margin-top: 5rem;
  padding: 3rem 0;
  display: grid;
  gap: 2rem;
}
footer.by-jessie {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1),
    rgba(255, 0, 0, 0.03), 
    rgba(33, 155, 15, 0.03), 
    rgba(0, 155, 255, 0.03), 
    rgba(255, 255, 255, 0.1)
  );
}

.container {
  width: clamp(1280px, 1500px, 95vw);
  margin: 2rem auto;
}
footer .container {
  margin: 0 auto;
}


.shelves {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(5, 1fr);
}


.display-row-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2; 
}

.legend {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.legend img {
  width: 100%;
  transform: translateY(-25%);
}
.float-window {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.float-window div {
  margin-bottom: 1rem;
}

.collection-window {
  display: grid;
  gap: 0.5em;
  grid-template-columns: repeat(3, 1fr);
}
.collection-window > div > a > img {
  border-radius: 8px;
  /* width: 100%; */
}






@media (max-width: 860px) {
  .container {
    width: 96%;
    margin: 0 auto;
  }
  body[page_id='listing'] .container {
    width: 100%;
  }
  body[page_id='listing'] div#listing_slideshow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 999;
  }

  body[page_id='shop_shelves'] {
    background: var(--color-white);
  }
  

  header {
    padding: 0;
    height: 65px;
  }
  
  nav {
    grid-template-columns: 1fr auto;
    width: 100%;
    height: 65px;
  }

  main {
    margin-top: 75px;
    gap: 2rem;
  }
  body[page_id='listing'] main {
    margin-top: 0;
  }

  footer {
    padding: 2rem;
  }
  body[page_id='listing'] footer {
    background: var(--color-light-250);
    margin-top: 0;
  }
  body[page_id='user_bag'] footer {
    display: none;
  }

  .shelves {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* .collection-window {
    border-radius: 0;
  } */
  .swiper {
    display: flex;
    gap: 1rem;
    overflow-x: scroll;
    padding-left: 1rem;
    scroll-padding-left: 1rem;

    /* 核心：滚动吸附 */
    scroll-snap-type: x mandatory;

    /* iOS 惯性滚动 */
    -webkit-overflow-scrolling: touch;

    /* 隐藏滚动条 */
    scrollbar-width: none;
  }
  .swiper::-webkit-scrollbar {
    display: none;
  }
  .slide {
    min-width: 80%;
    flex-shrink: 0;

    /* 每张图对齐吸附点 */
    scroll-snap-align: start;

    /* 防止跨图拖动 */
    scroll-snap-stop: always;
  }
  .swiper .sku-wrap {
    height: 350px;
  }
}