/*
Theme Name: Hanyue Lighting
Theme URI: https://hanyuelighting.com
Author: Hanyue Lighting
Author URI: https://hanyuelighting.com
Description: High-end minimalist industrial WooCommerce theme for LED lighting manufacturer & wholesale supplier. White background with deep slate-blue brand color, retail Shop + Wholesale zones, OEM services, project cases, blog, multi-currency, CE/ROHS badges and floating WhatsApp button. Fully responsive and SEO optimized.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hanyue-lighting
Tags: e-commerce, woocommerce, industrial, business, custom-header, custom-menu, featured-images, translation-ready, responsive
*/

/* ============ Design Tokens ============ */
:root {
  --hy-bg: #ffffff;
  --hy-fg: #1b2534;
  --hy-brand: #1f3653;        /* deep slate-blue */
  --hy-brand-dark: #16283e;
  --hy-brand-fg: #f7f9fc;
  --hy-accent: #f39c12;       /* industrial amber */
  --hy-muted: #f4f6f9;
  --hy-muted-fg: #5a6b80;
  --hy-border: #dfe4ea;
  --hy-radius: 5px;
  --hy-rail: 76rem;
  --hy-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --hy-font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hy-font-body);
  color: var(--hy-fg);
  background: var(--hy-bg);
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, h4, .hy-display { font-family: var(--hy-font-display); font-weight: 700; line-height: 1.15; }
a { color: var(--hy-brand); text-decoration: none; }
a:hover { color: var(--hy-accent); }
img { max-width: 100%; height: auto; display: block; }

.hy-rail { max-width: var(--hy-rail); margin: 0 auto; padding: 0 1.5rem; }
.hy-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--hy-accent); }
.hy-section { padding: 5rem 0; }
.hy-muted-bg { background: var(--hy-muted); }

/* buttons */
.hy-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--hy-radius); font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all .18s ease; font-size: .95rem; }
.hy-btn-primary { background: var(--hy-brand); color: var(--hy-brand-fg); }
.hy-btn-primary:hover { background: var(--hy-brand-dark); color: #fff; transform: translateY(-1px); }
.hy-btn-accent { background: var(--hy-accent); color: #1b2534; }
.hy-btn-accent:hover { filter: brightness(1.05); color: #1b2534; transform: translateY(-1px); }
.hy-btn-outline { background: transparent; border-color: var(--hy-border); color: var(--hy-fg); }
.hy-btn-outline:hover { border-color: var(--hy-brand); color: var(--hy-brand); }

/* ============ Header ============ */
.hy-topbar { background: var(--hy-brand-dark); color: #cdd8e6; font-size: .82rem; }
.hy-topbar .hy-rail { display: flex; justify-content: space-between; align-items: center; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; gap: .5rem; }
.hy-topbar a { color: #cdd8e6; }
.hy-topbar a:hover { color: #fff; }

.hy-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hy-border); }
.hy-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: var(--hy-rail); margin: 0 auto; gap: 1.5rem; }
.hy-logo { font-family: var(--hy-font-display); font-weight: 700; font-size: 1.3rem; color: var(--hy-brand); letter-spacing: .04em; }
.hy-logo span { color: var(--hy-accent); }
.hy-logo small { display: block; font-family: var(--hy-font-body); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--hy-muted-fg); font-weight: 600; }

.hy-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; }
.hy-nav a { color: var(--hy-fg); font-weight: 500; font-size: .95rem; }
.hy-nav a:hover, .hy-nav .current-menu-item > a { color: var(--hy-brand); }
.hy-header-actions { display: flex; align-items: center; gap: .8rem; }

.hy-menu-toggle { display: none; background: none; border: 1px solid var(--hy-border); border-radius: var(--hy-radius); padding: .5rem .6rem; cursor: pointer; }
.hy-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--hy-fg); margin: 4px 0; }

.hy-cart-link { position: relative; color: var(--hy-fg); font-weight: 600; }
.hy-cart-count { background: var(--hy-accent); color: #1b2534; border-radius: 999px; padding: 0 .4rem; font-size: .7rem; margin-left: .2rem; }

/* ============ Hero ============ */
.hy-hero { position: relative; color: #fff; background: var(--hy-brand-dark); overflow: hidden; }
.hy-hero .hy-rail { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; max-width: 46rem; }
.hy-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(22,40,62,.92) 0%, rgba(22,40,62,.55) 100%); z-index: 1; }
.hy-hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.hy-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0; }
.hy-hero p { font-size: 1.15rem; color: #d3ddea; max-width: 34rem; }
.hy-hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ============ Grids / cards ============ */
.hy-grid { display: grid; gap: 1.5rem; }
.hy-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hy-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hy-grid-4 { grid-template-columns: repeat(4, 1fr); }

.hy-card { background: #fff; border: 1px solid var(--hy-border); border-radius: var(--hy-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.hy-card:hover { box-shadow: 0 12px 30px rgba(31,54,83,.10); transform: translateY(-3px); }
.hy-card-body { padding: 1.25rem; }
.hy-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.hy-card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.hy-section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.hy-section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .6rem 0; }
.hy-section-head p { color: var(--hy-muted-fg); }

/* ============ Badges ============ */
.hy-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.hy-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 3px; border: 1px solid var(--hy-border); color: var(--hy-brand); background: var(--hy-muted); }

/* ============ Split feature ============ */
.hy-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hy-split img { border-radius: var(--hy-radius); }

/* ============ Forms ============ */
.hy-form { display: grid; gap: 1.1rem; max-width: 42rem; }
.hy-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.hy-form input, .hy-form select, .hy-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--hy-border); border-radius: var(--hy-radius); font-family: inherit; font-size: .95rem; }
.hy-form input:focus, .hy-form select:focus, .hy-form textarea:focus { outline: none; border-color: var(--hy-brand); box-shadow: 0 0 0 3px rgba(31,54,83,.12); }
.hy-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ============ Footer ============ */
.hy-footer { background: var(--hy-brand-dark); color: #b9c6d8; padding: 4rem 0 1.5rem; }
.hy-footer a { color: #b9c6d8; }
.hy-footer a:hover { color: #fff; }
.hy-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.hy-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.hy-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.hy-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; text-align: center; font-size: .82rem; color: #8698ad; }
.hy-footer-img { border-radius: var(--hy-radius); margin-top: 1rem; }

/* ============ Floating WhatsApp ============ */
.hy-whatsapp { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 200; background: #25D366; color: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .2s ease; }
.hy-whatsapp:hover { transform: scale(1.08); color: #fff; }
.hy-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* ============ Currency switcher ============ */
.hy-currency select { border: 1px solid var(--hy-border); border-radius: var(--hy-radius); padding: .35rem .5rem; font-size: .82rem; background: #fff; }

/* ============ WooCommerce tweaks ============ */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { border: 1px solid var(--hy-border); border-radius: var(--hy-radius); padding: 1rem; transition: box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { box-shadow: 0 12px 30px rgba(31,54,83,.10); }
.woocommerce a.button, .woocommerce button.button, .woocommerce .button, .woocommerce #respond input#submit { background: var(--hy-brand) !important; color: #fff !important; border-radius: var(--hy-radius) !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--hy-brand-dark) !important; }
.woocommerce span.price, .woocommerce div.product p.price { color: var(--hy-brand); font-weight: 700; }
.hy-wholesale-price { color: var(--hy-accent); font-weight: 700; font-size: .95rem; }
.hy-shop-wrap { padding: 3rem 0; }

/* ============ Blog ============ */
.hy-article-meta { color: var(--hy-muted-fg); font-size: .85rem; margin-bottom: .5rem; }
.hy-prose { max-width: 46rem; margin: 0 auto; }
.hy-prose h2 { margin-top: 2rem; }

/* ============ Page hero ============ */
.hy-page-hero { background: var(--hy-muted); border-bottom: 1px solid var(--hy-border); padding: 3.5rem 0; }
.hy-page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: .5rem 0 0; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hy-grid-3, .hy-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hy-split, .hy-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .hy-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--hy-border); }
  .hy-nav.open { display: block; }
  .hy-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 1.5rem; }
  .hy-nav li { width: 100%; padding: .6rem 0; border-bottom: 1px solid var(--hy-border); }
  .hy-menu-toggle { display: block; }
  .hy-grid-2, .hy-grid-3, .hy-grid-4 { grid-template-columns: 1fr; }
  .hy-form-row { grid-template-columns: 1fr; }
  .hy-header { position: relative; }
}
