/* ============================================
   Ander Lighting Clone - Main Stylesheet
   1:1 Clone of www.anderlighting.com
   ============================================ */

/* CSS Variables - matching original site */
:root {
  --main-color: #E87826;
  --second-color: #2A4A8B;
  --text-color: #252627;
  --text-light: #72767C;
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --border-color: #e4e7ed;
  --font-title: 'Jixie16-Bold', 'Arial Black', sans-serif;
  --font-body: 'jixie16-Regular', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: var(--main-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ HEADER ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-light);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-top-right a {
  color: var(--text-light);
  font-size: 13px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--main-color);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--main-color);
  transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 60%;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icons a,
.header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 18px;
  padding: 5px;
  transition: color 0.3s;
}

.header-icons a:hover,
.header-icons button:hover {
  color: var(--main-color);
}

/* Search */
.search-box {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.search-box.active {
  display: flex;
}

.search-box-inner {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
}

.search-box-inner input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--main-color);
  border-radius: 4px;
  font-size: 16px;
  outline: none;
}

/* ============ BANNER / HERO ============ */
.hero-banner {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-slide-content h1 {
  font-family: var(--font-title);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-slide-content p {
  font-size: 22px;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-block;
  padding: 14px 50px;
  background: var(--main-color);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 1px solid var(--main-color);
}

.hero-btn:hover {
  background: #fff;
  color: var(--main-color);
}

/* Banner dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--main-color);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background: var(--main-color);
}

/* ============ ABOUT SECTION ============ */
.section-about {
  padding: 80px 0;
  background: #fff;
}

.section-title {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 400;
  line-height: 54px;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 30px;
}

.about-text {
  font-size: 18px;
  line-height: 38px;
  text-align: left;
  color: var(--text-color);
  max-width: 1000px;
  margin: 0 auto 50px;
  text-indent: 2em;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.about-images img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}

/* Showcase section */
.showcase {
  padding: 40px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.showcase-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ============ CATEGORIES ============ */
.section-categories {
  padding: 80px 0;
  background: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.category-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  transition: background 0.3s;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(232,120,38,0.85) 0%, rgba(232,120,38,0.3) 60%);
}

.category-name {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.category-link {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  transition: color 0.3s;
}

.category-card:hover .category-link {
  color: #fff;
}

/* ============ NEWS SECTION ============ */
.section-news {
  padding: 80px 0;
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.news-card {
  background: #fff;
  padding: 25px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--main-color);
}

.news-date {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.news-arrow {
  color: #000;
  font-size: 22px;
  transition: color 0.3s;
}

.news-card:hover .news-arrow {
  color: var(--main-color);
}

/* ============ FOOTER ============ */
.site-footer {
  background: #f8f8f8;
  border-top: 1px solid var(--border-color);
}

.footer-main {
  padding: 50px 0 30px;
  background-image: url('../images/footer-bg.png');
  background-size: cover;
  background-position: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: 30px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-info p {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-info a {
  color: var(--text-color);
}

.footer-info a:hover {
  color: var(--main-color);
}

.footer-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
}

.footer-links a:hover {
  color: var(--main-color);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eee;
  color: rgba(251, 97, 2, 1);
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--main-color);
  color: #fff;
}

.footer-subscribe {
  margin-top: 10px;
}

.footer-subscribe input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
}

.footer-subscribe-box {
  display: flex;
}

.footer-subscribe button {
  padding: 10px 20px;
  background: var(--main-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 0 4px 4px 0;
  transition: background 0.3s;
}

.footer-subscribe button:hover {
  background: #d06a1f;
}

.footer-subscribe label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-color);
  margin-top: 10px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

/* ============ PRODUCTS PAGE ============ */
.page-banner {
  height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--second-color) 0%, var(--main-color) 100%);
}

.page-banner h1 {
  color: #fff;
  font-family: var(--font-title);
  font-size: 48px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--main-color);
}

.products-section {
  padding: 40px 0 80px;
}

.products-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.sidebar-category {
  margin-bottom: 30px;
}

.sidebar-category h3 {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main-color);
  margin-bottom: 10px;
}

.sidebar-category a {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: var(--text-color);
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

.sidebar-category a:hover,
.sidebar-category a.active {
  color: var(--main-color);
  border-left-color: var(--main-color);
  background: rgba(232,120,38,0.05);
}

.products-main {
  flex: 1;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.products-count {
  font-size: 14px;
  color: var(--text-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: var(--main-color);
  transform: translateY(-2px);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.product-card-body {
  padding: 15px;
}

.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-model {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-color);
}

.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(232,120,38,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-overlay a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: var(--main-color);
  font-size: 18px;
  transition: all 0.3s;
}

.product-card-overlay a:hover {
  background: var(--second-color);
  color: #fff;
}

/* ============ ABOUT PAGE ============ */
.about-page-section {
  padding: 60px 0;
}

.about-page-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-page-content p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 20px;
  text-indent: 2em;
}

/* ============ CONTACT PAGE ============ */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--text-color);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,120,38,0.1);
  color: var(--main-color);
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.contact-info-text p {
  font-size: 16px;
  color: var(--text-color);
}

.contact-form h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--main-color);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 12px 40px;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #d06a1f;
}

/* ============ DOWNLOAD PAGE ============ */
.download-section {
  padding: 60px 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.download-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--main-color);
}

.download-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,120,38,0.1);
  color: var(--main-color);
  border-radius: 8px;
  font-size: 28px;
  flex-shrink: 0;
}

.download-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.download-info p {
  font-size: 13px;
  color: var(--text-light);
}

.download-btn {
  margin-left: auto;
  padding: 8px 20px;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.download-btn:hover {
  background: #d06a1f;
}

/* ============ SIDE FLOAT ============ */
.float-panel {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,26,74,0.1);
  cursor: pointer;
  font-size: 24px;
  color: #000;
  transition: all 0.3s;
  border: none;
}

.float-btn:hover {
  color: var(--main-color);
  box-shadow: 0 4px 16px rgba(0,26,74,0.15);
}

.float-btn.whatsapp {
  color: #25D366;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 400px;
  }
  
  .hero-slide-content h1 {
    font-size: 36px;
  }
  
  .hero-slide-content p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .about-images {
    grid-template-columns: 1fr;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .header-main {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  
  .main-nav a {
    padding: 10px 15px;
    white-space: nowrap;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 300px;
  }
  
  .hero-slide-content h1 {
    font-size: 28px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btn {
    padding: 10px 30px;
    font-size: 14px;
  }
}
