/* ============================================================
   Qidian Pet — Main Stylesheet
   Brand colors: Navy #3D3B8E | Orange #F08C1A | Light bg #EEF3F8
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #3D3B8E;
  --navy-dark: #2C2A6E;
  --orange:  #F08C1A;
  --orange-dark: #D4780F;
  --white:   #FFFFFF;
  --bg-light: #EEF3F8;
  --bg-section: #F7F9FC;
  --text:    #2B2B2B;
  --text-muted: #666;
  --border:  #DDE3ED;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE57;
  --radius:  8px;
  --shadow:  0 2px 16px rgba(61,59,142,0.10);
  --shadow-card: 0 4px 24px rgba(61,59,142,0.12);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --font-main: 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section { padding: 72px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}
.section-cta { text-align: center; margin-top: 40px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  color: var(--white);
}
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 7px 16px; font-size: 0.875rem; }

/* ---- Top Bar ---- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 8px 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.logo img { height: 48px; width: auto; }

.main-nav { flex: 1; }
.main-nav > ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--navy);
  background: var(--bg-light);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 260px;
  padding: 8px 0;
  z-index: 200;
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--navy);
}
.has-dropdown:hover .dropdown { display: block; }

.nav-cta { margin-left: auto; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #dce6f5 100%);
  padding: 80px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--border);
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--navy);
  padding: 32px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  text-align: center;
  color: var(--white);
}
.trust-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}
.trust-item span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---- Products Grid ---- */
.featured-products { background: var(--white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--white);
}
.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.product-card a { display: block; color: var(--text); }
.product-card a:hover { color: var(--text); }
.product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-info { padding: 16px; }
.product-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ---- Why Us ---- */
.why-us { background: var(--bg-section); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-item:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.why-icon { font-size: 2.2rem; margin-bottom: 16px; }
.why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.why-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- OEM Highlight ---- */
.oem-highlight { background: var(--white); }
.oem-highlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.oem-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}
.oem-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}
.oem-options {
  margin-bottom: 32px;
}
.oem-options li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.oem-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-light);
}

/* ---- How We Work ---- */
.how-we-work { background: var(--bg-section); }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.step {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  width: 160px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.step p { font-size: 0.8rem; color: var(--text-muted); }
.step-arrow {
  font-size: 1.5rem;
  color: var(--orange);
  align-self: center;
  padding-bottom: 20px;
}

/* ---- Contact CTA ---- */
.contact-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.contact-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.contact-cta-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.contact-cta-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.contact-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-info {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 28px 32px;
  color: var(--white);
  min-width: 260px;
}
.contact-info p { margin-bottom: 8px; font-size: 0.95rem; }
.contact-info strong { color: var(--orange); }

/* ---- Footer ---- */
.site-footer { background: #1A1A3E; color: rgba(255,255,255,0.8); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand img { margin-bottom: 12px; filter: brightness(1.1); }
.footer-brand p { font-size: 0.85rem; margin-bottom: 4px; opacity: 0.75; }
.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-contact p { font-size: 0.875rem; margin-bottom: 8px; opacity: 0.8; }
.footer-contact .btn { margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.8rem; opacity: 0.6; text-align: center; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--orange); }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: background var(--transition), transform var(--transition);
}
.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.1);
}

/* ---- Product Detail Page ---- */
.product-detail { padding: 60px 0; }
.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-gallery { position: sticky; top: 90px; }
.product-main-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  aspect-ratio: 1;
  background: var(--bg-light);
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-thumbs img:hover,
.product-thumbs img.active { border-color: var(--orange); }

.product-info-panel h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}
.product-highlights { margin-bottom: 28px; }
.product-highlights li {
  padding: 5px 0;
  font-size: 0.95rem;
  color: var(--text);
}
.product-highlights li::before { content: "✓ "; color: var(--orange); font-weight: 700; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-table th {
  background: var(--bg-light);
  color: var(--navy);
  font-weight: 700;
  width: 40%;
}
.spec-table td { color: var(--text); }

.product-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.swatch:hover, .swatch.active { border-color: var(--navy); transform: scale(1.15); }

/* ---- About / OEM / Contact page generics ---- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #dce6f5 100%);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--orange); }

/* ---- Contact Form ---- */
.contact-form-section { background: var(--bg-section); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.required { color: var(--orange); }

/* ---- OEM Process ---- */
.oem-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.process-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.process-content { flex: 1; }
.process-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.process-content p { font-size: 0.9rem; color: var(--text-muted); }
.process-time {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  background: rgba(240,140,26,0.1);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform var(--transition);
  min-width: 20px;
  text-align: center;
}
.faq-item[open] summary { background: var(--bg-light); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 4px 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Legal / Privacy content ---- */
.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal-content ul {
  margin: 0 0 12px 20px;
  list-style: disc;
}
.legal-content ul li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.6;
}
.legal-content a { color: var(--navy); text-decoration: underline; }
.legal-content a:hover { color: var(--orange); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { display: none; }
  .hero-text h1 { font-size: 1.75rem; }
  .trust-bar-inner { gap: 20px; }
  .trust-item strong { font-size: 1.4rem; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .oem-highlight-inner { grid-template-columns: 1fr; }
  .oem-image { display: none; }
  .contact-cta-inner { grid-template-columns: 1fr; }
  .contact-info { min-width: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-inner { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }

  .main-nav, .nav-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .main-nav.open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .main-nav.open > ul { flex-direction: column; gap: 0; }
  .main-nav.open > ul > li > a { padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .contact-cta-btns { flex-direction: column; }
  .contact-cta-btns .btn { width: 100%; justify-content: center; }
}
