
/* ========================================
   Online Store
======================================== */

.shop-page {
  position: relative;
  min-height: 100vh;
  padding-top: 240px;
  padding-bottom: 120px;
  background-color: #fff;
}

.shop-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1919 / 254;
  background-image: url("../images/shop/onlinestore_pc.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
}

.shop-page__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1590px;
  margin-right: auto;
  margin-left: auto;
	  padding-left:45px;
	  padding-right:45px;
}

/* ========================================
   Layout
======================================== */

.shop-page__layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1100px);
  gap: 0;
}

.shop-page__sidebar {
  min-width: 0;
}

.shop-page__content {
  min-width: 0;
}

/* ========================================
   Category Navigation
======================================== */

.shop-page__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 35px;
}

.shop-page__nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #222;
  text-decoration: none;
}

.shop-page__nav a span {
  font-size: 24px;
  line-height: 1;
}

/* ========================================
   Product Category
======================================== */

.shop-category {
  margin-bottom: 90px;
  scroll-margin-top: 110px;
}

.shop-category:last-child {
  margin-bottom: 0;
}

.shop-category__title {
  display: inline-block;
  margin-bottom: 40px;
  padding-top:15px;
  padding-bottom: 0px;
  border-bottom: 2px solid #222;
}

/* ========================================
   Product Grid
======================================== */

.shop-page__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px 15px;
}

.shop-product {
  min-width: 0;
}

.shop-product__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-product__image {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
}

.shop-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product__title {
  margin-top: 18px;
}

.shop-product__price {
  margin-top: 8px;
}

.shop-product__price .amount {
  color: #222;
}

.shop-product__description {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #999;
}

.shop-product__description p {
  margin: 0;
}

/* ========================================
   Tablet
======================================== */

@media screen and (min-width: 768px) and (max-width: 1299px) {



  .shop-page {
    padding-top: 200px;
    padding-bottom: 90px;
  }
	.shop-page__inner {
	  padding-left:40px;
	  padding-right:40px;
	}
  .shop-page__layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .shop-page__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 30px;
	display:none;
  }

}

/* ========================================
   Smartphone
======================================== */

@media screen and (max-width: 767px) {

  .shop-page {
    padding-top: 85px;
    padding-bottom: 70px;
  }
  	.shop-page__inner {
	  padding-left:25px;
	  padding-right:25px;
	}


  .shop-page::before {
    aspect-ratio: 956 / 573;
    background-image: url("../images/shop/onlinestore_sp.svg");
    background-size: contain;
  }

  .shop-page__layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .shop-page__nav {
    gap: 12px;
    margin-top: 25px;
	display:none;
  }

  .shop-category {
    margin-bottom: 65px;
  }

  .shop-category__title {
    margin-bottom: 25px;
  }

  .shop-page__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 12px;
  }

  .shop-product__title {
    margin-top: 12px;
  }

}
/* ========================================
   Category / Tag Archive
======================================== */

@media screen and (max-width: 1299px) {

  body.tax-product_cat .shop-page__nav,
  body.tax-product_tag .shop-page__nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

}