/* -----------------------------------
   Original Salon Cart Style Sheet
   Design: Walea Garden × ICONIC theme
   Brand Color: #50C8C6
----------------------------------- */

/* -----------------------------------
   商品一覧ページ全体
----------------------------------- */
.osc-shop-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 60px auto;
  width: 90%;
  max-width: 1200px;
}

/* -----------------------------------
   サイドバー（ジャンルリスト）
----------------------------------- */
.osc-sidebar {
  width: 250px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
}
.osc-sidebar h3 {
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 2px solid #50C8C6;
  display: inline-block;
  padding-bottom: 5px;
  color: #50C8C6;
}
.osc-sidebar li { border-bottom: 1px solid #eee; padding: 8px 0; }
.osc-sidebar li a { color: #333; text-decoration: none; transition: 0.3s; }
.osc-sidebar li a:hover { color: #50C8C6; }

/* -----------------------------------
   商品カード（詳細ボタン下寄せ対応）
----------------------------------- */
.osc-products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 20px;
}

.osc-product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  text-align: left;
  padding: 10px 15px 20px;
  transition: all .3s;
  display: flex;                 /* ✅ 下寄せ配置のためflex化 */
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.osc-product-card img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 10px;
}

.osc-product-card h4 {
  font-size: 1em;
  color: #111;
  font-weight: 600;
  margin: 4px 0 6px;
  line-height: 1.4;
  flex-grow: 1;
}

.osc-product-card .price {
  font-size: 0.95em;
  color: #333;
  margin-bottom: 12px;
}

/* ✅ 詳細ボタンを下端に固定 */
.osc-product-card .osc-btn {
  display: block;
  background-color: #50C8C6;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  text-align: center;
  transition: 0.3s;
  margin-top: auto; /* ✅ 一番下へ押し下げ */
}
.osc-product-card .osc-btn:hover { background-color: #3ab1af; }

/* -----------------------------------
   カート一覧
----------------------------------- */
.osc-cart {
  background: #50C8C6;
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  margin: 60px auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.osc-cart h2 {
  color: #fff;
  font-size: 1.3em;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.osc-cart h2::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f07a"; /* fa-cart-shopping */
  font-size: 1.2em;
}

.osc-cart li {
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: 10px 0;
}

.osc-cart .osc-remove {
  background: #fff;
  color: #50C8C6;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.osc-cart .osc-remove::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f1f8"; /* fa-trash */
  margin-right: 6px;
}
.osc-cart .osc-remove:hover { background: #f1f1f1; }

.osc-total {
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 10px;
}

/* -----------------------------------
   注文フォーム
----------------------------------- */
.osc-form {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  margin: 40px auto 80px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.osc-form h2 { color: #50C8C6; font-size: 1.4em; margin-bottom: 20px; }
.osc-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  margin-bottom: 15px;
}
.osc-submit {
  background: #50C8C6;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  transition: 0.3s;
}
.osc-submit:hover { background: #3ab1af; }

/* -----------------------------------
   完了メッセージ
----------------------------------- */
.osc-thanks {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #50C8C6;
  color: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: fadeInUp 1s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 50px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* -----------------------------------
   商品詳細ページ
----------------------------------- */
.osc-single-wrap {
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  max-width:1000px;
  margin:80px auto;
  background:#fff;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  padding:30px;
}
.osc-single-images { flex:1; min-width:300px; }
.osc-single-images img {
  width:100%;
  border-radius:10px;
  margin-bottom:10px;
}
.osc-single-content { flex:1; min-width:300px; }
.osc-single-content h1 { font-size:1.8em; margin-bottom:10px; }
.osc-single-content .price {
  font-size:1.3em;
  color:#111;
  font-weight:bold;
  margin:15px 0;
}
.osc-single-content .osc-btn {
  background:#50C8C6;
  color:#fff;
  padding:10px 25px;
  border:none;
  border-radius:6px;
  font-weight:bold;
  cursor:pointer;
  display:block;
  width:100%;
  max-width:250px;
  text-align:center;
  margin:15px 0;
}
.osc-single-content .osc-btn:hover { background:#3ab1af; }
.osc-single-content .backlink a { color:#50C8C6; text-decoration:none; }
.osc-single-content .backlink a:hover { text-decoration: underline; }

/* -----------------------------------
   カートを見るボタン
----------------------------------- */
.osc-cart-link {
  display: inline-block;
  background-color: #50C8C6;
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1em;
  padding: 14px 60px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}
.osc-cart-link:hover { background-color: #3ab1af; }

/* -----------------------------------
   レスポンシブ
----------------------------------- */
@media (max-width: 768px) {
  .osc-shop-wrap { flex-direction: column; }
  .osc-sidebar { width: 100%; margin-bottom: 20px; }
  .osc-products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .osc-cart, .osc-form { width: 95%; }
}
@media (max-width: 500px) {
  .osc-products-grid { grid-template-columns: 1fr; }
}
