/* =========================================================
   Shangge Furniture EN — theme styles
   Palette: white base + blue #00A0E8 primary + red #d25 accent
   ========================================================= */

:root{
	--blue:#00A0E8;
	--blue-dark:#0b7eb3;
	--accent:#d25;
	--text:#333;
	--muted:#888;
	--line:#e5e5e5;
	--bg:#f8f8f8;
	--radius:8px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--text);font-size:16px;line-height:1.6;background:#fff}
img{max-width:100%;height:auto;border:0}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-dark)}
h1,h2,h3,h4,h5,h6{line-height:1.3;margin:0 0 .5em}
ul,ol{padding-left:1.4em}
.clearfix::after{content:"";display:table;clear:both}

.container{width:1200px;max-width:100%;margin:0 auto;padding:0 16px}

/* ---------- Top bar ---------- */
.top-bar{background:#0b7eb3;color:#fff;font-size:.85rem}
.top-bar .container{display:flex;justify-content:space-between;align-items:center;min-height:34px;flex-wrap:wrap}
.top-bar a{color:#fff;font-weight:600}
.top-bar a:hover{text-decoration:underline}

/* ---------- Site header ---------- */
.site-header{padding:18px 0;border-bottom:3px solid var(--blue)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:14px}
.brand .custom-logo{max-height:70px;width:auto}
.brand-logo{font-size:1.7rem;font-weight:800;color:var(--blue);letter-spacing:.3px;display:block;line-height:1.1}
.brand-info h5{margin:0;font-size:1.25rem;color:#222}
.brand-info p{margin:0;font-size:.82rem;color:var(--muted)}
.site-contact{text-align:right}
.site-contact label{display:block;font-size:.78rem;color:var(--muted)}
.site-contact h5{margin:2px 0 0;font-size:1.2rem;color:var(--accent)}

/* ---------- Nav ---------- */
.main-nav{background:var(--blue);box-shadow:0 2px 6px rgba(0,0,0,.08);position:sticky;top:0;z-index:999}
.nav-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.nav-list > li{position:relative}
.nav-list > li > a{display:block;color:#fff;padding:14px 20px;font-weight:600;font-size:.95rem;transition:.2s}
.nav-list > li:hover > a,.nav-list > li.current-menu-item > a{background:var(--blue-dark)}
.nav-list ul{display:none;position:absolute;top:100%;left:0;background:#fff;min-width:220px;list-style:none;margin:0;padding:6px 0;box-shadow:0 6px 16px rgba(0,0,0,.12);border-radius:0 0 var(--radius) var(--radius);z-index:9}
.nav-list li:hover ul{display:block}
.nav-list ul a{display:block;padding:8px 16px;color:#333;font-size:.88rem}
.nav-list ul a:hover{background:var(--bg);color:var(--blue)}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(135deg,#0b7eb3 0%,var(--blue) 55%,#34c3ff 100%);color:#fff;padding:64px 0;text-align:center}
.hero h1{font-size:2.4rem;margin:0 0 14px;font-weight:800}
.hero p{font-size:1.1rem;max-width:760px;margin:0 auto 26px;color:rgba(255,255,255,.92)}
.btn{display:inline-block;background:#fff;color:var(--blue);font-weight:700;padding:12px 28px;border-radius:40px;margin:0 6px;transition:.2s}
.btn:hover{background:var(--accent);color:#fff}
.btn.solid{background:var(--accent);color:#fff}
.btn.solid:hover{background:#fff;color:var(--accent)}

/* ---------- Sections ---------- */
.section{padding:52px 0}
.section.bg{background:var(--bg)}
.section-title{text-align:center;margin-bottom:34px}
.section-title h2{font-size:1.8rem;color:#222;margin-bottom:6px}
.section-title p{color:var(--muted);margin:0}

/* ---------- Product grid (cards) ---------- */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.prod-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.08);transition:.25s;border:1px solid var(--line)}
.prod-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(0,0,0,.14)}
.prod-card .thumb{position:relative;background:#fff;display:block}
.prod-card .thumb img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;padding:8px}
.prod-card .info{padding:10px 14px 14px;border-top:1px solid var(--line)}
.prod-card .info h3{margin:0 0 4px;font-size:1rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prod-card .info h3 a{color:#222}
.prod-card .info h3 a:hover{color:var(--blue)}

/* ---------- Category archive hero strip ---------- */
.page-hero{background:linear-gradient(135deg,#0b7eb3,var(--blue));color:#fff;padding:44px 0;text-align:center}
.page-hero h1{font-size:2rem;margin-bottom:6px}
.page-hero p{color:rgba(255,255,255,.92);margin:0 auto;max-width:720px}

/* ---------- Why choose us ---------- */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.why-item{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 20px;text-align:center}
.why-item .ico{color:var(--blue);font-size:2rem;margin-bottom:8px}
.why-item h3{font-size:1.05rem;color:#222}
.why-item p{font-size:.88rem;color:var(--muted);margin:0}

/* ---------- CTA banner ---------- */
.cta{background:var(--accent);color:#fff;padding:44px 0;text-align:center}
.cta h2{margin:0 0 10px}
.cta p{margin:0 0 20px;color:rgba(255,255,255,.92)}
.cta .btn{background:#fff;color:var(--accent)}
.cta .btn:hover{background:#222}

/* ---------- Content / page ---------- */
.entry{background:#fff;padding:26px;border-radius:var(--radius);box-shadow:0 1px 6px rgba(0,0,0,.06)}
.entry h2{color:#222;margin-top:1.2em}
.entry h3{color:#333}
.entry img{border-radius:6px}
.content-wrap{max-width:900px;margin:0 auto}

/* ---------- Single product ---------- */
.single-layout{display:grid;grid-template-columns:420px 1fr;gap:34px;align-items:start}
.single-layout .gallery img{border-radius:var(--radius);box-shadow:0 2px 10px rgba(0,0,0,.1)}
.single-meta td{padding:6px 0;border-bottom:1px dashed var(--line);font-size:.95rem}
.single-meta td:first-child{color:var(--muted);padding-right:18px;white-space:nowrap}
.single-contact{margin-top:20px}

/* ---------- Pagination ---------- */
.pagination{text-align:center;margin:36px 0 0}
.pagination .page-numbers{display:inline-block;padding:7px 14px;margin:0 3px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--blue)}
.pagination .page-numbers.current{background:var(--blue);color:#fff;border-color:var(--blue)}
.pagination .page-numbers:hover{background:var(--bg)}

/* ---------- Footer ---------- */
.site-footer{background:#1f2733;color:#c6cdd6;margin-top:52px}
.site-footer .footer-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:30px;padding:48px 0 30px}
.site-footer h4{color:#fff;font-size:1.05rem;margin-bottom:14px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer ul li{margin-bottom:8px;font-size:.9rem}
.site-footer a{color:#c6cdd6}
.site-footer a:hover{color:#fff}
.copyright{background:#171d26;padding:16px 0;color:#8a939f;font-size:.85rem;text-align:center;margin:0}

/* ---------- WhatsApp float ---------- */
.whatsapp-float{position:fixed;right:22px;bottom:22px;background:#25D366;color:#fff;padding:14px 20px;border-radius:40px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.25);z-index:999;font-size:.9rem}
.whatsapp-float:hover{background:#1fb257;color:#fff}

/* =========================================================
   Responsive
   ========================================================= */
@media only screen and (max-width:1023px){
	.prod-grid{grid-template-columns:repeat(3,1fr)}
	.why-grid{grid-template-columns:repeat(2,1fr)}
	.site-footer .footer-cols{grid-template-columns:1fr 1fr}
	.single-layout{grid-template-columns:1fr}
}
@media only screen and (max-width:767px){
	.hero h1{font-size:1.7rem}
	.hero{text-align:left;padding:44px 0}
	.prod-grid{grid-template-columns:repeat(2,1fr);gap:14px}
	.why-grid{grid-template-columns:1fr}
	.site-footer .footer-cols{grid-template-columns:1fr}
	.site-contact{display:none}
	.nav-list{flex-wrap:wrap}
	.nav-list > li > a{padding:12px 14px}
	.nav-list ul{position:static;box-shadow:none;display:none;background:var(--blue-dark)}
	.nav-list li:hover ul{display:block}
	.brand-logo{font-size:1.3rem}
}

/* ============ WooCommerce brand adaptation ============ */
.woocommerce ul.products { display:flex; flex-wrap:wrap; gap:22px; list-style:none; margin:0; padding:0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display:none; }
.woocommerce ul.products li.product {
  width:calc(25% - 17px); margin:0; padding:0; background:#fff;
  border:1px solid #e6ecf1; border-radius:10px; overflow:hidden;
  transition:box-shadow .2s ease, transform .2s ease; text-align:center;
}
.woocommerce ul.products li.product:hover { box-shadow:0 10px 26px rgba(15,64,131,.12); transform:translateY(-3px); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display:block; color:inherit; }
.woocommerce ul.products li.product img { width:100%; height:auto; margin:0; display:block; }
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-size:16px; color:#0f4083; padding:12px 14px 4px; margin:0; font-weight:600;
}
.woocommerce ul.products li.product .price { display:none; }
.woocommerce ul.products li.product .inquiry-price {
  display:inline-block; margin:2px 0 10px; color:#c8102e; font-weight:600; font-size:14px;
}
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button {
  background:#0f4083; color:#fff; border-radius:6px; padding:8px 18px; font-size:14px;
  margin-bottom:14px; border:none; cursor:pointer;
}
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover { background:#0c3268; color:#fff; }

/* Single product page */
.woocommerce div.product { background:#fff; }
.woocommerce div.product div.images { width:46%; float:left; margin-right:4%; }
.woocommerce div.product div.summary { width:50%; float:right; margin-bottom:0; }
.woocommerce div.product .product_title { color:#0f4083; font-size:26px; }
.woocommerce div.product p.price { display:none; }
.woocommerce div.product .inquiry-price {
  display:inline-block; font-size:20px; font-weight:700; color:#c8102e; margin:10px 0 16px;
}
.woocommerce div.product form.cart, .woocommerce div.product .quantity { display:none !important; }
.woocommerce div.product .quote-btn {
  display:inline-block; background:#0f4083; color:#fff !important; padding:13px 34px;
  border-radius:6px; font-size:16px; font-weight:600; margin:14px 0 8px; text-decoration:none;
}
.woocommerce div.product .quote-btn:hover { background:#0c3268; }
.woocommerce div.product div.product_meta { border-top:1px solid #e6ecf1; padding-top:14px; margin-top:18px; color:#5b6b7a; font-size:14px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { list-style:none; display:flex; gap:6px; padding:0; border-bottom:2px solid #0f4083; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background:none; border:none; margin:0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding:10px 18px; display:block; color:#0f4083; font-weight:600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { background:#0f4083; color:#fff; border-radius:6px 6px 0 0; }
.woocommerce div.product .woocommerce-tabs .panel { border:1px solid #e6ecf1; border-top:none; padding:18px; }
.woocommerce .woocommerce-message { border-top-color:#0f4083; }

/* Category / shop archive header */
.woocommerce-products-header__title.page-title { color:#0f4083; font-size:26px; }
.term-description { color:#5b6b7a; max-width:820px; }

/* Clearfix for product layout */
.woocommerce div.product::after, .woocommerce ul.products::after { content:""; display:table; clear:both; }

@media (max-width:1023px) {
  .woocommerce ul.products li.product { width:calc(50% - 11px); }
  .woocommerce div.product div.images { width:100%; float:none; margin-right:0; }
  .woocommerce div.product div.summary { width:100%; float:none; }
}

/* ============ Home news grid (2 per row, 4 rows) ============ */
.news-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.news-card {
  display:flex; gap:16px; align-items:flex-start; background:#fff;
  border:1px solid #e6ecf1; border-radius:10px; padding:14px;
  text-decoration:none; transition:box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow:0 10px 26px rgba(15,64,131,.12); transform:translateY(-2px); }
.news-thumb { flex:0 0 160px; }
.news-thumb img {
  width:160px; height:106px; object-fit:cover; border-radius:8px; display:block;
}
.news-thumb .noimg { display:block; width:160px; height:106px; border-radius:8px; background:#f0f4f7; }
.news-info { flex:1; min-width:0; }
.news-info h3 {
  font-size:17px; line-height:1.35; color:#0f4083; margin:0 0 8px; font-weight:600;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.news-excerpt {
  color:#5b6b7a; font-size:14px; line-height:1.55; margin:0 0 10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.news-tags em {
  font-style:normal; background:#eef3f8; color:#0f4083; font-size:12px;
  padding:3px 10px; border-radius:12px; margin:0 6px 6px 0; display:inline-block;
}
.news-more { text-align:center; margin-top:26px; }
@media (max-width:767px) {
  .news-grid { grid-template-columns:1fr; }
  .news-card { flex-direction:column; }
  .news-thumb { flex:none; }
  .news-thumb img, .news-thumb .noimg { width:100%; height:150px; }
}

/* ===== Homepage Slider (below nav bar) ===== */
.home-slider{position:relative;width:100%;overflow:hidden}
.slider-viewport{overflow:hidden;width:100%}
.slider-track{display:flex;transition:transform .6s ease}
.slide{position:relative;flex:0 0 100%;width:100%;aspect-ratio:1920/650;overflow:hidden}
.slide img{width:100%;height:100%;object-fit:cover;display:block}
.slide-caption{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#fff;background:rgba(15,64,131,.32);padding:24px}
.slide-caption h2{font-size:2.4rem;margin:0 0 10px;text-shadow:0 2px 8px rgba(0,0,0,.45)}
.slide-caption p{font-size:1.15rem;max-width:740px;margin:0 0 18px;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.slider-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:46px;height:46px;border:none;border-radius:50%;background:rgba(255,255,255,.72);color:#0f4083;font-size:1.6rem;line-height:1;cursor:pointer;opacity:.85}
.slider-nav:hover{opacity:1;background:#fff}
.slider-nav.prev{left:16px}
.slider-nav.next{right:16px}
.slider-dots{position:absolute;bottom:16px;left:0;right:0;z-index:3;display:flex;justify-content:center;gap:8px}
.slider-dots .dot{width:12px;height:12px;padding:0;border-radius:50%;border:2px solid #fff;background:transparent;cursor:pointer}
.slider-dots .dot.on{background:#fff}
@media (max-width:1023px){
  .slide-caption h2{font-size:1.7rem}
  .slide-caption p{font-size:1rem;margin-bottom:12px}
}
@media (max-width:640px){
  .slide-caption h2{font-size:1.25rem}
  .slide-caption p{display:none}
  .slider-nav{width:34px;height:34px;font-size:1.1rem}
}
