/* =============================================
   GADGETS SHOP - STYLESHEET
   ============================================= */

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

:root {
  --primary:    #2563eb;
  --primary-dk: #1d4ed8;
  --accent:     #10b981;
  --dark:       #111827;
  --gray:       #6b7280;
  --light-gray: #f3f4f6;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}

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

.nav-wa-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .9rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.nav-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }

.active-nav { color: #2563eb !important; font-weight: 700 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 5% 90px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: #93c5fd;
}

.hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  padding: 11px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, border-color .2s;
}

.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ---- STATS ---- */
.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  text-align: center;
  padding: 26px 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-item .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-item .label {
  font-size: .82rem;
  color: var(--gray);
  font-weight: 500;
}

/* ---- SECTION COMMON ---- */
.section {
  padding: 72px 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray);
  font-size: .98rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- FILTER TABS ---- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--light-gray);
  color: var(--gray);
  border: none;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
}

.filter-btn:hover { background: #dbeafe; color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--white); }

/* ---- PRODUCT GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.product-img-wrap {
  position: relative;
  height: 200px;
  background: var(--light-gray);
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

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

.condition-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.condition-badge.good { background: #f59e0b; }

.category-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.9);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.product-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.specs-list {
  list-style: none;
  margin-bottom: 16px;
  flex: 1;
}

.specs-list li {
  font-size: .82rem;
  color: var(--gray);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.specs-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.compare-price {
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: line-through;
}

.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
}

.wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }

.wa-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- HOW IT WORKS ---- */
.how-section {
  background: var(--light-gray);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.step-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: .85rem;
  color: var(--gray);
}

/* ---- CONTACT SECTION ---- */
.contact-section {
  background: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 5%;
}

.contact-section .section-tag {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.contact-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-section p {
  opacity: .75;
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: .98rem;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.contact-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 28px 32px;
  min-width: 200px;
}

.contact-card .icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.contact-card h4 { font-size: .85rem; opacity: .6; font-weight: 500; margin-bottom: 6px; }
.contact-card p { font-size: 1rem; font-weight: 700; opacity: 1; margin: 0; }

.wa-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  padding: 16px 38px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  transition: background .2s, transform .15s, box-shadow .15s;
}

.wa-big-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .45);
}

.wa-big-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 28px 5%;
  font-size: .85rem;
}

footer strong { color: rgba(255,255,255,.8); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  grid-column: 1 / -1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    gap: 16px;
  }
  .hamburger { display: flex; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(even) { border-right: none; }
}
