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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #FFFFFF;
  --slate: #1E293B;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --emerald: #059669;
  --emerald-light: #ECFDF5;
  --steel: #64748B;
  --light: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.22s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

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

ul { list-style: none; }

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

/* ===== TOP BAR ===== */
.topbar {
  background: var(--slate);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right a.topbar-link {
  display: flex; align-items: center; gap: 5px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--slate);
  text-decoration: none;
}
.logo span { color: var(--blue); }
.logo-icon {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }

/* Search */
.header-search { position: relative; }
.header-search input {
  width: 100%; min-width: 340px;
  padding: 11px 48px 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--slate);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.header-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: var(--white);
}
.header-search button {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--steel);
  display: flex; align-items: center;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; cursor: pointer; text-decoration: none;
  color: var(--slate); font-size: 0.7rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.header-action-btn:hover { background: var(--light); color: var(--blue); }
.header-action-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 2px; right: 6px;
  background: var(--blue); color: white;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== MAIN NAV ===== */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.main-nav .container { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 14px 18px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.nav-link svg { width: 14px; height: 14px; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 500;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 18px;
  font-size: 0.875rem; color: var(--slate);
  border-radius: 6px; margin: 3px 6px;
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: var(--blue-light); color: var(--blue); }
.nav-promo {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 0 0 20px;
  font-size: 0.82rem; font-weight: 600; color: var(--emerald);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--steel);
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li::after { content: '/'; color: var(--border); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li:last-child { color: var(--slate); font-weight: 500; }

/* ===== HERO ===== */
.hero {
  background: var(--light);
  padding: 72px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.18;
  color: var(--slate);
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-desc {
  font-size: 1.1rem; color: var(--steel); line-height: 1.7;
  margin-bottom: 36px; max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
}
.hero-stat-num {
  font-family: 'Manrope', sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--slate);
  line-height: 1;
}
.hero-stat-label { font-size: 0.82rem; color: var(--steel); margin-top: 4px; }
.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--blue-dark); color: var(--white);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue); color: white;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--slate); color: white;
}
.btn-secondary:hover { background: #0F172A; color: white; }
.btn-emerald {
  background: var(--emerald); color: white;
  box-shadow: 0 4px 14px rgba(5,150,105,0.25);
}
.btn-emerald:hover { background: #047857; color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ===== SECTION HEADERS ===== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--slate);
  line-height: 1.22; margin-bottom: 14px;
}
.section-desc {
  font-size: 1.05rem; color: var(--steel);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ===== CATEGORY GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.category-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--light);
}
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-card:hover .category-img img { transform: scale(1.04); }
.category-body { padding: 20px; }
.category-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: var(--slate);
  margin-bottom: 6px;
}
.category-count { font-size: 0.82rem; color: var(--steel); margin-bottom: 12px; }
.category-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.category-tag {
  background: var(--blue-light); color: var(--blue);
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 50px;
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
}
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
  border-radius: 50px; text-transform: uppercase;
}
.badge-new { background: var(--blue); color: white; }
.badge-sale { background: #EF4444; color: white; }
.badge-popular { background: var(--emerald); color: white; }
.product-img {
  aspect-ratio: 1/1; background: var(--light);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: white; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--steel);
  transition: all var(--transition);
}
.product-wishlist:hover { border-color: #EF4444; color: #EF4444; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.75rem; color: var(--steel); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.product-name {
  font-size: 0.9rem; font-weight: 600; color: var(--slate);
  line-height: 1.4; margin-bottom: 10px;
}
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--blue); }
.product-specs { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.product-spec { font-size: 0.78rem; color: var(--steel); display: flex; gap: 6px; }
.product-spec-label { font-weight: 500; color: var(--slate); }
.rating { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.stars { color: #F59E0B; font-size: 0.85rem; letter-spacing: 1px; }
.rating-count { font-size: 0.78rem; color: var(--steel); }
.product-footer { padding: 14px 16px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-price-wrap {}
.product-price-old { font-size: 0.8rem; color: var(--steel); text-decoration: line-through; }
.product-price {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--slate);
}
.product-price span { font-size: 0.8rem; font-weight: 500; color: var(--steel); }

/* ===== SIDEBAR LAYOUT ===== */
.sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: var(--slate);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-item { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--slate); cursor: pointer; }
.filter-checkbox input { cursor: pointer; accent-color: var(--blue); }
.filter-count { font-size: 0.75rem; color: var(--steel); background: var(--light); padding: 2px 7px; border-radius: 50px; }
.price-range { margin-top: 8px; }
.price-range input[type=range] { width: 100%; accent-color: var(--blue); }
.price-inputs { display: flex; gap: 8px; margin-top: 10px; }
.price-inputs input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.82rem; outline: none;
  font-family: 'Inter', sans-serif;
}

/* ===== SPEC TABLE ===== */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); }
.spec-table th { background: var(--light); font-weight: 600; color: var(--slate); width: 35%; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }
.spec-table tr:hover td, .spec-table tr:hover th { background: var(--blue-light); }

/* ===== COMPARISON TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border-light); font-size: 0.875rem; }
.compare-table thead th { background: var(--slate); color: white; font-weight: 600; font-family: 'Manrope', sans-serif; }
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--slate); background: var(--light); }
.compare-table tbody tr:hover td { background: var(--blue-light); }
.compare-check { color: var(--emerald); font-size: 1.1rem; }
.compare-x { color: #EF4444; font-size: 1.1rem; }
.compare-table .price-col { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--slate); font-size: 1rem; }

/* ===== BLOG CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-img img { transform: scale(1.03); }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-cat {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--blue-light); color: var(--blue); padding: 3px 10px; border-radius: 50px;
}
.blog-date { font-size: 0.78rem; color: var(--steel); }
.blog-title { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--slate); line-height: 1.4; margin-bottom: 10px; }
.blog-title a { color: inherit; text-decoration: none; }
.blog-title a:hover { color: var(--blue); }
.blog-excerpt { font-size: 0.875rem; color: var(--steel); line-height: 1.65; flex: 1; }
.blog-footer { padding: 14px 22px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.blog-read { font-size: 0.82rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 5px; }

/* ===== PRICE ANALYSIS ===== */
.price-chart-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.chart-title { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--slate); }
.chart-tabs { display: flex; gap: 6px; }
.chart-tab {
  padding: 6px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border);
  transition: all var(--transition); background: transparent; color: var(--steel);
}
.chart-tab.active { background: var(--blue); color: white; border-color: var(--blue); }

/* Bar chart visual */
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding: 0 8px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; border-radius: 6px 6px 0 0;
  background: var(--blue);
  min-height: 16px;
  transition: background var(--transition);
}
.bar:hover { background: var(--blue-dark); }
.bar-label { font-size: 0.72rem; color: var(--steel); text-align: center; }
.bar-val { font-size: 0.72rem; font-weight: 700; color: var(--slate); }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.feature-desc { font-size: 0.875rem; color: var(--steel); line-height: 1.65; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--slate); padding: 32px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { text-align: center; }
.trust-icon { font-size: 1.8rem; margin-bottom: 8px; color: rgba(255,255,255,0.8); }
.trust-title { font-weight: 700; color: white; font-size: 0.95rem; margin-bottom: 4px; }
.trust-desc { font-size: 0.78rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ===== CART ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 12px 16px; text-align: left; font-size: 0.82rem; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 18px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product-img { width: 70px; height: 70px; background: var(--light); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-product-img img { width: 60px; height: 60px; object-fit: contain; }
.cart-product-name { font-size: 0.9rem; font-weight: 600; color: var(--slate); }
.cart-product-sku { font-size: 0.78rem; color: var(--steel); margin-top: 3px; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 32px; height: 32px; background: var(--light); border: none; cursor: pointer; font-size: 1.1rem; color: var(--slate); transition: background var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--border); }
.qty-input { width: 44px; height: 32px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 0.9rem; font-family: 'Inter', sans-serif; color: var(--slate); outline: none; }
.cart-summary {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px;
}
.cart-summary-title { font-family: 'Manrope', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--slate); margin-bottom: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; color: var(--steel); }
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-total { font-family: 'Manrope', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--slate); }

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--slate); margin-bottom: 7px; }
.form-label span { color: #EF4444; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: 'Inter', sans-serif; color: var(--slate);
  background: var(--white); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control::placeholder { color: #94A3B8; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-section-title { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; color: var(--slate); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.form-hint { font-size: 0.78rem; color: var(--steel); margin-top: 5px; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--emerald-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-info { background: var(--blue-light); color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.success-popup {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9999;
  align-items: center; justify-content: center;
}
.success-popup.show { display: flex; }
.success-modal {
  background: white; border-radius: var(--radius-lg);
  padding: 48px 40px; text-align: center;
  max-width: 440px; width: 90%;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.success-modal h3 { font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--slate); margin-bottom: 10px; }
.success-modal p { font-size: 0.9rem; color: var(--steel); line-height: 1.6; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 22px; font-size: 0.9rem; font-weight: 500; color: var(--steel);
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--slate) 0%, #0F172A 100%);
  padding: 56px 0;
  text-align: center;
  color: white;
}
.page-hero-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.page-hero h1 { font-family: 'Manrope', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; }

/* ===== INFO BOXES ===== */
.info-box {
  background: var(--blue-light); border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.info-box p { font-size: 0.9rem; color: var(--slate); line-height: 1.65; }
.info-box-emerald { background: var(--emerald-light); border-left-color: var(--emerald); }

/* ===== POLICY PAGES ===== */
.policy-content { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.policy-content h1 { font-family: 'Manrope', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--slate); margin-bottom: 8px; }
.policy-meta { font-size: 0.85rem; color: var(--steel); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.policy-content h2 { font-family: 'Manrope', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--slate); margin: 36px 0 14px; }
.policy-content h3 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--slate); margin: 24px 0 10px; }
.policy-content p { font-size: 0.95rem; color: #334155; line-height: 1.78; margin-bottom: 14px; }
.policy-content ul, .policy-content ol { margin: 12px 0 16px 20px; }
.policy-content li { font-size: 0.95rem; color: #334155; line-height: 1.75; margin-bottom: 6px; }
.policy-content ul li { list-style: disc; }
.policy-content ol li { list-style: decimal; }
.policy-toc { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.policy-toc h4 { font-size: 0.88rem; font-weight: 700; color: var(--slate); margin-bottom: 12px; }
.policy-toc ol { margin: 0 0 0 18px; }
.policy-toc li { font-size: 0.875rem; margin-bottom: 4px; }
.policy-toc a { color: var(--blue); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { }
.footer-logo {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: white; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.footer-logo span { color: #60A5FA; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; opacity: 0.7; }
.footer-heading { font-weight: 700; color: white; font-size: 0.9rem; margin-bottom: 18px; letter-spacing: 0.03em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.84rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-newsletter { }
.newsletter-form { display: flex; gap: 0; margin-top: 12px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.05); border: none; padding: 11px 14px;
  font-size: 0.84rem; color: white; outline: none;
  font-family: 'Inter', sans-serif;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button { padding: 11px 18px; background: var(--blue); color: white; border: none; cursor: pointer; font-weight: 600; font-size: 0.82rem; transition: background var(--transition); white-space: nowrap; }
.newsletter-form button:hover { background: var(--blue-dark); }
.footer-bottom {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.9); }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 48px; }
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: white; color: var(--steel); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500; transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ===== MISC ===== */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--light); color: var(--steel);
  border: 1px solid var(--border);
}
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.text-blue { color: var(--blue); }
.text-emerald { color: var(--emerald); }
.text-steel { color: var(--steel); }
.text-slate { color: var(--slate); }
.font-manrope { font-family: 'Manrope', sans-serif; }
.fw-800 { font-weight: 800; }
.bg-light { background: var(--light); }
.bg-slate { background: var(--slate); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== ABOUT PAGE ===== */
.about-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-hero-img img { width: 100%; height: auto; object-fit: cover; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.team-avatar { width: 72px; height: 72px; background: var(--blue-light); border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.team-name { font-weight: 700; color: var(--slate); margin-bottom: 4px; }
.team-role { font-size: 0.82rem; color: var(--steel); }

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.product-gallery-main { aspect-ratio: 1/1; background: var(--light); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 32px; margin-bottom: 12px; border: 1px solid var(--border); }
.product-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-gallery-thumbs { display: flex; gap: 8px; }
.product-thumb { width: 72px; height: 72px; background: var(--light); border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; transition: border-color var(--transition); }
.product-thumb:hover, .product-thumb.active { border-color: var(--blue); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-info {}
.product-detail-title { font-family: 'Manrope', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--slate); line-height: 1.25; margin-bottom: 12px; }
.product-detail-price { font-family: 'Manrope', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--slate); }
.product-detail-price-old { font-size: 1rem; color: var(--steel); text-decoration: line-through; margin-right: 10px; }
.product-availability { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--emerald); }
.product-availability::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); display: inline-block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-wrap { display: none; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { grid-template-columns: auto auto; }
  .header-search { display: none; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .nav-list { display: none; }
  .topbar { display: none; }
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
}
@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
