


/**
 * Welcart Enhanced Product List Styles
 */


 /**
 * Welcart製品リスト - Pure CSSバージョン
 * 
 * Bootstrapを使用せず、純粋なCSSだけで実装したスタイル
 */

/* ベーススタイルとグリッドレイアウト */
.item-list {
  width: 100%;
  margin: 0;
  padding: 0;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* レスポンシブグリッド */
@media (min-width: 576px) {
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .item-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .item-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 商品アイテム */
.product-item {
  margin-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.product-link {
  display: block;
  text-decoration: none;
  color: #333;
  height: 100%;
}

/* カードスタイリング */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  transition: box-shadow 0.3s ease;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 画像コンテナ */
.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1のアスペクト比 */
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* 商品詳細 */
.product-details {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 14px;
  font-weight: normal;
  margin: 0 0 8px 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 価格スタイル */
.product-price-area {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
  margin-bottom: 3px;
}

.price-actual {
  color: #e53935;
  font-weight: 600;
  font-size: 14px;
}

.tax-notation {
  color: #757575;
  font-size: 11px;
  margin-top: 2px;
}

/* 在庫ステータス */
.stock-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.in-stock {
  background-color: #4CAF50;
  color: white;
}

.out-of-stock {
  background-color: #F44336;
  color: white;
}

/* キャンペーンメッセージ */
.campaign-text {
  margin-top: 8px;
  font-size: 12px;
  color: #FF9800;
  font-weight: 500;
}

/* 画像の角丸オプション */
.radius-none img {
  border-radius: 0;
}

.radius-small img {
  border-radius: 4px;
}

.radius-medium img {
  border-radius: 8px;
}

.radius-large img {
  border-radius: 16px;
}

/* 共通グリッドレイアウト */
.item-list .grid {
  display: grid;
  gap: 20px;
  margin: 0;
}

.item-list-default .grid {
  gap: 15px;
}

.grid-columns-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-columns-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-columns-4 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-columns-5 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-columns-6 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 576px) {
  .grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-columns-3, 
  .grid-columns-4, 
  .grid-columns-5, 
  .grid-columns-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-columns-4, 
  .grid-columns-5, 
  .grid-columns-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .grid-columns-5, 
  .grid-columns-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-columns-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .grid-columns-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* デフォルトスタイル */
.item-list-default .g-col-6 {
  margin-bottom: 15px;
}

.item-list-default .card {
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.item-list-default .card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-list-default .card-imag-top {
  position: relative;
  overflow: hidden;
}

.item-list-default .card-image {
  padding-bottom: 100%;
  position: relative;
}

.item-list-default .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-list-default .card:hover .card-image img {
  transform: scale(1.05);
}

.item-list-default .card-body {
  padding: 15px;
}

.item-list-default .card-title {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.item-list-default .card-text {
  font-size: 13px;
}

.item-list-default .field_cprice {
  text-decoration: line-through;
  color: #999;
  display: block;
  font-size: 0.9em;
  margin-bottom: 3px;
}

/* モダンスタイル */
.modern-product-item {
  transition: transform 0.3s ease;
}

.modern-product-item:hover {
  transform: translateY(-5px);
}

.modern-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 100%; /* 1:1 アスペクト比 */
}

.product-image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-product-item:hover .product-image-link img {
  transform: scale(1.05);
}

.stock-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.in-stock {
  background-color: #4CAF50;
  color: white;
}

.out-of-stock {
  background-color: #F44336;
  color: white;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FF5722;
  color: white;
  font-weight: 600;
  border-radius: 50%;
  z-index: 2;
}

.quick-action-buttons {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.modern-product-item:hover .quick-action-buttons {
  opacity: 1;
  transform: translateY(0);
}

.quick-view-btn {
  background-color: white;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
  font-size: 12px;
}

.quick-view-btn:hover {
  background-color: #f0f0f0;
}

.product-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-title a {
  color: #333;
  text-decoration: none;
}

.product-meta {
  margin-bottom: 10px;
  font-size: 12px;
}

.product-price-container {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-weight: 600;
}

.regular-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.85em;
  margin-right: 8px;
}

.sale-price {
  color: #E53935;
  font-size: 1.1em;
}

.tax-info {
  color: #757575;
  font-size: 0.75em;
  margin-left: 5px;
}

.campaign-message {
  margin-top: 10px;
  font-size: 12px;
  color: #FF9800;
  font-weight: 500;
}

/* ミニマルスタイル */
.minimal-product-item {
  position: relative;
  margin-bottom: 10px;
}

.minimal-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.minimal-image-wrapper {
  overflow: hidden;
  position: relative;
  padding-bottom: 120%; /* 高めのアスペクト比 */
}

.minimal-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.minimal-product-item:hover .minimal-image-wrapper img {
  transform: scale(1.05);
}

.minimal-details {
  padding: 12px 5px;
  text-align: center;
}

.minimal-title {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #333;
}

.minimal-price {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.minimal-status {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 1px;
}

.minimal-status.sold-out {
  color: #D32F2F;
}

/* マガジンスタイル */
.magazine-product-item {
  margin-bottom: 25px;
}

.magazine-product-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
  .magazine-product-card {
    flex-direction: row;
    height: 200px;
  }
}

.magazine-image-section {
  position: relative;
  overflow: hidden;
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .magazine-image-section {
    flex: 0 0 40%;
  }
}

.magazine-image-link {
  display: block;
  height: 100%;
}

.magazine-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.magazine-product-item:hover .magazine-image-link img {
  transform: scale(1.1);
}

.magazine-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.magazine-overlay span {
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
}

.magazine-content-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.magazine-header {
  margin-bottom: 15px;
}

.magazine-categories {
  margin-bottom: 8px;
  font-size: 12px;
  color: #757575;
}

.magazine-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

.magazine-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.magazine-title a:hover {
  color: #1976D2;
}

.magazine-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.magazine-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.magazine-price {
  display: flex;
  align-items: baseline;
}

.magazine-old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  margin-right: 8px;
}

.magazine-current-price {
  color: #E53935;
  font-weight: 600;
}

.magazine-more-link {
  display: inline-block;
  padding: 5px 15px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
  transition: background-color 0.3s;
}

.magazine-more-link:hover {
  background-color: #e0e0e0;
}

/* ショーケーススタイル */
.showcase-product-item {
  margin-bottom: 30px;
}

.showcase-product-card {
  position: relative;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 6px;
  overflow: hidden;
}

.showcase-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.showcase-image-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 100%;
}

.showcase-image-container a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.showcase-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.showcase-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-product-item:hover .showcase-hover-overlay {
  opacity: 1;
}

.showcase-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.showcase-details-btn,
.showcase-cart-btn {
  background-color: white;
  color: #333;
  border: none;
  padding: 10px 15px;
  min-width: 140px;
  text-align: center;
  border-radius: 3px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.showcase-cart-btn {
  background-color: #4CAF50;
  color: white;
}

.showcase-details-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.showcase-cart-btn:hover {
  background-color: #43A047;
  transform: translateY(-2px);
}

.showcase-info {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.showcase-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.showcase-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.showcase-title a:hover {
  color: #1976D2;
}

.showcase-price-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 12px;
}

.showcase-original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
  margin-right: 8px;
}

.showcase-current-price {
  color: #E53935;
  font-weight: 600;
  font-size: 16px;
}

.showcase-tax {
  color: #757575;
  font-size: 11px;
  margin-left: 5px;
}

.showcase-status {
  font-size: 12px;
  font-weight: 500;
  margin-top: 5px;
}

.showcase-status .in-stock {
  color: #4CAF50;
  background-color: transparent;
  padding: 0;
}

.showcase-status .out-of-stock {
  color: #F44336;
  background-color: transparent;
  padding: 0;
}