/* ==========================================================================
   Great Source Heater — site stylesheet
   Warm orange industrial B2B theme. All existing selectors preserved;
   visuals upgraded (depth, type scale, motion, focus states).
   ========================================================================== */

:root {
  --primary: #E8722A;
  --primary-dark: #C85A1A;
  --primary-deep: #A8480F;
  --primary-light: #F5A06A;
  --primary-bg: #FFF5ED;
  --primary-bg-soft: #FFFAF5;
  --grad-primary: linear-gradient(135deg, #F08A3C 0%, #E8722A 45%, #D9601B 100%);
  --text: #23262B;
  --text-light: #5B626B;
  --text-muted: #98A0AA;
  --bg: #FFFFFF;
  --bg-gray: #F7F6F4;
  --bg-warm: #FBF8F5;
  --border: #E9E5E0;
  --success: #2FA35C;
  --error: #D9403B;
  --shadow: 0 1px 2px rgba(35, 38, 43, 0.05), 0 6px 18px rgba(35, 38, 43, 0.06);
  --shadow-hover: 0 4px 10px rgba(35, 38, 43, 0.08), 0 16px 34px rgba(232, 114, 42, 0.14);
  --shadow-warm: 0 10px 28px rgba(232, 114, 42, 0.28);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-display); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
::selection { background: var(--primary); color: #fff; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* Accessibility helpers */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0; z-index: 10000; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid rgba(232, 114, 42, 0.45); outline-offset: 2px; }

/* ---------- Header ---------- */
.header { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(35,38,43,0.06), 0 4px 20px rgba(35,38,43,0.05); position: sticky; top: 0; z-index: 100; }
.header-top { background: var(--grad-primary); color: #fff; padding: 7px 0; font-size: 13px; letter-spacing: 0.01em; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.header-top a { color: #fff; opacity: 0.95; }
.header-top a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.header-top-right { display: inline-flex; align-items: center; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo { font-size: 23px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.logo svg { width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgba(232,114,42,0.35)); transition: var(--transition); }
.logo:hover svg { transform: rotate(-6deg) scale(1.06); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: var(--text); font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; bottom: -2px; left: 50%; right: 50%; height: 2px; background: var(--grad-primary); border-radius: 2px; transition: var(--transition); }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { left: 0; right: 0; }
.nav a.active { color: var(--primary); }
.nav a.active::after { content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--grad-primary); border-radius: 2px; }
.nav .dropdown { position: relative; }
.nav .dropdown-menu { display: none; position: absolute; top: calc(100% + 10px); left: -12px; background: #fff; box-shadow: var(--shadow-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 230px; padding: 8px; z-index: 50; opacity: 0; transform: translateY(8px); transition: var(--transition); }
.nav .dropdown:hover .dropdown-menu, .nav .dropdown:focus-within .dropdown-menu { display: block; opacity: 1; transform: translateY(0); }
.nav .dropdown-menu a { display: block; padding: 9px 14px; font-size: 14px; border-radius: 6px; }
.nav .dropdown-menu a::after { display: none; }
.nav .dropdown-menu a:hover { background: var(--primary-bg); color: var(--primary-dark); padding-left: 18px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); line-height: 1; padding: 4px 8px; border-radius: 8px; }
.mobile-toggle:hover { background: var(--primary-bg); color: var(--primary); }

/* ---------- Hero / Banner ---------- */
.hero { position: relative; overflow: hidden; background: #1c1410; }
.hero-slider { position: relative; height: 540px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,12,6,0.72) 0%, rgba(20,12,6,0.45) 42%, rgba(232,114,42,0.22) 100%); display: flex; align-items: center; }
.hero-content { color: #fff; max-width: 640px; }
.hero-slide.active .hero-content h1 { animation: fadeUp 0.7s ease both; }
.hero-slide.active .hero-content p { animation: fadeUp 0.7s 0.12s ease both; }
.hero-slide.active .hero-content .btn { animation: fadeUp 0.7s 0.2s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-content h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; margin-bottom: 16px; line-height: 1.15; letter-spacing: -0.015em; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-content p { font-size: 18px; margin-bottom: 28px; opacity: 0.94; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dots button { width: 26px; height: 6px; border-radius: var(--radius-pill); border: none; background: rgba(255,255,255,0.45); cursor: pointer; transition: var(--transition); padding: 0; }
.hero-dots button:hover { background: rgba(255,255,255,0.75); }
.hero-dots button.active { background: #fff; width: 38px; }
.hero-arrows button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 10; transition: var(--transition); backdrop-filter: blur(4px); }
.hero-arrows button:hover { background: var(--primary); border-color: var(--primary); }
.hero-arrows .prev { left: 22px; }
.hero-arrows .next { right: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 30px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; cursor: pointer; border: none; transition: var(--transition); text-align: center; letter-spacing: 0.01em; line-height: 1.3; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 14px rgba(232,114,42,0.3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-warm); filter: brightness(1.04); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.85); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--text); border: 1.5px solid var(--border); box-shadow: 0 1px 3px rgba(35,38,43,0.05); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg-soft); transform: translateY(-2px); }
.btn-invert { background: #fff; color: var(--primary-dark); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.btn-invert:hover { background: var(--text); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.2); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.06); color: #fff; }
.btn:active { transform: translateY(0); }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title h2 { font-size: clamp(24px, 3.2vw, 33px); font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.015em; }
.section-title p { color: var(--text-light); font-size: 16px; max-width: 620px; margin: 0 auto; }
.section-title .line { width: 52px; height: 4px; background: var(--grad-primary); margin: 18px auto 0; border-radius: var(--radius-pill); }
.bg-gray { background: var(--bg-warm); }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.category-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); cursor: pointer; position: relative; display: block; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(232,114,42,0.35); }
.category-card .img-wrap { height: 170px; overflow: hidden; background: var(--bg-gray); position: relative; }
.category-card .img-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(28,20,16,0.28)); opacity: 0; transition: var(--transition); }
.category-card:hover .img-wrap::after { opacity: 1; }
.category-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.category-card:hover .img-wrap img { transform: scale(1.08); }
.category-card .info { padding: 16px 14px; text-align: center; }
.category-card .info h3 { font-size: 15.5px; font-weight: 700; color: var(--text); transition: var(--transition); }
.category-card:hover .info h3 { color: var(--primary); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 26px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(232,114,42,0.35); }
.product-card .img-wrap { height: 230px; overflow: hidden; background: #fff; position: relative; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .badge { position: absolute; top: 12px; left: 12px; background: var(--grad-primary); color: #fff; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; box-shadow: 0 3px 8px rgba(232,114,42,0.35); }
.product-card .body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-size: 11.5px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.product-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--primary); }
.product-card .desc { font-size: 13px; color: var(--text-light); margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .actions { display: flex; gap: 8px; }
.product-card .actions .btn { flex: 1; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; margin-bottom: 48px; align-items: start; }
.product-gallery { position: sticky; top: 120px; }
.product-gallery .main-img { width: 100%; height: 430px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid var(--border); transition: var(--transition); background: #fff; }
.product-thumbs img:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.product-thumbs img.active { border-color: var(--primary); box-shadow: 0 3px 10px rgba(232,114,42,0.25); }
.product-info h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.25; }
.product-info .cat-tag { display: inline-block; background: var(--primary-bg); color: var(--primary-dark); padding: 5px 14px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.03em; }
.product-info .price, .product-info .price-block { font-size: 26px; color: var(--primary); font-weight: 800; margin: 12px 0; }
.product-info .specs { background: var(--bg-warm); border: 1px solid var(--border); padding: 18px; border-radius: var(--radius-sm); margin: 18px 0; }
.product-info .specs h4 { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.product-info .specs p { font-size: 13.5px; color: var(--text-light); white-space: pre-line; }
.product-info .description { margin: 16px 0; color: var(--text-light); line-height: 1.85; }
.product-info .faq { margin-top: 26px; }
.product-info .faq h3 { font-size: 18px; margin-bottom: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: #fff; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary-light); }
.faq-item .q { padding: 14px 16px; background: var(--bg-warm); font-weight: 700; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: var(--transition); }
.faq-item .q:hover { background: var(--primary-bg); }
.faq-item.open .q { background: var(--primary-bg); color: var(--primary-dark); }
.faq-item .a { padding: 14px 16px; font-size: 14px; color: var(--text-light); display: none; border-top: 1px dashed var(--border); }
.faq-item.open .a { display: block; }
.related-products { margin-top: 56px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(232,114,42,0.3); }
.blog-card .img-wrap { height: 180px; background: var(--bg-gray); overflow: hidden; }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .img-wrap img { transform: scale(1.05); }
.blog-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card .date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.blog-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.45; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .summary { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-detail-content { max-width: 820px; margin: 0 auto; }
.blog-detail-content h1 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 16px; line-height: 1.25; letter-spacing: -0.015em; }
.blog-detail-content .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.blog-detail-content .content { line-height: 1.95; font-size: 16.5px; color: #33383E; }
.blog-detail-content .content h2, .blog-detail-content .content h3 { margin: 28px 0 12px; line-height: 1.35; }
.blog-detail-content .content img { border-radius: var(--radius-sm); margin: 16px 0; }

/* ---------- About / Contact ---------- */
.page-hero { background: linear-gradient(120deg, #D9601B 0%, #E8722A 55%, #F0954E 100%); color: #fff; padding: 68px 0; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,0.09); top: -140px; right: -90px; }
.page-hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.07); bottom: -110px; left: -70px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.015em; position: relative; z-index: 1; }
.page-hero p { position: relative; z-index: 1; }
.page-content { padding: 60px 0; }
.page-content .content { line-height: 1.9; color: #33383E; }
.page-content .content h2 { margin: 28px 0 12px; color: var(--text); font-size: 24px; letter-spacing: -0.01em; }
.page-content .content h3 { margin: 22px 0 10px; color: var(--text); }
.page-content .content ul, .page-content .content ol { margin: 12px 0 12px 26px; }
.page-content .content li { margin-bottom: 6px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-info { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.contact-info h3 { font-size: 20px; margin-bottom: 22px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .icon { width: 46px; height: 46px; background: var(--primary-bg); border: 1px solid rgba(232,114,42,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; flex-shrink: 0; transition: var(--transition); }
.contact-item:hover .icon { background: var(--grad-primary); color: #fff; border-color: transparent; transform: scale(1.06); }
.contact-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-light); word-break: break-word; }
.hours-card { margin-top: 24px; padding: 16px; background: var(--primary-bg); border: 1px dashed rgba(232,114,42,0.4); border-radius: var(--radius-sm); }
.hours-card p { font-size: 14px; color: var(--text-light); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; transition: var(--transition); background: #fff; color: var(--text); }
.form-group input:hover, .form-group textarea:hover { border-color: #D8D2CA; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(232,114,42,0.13); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* honeypot: hidden from humans, kept in DOM for bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.alert-success { background: #E9F7EE; color: #1E7A41; border: 1px solid #AEE0C2; }
.alert-error { background: #FDECEB; color: #B02A26; border: 1px solid #F3B9B6; }

/* ---------- Features / Why us ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature-card { text-align: center; padding: 34px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(232,114,42,0.35); }
.feature-card .icon { width: 68px; height: 68px; background: var(--primary-bg); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 30px; color: var(--primary); transition: var(--transition); }
.feature-card:hover .icon { background: var(--grad-primary); color: #fff; transform: rotate(-4deg) scale(1.06); border-radius: 24px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* ---------- CTA ---------- */
.cta-section { background: linear-gradient(115deg, #C85A1A 0%, #E8722A 60%, #F0954E 100%); color: #fff; padding: 66px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.16), transparent 45%); }
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(24px, 3.4vw, 31px); margin-bottom: 12px; font-weight: 800; letter-spacing: -0.01em; }
.cta-section p { font-size: 16.5px; opacity: 0.95; margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text); background: #fff; transition: var(--transition); }
.pagination a:hover { background: var(--primary-bg); color: var(--primary-dark); border-color: var(--primary-light); transform: translateY(-2px); }
.pagination .current { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(232,114,42,0.3); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, #1B1D21 0%, #14151A 100%); color: #A7ADB5; padding: 58px 0 22px; }
.footer::before { content: ""; display: block; height: 3px; background: var(--grad-primary); margin-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 34px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-weight: 700; letter-spacing: 0.01em; }
.footer .footer-brand { color: var(--primary-light); font-size: 21px; font-weight: 800; }
.footer p { font-size: 14px; line-height: 1.85; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { color: #A7ADB5; font-size: 14px; display: inline-block; transition: var(--transition); }
.footer ul li a:hover { color: var(--primary-light); transform: translateX(4px); }
.footer .contact-line { display: flex; gap: 9px; align-items: center; font-size: 14px; margin-bottom: 11px; word-break: break-word; }
.footer .contact-line a { color: #A7ADB5; }
.footer .contact-line a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; text-align: center; font-size: 13px; color: #6E747D; }
.footer-bottom a { color: #6E747D; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.chat-popup { position: absolute; bottom: 70px; right: 0; width: 340px; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,0.22); overflow: hidden; display: none; animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
.chat-popup.show { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(22px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-popup-header { background: var(--grad-primary); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-popup-header h4 { font-size: 15px; }
.chat-popup-header .close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; opacity: 0.85; }
.chat-popup-header .close:hover { opacity: 1; }
.chat-popup-body { padding: 20px; }
.chat-popup-body p { font-size: 14px; margin-bottom: 16px; color: var(--text); }
.chat-popup-buttons { display: flex; gap: 10px; }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; background: var(--grad-primary); color: #fff; border: none; font-size: 25px; cursor: pointer; box-shadow: var(--shadow-warm); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.chat-fab:hover { transform: scale(1.1) rotate(4deg); }
.chat-fab::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--success); border: 2px solid #fff; border-radius: 50%; top: -1px; right: -1px; }
.chat-fab { position: relative; }
.chat-window { position: absolute; bottom: 70px; right: 0; width: 368px; height: 490px; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,0.22); display: none; flex-direction: column; overflow: hidden; }
.chat-window.show { display: flex; animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
.chat-window-header { background: var(--grad-primary); color: #fff; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-window-header h4 { font-size: 14.5px; }
.chat-window-header .close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; opacity: 0.85; }
.chat-window-header .close:hover { opacity: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: linear-gradient(180deg, var(--bg-warm), #fff); }
.chat-msg { margin-bottom: 12px; max-width: 82%; }
.chat-msg.customer { margin-left: auto; }
.chat-msg .bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-msg.customer .bubble { background: var(--grad-primary); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 3px 10px rgba(232,114,42,0.28); }
.chat-msg.admin .bubble { background: #fff; color: var(--text); border-bottom-left-radius: 4px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.chat-msg .time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.chat-input { display: flex; padding: 12px; border-top: 1px solid var(--border); gap: 8px; background: #fff; }
.chat-input input { flex: 1; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,114,42,0.12); }
.chat-input button { background: var(--grad-primary); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: var(--transition); flex-shrink: 0; }
.chat-input button:hover { transform: scale(1.08); }
.chat-status { padding: 8px 16px; font-size: 12px; color: var(--text-muted); background: #fff; border-top: 1px solid var(--border); text-align: center; }

/* ---------- Admin ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: linear-gradient(180deg, #1B1D21, #14151A); color: #A7ADB5; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .logo { color: var(--primary-light); padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 18px; font-weight: 800; }
.admin-sidebar nav a { display: block; padding: 12px 20px; color: #A7ADB5; font-size: 14px; transition: var(--transition); border-left: 3px solid transparent; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(232,114,42,0.1); color: var(--primary-light); border-left-color: var(--primary); }
.admin-main { flex: 1; background: var(--bg-gray); padding: 26px; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.admin-header h1 { font-size: 24px; letter-spacing: -0.01em; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; border: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; overflow: hidden; transition: var(--transition); }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-primary); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card .value { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { background: var(--bg-warm); font-weight: 700; color: var(--text); }
.admin-table tr:hover { background: var(--primary-bg-soft); }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.badge-active { background: #E9F7EE; color: #1E7A41; }
.badge-draft { background: #FFF3E0; color: #C05621; }
.badge-new { background: #E7F0FD; color: #1B5FBF; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-bg) 0%, #fff 60%, var(--primary-bg-soft) 100%); padding: 20px; }
.login-box { background: #fff; padding: 42px; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(35,38,43,0.12); width: 420px; max-width: 100%; border: 1px solid var(--border); }
.login-box h2 { text-align: center; margin-bottom: 8px; color: var(--primary); }
.login-box .subtitle { text-align: center; color: var(--text-light); margin-bottom: 26px; font-size: 14px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 96px 20px; }
.not-found h1 { font-size: clamp(70px, 12vw, 96px); background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary); margin-bottom: 14px; font-weight: 900; line-height: 1; }
.not-found p { font-size: 18px; color: var(--text-light); margin-bottom: 26px; }

/* ---------- Motion & print preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-slider { height: 460px; }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 22px; box-shadow: var(--shadow-hover); gap: 0; border-top: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a::after, .nav a.active::after { display: none; }
  .nav .dropdown-menu { position: static; box-shadow: none; border: none; opacity: 1; transform: none; padding: 0 0 0 14px; display: block; }
  .mobile-toggle { display: block; }
  .hero-slider { height: 340px; }
  .hero-content h1 { font-size: 27px; }
  .hero-content p { font-size: 15px; margin-bottom: 18px; }
  .hero-arrows button { width: 38px; height: 38px; font-size: 17px; }
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .header-top .container { justify-content: center; text-align: center; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 10px 0; }
  .admin-sidebar nav { display: flex; overflow-x: auto; }
  .admin-sidebar nav a { white-space: nowrap; padding: 10px 14px; border-left: none; border-bottom: 3px solid transparent; }
  .admin-sidebar nav a:hover, .admin-sidebar nav a.active { border-left-color: transparent; border-bottom-color: var(--primary); }
  .chat-popup, .chat-window { width: calc(100vw - 32px); right: -8px; }
  .product-gallery .main-img { height: 320px; }
}
