/*
Theme Name: MO Shop
Theme URI: https://mo-studio.org
Author: MO Studio
Author URI: https://mo-studio.org
Description: 微電商手繪感主題 — 手機優先、WooCommerce 整合、LINE OA 入口。品牌色票由 theme.json 控制。
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://mo-studio.org
Text Domain: mo-shop
*/

:root {
  --mo-brand: #C8552D;
  --mo-brand-light: #f4e8e3;
  --mo-text: #2d2d2d;
  --mo-bg: #faf8f5;
  --mo-border: #e8e4df;
  --mo-radius: 12px;
  --mo-font: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--mo-font);
  color: var(--mo-text);
  background: var(--mo-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mo-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.mo-container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.mo-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mo-border);
  padding: 12px 0;
}
.mo-header__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.mo-header__brand { font-size: 1.25rem; font-weight: 700; color: var(--mo-text); }
.mo-header__nav { display: flex; gap: 16px; font-size: 0.9rem; }
.mo-header__nav a { color: var(--mo-text); }

.mo-hero {
  text-align: center; padding: 48px 16px 32px;
}
.mo-hero h1 { font-size: 1.75rem; margin-bottom: 8px; }
.mo-hero p { color: #666; font-size: 1rem; }

.mo-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; padding: 24px 0;
}

.mo-product-card {
  background: #fff;
  border: 1px solid var(--mo-border);
  border-radius: var(--mo-radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.mo-product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.mo-product-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.mo-product-card__body { padding: 12px 16px; }
.mo-product-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.mo-product-card__price { color: var(--mo-brand); font-weight: 700; font-size: 1.1rem; }
.mo-product-card__price del { color: #999; font-weight: 400; font-size: 0.9rem; }
.mo-product-card__price ins { text-decoration: none; }

.mo-btn {
  display: inline-block; padding: 10px 24px;
  background: var(--mo-brand); color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
  text-align: center;
}
.mo-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.mo-btn--outline {
  background: transparent; color: var(--mo-brand);
  border: 2px solid var(--mo-brand);
}

.mo-line-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--mo-border);
  padding: 10px 16px; z-index: 100;
  display: flex; gap: 10px;
}
.mo-line-cta a {
  flex: 1; text-align: center;
}
.mo-line-cta .mo-btn { width: 100%; }

.mo-footer {
  text-align: center; padding: 32px 16px 80px;
  color: #999; font-size: 0.85rem;
}
.mo-footer a { color: #999; }

.mo-trust {
  display: flex; justify-content: center; gap: 24px;
  padding: 24px 0; flex-wrap: wrap;
}
.mo-trust__item {
  text-align: center; font-size: 0.85rem; color: #666;
}
.mo-trust__icon { font-size: 1.5rem; margin-bottom: 4px; }

.woocommerce ul.products { list-style: none; padding: 0; }
.woocommerce ul.products li.product { margin: 0 !important; }
.woocommerce ul.products li.product a img { border-radius: var(--mo-radius) var(--mo-radius) 0 0; }
.woocommerce ul.products li.product .price { color: var(--mo-brand) !important; }
.woocommerce ul.products li.product .button { background: var(--mo-brand) !important; color: #fff !important; border: none !important; border-radius: 8px !important; }

.woocommerce .woocommerce-message { border-top-color: var(--mo-brand); }
.woocommerce .woocommerce-info { border-top-color: var(--mo-brand); }

@media (max-width: 600px) {
  .mo-hero h1 { font-size: 1.4rem; }
  .mo-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mo-product-card__body { padding: 8px 12px; }
  .mo-product-card__title { font-size: 0.9rem; }
  .mo-header__nav { gap: 10px; font-size: 0.8rem; }
}
