/*
Theme Name: Wonderful
Theme URI: https://www.nicetheme.cn/
Author: Wonderful Team
Author URI: https://www.nicetheme.cn/
Description: A modern, elegant WordPress theme for home & living websites. Features hero slider, product grids, category cards, service sections, CTA banners, and full WooCommerce support. Translation ready with English as default language.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wonderful
Tags: one-column, two-columns, right-sidebar, left-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, blog, e-commerce, grid-layout
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ====== CSS Variables ====== */
:root {
  --black: #000;
  --white: #fff;
  --gray-1: #F7F8FA;
  --gray-2: #F2F3F5;
  --gray-3: #E5E6EB;
  --gray-4: #C9CDD4;
  --gray-5: #86909C;
  --gray-6: #4E5969;
  --gray-7: #393c42;
  --gray-8: #1D2129;
  --red: #ff3e3e;
  --blue: #3858F6;
  --blue-2: #2b4dff;
  --orange: #ffba3a;
  --green: #4abd86;
  --color-primary: var(--blue);
  --color-dark: var(--gray-8);
  --color-muted: var(--gray-5);
  --color-body: var(--gray-8);
  --bg-body: var(--gray-1);
  --bg-dark: var(--gray-8);
  --bg-light: var(--gray-2);
  --border-light: var(--gray-3);
  --border-color: var(--gray-2);
  --card-bg: #fff;
  --card-border-color: var(--gray-1);
  --shadow-1: rgba(0,0,0,0.04);
  --shadow: 0 4px 16px 0 var(--shadow-1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-max: 999px;
  --font-body: "Inter", "Noto Sans SC", -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
  --container-max: 1560px;
  --animation-duration: 0.3s;
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-body);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--color-body); text-decoration: none; transition: color var(--animation-duration) ease; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ====== Container ====== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ====== Header ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--animation-duration) ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: 0 1px 8px var(--shadow-1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-6);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width var(--animation-duration) ease;
}
.main-nav a:hover { color: var(--color-dark); }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--animation-duration) ease;
  color: var(--gray-6);
}
.header-search-btn:hover { background: var(--gray-3); color: var(--color-dark); }
.header-cta {
  padding: 10px 24px;
  background: var(--color-dark);
  color: var(--white) !important;
  border-radius: var(--border-radius-max);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--animation-duration) ease;
}
.header-cta:hover { background: var(--color-primary); color: var(--white) !important; }
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: all var(--animation-duration) ease;
}

/* ====== Hero Section ====== */
.hero-section {
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-slider { position: relative; height: 620px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,33,41,0.55) 0%, rgba(29,33,41,0.15) 60%, transparent 100%);
}
.hero-content {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 calc((100vw - var(--container-max))/2 + 40px);
  color: var(--white);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.85;
}
.hero-tag::before { content: ''; width: 24px; height: 2px; background: var(--white); }
.hero-title { font-size: 48px; font-weight: 700; line-height: 1.15; margin-bottom: 16px; max-width: 520px; }
.hero-desc { font-size: 16px; opacity: 0.8; line-height: 1.7; max-width: 440px; margin-bottom: 32px; font-weight: 300; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--color-dark) !important;
  border-radius: var(--border-radius-max);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--animation-duration) ease;
  width: fit-content;
}
.hero-btn:hover {
  background: var(--color-primary);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56,88,246,0.3);
}
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--animation-duration) ease;
  border: none;
}
.hero-dot.active { background: var(--white); width: 32px; border-radius: 5px; }

/* ====== Section Common ====== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-label::before, .section-label::after {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 1px;
}
.section-title { font-size: 36px; font-weight: 700; color: var(--color-dark); line-height: 1.3; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--color-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ====== Categories ====== */
.categories-section { background: var(--white); }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(29,33,41,0.7) 0%, rgba(29,33,41,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
}
.category-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.category-count { font-size: 12px; opacity: 0.75; }
.category-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--animation-duration) ease;
  opacity: 0;
  transform: translateY(8px);
}
.category-card:hover .category-arrow { opacity: 1; transform: translateY(0); }

/* ====== Products Grid ====== */
.products-section { background: var(--bg-body); }
.products-grid { display: grid; gap: 24px; }
.product-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--animation-duration) ease;
  border: 1px solid var(--card-border-color);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--border-radius-max);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-new { background: var(--color-primary); color: var(--white); }
.tag-hot { background: linear-gradient(135deg, #FF7B51, #FF3E3E); color: var(--white); }
.tag-sale { background: var(--green); color: var(--white); }
.product-info { padding: 20px; }
.product-category {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.product-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title a { color: var(--color-dark); }
.product-title a:hover { color: var(--color-primary); }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.product-price .old { font-size: 14px; color: var(--color-muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.product-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: all var(--animation-duration) ease;
}
.product-action:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--white); }

/* ====== Stats Section ====== */
.stats-section { background: var(--color-dark); color: var(--white); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 14px; color: var(--gray-4); }

/* ====== Services ====== */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  transition: all var(--animation-duration) ease;
  cursor: pointer;
}
.service-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 24px rgba(56,88,246,0.08); transform: translateY(-2px); }
.service-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px var(--shadow-1);
  color: var(--color-primary);
}
.service-title { font-size: 18px; font-weight: 600; color: var(--color-dark); margin-bottom: 6px; }
.service-desc { font-size: 14px; color: var(--color-muted); line-height: 1.6; }

/* ====== CTA Banner ====== */
.cta-banner { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.cta-inner { position: relative; border-radius: var(--border-radius-lg); overflow: hidden; height: 380px; }
.cta-bg { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,33,41,0.65) 0%, rgba(29,33,41,0.1) 70%); }
.cta-content {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  max-width: 440px;
}
.cta-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-bottom: 16px; }
.cta-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--color-dark) !important;
  border-radius: var(--border-radius-max);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--animation-duration) ease;
}
.cta-btn:hover { background: var(--color-primary); color: var(--white) !important; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: var(--container-max); margin: 24px auto 0; padding: 0 40px; }
.cta-grid .cta-inner { height: 280px; }
.cta-grid .cta-content { left: 40px; }
.cta-grid .cta-title { font-size: 24px; }

/* ====== Blog Section ====== */
.blog-section { background: var(--white); }
.blog-grid { display: grid; gap: 24px; }
.blog-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border-color);
  transition: all var(--animation-duration) ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--color-muted); }
.blog-meta .divider { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-4); }
.blog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-title a { color: var(--color-dark); }
.blog-title a:hover { color: var(--color-primary); }
.blog-excerpt {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== Newsletter ====== */
.newsletter-section { background: var(--bg-body); text-align: center; padding: 80px 0; }
.newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 28px auto 0;
  border-radius: var(--border-radius-max);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--border-light);
}
.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-dark);
}
.newsletter-form input::placeholder { color: var(--color-muted); }
.newsletter-form button {
  padding: 16px 32px;
  background: var(--color-primary);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--animation-duration) ease;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--blue-2); }

/* ====== Footer ====== */
.site-footer { background: var(--color-dark); color: var(--gray-4); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--gray-5); margin-bottom: 20px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-4);
  transition: all var(--animation-duration) ease;
  font-size: 14px;
}
.footer-social a:hover { background: var(--color-primary); color: var(--white); }
.footer-col-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: var(--gray-5); transition: all var(--animation-duration) ease; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
  color: var(--gray-5);
}

/* ====== Content Layout ====== */
.content-layout { display: flex; gap: 40px; }
.content-layout.has-sidebar .main-content { flex: 1; min-width: 0; }
.content-layout.sidebar-right .sidebar { width: 300px; flex-shrink: 0; }
.content-layout.sidebar-left .sidebar { width: 300px; flex-shrink: 0; order: -1; }
.sidebar .widget { margin-bottom: 32px; padding: 24px; background: var(--card-bg); border-radius: var(--border-radius-lg); border: 1px solid var(--card-border-color); }
.widget-title { font-size: 16px; font-weight: 600; color: var(--color-dark); margin-bottom: 16px; }

/* ====== Single Post ====== */
.single-post .post-header { margin-bottom: 32px; }
.single-post .post-title { font-size: 36px; font-weight: 700; line-height: 1.3; color: var(--color-dark); }
.post-featured-image { margin-bottom: 32px; border-radius: var(--border-radius-lg); overflow: hidden; }
.post-content { font-size: 16px; line-height: 1.8; color: var(--gray-6); }
.post-content h2, .post-content h3, .post-content h4 { margin: 1.5em 0 0.5em; color: var(--color-dark); font-weight: 600; }
.post-content p { margin-bottom: 1.2em; }
.post-content img { border-radius: var(--border-radius-md); }
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--bg-light);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-style: italic;
}
.post-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags-label { font-weight: 600; color: var(--color-dark); margin-right: 8px; }
.post-tags a {
  padding: 6px 16px;
  background: var(--bg-light);
  border-radius: var(--border-radius-max);
  font-size: 13px;
  color: var(--gray-6);
  transition: all var(--animation-duration) ease;
}
.post-tags a:hover { background: var(--color-primary); color: var(--white); }
.post-navigation { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; }
.post-navigation a { font-size: 14px; color: var(--gray-6); }
.post-navigation a:hover { color: var(--color-primary); }
.post-navigation .nav-subtitle { display: block; font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.post-navigation .nav-title { font-weight: 500; }
.post-comments { margin-top: 40px; }

/* ====== Comments ====== */
.comments-area { margin-top: 40px; }
.comments-title { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.comment-list { margin-bottom: 32px; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.comment-list .avatar { border-radius: 50%; margin-right: 12px; }
.comment-author { font-weight: 600; color: var(--color-dark); }
.comment-meta { font-size: 12px; color: var(--color-muted); margin-bottom: 8px; }
.comment-content p { margin-bottom: 8px; }
.comment-reply-link { font-size: 13px; color: var(--color-primary); }
.no-comments { text-align: center; padding: 24px; color: var(--color-muted); }

/* ====== 404 Page ====== */
.no-results { text-align: center; padding: 60px 20px; }
.no-results .search-form { max-width: 400px; margin: 24px auto 0; display: flex; gap: 8px; }
.no-results .search-field {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-max);
  font-size: 14px;
  outline: none;
}
.no-results .search-submit {
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-max);
  cursor: pointer;
}

/* ====== Search Overlay ====== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,33,41,0.85);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: 100%; max-width: 640px; transform: translateY(-20px); transition: transform 0.4s ease; }
.search-overlay.open .search-box { transform: translateY(0); }
.search-input-wrap { display: flex; border-bottom: 2px solid rgba(255,255,255,0.3); padding-bottom: 12px; }
.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 32px;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.search-close {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  transition: color var(--animation-duration) ease;
}
.search-close:hover { color: var(--white); }

/* ====== Mobile Menu ====== */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 20px;
  z-index: 999;
  display: none;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-6);
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-primary); }

/* ====== Back to Top ====== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-6);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--animation-duration) ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary); color: var(--white); border-color: var(--color-primary); }

/* ====== Pagination ====== */
.pagination { margin-top: 40px; text-align: center; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.nav-links .page-numbers {
  padding: 10px 16px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all var(--animation-duration) ease;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  background: var(--color-primary);
  color: var(--white);
  border-color: var(--color-primary);
}

/* ====== Animations ====== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ====== Responsive ====== */
@media (max-width: 1200px) {
  .hero-content { padding-left: 40px !important; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .content-layout.has-sidebar { flex-direction: column; }
  .content-layout .sidebar { width: 100% !important; order: 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero-slider { height: 480px; }
  .hero-content { width: 100% !important; padding: 40px !important; }
  .hero-title { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 36px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-inner { height: 280px; }
  .cta-content { left: 24px !important; }
  .cta-title { font-size: 24px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-banner, .cta-grid { padding: 0 20px; }
}


/* ====== Language Switcher ====== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gray-5, #e5e6eb);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-2, #4e5969);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
  background: transparent;
  margin-right: 8px;
}
.lang-switch:hover {
  border-color: var(--color-primary, #3858F6);
  color: var(--color-primary, #3858F6);
  background: rgba(56, 88, 246, 0.04);
}
.lang-switch__label {
  line-height: 1;
}

/* Mobile nav lang switch */
.mobile-nav .lang-switch {
  display: inline-flex;
  margin: 16px 0 0;
  width: auto;
  padding: 0 16px;
  height: 40px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .lang-switch {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
}
