/*
Theme Name: Moto7989 Child
Template: moto7989
Description: 柒玖捌玖二手機車 — 一致版尾 + 品牌配色優化
*/

.moto-footer {
  background: linear-gradient(180deg,#111827 0%,#0f172a 70%,#0b1226 100%);
  color: #f1f5f9;
  padding: 60px 0 30px;
}
.moto-footer__grid {
  width: min(1150px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 0 20px;
}
.moto-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.moto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
.moto-card__title {
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}
.moto-btn {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.moto-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
}
.moto-footer__legal {
  margin-top: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}
/* === MOTO7989 主體寬度對齊 Header + 保留橘色背景 === */

/* 保留橘色背景 */
body {
  background: #ff875e; /* 你的網站主色橘 */
}

/* 主體內容寬度統一 */
main, 
.site-main,
.wp-site-blocks,
.entry-content,
.moto-products,
.moto-products__list,
.moto-single-product {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  background: #fff; /* 內容區塊白底 */
  border-radius: 12px; /* 柔邊感更有層次 */
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* 商品列表對齊調整 */
.woocommerce ul.products {
  justify-content: center !important;
  gap: 1.2rem !important;
}
/* === MOTO7989：全站主區對齊 + 保留橘色風格 === */

/* 橘底全幅背景 */
body {
  background-color: #ff875e;
}

/* 限制主要內容區寬度（與 header 對齊） */
.moto-main,
.site-main,
.wp-site-blocks > main,
.entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* hero（封面橘區）全寬展示，不受主體限制 */
.wp-block-cover {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-radius: 0;
}

/* 商品區塊卡片一致化 */
.wc-block-product-template {
  justify-content: center;
  gap: 1.2rem;
}

/* 讓商品卡片的圖比例統一且更漂亮 */
.wc-block-components-product-image img {
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wc-block-components-product-image img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* 全站內容白底卡片效果 */
main.moto-main {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-top: 20px;
  margin-bottom: 40px;
  overflow: hidden;
}

/* 手機調整 */
@media(max-width: 768px){
  main.moto-main {
    margin-top: 10px;
    border-radius: 0;
    box-shadow: none;
  }
}
