/*
Theme: Zay Shop (TemplateMo 559) 移植主题 · 橙色调
配色继承 relx 橙色体系：#ff6900 主色
*/

:root {
  --zay-brand: #ff6900;
  --zay-brand-dark: #e85a00;
  --zay-brand-light: #ff8a3d;
  --zay-brand-soft: #fff2e8;
  --zay-dark: #212934;
  --zay-dark-2: #1d242d;
  --zay-light: #f7f9fc;
  --zay-muted: #8a919c;
  --zay-text: #212529;
  --zay-star: #f5a623;
}

/* ===== 基础 ===== */
body, ul, li, p, a, label, input, div {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--zay-text);
}
.h1, h1 { font-size: 40px; font-weight: 600; }
.h2, h2 { font-size: 28px; font-weight: 600; }
.h3, h3 { font-size: 20px; font-weight: 500; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* 工具类 */
.text-warning { color: var(--zay-star) !important; }
.text-muted { color: var(--zay-muted) !important; }
.text-success, .text-brand { color: var(--zay-brand) !important; }
.text-light { color: #cfd6e1 !important; }
.bg-dark { background-color: var(--zay-dark) !important; }
.bg-light { background-color: var(--zay-light) !important; }
.bg-black { background-color: var(--zay-dark-2) !important; }
.bg-brand { background-color: var(--zay-brand) !important; }
.btn-brand, .btn-success {
  background-color: var(--zay-brand) !important;
  border-color: var(--zay-brand) !important;
  color: #fff !important;
  border-radius: 4px;
  padding: .5rem 1.2rem;
  font-weight: 500;
  transition: .3s;
}
.btn-brand:hover, .btn-success:hover {
  background-color: var(--zay-brand-dark) !important;
  border-color: var(--zay-brand-dark) !important;
  color: #fff !important;
}

/* ===== 顶部信息条 ===== */
#templatemo_nav_top { min-height: 40px; background: var(--zay-dark); }
#templatemo_nav_top * { font-size: .9em !important; }
#templatemo_nav_top a { color: #cfd6e1 !important; }
#templatemo_nav_top a:hover { color: #fff; }
.zay-topbar { background: var(--zay-dark); color: #cfd6e1; font-size: 14px; }
.zay-topbar a { color: #cfd6e1; }
.zay-topbar a:hover { color: var(--zay-brand-light); }

/* ===== 主导航 ===== */
#templatemo_main_nav a { color: var(--zay-dark); }
#templatemo_main_nav a:hover { color: var(--zay-brand); }
#templatemo_main_nav .navbar .nav-icon { margin-right: 20px; }
.zay-nav .navbar-brand { color: var(--zay-brand) !important; font-weight: 700; }
.zay-nav .navbar-brand small { font-size: 12px; color: var(--zay-muted); display: block; line-height: 1.1; }
.zay-nav .nav-link { font-weight: 500; padding: .5rem 1rem !important; }
.zay-nav .nav-link.active { color: var(--zay-brand) !important; }
.zay-nav .nav-link:hover { color: var(--zay-brand) !important; }
.zay-nav .nav-icon { color: var(--zay-dark); font-size: 1.1rem; }
.zay-nav .badge { background: var(--zay-brand); color: #fff; font-size: 11px; }

/* ===== 首屏轮播 ===== */
#template-mo-zay-hero-carousel { background: #efefef !important; }
#template-mo-zay-hero-carousel .carousel-item { min-height: 420px; display: flex; align-items: center; }
#template-mo-zay-hero-carousel .carousel-item .container { width: 100%; }
#template-mo-zay-hero-carousel .carousel-indicators li {
  background-color: var(--zay-brand);
  width: 12px; height: 12px; border-radius: 50%;
}
#template-mo-zay-hero-carousel .carousel-indicators li.active { background-color: var(--zay-brand-dark); }
#template-mo-zay-hero-carousel .carousel-control-next i,
#template-mo-zay-hero-carousel .carousel-control-prev i {
  color: var(--zay-brand) !important;
  font-size: 2.4em !important;
}
.zay-hero { background: linear-gradient(135deg, #fff7f0 0%, #ffe9db 100%); }
.zay-hero .hero-title { font-size: 42px; font-weight: 800; color: var(--zay-brand); }
.zay-hero .hero-sub { font-size: 22px; font-weight: 600; color: var(--zay-text); }
.zay-hero .hero-desc { color: #666; max-width: 520px; line-height: 1.7; }
.zay-hero .hero-img-wrap { text-align: center; }
.zay-hero .hero-img-wrap img { max-height: 360px; object-fit: contain; }

/* ===== 区块标题 ===== */
.zay-section-title { text-align: center; margin: 0 auto 1.5rem; max-width: 640px; }
.zay-section-title .h1 { color: var(--zay-text); font-size: 30px; font-weight: 700; position: relative; display: inline-block; }
.zay-section-title .h1::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -10px; width: 56px; height: 4px; border-radius: 2px; background: var(--zay-brand);
}
.zay-section-title p { color: var(--zay-muted); margin-top: 1.2rem; }

/* ===== 圆形分类 ===== */
.zay-cat-circle { display: block; }
.zay-cat-circle img {
  width: 100%; border-radius: 50%; border: 6px solid #fff;
  box-shadow: 0 8px 24px rgba(33,41,52,.12);
  aspect-ratio: 1/1; object-fit: cover;
  transition: .4s;
}
.zay-cat-circle:hover img { transform: scale(1.04); border-color: var(--zay-brand); }
.zay-cat-name { font-size: 18px; font-weight: 600; margin-top: 1rem; }

/* ===== 商品卡片（product-wap） ===== */
.product-wap { box-shadow: 0 5px 18px 0 rgba(0,0,0,.08); border-radius: 10px; overflow: hidden; transition: .35s; background: #fff; border: none; }
.product-wap:hover { box-shadow: 0 12px 30px rgba(255,105,0,.18); transform: translateY(-4px); }
.product-wap .card-body { padding: 1.1rem; }
.product-wap .card-img-top-wrap { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f4f5f7; }
.product-wap .card-img-top-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.product-wap:hover .card-img-top-wrap img { transform: scale(1.06); }
.product-wap .product-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; visibility: hidden; transition: .3s;
}
.product-wap:hover .product-overlay { opacity: 1; visibility: visible; }
.product-overlay a {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--zay-dark);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: .3s;
}
.product-overlay a:hover { background: var(--zay-brand); color: #fff; }
.product-wap .product-price { color: var(--zay-brand); font-size: 18px; font-weight: 700; }
.product-wap .product-old { color: var(--zay-muted); text-decoration: line-through; font-size: 14px; margin-left: 6px; }
.product-wap .product-name { font-size: 16px; font-weight: 600; line-height: 1.5; }
.product-wap .product-desc { color: var(--zay-muted); font-size: 14px; line-height: 1.6; }
.product-wap .star-row i { font-size: 13px; }
.product-wap .star-row .text-warning { color: var(--zay-star) !important; }

/* 无图占位（Zay 版） */
.zay-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; width: 100%;
  background: linear-gradient(135deg, #fff6ee 0%, #ffe9d8 100%);
  color: var(--zay-brand);
}
.zay-ph svg { width: 44px; height: 44px; opacity: .8; }
.zay-ph .ph-text { font-size: 15px; font-weight: 600; margin-top: 8px; color: var(--zay-brand-dark); }
.zay-ph .ph-hint { font-size: 12px; color: #c98a5c; margin-top: 4px; }

/* ===== 分页 ===== */
.pagination .page-link { color: var(--zay-dark); border-color: #e5e7eb; }
.pagination .page-link:hover { color: #fff; background: var(--zay-brand); border-color: var(--zay-brand); }
.pagination .page-link.active, .pagination .page-item.active .page-link {
  background: var(--zay-brand); border-color: var(--zay-brand); color: #fff;
}

/* ===== 面包屑 ===== */
.zay-breadcrumb { background: var(--zay-light); padding: 1rem 0; font-size: 14px; }
.zay-breadcrumb a { color: var(--zay-brand); }
.zay-breadcrumb .sep { color: #bbb; margin: 0 8px; }

/* ===== 详情页 ===== */
.zay-detail .detail-title { font-size: 26px; font-weight: 700; }
.zay-detail .detail-price { color: var(--zay-brand); font-size: 30px; font-weight: 800; }
.zay-detail .detail-old { color: var(--zay-muted); text-decoration: line-through; font-size: 18px; }
.zay-detail .detail-desc { color: #555; line-height: 1.8; }
.zay-detail .gallery-main { border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; }
.zay-detail .gallery-main img { width: 100%; object-fit: cover; }
.zay-detail .gallery-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; margin-right: 8px; }
.zay-detail .gallery-thumbs img.active, .zay-detail .gallery-thumbs img:hover { border-color: var(--zay-brand); }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 15px; }
.spec-table th { background: var(--zay-light); padding: 10px 14px; text-align: left; width: 34%; border: 1px solid #eef0f3; font-weight: 600; }
.spec-table td { padding: 10px 14px; border: 1px solid #eef0f3; }
.zay-contact-box { background: var(--zay-light); border: 1px solid #ffe3d1; border-left: 4px solid var(--zay-brand); border-radius: 10px; padding: 1.1rem 1.3rem; }
.zay-contact-box p { margin-bottom: 6px; }
.zay-contact-box .contact-btn { display: inline-block; margin-top: 6px; background: var(--zay-brand); color: #fff; padding: 10px 28px; border-radius: 6px; font-weight: 600; }
.zay-contact-box .contact-btn:hover { background: var(--zay-brand-dark); color: #fff; }

/* ===== Tabs（详情页） ===== */
.zay-tabs .nav-tabs { border-bottom: 2px solid #eee; }
.zay-tabs .nav-link { border: none; color: var(--zay-muted); font-weight: 600; padding: .8rem 1.2rem; position: relative; }
.zay-tabs .nav-link.active { color: var(--zay-brand); }
.zay-tabs .nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--zay-brand); border-radius: 3px 3px 0 0; }

/* ===== 页脚 ===== */
#tempaltemo_footer { background: var(--zay-dark); color: #cfd6e1; }
#tempaltemo_footer .footer-title { color: #fff; font-weight: 700; font-size: 20px; border-bottom: 1px solid #3a4452; padding-bottom: 12px; }
#tempaltemo_footer a { color: #dcdde1; }
#tempaltemo_footer a:hover { color: var(--zay-brand-light); }
#tempaltemo_footer ul.footer-link-list li { padding-top: 10px; }
#tempaltemo_footer ul.footer-link-list li i { width: 22px; color: var(--zay-brand-light); }
#tempaltemo_footer .footer-icons li {
  width: 2.6em; height: 2.6em; line-height: 2.6em;
  border: 1px solid #3a4452 !important; border-radius: 50% !important;
  text-align: center; transition: .4s;
}
#tempaltemo_footer .footer-icons li:hover { background: var(--zay-brand); border-color: var(--zay-brand) !important; }
#tempaltemo_footer .footer-icons li:hover i { color: #fff; }
#tempaltemo_footer .border-light { border-color: #3a4452 !important; }

/* ===== 公告条/页面头等原组件（zay 适配） ===== */
.top-strip { background: var(--zay-brand); color: #fff; text-align: center; padding: 10px 16px; font-size: 15px; font-weight: 500; }
.page-head { background: var(--zay-light); padding: 2.2rem 0; text-align: center; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head-sub { color: var(--zay-muted); }
.page-head-meta { color: var(--zay-brand); font-weight: 600; margin-top: 4px; }

/* 侧栏分类 */
.zay-sidebar .sidebar-title { font-weight: 700; font-size: 20px; margin-bottom: 1rem; }
.zay-sidebar .list-unstyled li { margin-bottom: 4px; }
.zay-sidebar a { color: var(--zay-dark); display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.zay-sidebar a:hover, .zay-sidebar a.active { background: var(--zay-brand-soft); color: var(--zay-brand); font-weight: 600; }

/* 通用网格/列表（列表页排序等） */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; }
.tool-count { color: var(--zay-muted); }
.toolbar select, .toolbar button { border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px 10px; background: #fff; }
.toolbar .tool-view button.active { background: var(--zay-brand); color: #fff; border-color: var(--zay-brand); }
.list-view .card-wrap { width: 100% !important; }
.list-view .product-wap { display: flex; }
.list-view .product-wap .card-img-top-wrap { width: 220px; flex-shrink: 0; }

.more-btn { display: inline-block; background: var(--zay-brand); color: #fff; padding: 10px 30px; border-radius: 30px; font-weight: 600; }
.more-btn:hover { background: var(--zay-brand-dark); color: #fff; }
.more-wrap { text-align: center; margin: 1.5rem 0 2rem; }

/* FAQ / 好评 */
.faq-item { border: 1px solid #eef0f3; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 12px; }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item .faq-body { color: #555; margin-top: 10px; line-height: 1.8; }
.testi-card { background: #fff; border-radius: 12px; padding: 1.3rem; box-shadow: 0 6px 18px rgba(33,41,52,.06); }
.testi-stars { color: var(--zay-star); }
.testi-author { color: var(--zay-muted); }

/* 回到顶部 */
.back-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--zay-brand); color: #fff; font-size: 18px; z-index: 999; box-shadow: 0 6px 16px rgba(255,105,0,.35); }
.back-top:hover { background: var(--zay-brand-dark); }

/* ===== 响应式 ===== */
@media (min-width: 992px) {
  #templatemo_main_nav .navbar-nav { max-width: 560px; }
  #template-mo-zay-hero-carousel .carousel-item { min-height: 30rem; }
}
@media (max-width: 767px) {
  .zay-hero .hero-title { font-size: 30px; }
  .zay-hero .hero-img-wrap img { max-height: 240px; }
}
