/* ============================================
   DEV27 — Developer Theme & Template Downloads
   Main Stylesheet
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --primary: #E8432D;
  --primary-dark: #C7321D;
  --primary-light: #FF6B50;
  --primary-bg: #FFF0EE;
  --green: #22C55E;
  --green-dark: #16A34A;
  --coal: #1a1a2e;
  --coal-hover: #0d0d1a;
  --bg: #F7F8FA;
  --bg-card: #FFFFFF;
  --bg-code: #1a1a2e;
  --text: #1E2432;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-hover: #D1D5DB;
  --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), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --header-h: 68px;
  --sidebar-w: 300px;
  --container: 1280px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea { font-family: var(--font); }

/* --- Utility --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-green { background: #DCFCE7; color: var(--green-dark); }
.badge-coal { background: #F1F0FF; color: var(--coal); }
.badge-gray { background: var(--border); color: var(--text-muted); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--text); flex-shrink: 0;
  transition: var(--transition);
}
.logo:hover { color: var(--primary); }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
  box-shadow: 0 4px 12px rgba(232,67,45,0.35);
  flex-shrink: 0;
}
.logo-text { letter-spacing: -0.5px; }
.logo-text span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary); background: var(--primary-bg);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text-muted); font-size: 14px;
  transition: var(--transition); cursor: pointer;
}
.search-trigger:hover { border-color: var(--primary); color: var(--primary); }
.search-trigger .shortcut {
  font-size: 11px; font-family: var(--font-mono);
  background: white; border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; color: var(--text-light);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}

/* ============================================
   FULL PAGE SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(16px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  width: 100%; max-width: 680px; padding: 0 24px;
}
.search-input-wrap {
  position: relative; display: flex; align-items: center;
}
.search-input-wrap i.search-icon {
  position: absolute; left: 20px; color: rgba(255,255,255,0.5); font-size: 18px;
}
.search-field {
  width: 100%; padding: 20px 56px 20px 56px;
  font-size: 22px; font-family: var(--font); font-weight: 400;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); color: white; outline: none;
  transition: var(--transition);
}
.search-field::placeholder { color: rgba(255,255,255,0.35); }
.search-field:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }
.search-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: var(--transition);
  border: none;
}
.search-close:hover { background: var(--primary); }
.search-hint {
  margin-top: 16px; color: rgba(255,255,255,0.4);
  font-size: 13px; text-align: center;
}
.search-results {
  margin-top: 24px; display: flex; flex-direction: column; gap: 8px;
  max-height: 400px; overflow-y: auto;
}
.search-result-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition); cursor: pointer;
}
.search-result-item:hover { background: rgba(255,255,255,0.12); border-color: var(--primary); }
.search-result-item img {
  width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.search-result-info h4 { color: white; font-size: 15px; font-weight: 500; }
.search-result-info span { color: rgba(255,255,255,0.45); font-size: 12px; }
.search-no-results { color: rgba(255,255,255,0.4); text-align: center; padding: 32px; font-size: 15px; }

/* ============================================
   HERO BANNER (Homepage)
   ============================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--coal) 0%, #16213e 50%, #0f3460 100%);
  padding: 64px 0;
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,67,45,0.2); border: 1px solid rgba(232,67,45,0.3);
  color: #FF8070; padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-tag i { font-size: 10px; }
.hero-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1;
  color: white; letter-spacing: -1.5px; margin-bottom: 18px;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}
.hero-stats {
  display: flex; gap: 32px; align-items: center;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 28px; font-weight: 800; color: white;
  font-family: var(--font-mono); line-height: 1;
}
.hero-stat-num span { color: var(--primary); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.hero-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero-code {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 13px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 24px; color: rgba(255,255,255,0.6);
  line-height: 1.8; display: block;
}
.hero-code .kw { color: #FF6B6B; }
.hero-code .fn { color: #6BCB77; }
.hero-code .str { color: #FFD166; }
.hero-code .cm { color: rgba(255,255,255,0.3); }

/* ============================================
   LAYOUT — MAIN CONTENT + SIDEBAR
   ============================================ */
.site-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 32px; align-items: start;
  padding: 40px 0 80px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
}
.breadcrumb a { transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 10px; color: var(--text-light); }

/* ============================================
   PRODUCT GRID
   ============================================ */
.grid-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.grid-title {
  font-size: 18px; font-weight: 700; color: var(--text);
}
.grid-title span { color: var(--text-muted); font-weight: 400; font-size: 15px; }
.grid-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--text-muted);
  background: white; transition: var(--transition); cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary); color: var(--primary); background: var(--primary-bg);
}

.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.product-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden; transition: var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-thumb {
  position: relative; overflow: hidden; aspect-ratio: 16/9;
  background: var(--bg);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-thumb img { transform: scale(1.04); }
.card-cat {
  position: absolute; top: 10px; left: 10px;
}
.card-body { padding: 16px; }
.card-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: var(--transition);
}
.product-card:hover .card-title { color: var(--primary); }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.card-author {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.card-author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 9px; flex-shrink: 0;
}
.card-downloads {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  font-family: var(--font-mono);
}
.card-downloads i { color: var(--primary); font-size: 11px; }
.card-link {
  position: absolute; inset: 0; z-index: 1;
}

/* ============================================
   ADS WIDGET
   ============================================ */
.ad-block {
  border-radius: var(--radius); overflow: hidden;
  border: 1.5px dashed var(--border); position: relative;
}
.ad-block.in-content { margin: 32px 0; }
.ad-inner {
  background: linear-gradient(135deg, #F8F9FA, #F0F2F5);
  min-height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 20px; text-align: center;
}
.ad-inner.tall { min-height: 250px; }
.ad-label {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-light); background: var(--border);
  padding: 2px 6px; border-radius: 4px;
}
.ad-placeholder-icon { font-size: 28px; color: var(--border-hover); }
.ad-placeholder-text { font-size: 13px; color: var(--text-light); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 40px;
}
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; border: 1.5px solid var(--border);
  background: white; color: var(--text-muted);
  transition: var(--transition); cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--primary); color: var(--primary); background: var(--primary-bg);
}
.page-btn.prev-btn, .page-btn.next-btn { width: auto; padding: 0 16px; gap: 6px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1.5px solid var(--border); overflow: hidden;
}
.widget-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.widget-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text);
}
.widget-title-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.widget-body { padding: 20px; }

/* Popular Products Widget */
.popular-list { display: flex; flex-direction: column; gap: 12px; }
.popular-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.popular-item:last-child { padding-bottom: 0; border-bottom: none; }
.popular-item:hover .popular-title { color: var(--primary); }
.popular-thumb {
  width: 60px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.3; margin-bottom: 4px; transition: var(--transition);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popular-meta { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.popular-meta i { color: var(--primary); margin-right: 3px; }

/* Social Widget */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px;
  font-weight: 600; color: white; transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-btn.fb { background: #1877F2; }
.social-btn.tw { background: #000000; }
.social-btn.li { background: #0A66C2; }
.social-btn.rd { background: #FF4500; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.yt { background: #FF0000; }

/* Newsletter Widget */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 4px; }
.form-input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 14px;
  background: var(--bg); color: var(--text); outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); background: white; }
.btn-subscribe {
  padding: 11px 16px; border-radius: var(--radius-sm);
  background: var(--primary); color: white; font-size: 14px; font-weight: 600;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-subscribe:hover { background: var(--primary-dark); transform: translateY(-1px); }
.newsletter-success {
  display: none; text-align: center; padding: 12px;
  background: #DCFCE7; border-radius: var(--radius-sm);
  color: var(--green-dark); font-size: 14px; font-weight: 500;
}

/* ============================================
   CATEGORY PAGE HEADER
   ============================================ */
.cat-header {
  padding: 40px 0 0;
}
.cat-banner {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px;
}
.cat-icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: var(--primary-bg); display: flex; align-items: center;
  justify-content: center; font-size: 28px; color: var(--primary); flex-shrink: 0;
}
.cat-info h1 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.cat-info p { font-size: 15px; color: var(--text-muted); }

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.product-header {
  padding: 40px 0 0;
}
.product-featured-image {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/7; margin-bottom: 28px;
  border: 1.5px solid var(--border); position: relative;
}
.product-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-action-bar {
  display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; transition: var(--transition);
  cursor: pointer; border: none; font-family: var(--font);
}
.btn i { font-size: 14px; }
.btn-preview {
  background: white; color: var(--text);
  border: 2px solid var(--border);
}
.btn-preview:hover { border-color: var(--coal); color: var(--coal); }
.btn-jump {
  background: var(--coal); color: white;
}
.btn-jump:hover { background: var(--coal-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-download {
  background: var(--green); color: white;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}
.btn-download:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(34,197,94,0.45);
}
.btn-download-full {
  width: 100%; justify-content: center; font-size: 17px; padding: 16px 24px;
}

.product-meta-bar {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  padding: 18px 20px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); margin-bottom: 28px;
}
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.meta-item i { color: var(--primary); width: 16px; text-align: center; }
.meta-label { color: var(--text-muted); }
.meta-value { color: var(--text); font-weight: 600; }
.meta-divider { width: 1px; height: 20px; background: var(--border); }

/* Article Content */
.article-content {
  font-size: 16px; line-height: 1.8; color: var(--text);
}
.article-content h2 {
  font-size: 22px; font-weight: 700; margin: 36px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border); color: var(--text);
}
.article-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
}
.article-content ul { list-style: none; margin-left: 0; }
.article-content ul li {
  padding: 6px 0 6px 28px; position: relative; color: var(--text);
}
.article-content ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700; font-size: 14px;
}
.article-content ol { list-style: decimal; }
.article-content ol li { padding: 4px 0; }
.article-content code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--bg); padding: 2px 7px; border-radius: 5px;
  color: var(--primary); border: 1px solid var(--border);
}
.article-content pre {
  background: var(--bg-code); border-radius: var(--radius-sm);
  padding: 20px; overflow-x: auto; margin: 20px 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.article-content pre code {
  background: none; border: none; color: #6BCB77; font-size: 13px; padding: 0;
}
.article-content strong { font-weight: 700; color: var(--text); }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary-dark); }
.article-content blockquote {
  border-left: 4px solid var(--primary); padding: 16px 20px;
  background: var(--primary-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-style: italic; color: var(--text-muted);
}

/* Feature List Box */
.feature-box {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 24px 0;
}
.feature-box-title {
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.feature-box-title i { color: var(--primary); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.feature-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--text); padding: 6px 0;
}
.feature-item i { color: var(--green); margin-top: 2px; flex-shrink: 0; font-size: 12px; }

/* Download Section */
.download-section {
  background: linear-gradient(135deg, var(--coal) 0%, #16213e 100%);
  border-radius: var(--radius-lg); padding: 40px;
  margin-top: 40px; text-align: center; position: relative; overflow: hidden;
}
.download-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(232,67,45,0.15) 0%, transparent 70%);
}
.download-section-inner { position: relative; z-index: 1; }
.download-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  background: rgba(34,197,94,0.15); border: 2px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--green); margin: 0 auto 20px;
}
.download-section h3 { font-size: 26px; font-weight: 800; color: white; margin-bottom: 10px; }
.download-section p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.download-info-chips {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.download-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500;
}
.download-chip i { color: var(--green); }

/* Tags */
.tags-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
}
.tag {
  padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 500;
  background: var(--bg); border: 1.5px solid var(--border); color: var(--text-muted);
  transition: var(--transition); cursor: default;
}
.tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

/* ============================================
   THANK YOU PAGE
   ============================================ */
.thankyou-page {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px; background: var(--bg);
}
.thankyou-card {
  background: white; border-radius: var(--radius-xl);
  border: 1.5px solid var(--border); padding: 60px 48px;
  max-width: 560px; width: 100%; text-align: center;
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.thankyou-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--green));
}
.thankyou-icon {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--green); margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(34,197,94,0.25);
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.thankyou-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--green-dark); background: #DCFCE7;
  padding: 5px 14px; border-radius: 100px; display: inline-block; margin-bottom: 16px;
}
.thankyou-title {
  font-size: 32px; font-weight: 800; color: var(--text);
  letter-spacing: -1px; margin-bottom: 14px; line-height: 1.2;
}
.thankyou-subtitle {
  font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px;
}
.thankyou-product {
  background: var(--bg); border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  padding: 16px; display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; text-align: left;
}
.thankyou-product img {
  width: 72px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.thankyou-product h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.thankyou-product span { font-size: 12px; color: var(--text-muted); }
.thankyou-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.btn-back-home {
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  text-decoration: none; justify-content: center;
}
.btn-back-home:hover { border-color: var(--coal); color: var(--coal); }
.confetti-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden;
}
.confetti-piece {
  position: absolute; width: 10px; height: 10px; top: -20px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--coal); color: rgba(255,255,255,0.8); margin-top: 0;
}
.footer-main {
  padding: 64px 0 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo:hover { color: var(--primary); }
.footer-desc {
  font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 20px; max-width: 280px;
}
.footer-stats {
  display: flex; gap: 24px; padding: 16px 20px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}
.f-stat-num {
  font-size: 22px; font-weight: 800; color: white;
  font-family: var(--font-mono); line-height: 1;
}
.f-stat-num span { color: var(--primary); }
.f-stat-label { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-newsletter { }
.footer-newsletter p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 14px; line-height: 1.6; }
.footer-form { display: flex; gap: 8px; }
.footer-form input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  color: white; font-size: 14px; outline: none; transition: var(--transition);
}
.footer-form input::placeholder { color: rgba(255,255,255,0.3); }
.footer-form input:focus { border-color: var(--primary); }
.footer-form button {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--primary); color: white; font-size: 14px;
  font-weight: 600; border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.footer-form button:hover { background: var(--primary-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-left { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-left span { color: #FF6B6B; }
.footer-bottom-left a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-bottom-left a:hover { color: var(--primary); }
.footer-bottom-right {
  display: flex; gap: 16px;
}
.footer-bottom-right a {
  font-size: 13px; color: rgba(255,255,255,0.4); transition: var(--transition);
}
.footer-bottom-right a:hover { color: var(--primary); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--coal) 0%, #16213e 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(232,67,45,0.1) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px); font-weight: 800; color: white;
  margin-bottom: 16px; letter-spacing: -1px;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.7; }

.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual {
  background: var(--bg-code); border-radius: var(--radius-lg); padding: 32px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.8;
  color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.06);
}
.about-text h2 { font-size: 30px; font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -0.5px; }
.about-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-vals { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.about-val {
  display: flex; gap: 14px; align-items: flex-start;
}
.about-val-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--primary-bg); display: flex; align-items: center;
  justify-content: center; color: var(--primary); font-size: 18px; flex-shrink: 0;
}
.about-val h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.about-val p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact-form-card {
  background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border);
  padding: 40px; box-shadow: var(--shadow);
}
.contact-form-card h2 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.contact-form-card p { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input-full {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 15px;
  background: var(--bg); color: var(--text); outline: none; transition: var(--transition);
}
.form-input-full:focus { border-color: var(--primary); background: white; }
.form-textarea { min-height: 140px; resize: vertical; }
.btn-send {
  background: var(--primary); color: white; font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: var(--transition); width: 100%;
}
.btn-send:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.form-success {
  display: none; background: #DCFCE7; border: 1.5px solid #BBF7D0;
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
  color: var(--green-dark); font-weight: 500; font-size: 15px; margin-top: 16px;
}

.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: white; border-radius: var(--radius); border: 1.5px solid var(--border);
  padding: 24px;
}
.contact-info-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.contact-item {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--primary-bg); display: flex; align-items: center;
  justify-content: center; color: var(--primary); font-size: 15px; flex-shrink: 0;
}
.contact-item-text label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-light); font-weight: 600; }
.contact-item-text p { font-size: 14px; color: var(--text); font-weight: 500; }

/* Instagram Widget */
.instagram-widget {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: var(--radius-lg); padding: 28px; text-align: center; color: white;
}
.instagram-widget .ig-icon { font-size: 40px; margin-bottom: 12px; }
.instagram-widget h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.instagram-widget p { font-size: 14px; opacity: 0.85; margin-bottom: 20px; line-height: 1.6; }
.btn-instagram {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: #cc2366;
  padding: 11px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 700; transition: var(--transition);
}
.btn-instagram:hover { transform: scale(1.04); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav {
  position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
  background: white; z-index: 9998; padding: 24px;
  box-shadow: var(--shadow-xl); transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { left: 0; }
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 9997; backdrop-filter: blur(4px);
}
.mobile-nav-overlay.show { display: block; }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.mobile-nav-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-muted); cursor: pointer; border: none;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); display: block;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary); background: var(--primary-bg);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--coal); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: var(--transition);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  box-shadow: var(--shadow-lg);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary); transform: translateY(-2px); }

/* ============================================
   NO RESULTS / EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state-icon { font-size: 48px; color: var(--border-hover); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.10s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.20s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.30s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.40s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .site-layout { grid-template-columns: 1fr 260px; gap: 24px; }
  :root { --sidebar-w: 260px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .site-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero-code { display: none; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-trigger .shortcut { display: none; }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-action-bar { flex-direction: column; }
  .product-action-bar .btn { justify-content: center; }
  .hero-banner { padding: 40px 0; }
  .hero-stats { gap: 16px; }
  .thankyou-card { padding: 40px 24px; }
  .download-section { padding: 28px 20px; }
  .footer-form { flex-direction: column; }
  .contact-form-card { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .social-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-divider { display: none; }
  .product-meta-bar { flex-direction: column; align-items: flex-start; }
  .meta-divider { display: none; }
}

/* ── Share Section ──────────────────────────────────────────── */
.share-section {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.share-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-title i { color: var(--primary); }
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
  line-height: 1;
  white-space: nowrap;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); opacity: 1; }
.share-btn i { font-size: 14px; }
.share-x        { background: #000; }
.share-facebook { background: #1877F2; }
.share-pinterest{ background: #E60023; }
.share-reddit   { background: #FF4500; }
.share-whatsapp { background: #25D366; }
.share-linkedin { background: #0A66C2; }
.share-copy     { background: var(--coal, #1a1a2e); }
.share-copy.copied { background: var(--green, #22C55E); }

@media (max-width: 560px) {
  .share-btn span { display: none; }
  .share-btn { padding: 10px 13px; }
}

/* ── More Like This ─────────────────────────────────────────── */
.more-like-this {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.more-like-this .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 0;
}
