/* ============================================
   POWERPLUGS — Master Stylesheet
   v1.0 · Production-ready
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Brand colors */
  --dark: #1A1D23;
  --dark-2: #2A2D33;
  --dark-3: #0F1115;
  --accent: #0066FF;
  --accent-dark: #0052CC;
  --accent-light: #E6F0FF;
  --accent-tint: rgba(0, 102, 255, 0.08);
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --light: #F5F5F7;
  --bg: #FAFAFA;
  --border: #E5E7EB;
  --border-2: #D1D5DB;
  --success: #059669;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --error: #DC2626;
  --error-light: #FEE2E2;
  --trustpilot: #00B67A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: white;
  line-height: 1.5;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

html { overflow-x: clip; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent); }

img, svg, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  section { padding: 80px 0; }
}

/* ============================================
   TOP USP BAR
   ============================================ */

.usp-bar {
  background: var(--dark);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 0;
  position: relative;
  overflow: hidden;
}

.usp-bar .container {
  display: flex;
  overflow: hidden;
  padding: 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.usp-bar .marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  animation: usp-marquee 32s linear infinite;
}

.usp-bar .container:hover .marquee-track { animation-play-state: paused; }

.usp-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  white-space: nowrap;
}

.usp-bar span::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

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

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

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: var(--dark);
  flex-shrink: 0;
}

.logo:hover { color: var(--dark); }

.logo .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 5px;
  position: relative;
  flex-shrink: 0;
}

.logo .dot::after {
  content: '';
  position: absolute;
  inset: 30%;
  background: white;
  border-radius: 50%;
}

/* Nav */
.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--dark);
  position: relative;
  padding: 4px 0;
}

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

.nav a.active {
  color: var(--accent);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav .has-dropdown::after {
  content: " ▾";
  font-size: 9px;
  opacity: 0.5;
  margin-left: 2px;
}

/* Header actions (icons) */
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  color: var(--dark);
  position: relative;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--border);
  color: var(--dark);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--light);
  color: var(--dark);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.hamburger:hover { background: var(--border); }

.hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--dark);
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--dark);
}

.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }

.hamburger { margin-left: 6px; }

@media (max-width: 968px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; cursor: pointer; padding: 0; }
  .header-inner { gap: 0; }
  .header-actions { margin-left: auto; gap: 6px; }
}

/* Mobile drawer */
.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 998;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 999;
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.mobile-nav-close {
  background: transparent; border: 0; cursor: pointer;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; color: var(--dark);
}
.mobile-nav-links {
  display: flex; flex-direction: column;
  padding: 12px 8px; gap: 2px;
  overflow-y: auto;
}
.mobile-nav-links a {
  display: block;
  padding: 14px 16px;
  font-size: 17px; font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-radius: 10px;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active { background: #f5f7fa; color: var(--accent); }

.mobile-nav-footer {
  margin-top: auto;
  padding: 18px 20px;
  border-top: 1px solid var(--border, #e5e7eb);
  display: flex; gap: 10px;
}
.mobile-nav-footer .btn { flex: 1; }

body.mobile-nav-open { overflow: hidden; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover {
  background: #000;
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}

.btn-secondary:hover {
  background: var(--dark);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-xl {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-arrow::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.15s;
}

.btn-arrow:hover::after {
  transform: translateX(2px);
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */

h1, h2, h3, h4, h5 {
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 44px;
    letter-spacing: -2px;
  }
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .section-sub { font-size: 18px; }
}

/* ============================================
   TRUSTPILOT
   ============================================ */

.trustpilot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.trustpilot-stars {
  display: inline-flex;
  gap: 2px;
}

.trustpilot-stars .star {
  width: 18px;
  height: 18px;
  background: var(--trustpilot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  border-radius: 1px;
}

.trustpilot-stars .star.empty {
  background: var(--border);
}

/* ============================================
   TRUST STRIP
   ============================================ */

.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
}

.trust-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.trust-item-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.trust-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 968px) {
  .trust-strip .container {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .trust-strip .container::-webkit-scrollbar { display: none; }
  .trust-item { flex-shrink: 0; }
}

/* ============================================
   PRODUCT CARD
   ============================================ */

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  display: block;
}

.product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
  border-color: var(--border-2);
}

.product-img {
  background: var(--light);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

.product-img svg,
.product-img img {
  height: 75%;
  width: auto;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-badge.hot { background: var(--accent); }
.product-badge.new { background: var(--success); }
.product-badge.sale { background: var(--error); }

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: var(--dark);
  line-height: 1.25;
}

.product-specs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.product-spec {
  font-size: 11px;
  background: var(--light);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--dark);
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.product-price-strike {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 500;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.product-rating::before {
  content: "★";
  color: var(--warning);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: white;
  font-size: 26px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  font-size: 14px;
  max-width: 280px;
  line-height: 1.55;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.15s;
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
}

.footer-social svg { width: 16px; height: 16px; }

.footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: white;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

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

.footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}

.payment-methods {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .footer { padding: 56px 0 24px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   PAGES — SPECIFIC PATTERNS
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Page hero pattern */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--bg) 0%, white 100%);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .page-hero { padding: 72px 0 56px; }
  .page-hero h1 {
    font-size: 52px;
    letter-spacing: -2px;
  }
}

.page-hero .lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.55;
}

/* Callouts */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.55;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.callout-warn {
  background: var(--warning-light);
  border-left-color: var(--warning);
}

.callout-warn strong { color: #92400E; }

/* Accordion (FAQ) */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--dark);
  gap: 16px;
  line-height: 1.4;
}

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

.faq-q .arrow {
  font-size: 20px;
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* Mobile responsive base */
@media (max-width: 768px) {
  body { font-size: 14px; }
}
