/* ==========================================================================
   MyExtensionCode.com - Clean, Minimal Light Theme
   White & soft gray background, sharp typography, zero clutter.
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --green: #059669;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-logo span {
  color: #0f172a;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #334155;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

/* Larger, high-converting Buy button */
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  width: 100%;
  text-align: center;
}

.btn-buy:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 50px 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Grid of Cards on Home Page */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

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

/* Clickable image container on home page */
.card-img-link {
  display: block;
  width: 100%;
  height: 170px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background: #0f172a;
  cursor: pointer;
  position: relative;
}

.card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.card-img-link:hover img {
  transform: scale(1.03);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  padding: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.card-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-price-tag {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pagination */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 60px;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.page-btn:hover:not(:disabled):not(.active) {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.page-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  cursor: default;
}

.page-btn:disabled, .page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Product Detail Page
   Image on LEFT, Details on RIGHT
   ========================================================================== */

.product-page {
  padding: 40px 0 60px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Image on LEFT */
.product-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.product-img-link {
  display: block;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
}

.product-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.product-img-link:hover .product-main-img {
  transform: scale(1.02);
}

/* Media perks box below screenshot */
.media-perks-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-perk-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.media-perk-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.media-perk-item strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1px;
}

.media-perk-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Details on RIGHT */
.product-details {
  display: flex;
  flex-direction: column;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.product-icon-big {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  padding: 6px;
  border: 1px solid var(--border);
}

.product-details h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.product-price-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.price-col {
  display: flex;
  flex-direction: column;
}

.price-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.price-sub {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-no-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-guarantee-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
}

.product-guarantee-note strong {
  color: var(--text);
}

.feature-list {
  list-style: none;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 24px;
}

.feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li span.bullet {
  color: var(--green);
  font-weight: bold;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

/* Content box for text pages */
.content-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  line-height: 1.6;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 50px;
}

.content-box h2, .content-box h3 {
  color: var(--text);
  margin: 20px 0 8px;
}

.content-box h2:first-child, .content-box h3:first-child {
  margin-top: 0;
}

.content-box p {
  margin-bottom: 12px;
}

.content-box ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 24px 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-extra-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-specs-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Product Extra Section (About, How to Use, Specs)
   ========================================================================== */

.product-extra-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.extra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.extra-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}

.extra-lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-bullets-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullet-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.bullet-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.bullet-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.bullet-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Steps list */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.step-content p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Specs Bar */
.product-specs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-top: 130px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.spec-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
