/*
Theme Name: Electrobaz
Theme URI: https://example.com/electrobaz
Author: Electrobaz
Author URI: https://example.com
Description: Multi‑vendor marketplace theme for robotics, IoT & DIY electronics products in Bangladesh.
Version: 1.0.0
Text Domain: electrobaz
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --eb-primary: #2DBE60;
  --eb-primary-dark: #24954b;
  --eb-bg: #FFFFFF;
  --eb-text: #101010;
  --eb-text-muted: #6b7280;
  --eb-gray: #F7F8FA;
  --eb-error: #E74C3C;
  --eb-radius: 12px;
  --eb-radius-btn: 999px;
  --eb-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --eb-shadow-btn: 0 4px 14px rgba(45, 190, 96, 0.35);
  --eb-border-subtle: #e2e4ea;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--eb-text);
  background-color: var(--eb-bg);
}

a {
  color: var(--eb-primary);
  text-decoration: none;
}

a:hover {
  color: var(--eb-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--eb-text);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

img {
  max-width: 100%;
  height: auto;
}

.eb-container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.eb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--eb-border-subtle);
}

.eb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.eb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--eb-text);
}

.eb-logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--eb-primary), var(--eb-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--eb-shadow-soft);
}

.eb-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.eb-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--eb-radius-btn);
  border: 1px solid transparent;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.eb-btn-primary {
  background: var(--eb-primary);
  color: #fff;
  box-shadow: var(--eb-shadow-btn);
}

.eb-btn-primary:hover {
  background: var(--eb-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 190, 96, 0.4);
}

.eb-btn-secondary {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.eb-btn-secondary:hover {
  background: #2d4a6f;
  transform: translateY(-2px);
  color: #fff;
}

.eb-btn-outline {
  background: #fff;
  border-color: var(--eb-border-subtle);
  color: var(--eb-text);
}

.eb-btn-outline:hover {
  border-color: var(--eb-primary);
  color: var(--eb-primary);
}

.eb-btn-hero {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.eb-btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.eb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(45, 190, 96, 0.1);
  color: var(--eb-primary);
}

.eb-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, #FFE68A, #FFF7C4);
}

.eb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eb-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--eb-shadow-soft);
  font-size: 0.8rem;
}

.eb-hero-content {
  max-width: 36rem;
}

.eb-hero-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
}

.eb-hero-tagline {
  color: var(--eb-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.eb-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eb-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.eb-trust-badge {
  font-size: 0.8rem;
  color: var(--eb-text-muted);
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--eb-radius);
  border: 1px solid var(--eb-border-subtle);
}

.eb-hero-search {
  margin-top: 0;
}

.eb-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eb-card-hero-img {
  padding: 0;
  overflow: hidden;
}

.eb-card-hero-img img {
  display: block;
  width: 100%;
  height: auto;
}

.eb-card-compact .eb-card-title {
  margin-bottom: 0.25rem;
}

.eb-hero-subtitle {
  color: #4b4f5c;
  max-width: 34rem;
}

.eb-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.eb-search-card {
  margin-top: 1.75rem;
  padding: 1rem;
  border-radius: calc(var(--eb-radius) + 2px);
  background: #fff;
  box-shadow: var(--eb-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eb-search-bar {
  display: flex;
  gap: 0.5rem;
}

.eb-search-bar input[type="search"],
.eb-search-bar input[type="text"] {
  flex: 1;
  padding: 0.65rem 0.8rem;
  border-radius: var(--eb-radius);
  border: 1px solid var(--eb-border-subtle);
  font-size: 0.95rem;
}

.eb-search-bar input:focus {
  outline: 2px solid rgba(45, 190, 96, 0.2);
  border-color: var(--eb-primary);
}

.eb-section {
  padding: 3rem 0;
}

.eb-section-desc {
  margin-top: 0.5rem;
  color: var(--eb-text-muted);
  max-width: 42rem;
}

/* Category icon grid */
.eb-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.eb-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--eb-radius);
  background: #fff;
  border: 1px solid var(--eb-border-subtle);
  text-decoration: none;
  color: var(--eb-text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.eb-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eb-shadow-soft);
  border-color: var(--eb-primary);
  color: var(--eb-primary);
}

.eb-cat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.eb-cat-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.eb-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.eb-section-title {
  font-size: 1.4rem;
}

.eb-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.eb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.eb-section-best-sellers ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.eb-card {
  border-radius: var(--eb-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.eb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.eb-card-title {
  font-size: 1rem;
  margin: 0;
}

.eb-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.eb-testimonials {
  background: var(--eb-gray);
}

.eb-footer {
  padding: 2rem 0 1.5rem;
  background: #050816;
  color: #e5e7eb;
  margin-top: 2rem;
}

.eb-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.eb-footer-col-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.eb-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 1rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.eb-dashboard {
  padding: 2.5rem 0;
  background: var(--eb-gray);
}

.eb-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: 1.5rem;
}

.eb-dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eb-dashboard-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--eb-radius);
  font-size: 0.9rem;
  color: #4b5563;
}

.eb-dashboard-link.is-active {
  background: #fff;
  color: var(--eb-primary);
  font-weight: 500;
}

.eb-dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.eb-kpi-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.eb-status-badge {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.eb-status-badge--success {
  background: rgba(45, 190, 96, 0.1);
  color: var(--eb-primary);
}

.eb-status-badge--error {
  background: rgba(231, 76, 60, 0.08);
  color: var(--eb-error);
}

.eb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.eb-table th,
.eb-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
}

.eb-table thead {
  background: #f3f4f6;
}

.eb-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.eb-table tbody tr:hover {
  background: #eef2ff;
}

.eb-pill-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.eb-pill-filter {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--eb-border-subtle);
  background: #fff;
  cursor: pointer;
}

.eb-pill-filter.is-active {
  background: rgba(45, 190, 96, 0.09);
  border-color: var(--eb-primary);
  color: var(--eb-primary);
}

.eb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 0.75rem;
}

.eb-chip--green {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.eb-chip--orange {
  background: rgba(249, 115, 22, 0.13);
  color: #ea580c;
}

.eb-chip--gray {
  background: #e5e7eb;
  color: #374151;
}

.eb-auth-card {
  max-width: 480px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: calc(var(--eb-radius) + 2px);
  box-shadow: var(--eb-shadow-soft);
}

.eb-field {
  margin-bottom: 1rem;
}

.eb-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.eb-field input,
.eb-field select,
.eb-field textarea {
  width: 100%;
  border-radius: var(--eb-radius);
  border: 1px solid var(--eb-border-subtle);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

.eb-field input:focus,
.eb-field select:focus,
.eb-field textarea:focus {
  outline: 2px solid rgba(45, 190, 96, 0.22);
  border-color: var(--eb-primary);
}

.eb-error-text {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--eb-error);
}

.eb-badge-role {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.08);
  color: #1d4ed8;
}

.eb-tagline-inline {
  font-size: 0.85rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.eb-mobile-toggle {
  display: none;
}

@media (max-width: 960px) {
  .eb-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .eb-hero-title {
    font-size: 1.6rem;
  }

  .eb-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .eb-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .eb-header-inner {
    gap: 0.75rem;
  }

  .eb-nav {
    display: none;
  }

  .eb-mobile-toggle {
    display: inline-flex;
  }

  .eb-hero-cta {
    flex-direction: column;
  }

  .eb-hero-trust {
    flex-direction: column;
  }

  .eb-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .eb-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .eb-auth-card {
    margin: 1.5rem 1rem;
    padding: 1.5rem 1.25rem;
  }
}


