/* ============================================
   SWAG Homepage - Custom Styles
   Matching bluettipower.com layout & design
   ============================================ */

/* === Variables === */
:root {
  --bluetti-blue: #0071E3;
  --bluetti-blue-hover: #0066CC;
  --bluetti-blue-dark: #005AB6;
  --bluetti-green: #207233;
  --bluetti-green-light: #42B15E;
  --bluetti-orange: #FF9500;
  --bluetti-bg-light: #F5F5F7;
  --bluetti-bg-card: #F8F9FC;
  --bluetti-text-primary: #1A1C1A;
  --bluetti-text-secondary: #6E6E73;
  --bluetti-text-light: #86868B;
  --bluetti-border: #D2D2D7;
  --bluetti-dark-bg: #232F3F;
  --bluetti-sale-bg: #000000;
  --bluetti-white: #FFFFFF;
  --bluetti-tab-bg: #F5F5F7;
  --bluetti-tab-active: #E7E9F1;
  --bluetti-countdown-bg: rgba(0, 113, 227, 1);
  --container-max: 1280px;
}

@font-face {
  font-family: 'Bluetti';
  src: url('/wp-content/themes/astra-child/assets/fonts/BLUETTI_Extrabold_v2.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bluetti';
  src: url('/wp-content/themes/astra-child/assets/fonts/BLUETTI_Bold_v2.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bluetti';
  src: url('/wp-content/themes/astra-child/assets/fonts/BLUETTI_Semibold_v2.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bluetti';
  src: url('/wp-content/themes/astra-child/assets/fonts/BLUETTI_Medium_v2.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bluetti';
  src: url('/wp-content/themes/astra-child/assets/fonts/BLUETTI_Normal_v2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bluetti';
  src: url('/wp-content/themes/astra-child/assets/fonts/BLUETTI_Light_v2.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

.bluetti-home *,
.bluetti-home *::before,
.bluetti-home *::after {
  box-sizing: border-box;
}

.bluetti-home {
  font-family: 'Bluetti', Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bluetti-text-primary);
  overflow-x: hidden;
}

.bluetti-home img {
  max-width: 100%;
  height: auto;
}

.bluetti-home a {
  text-decoration: none;
  color: inherit;
}

.bluetti-home .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .bluetti-home .container {
    padding: 0 40px;
  }
}

/* === Announcement Bar === */
.bluetti-announcement-bar {
  background: #000000;
  color: #FFFFFF;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}
.bluetti-announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bluetti-announcement-bar .announcement-text {
  font-weight: 500;
}
.bluetti-announcement-bar .announcement-link {
  color: var(--bluetti-orange);
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.bluetti-announcement-bar .announcement-link:hover {
  opacity: 0.8;
}
.announcement-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-item .countdown-number {
  background: #FFFFFF;
  color: var(--bluetti-orange);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}
.countdown-item .countdown-label {
  font-size: 8px;
  color: #FFFFFF;
  line-height: 1;
  margin-top: 2px;
}
.countdown-separator {
  font-weight: 700;
  font-size: 14px;
  margin: 0 2px;
  line-height: 24px;
}
@media (max-width: 768px) {
  .announcement-countdown { margin-left: 0; }
}

/* === Hero Swiper === */
.bluetti-hero-swiper {
  position: relative;
}
.bluetti-hero-swiper .swiper-slide {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-img.desktop { display: block; }
.hero-slide-img.mobile { display: none; }
@media (max-width: 1023px) {
  .hero-slide-img.desktop { display: none; }
  .hero-slide-img.mobile { display: block; }
  .bluetti-hero-swiper .swiper-slide { height: 70vh; min-height: 400px; }
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.67) 0%, rgba(75,75,75,0.34) 96%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
  color: #FFFFFF;
}
.hero-content .hero-subtitle {
  font-size: 18px;
  color: var(--bluetti-orange);
  font-weight: 500;
  margin-bottom: 8px;
}
.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.1;
}
.hero-content .hero-desc {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}
.hero-content .hero-countdown-wrapper { margin-bottom: 20px; }
.hero-content .hero-countdown-wrapper .cd-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.hero-content .hero-countdown-wrapper .cd-item { text-align: center; }
.hero-content .hero-countdown-wrapper .cd-item .cd-num {
  background: var(--bluetti-countdown-bg);
  color: #FFFFFF;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 20px; font-weight: 700;
}
.hero-content .hero-countdown-wrapper .cd-item .cd-label {
  font-size: 11px;
  margin-top: 4px;
  color: rgba(255,255,255,0.8);
}
.hero-content .hero-countdown-wrapper .cd-sep {
  font-size: 20px; font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-top: -24px;
}
.hero-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.hero-btn-primary {
  background: #207233;
  color: #FFFFFF;
}
.hero-btn-primary:hover {
  background: #1b662e;
}
.hero-btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}
.hero-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 32px; }
  .hero-content .hero-subtitle { font-size: 15px; }
  .hero-content .hero-desc { font-size: 15px; }
  .hero-content .hero-countdown-wrapper .cd-item .cd-num {
    width: 34px; height: 34px; font-size: 16px;
  }
}
.bluetti-hero-swiper .swiper-pagination-bullet {
  width: 24px; height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
}
.bluetti-hero-swiper .swiper-pagination-bullet-active {
  width: 48px;
  background: rgba(255,255,255,0.3);
}

/* === Stats Marquee === */
.bluetti-stats {
  background: var(--bluetti-bg-light);
  padding: 32px 0;
  overflow: hidden;
}
.bluetti-stats .stats-title {
  font-size: 18px;
  font-weight: 400;
  color: #6E6E73;
  margin-bottom: 20px;
  padding: 0 40px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}
.stats-marquee {
  display: flex;
  overflow: hidden;
}
.stats-track {
  display: flex;
  gap: 60px;
  animation: scrollStats 30s linear infinite;
  flex-shrink: 0;
}
.stats-track:hover {
  animation-play-state: paused;
}
@keyframes scrollStats {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.stat-item .stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  white-space: nowrap;
}
.stat-item .stat-label {
  font-size: 12px;
  color: #6E6E73;
  line-height: 1.3;
  white-space: normal;
}
@media (max-width: 768px) {
  .stat-item .stat-number { font-size: 24px; }
  .stats-track { gap: 40px; }
}

/* === Most Popular === */
.bluetti-popular {
  padding: 48px 0;
  overflow: hidden;
}
.bluetti-popular .section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 28px;
}
.popular-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.popular-tabs::-webkit-scrollbar { display: none; }
.popular-tab {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--bluetti-tab-bg);
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-family: inherit;
}
.popular-tab:hover,
.popular-tab.active {
  background: var(--bluetti-tab-active);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--bluetti-bg-card);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.product-card .product-image {
  text-align: center;
  margin-bottom: 16px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-image img {
  max-height: 180px;
  object-fit: contain;
  mix-blend-mode: darken;
}
.product-card .product-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  width: fit-content;
}
.product-tag.tag-best-seller { background: var(--bluetti-green); color: #FFF; }
.product-tag.tag-save { background: var(--bluetti-orange); color: #FFF; }
.product-tag.tag-new { background: var(--bluetti-blue); color: #FFF; }
.product-card .product-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
}
.product-card .product-params {
  font-size: 13px;
  color: var(--bluetti-text-secondary);
  margin: 0 0 12px;
  line-height: 1.4;
}
.product-card .product-price {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.product-card .product-price .compare-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--bluetti-text-light);
  text-decoration: line-through;
  margin-left: 8px;
}
.product-card .product-btn {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--bluetti-green);
  color: var(--bluetti-green);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.3s;
  font-family: inherit;
  cursor: pointer;
}
.product-card .product-btn:hover {
  background: var(--bluetti-green);
  color: #FFFFFF;
}
.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; }
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .bluetti-popular .section-title { font-size: 24px; }
}

/* === Footer (handled by inline CSS in front-page.php) === */

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* === Power Solutions === */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .solutions-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
.solution-card { background: #fff; border-radius: 16px; padding: 40px 32px; text-align: center; transition: box-shadow 0.3s, transform 0.3s; }
.solution-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.solution-icon { font-size: 48px; margin-bottom: 20px; }
.solution-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: var(--bluetti-text-primary); }
.solution-card p { font-size: 15px; color: var(--bluetti-text-secondary); margin: 0 0 20px; line-height: 1.5; }
.solution-link { color: var(--bluetti-blue); font-weight: 600; font-size: 15px; transition: opacity 0.3s; }
.solution-link:hover { opacity: 0.8; }

/* === User Stories === */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .stories-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
.story-card { background: var(--bluetti-bg-light); border-radius: 16px; padding: 32px; position: relative; }
.story-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bluetti-border); margin-bottom: 16px; overflow: hidden; }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #207233; color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.story-text { font-size: 15px; color: var(--bluetti-text-primary); line-height: 1.6; margin: 0 0 16px; font-style: italic; }
.story-name { font-size: 14px; font-weight: 600; color: var(--bluetti-text-secondary); }

/* === Brand Mission === */
.brand-mission { padding: 60px 0; background: linear-gradient(135deg, #1A1C1A, #2C2E2C); color: #fff; text-align: center; }
.mission-heading { font-size: 36px; font-weight: 800; margin: 0 0 48px; letter-spacing: 2px; }
@media (max-width: 768px) { .mission-heading { font-size: 28px; } }
.mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .mission-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 32px 20px; text-align: center; transition: background 0.3s; }
.mission-card:hover { background: rgba(255,255,255,0.1); }
.mission-icon { font-size: 40px; margin-bottom: 16px; }
.mission-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.mission-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5; margin: 0; }

/* === Community === */
.bluetti-community { padding: 60px 0; background: var(--bluetti-bg-light); }
.community-inner { max-width: 640px; margin: 0 auto; text-align: center; padding: 48px 32px; background: #fff; border-radius: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.community-inner h2 { font-size: 32px; font-weight: 700; margin: 0 0 16px; color: var(--bluetti-text-primary); }
.community-inner p { font-size: 16px; color: var(--bluetti-text-secondary); line-height: 1.5; margin: 0 0 28px; }
.community-btn { display: inline-block; padding: 12px 40px; border-radius: 999px; background: #207233; color: #fff; font-size: 16px; font-weight: 600; transition: background 0.3s; font-family: inherit; border: none; cursor: pointer; }
.community-btn:hover { background: #1b662e; }

/* === Service Guarantees === */
.service-guarantees { padding: 48px 0; background: #fff; }
.guarantees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .guarantees-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .guarantees-grid { grid-template-columns: 1fr; } }
.guarantee-card { text-align: center; padding: 32px 20px; border-radius: 12px; background: var(--bluetti-bg-light); transition: box-shadow 0.3s; }
.guarantee-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.g-icon { font-size: 36px; margin-bottom: 12px; }
.guarantee-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--bluetti-text-primary); }
.guarantee-card p { font-size: 14px; color: var(--bluetti-text-secondary); margin: 0; line-height: 1.4; }