/* Charge Go Nepal — EV chargers shop page (uses tokens defined in style.css) */

html,
body.shop-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.shop-page {
  background: var(--ink-50);
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
  padding: 0 24px;
  background:
    radial-gradient(circle at 12% -100%, rgba(44, 171, 119, 0.26), transparent 40%),
    var(--ink-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-nav a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background 150ms ease;
}

.shop-nav a:hover,
.shop-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.shop-hero {
  padding: 56px 24px 44px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(44, 171, 119, 0.35), transparent 45%),
    var(--ink-950);
}

.shop-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: var(--green-100);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(18, 168, 102, 0.16);
  border: 1px solid rgba(78, 208, 140, 0.3);
  border-radius: var(--radius-full);
}

.shop-hero h1 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

.shop-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.6;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* Shared section chrome */
.shop-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px;
}

.shop-section-head {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.shop-section-eyebrow {
  display: block;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-section-head h2 {
  margin: 8px 0 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
}

.shop-section-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.shop-category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 44px 0 18px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.shop-category-label:first-of-type {
  margin-top: 0;
}

.shop-category-label i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent-primary);
  font-size: 1.1rem;
  background: var(--green-50);
  border-radius: var(--radius-md);
}

.shop-category-note {
  margin: -10px 0 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-50), #fff);
  border-bottom: 1px solid var(--border-subtle);
}

.product-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 10px;
  color: var(--accent-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--green-50);
  border-radius: var(--radius-full);
}

.product-body h3 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.product-model {
  margin: 2px 0 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  list-style: none;
}

.product-specs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.4;
}

.product-specs i {
  margin-top: 2px;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.product-specs strong {
  color: var(--text-primary);
  font-weight: 700;
}

.product-card .btn {
  margin-top: auto;
}

/* Partners */
.partners-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.partners-marquee {
  --marquee-duration: 32s;
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: partners-scroll var(--marquee-duration) linear infinite;
}

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

.partners-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 168px;
  height: 96px;
  padding: 0 28px;
}

.partners-logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 180ms ease;
}

.partners-logo:hover img {
  filter: grayscale(0) opacity(1);
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}

.partners-note {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* CTA band */
.shop-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 32px 30px;
  background: linear-gradient(120deg, var(--ink-950), var(--ink-800));
  border-radius: var(--radius-xl);
}

.shop-cta h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.shop-cta p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.shop-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.shop-footer {
  padding: 28px 24px 40px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.shop-footer a {
  color: var(--accent-secondary);
}

.shop-footer-copy {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .shop-header {
    padding: 0 12px;
    gap: 8px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-name-sub {
    display: none;
  }

  .shop-nav {
    gap: 2px;
  }

  .shop-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
  }

  .shop-nav a span {
    display: none;
  }

  .shop-nav a i {
    font-size: 1.15rem;
  }
}

@media (max-width: 640px) {
  .shop-hero {
    padding: 40px 18px 32px;
  }

  .shop-section {
    padding: 40px 18px;
  }

  .shop-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
