/* ============================================
   Andoer Brand Affiliate Site — styles.css
   Mobile-first, zero dependencies
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-alt: #111111;
  --accent: #6c63ff;
  --accent-light: rgba(108, 99, 255, 0.12);
  --text: #ffffff;
  --text-muted: #999999;
  --border: #2a2a2a;
  --max-w: 1200px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Screen reader only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s, transform .2s, background .2s;
  text-align: center;
  border: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Section spacing ── */
.section-pad {
  padding: 4rem 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: .6rem;
  text-align: center;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .95rem;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  background-color: var(--bg-dark);
  background-image: url('image/andoer_background_head.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,13,13,.88) 0%,
    rgba(13,13,13,.72) 55%,
    rgba(13,13,13,.45) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .3rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(108,99,255,.3);
  margin-bottom: 1.25rem;
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.1rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-keywords {
  font-size: .8rem;
  color: #555;
  letter-spacing: .5px;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stats-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
}

.stats-item {
  display: flex;
  align-items: baseline;
  gap: .4rem;
}

.stats-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stats-label {
  font-size: .9rem;
  color: var(--text-muted);
}

.stats-divider {
  color: var(--border);
  font-size: 1.4rem;
  user-select: none;
}

/* ── Categories Grid ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  transition: border-color .2s, transform .2s;
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cat-icon {
  color: var(--accent);
  opacity: .9;
}

.cat-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.cat-link {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
  transition: opacity .2s;
  margin-top: auto;
}

.cat-link:hover {
  opacity: .75;
}

/* ── Best Sellers ── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color .2s, transform .2s;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-badge {
  display: inline-block;
  background: rgba(108,99,255,.15);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .25rem .65rem;
  border-radius: 999px;
  align-self: flex-start;
}

.product-badge--alt {
  background: rgba(255,193,7,.12);
  color: #ffc107;
}

.product-badge--green {
  background: rgba(76,175,80,.12);
  color: #4caf50;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.product-desc {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.stars {
  color: #ffc107;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.rating-text {
  color: var(--text-muted);
  font-size: .85rem;
}

/* ── Product image ── */
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.product-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: rgba(108,99,255,.6);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.product-img-placeholder svg {
  opacity: .4;
  color: var(--accent);
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 10px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-text {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* ── Brand Story ── */
.brand-story {
  background-color: var(--bg-alt) !important;
  background-image: url('image/andoer_about.webp') !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.brand-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .82);
  pointer-events: none;
}

.brand-story-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.brand-story-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.brand-story-content p {
  color: rgba(200,200,200,.9);
  font-size: 1rem;
  line-height: 1.75;
}

.brand-story-content strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.review-stars {
  color: #ffc107;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  quotes: none;
}

.review-footer {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: .25rem;
}

.review-name {
  font-weight: 700;
  font-size: .95rem;
}

.review-role {
  color: var(--text-muted);
  font-size: .8rem;
}

/* ── FAQ ── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: color .2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .2s;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  opacity: .8;
}

/* ── Contact Bar ── */
.contact-bar {
  background: linear-gradient(135deg, #11102a 0%, #0d0d1f 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.contact-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  text-align: center;
}

.contact-bar-text {
  color: var(--text-muted);
  font-size: .95rem;
}

.contact-bar-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  transition: opacity .2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-bar-link:hover {
  opacity: .8;
}

@media (min-width: 768px) {
  .contact-bar-inner {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    text-align: left;
  }
}

/* ── Footer email ── */
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  transition: opacity .2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-email:hover {
  opacity: .8;
}

/* ── Subscribe ── */
.subscribe-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.subscribe-sub {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.subscribe-input {
  width: 100%;
  padding: .85rem 1.25rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.subscribe-input:focus {
  outline: none;
  border-color: var(--accent);
}

.subscribe-input::placeholder {
  color: var(--text-muted);
}

.subscribe-btn {
  width: 100%;
}

.subscribe-note {
  color: #555;
  font-size: .8rem;
  margin-top: .75rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: .5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.footer-nav h3,
.footer-social-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: .85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: .95rem;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--text);
}

.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .9rem;
  transition: color .2s;
  padding: .4rem .7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: .8rem;
}

.footer-disclaimer {
  color: #555;
  font-size: .75rem;
}

.footer-disclaimer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Mobile hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-cta {
  display: none;
}

/* ============================================
   Mobile only — max 767px
   ============================================ */
@media (max-width: 767px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,13,13,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
    backdrop-filter: blur(12px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
    color: var(--text);
  }

  .nav-mobile-cta {
    display: block;
    margin-top: .5rem;
  }

  /* Hero mobile */
  .hero {
    padding: 3.5rem 0 3rem;
    background-position: 70% center;
  }

  .hero::before {
    background: rgba(13,13,13,.78);
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  /* Stats */
  .stats-list {
    gap: .75rem 1.25rem;
  }

  .stats-num {
    font-size: 1.3rem;
  }

  /* Categories — 1 col on very small */
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }

  /* Section title */
  .section-title {
    font-size: 1.6rem;
  }

  /* Brand story mobile */
  .brand-story {
    background-position: center top;
  }

  /* Products — 1 col on mobile */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Reviews — 1 col on mobile */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* Features — 1 col on mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .4rem;
    text-align: center;
  }
}

/* ============================================
   Tablet — 480px+
   ============================================ */
@media (min-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Tablet & Desktop — 768px+
   ============================================ */
@media (min-width: 768px) {

  .section-pad {
    padding: 5.5rem 0;
  }

  /* Nav */
  .nav-hamburger {
    display: none;
  }

  .nav-cta-desktop {
    display: inline-block;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: .95rem;
    color: var(--text-muted);
  }

  .nav-mobile-cta {
    display: none;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Reviews */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Subscribe form */
  .subscribe-form {
    flex-direction: row;
  }

  .subscribe-input {
    flex: 1;
  }

  .subscribe-btn {
    width: auto;
    flex-shrink: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 2fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================
   Desktop — 1024px+
   ============================================ */
@media (min-width: 1024px) {
  .hero {
    padding: 7rem 0 5.5rem;
    background-position: center center;
  }

  .hero::before {
    background: linear-gradient(
      to right,
      rgba(13,13,13,.85) 0%,
      rgba(13,13,13,.6) 50%,
      rgba(13,13,13,.3) 100%
    );
  }

  .hero-inner {
    max-width: 700px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* ============================================
   Wide — 1280px+
   ============================================ */
@media (min-width: 1280px) {
  .hero {
    padding: 8rem 0 6.5rem;
    min-height: 560px;
    display: flex;
    align-items: center;
  }
}
