
/* ナビゲーション */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #3a7db8;
}

.nav-icons {
  display: flex;
  align-items: center;
}

.nav-icons a {
  margin-left: 20px;
  color: #555;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-icons a:hover {
  color: #3a7db8;
}

.cart-count {
  background-color: #e84c3d;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* パンくずリスト */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #3a7db8;
  text-decoration: none;
}

.breadcrumb span {
  color: #777;
}

/* ページタイトル */
.page-title {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.page-title h1 {
  font-size: 1.8rem;
  color: #333;
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}

.page-title h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #3a7db8;
}

.page-description {
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  font-size: 1.1rem;
}

/* メインコンテンツ */
.product-listing {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding: 30px 0;
}

/* フィルターサイドバー */
.filter-sidebar {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.filter-header h2 {
  font-size: 1.2rem;
  color: #333;
}

.clear-filters {
  color: #3a7db8;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-title {
  font-weight: bold;
  margin-bottom: 12px;
  display: block;
  color: #333;
}

.filter-options {
  list-style: none;
}

.filter-options li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.filter-options input[type="checkbox"] {
  margin-right: 10px;
}

.filter-options label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.filter-count {
  color: #777;
  font-size: 0.9rem;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #eee;
  position: relative;
}

.color-option.active {
  border-color: #3a7db8;
}

.color-option.active::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
}

.price-range {
  width: 100%;
  margin: 15px 0;
}

.price-values {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.9rem;
}

.filter-btn {
  background-color: #3a7db8;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background-color: #2c6092;
}

/* 商品リスト */
.product-list-section {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.results-count {
  color: #555;
  font-size: 1rem;
}

.sort-options {
  display: flex;
  align-items: center;
}

.sort-label {
  margin-right: 10px;
  color: #555;
}

.sort-select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f8f8f8;
}

.view-options {
  display: flex;
  margin-left: 15px;
}

.view-option {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
  cursor: pointer;
  transition: all 0.3s;
}

.view-option:first-child {
  border-radius: 5px 0 0 5px;
}

.view-option:last-child {
  border-radius: 0 5px 5px 0;
}

.view-option.active {
  background-color: #3a7db8;
  color: white;
  border-color: #3a7db8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 5px;
  padding: 3px 5px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 10;
}

.badge-new {
  background-color: #3a7db8;
  color: white;
}

.badge-sale {
  background-color: #e84c3d;
  color: white;
}

.badge-popular {
  background-color: #ffc107;
  color: #333;
}

.product-img {
  height: 200px;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
}

.quick-actions {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  /* padding: 10px; */
  background-color: rgba(255, 255, 255, 0.9);
  transition: bottom 0.3s;
}

.product-card:hover .quick-actions {
  bottom: 0;
}

.quick-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3a7db8;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.quick-btn:hover {
  background-color: #2c6092;
}

.product-info {
  padding: 10px;
  text-align: center;
}

.product-info h3 {
  /* margin-bottom: 10px; */
  color: #333;
  font-size: 0.9rem;
  max-height: 70px;
  overflow: hidden;
}

.product-info .price {
  font-size: 0.8rem;
  color: #3a7db8;
  font-weight: bold;
  /* margin-bottom: 10px; */
}

.original-price {
  text-decoration: line-through;
  color: #777;
  font-size: 0.7rem;
  margin-left: 5px;
}

.rating {
  color: #ffc107;
  margin-bottom: 5px;
  font-size: 0.5rem;
}

.add-to-cart-btn {
  display: inline-block;
  background-color: #3a7db8;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  width: 100%;
}

.add-to-cart-btn:hover {
  background-color: #2c6092;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  color: #555;
  text-decoration: none;
  margin: 0 5px;
  border-radius: 5px;
  transition: all 0.3s;
}

.pagination a.active {
  background-color: #3a7db8;
  color: white;
  border-color: #3a7db8;
}

.pagination a:hover:not(.active) {
  background-color: #f0f0f0;
}

/* 特集バナー */
.featured-banner {
  background: linear-gradient(to right, #3a7db8, #5fa3e0);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-content {
  max-width: 60%;
}

.banner-content h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.banner-btn {
  background-color: white;
  color: #3a7db8;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.banner-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}


/* レスポンシブデザイン */
@media (max-width: 992px) {
  .product-listing {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s;
  }

  .filter-sidebar.active {
    left: 0;
  }

  .filter-toggle {
    display: block;
    /* margin-bottom: 20px; */
    background-color: #3a7db8;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
  }

  .close-filter {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
  }

  nav ul {
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px 10px;
  }

  .nav-icons {
    margin-top: 20px;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-options {
    margin-top: 15px;
    width: 100%;
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .featured-banner {
    flex-direction: column;
    text-align: center;
  }

  .banner-content {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

.filter-toggle {
  display: none;
}

.close-filter {
  display: none;
}

@media (max-width: 576px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .nav-icons {
    margin-top: 15px;
  }

  .filter-toggle {
    display: block;
  }

  .close-filter {
    display: block;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #777;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-img {
    height: 150px;
  }
   .page-title{
    margin-top: 0px;
  }

  .page-title h1 {
    font-size: 1.4rem;
  }
}
