/*
Theme Name:   NEWBULIG
Theme URI:    https://www.newbulig.net/
Description:  Storefront child theme for the NEWBULIG brand store. Clean, light, conversion-focused.
Author:       NEWBULIG
Template:     storefront
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  newbulig
*/

:root {
  --nb-ink:      #0f172a;
  --nb-body:     #46536b;
  --nb-primary:  #14508c;
  --nb-primary-d:#0d3a66;
  --nb-accent:   #e07b39;
  --nb-soft:     #f5f7fa;
  --nb-line:     #e3e8ef;
  --nb-ok:       #17805a;
}

/* ---------- 基础排版 ---------- */
body,
.storefront-handheld-footer-bar {
  background-color: #fff;
}
body {
  color: var(--nb-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .site-title a {
  color: var(--nb-ink);
  letter-spacing: -0.01em;
}
a { color: var(--nb-primary); }
a:hover { color: var(--nb-primary-d); }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--nb-line);
  padding-top: 1.1em;
  padding-bottom: 1.1em;
}
.site-branding .site-title a {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.5rem;
}
.site-description { color: #7b879b; font-size: .82rem; }
.main-navigation ul.menu > li > a {
  color: var(--nb-ink);
  font-weight: 600;
  font-size: .95rem;
  padding: .6em .9em;
}
.main-navigation ul.menu > li > a:hover { color: var(--nb-primary); }
.main-navigation ul.menu > li.current-menu-item > a { color: var(--nb-primary); }
.site-header-cart .cart-contents { color: var(--nb-ink); }

/* ---------- 首页 Hero ---------- */
.nb-hero {
  background: linear-gradient(135deg, #0d3a66 0%, #14508c 55%, #1d6bb8 100%);
  color: #fff;
  padding: 5.5rem 1.5rem;
  text-align: center;
  margin-bottom: 0;
}
.nb-hero h1 {
  color: #fff;
  font-size: 3rem;
  line-height: 1.15;
  max-width: 18ch;
  margin: 0 auto .6rem;
  font-weight: 800;
}
.nb-hero .nb-eyebrow {
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .8;
  margin-bottom: 1rem;
}
.nb-hero .nb-lead {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  max-width: 62ch;
  margin: 0 auto 2rem;
}
a.nb-btn,
.nb-hero a.nb-btn {
  display: inline-block;
  background: #fff;
  color: var(--nb-primary-d) !important;
  font-weight: 700;
  padding: .95em 2.4em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
a.nb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.24); }

/* ---------- 信任条 ---------- */
.nb-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nb-line);
  border-bottom: 1px solid var(--nb-line);
}
.nb-trust-item {
  background: var(--nb-soft);
  text-align: center;
  padding: 1.5rem .8rem;
}
.nb-trust-item strong { display: block; color: var(--nb-ink); font-size: .95rem; }
.nb-trust-item span { font-size: .83rem; color: #6b7790; }

/* ---------- 章节标题 ---------- */
h2.nb-section-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 3rem 0 .3rem;
  font-weight: 800;
}
h2.nb-section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--nb-accent);
  margin: .8rem auto 0;
  border-radius: 2px;
}

/* ---------- 栏目三列 ---------- */
.nb-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1.5rem 0 3rem;
}
.nb-cols h3 { font-size: 1.1rem; margin-bottom: .35rem; }

/* ---------- 类目卡 / 商品卡 ---------- */
ul.products li.product,
ul.products li.product-category {
  text-align: center;
}
ul.products li.product img,
ul.products li.product-category img {
  border-radius: 12px;
  background: var(--nb-soft);
}
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product-category h2 {
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--nb-ink);
  line-height: 1.4;
  min-height: 2.8em;
}
ul.products li.product .price { color: var(--nb-ink); font-weight: 700; font-size: 1.05rem; }
ul.products li.product .button,
ul.products li.product .added_to_cart {
  background: var(--nb-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  padding: .7em 1.4em;
}
ul.products li.product .button:hover { background: var(--nb-primary-d); color: #fff; }

/* ---------- 商品详情页 ---------- */
.single-product div.product .product_title { font-size: 1.85rem; font-weight: 800; }
.single-product div.product p.price { color: var(--nb-ink); font-size: 1.6rem; font-weight: 800; }
.single-product div.product .woocommerce-product-details__short-description {
  color: var(--nb-body);
  background: var(--nb-soft);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border-left: 3px solid var(--nb-primary);
}
.single-product div.product form.cart .button {
  background: var(--nb-accent);
  border-radius: 8px;
  font-weight: 700;
  padding: 1em 2.2em;
}
.single-product div.product form.cart .button:hover { background: #c9682b; }
.woocommerce-tabs ul.tabs li a { font-weight: 600; }

/* ---------- 按钮通用 ---------- */
.button, button, input[type="submit"], .wc-block-components-button {
  border-radius: 8px;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--nb-primary);
  background: var(--nb-soft);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--nb-primary); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--nb-ink);
  color: #9aa7bd;
  border-top: none;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #c6d0e0; }
.site-footer a:hover { color: #fff; }
.site-footer .widget { border-bottom-color: rgba(255,255,255,.08); }
.site-info {
  background: #0a1020;
  color: #7b879b;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nb-trust { grid-template-columns: repeat(2, 1fr); }
  .nb-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .nb-hero { padding: 3.5rem 1.2rem; }
  .nb-hero h1 { font-size: 2rem; }
}

/* ---------- 通用页面 ---------- */
.nb-page-wrap { max-width: 820px; margin: 2.5rem auto 4rem; }
.nb-page-wrap h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.nb-faq-item {
  border: 1px solid var(--nb-line);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin-bottom: .9rem;
  background: #fff;
}
.nb-faq-item h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.nb-faq-item p { margin: 0; }
.nb-note {
  background: var(--nb-soft);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--nb-accent);
}

/* ---------- 首页不显示页面标题与面包屑 ---------- */
.home .entry-header,
.home .storefront-breadcrumb {
  display: none;
}
.home .site-main { margin-bottom: 0; }

/* ---------- 文章/页面通用容器 ---------- */
.nb-page-wrap { max-width: 780px; }
.entry-content > .nb-hero { margin-left: -9999px; margin-right: -9999px; padding-left: 9999px; padding-right: 9999px; }
.home .entry-content { padding: 0; }
.home .col-full { max-width: 100%; padding: 0; }
.home .nb-section-title,
.home .nb-cols,
.home .woocommerce.columns-4 { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

