.collections-page-template {
  padding-top: 0;
  padding-bottom: 60px;
  background: #fdfdfd;
  color: #202020;
}

.collections-inner {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 35px;
  box-sizing: border-box;
}

.collections-products {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0 35px 60px;
  box-sizing: border-box;
}

.collections-page-template .collections-products .product-grid.collections-grid {
  padding-left: 0;
  padding-right: 0;
}

.collections-toolbar {
  padding-top: 8px;
  margin-bottom: 20px;
}

.collections-breadcrumbs .woocommerce-breadcrumb {
  font-size: 11px;
  line-height: 16px;
  color: #858585;
  margin: 0;
  text-align: left;
}

.collections-breadcrumbs .bc-sep {
  margin: 0 6px;
  color: #858585;
}

.collections-page-head {
  margin-bottom: 28px;
}

.collections-page-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  margin: 0;
  color: #202020;
}

.collections-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-bottom: 40px;
}

.collections-filters-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #202020;
}

.collections-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.collection-pill {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #202020;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.collection-pill:hover {
  border-color: #c8c8c8;
}

.collection-pill.active {
  border-color: #202020;
  color: #202020;
}

a.collection-pill--link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

a.collection-pill--link:hover {
  border-color: #c8c8c8;
}

a.collection-pill--link.active {
  border-color: #202020;
  color: #202020;
}

.collections-term-description {
  max-width: 720px;
  margin: -8px 0 24px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.collections-term-description p {
  margin: 0 0 10px;
}

.collections-archive-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.collections-archive-pagination .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.collections-archive-pagination .woocommerce-pagination ul li {
  margin: 0;
  list-style: none;
}

.collections-archive-pagination .woocommerce-pagination a,
.collections-archive-pagination .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #202020;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.collections-archive-pagination .woocommerce-pagination a:hover {
  border-color: #202020;
}

.collections-archive-pagination .woocommerce-pagination span.current {
  background: #202020;
  color: #fdfdfd;
  border-color: #202020;
}

.collections-archive-pagination .woocommerce-pagination span.dots {
  border-color: transparent;
  background: transparent;
  min-width: auto;
}

.collections-section-head {
  margin-bottom: 44px;
}

.collections-section-head--edge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.collections-section-head--edge .collections-sakura--left {
  justify-self: start;
}

.collections-section-head--edge .collections-section-title {
  grid-column: 2;
  text-align: center;
  margin: 0;
}

.collections-section-head--edge .collections-sakura--right {
  grid-column: 3;
  justify-self: end;
}

.collections-section-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.collections-sakura {
  width: clamp(72px, 18vw, 140px);
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  display: block;
}

.collections-sakura--left {
  transform: scaleX(-1);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  row-gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.collections-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.collections-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.collections-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e8e8e8;
  overflow: hidden;
}

.collections-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.collections-card:hover .collections-card__media img {
  transform: scale(1.03);
}

.collections-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0 4px;
}

.collections-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.collections-card__title a {
  color: #202020;
  text-decoration: none;
  transition: opacity 0.2s;
}

.collections-card__title a:hover {
  opacity: 0.65;
}

.collections-card__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  line-height: 1.35;
}

.collections-card__meta a {
  color: inherit;
  text-decoration: none;
}

.collections-card__meta a:hover {
  text-decoration: underline;
}

.collections-card__price {
  margin-top: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #555;
}

.collections-card__price .price:has(del),
.collections-card__price .price:has(.hanagasumi-price-sale-wrap) {
  font-size: 16px;
  line-height: 18px;
}

.collections-card__price .amount,
.collections-card__price .woocommerce-Price-amount {
  font-weight: inherit;
}

.collections-load-more {
  margin-top: 48px;
}

.btn-more {
  background: #202020;
  color: #fdfdfd;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-more:hover {
  opacity: 0.88;
}

.btn-more:active {
  transform: scale(0.98);
}

.btn-more:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.collections-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 35px 60px;
}

.page-title {
  text-align: center;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 20px 0;
}

.divider {
  height: 1px;
  background: #ccc;
  margin-bottom: 30px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid #ccc;
  padding: 10px 28px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover {
  border-color: #202020;
}

.filter-btn.active {
  background: #202020;
  color: #fdfdfd;
  border-color: #202020;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  row-gap: 40px;
}

.product-card {
  cursor: pointer;
  text-align: center;
  animation: hanagasumi-card-in 0.5s ease forwards;
  opacity: 0;
}

@keyframes hanagasumi-card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  transform: translateY(20px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f5f5;
  transition: transform 0.4s;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  font-weight: 800;
  font-size: 16px;
  margin-top: 10px;
}

.product-card .series {
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

.product-card .price-row {
  font-size: 13px;
  margin-top: 6px;
}

.product-card .price-row .sale {
  color: #ba3d3d;
  font-weight: 700;
}

.load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.hanagasumi-product-cat-archive .collections-card__media {
  aspect-ratio: 1 / 1;
}

.hanagasumi-product-cat-archive .collections-card__price.product-price {
  margin-top: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #555;
}

.hanagasumi-product-cat-archive .collections-card__price.product-price .price:not(:has(del)) {
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  color: #555;
}

.hanagasumi-product-cat-archive .collections-card__price.product-price .price:has(del),
.hanagasumi-product-cat-archive .collections-card__price.product-price .price:has(.hanagasumi-price-sale-wrap) {
  font-size: 16px;
  line-height: 18px;
}

.hanagasumi-product-cat-archive .collections-card__price.product-price .price:has(del) {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.hanagasumi-product-cat-archive .collections-card__price.product-price .price:has(del) ins {
  font-weight: 700;
}

.hanagasumi-product-cat-archive .collections-card__price.product-price .price:has(del) del {
  font-weight: 400;
}

@media (max-width: 1024px) {
  .collections-page-template .collections-products {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .collections-page-template .collections-products .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
    column-gap: 12px;
  }
}

@media (max-width: 480px) {
  .hanagasumi-product-cat-archive .collections-card__price.product-price {
    font-size: 14px;
    line-height: 20px;
  }

  .collections-page-template .collections-products .collections-grid {
    column-gap: 8px;
    row-gap: 22px;
  }
}

@media (max-width: 900px) {
  .collections-section-head {
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .collections-inner {
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  }

  .collections-products {
    padding: 0 max(16px, env(safe-area-inset-left)) 48px max(16px, env(safe-area-inset-right));
  }

  .collections-page-template .collections-products {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: 48px;
  }

  .collections-page {
    padding: 70px 16px 40px;
  }

  .collections-card__media {
    aspect-ratio: 1 / 1;
  }

  .collections-card__price.product-price {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: #555;
  }

  .collections-card__price.product-price .price:has(del) ins,
  .collections-card__price.product-price .price ins {
    font-weight: 700;
  }

  .collections-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .collections-pills {
    width: 100%;
  }

  .collections-page-template .collections-products .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
    column-gap: 10px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .product-card .price-row {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .collections-card__price.product-price {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 360px) {
  .collections-page-template .collections-products .collections-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
