/*
Theme Name: PakMobiles
Theme URI: https://pakmobiles.online
Author: PakMobiles Team
Author URI: https://pakmobiles.online
Description: Professional mobile phone directory theme for Pakistan. Features brand categories, phone listings, comparison tool, and price tracking.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pakmobiles
Tags: e-commerce, technology, dark, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, translation-ready
*/

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

:root {
  --red: #E8241A;
  --red-dark: #B81912;
  --dark: #0A0A0A;
  --darker: #060606;
  --card: #141414;
  --card-hover: #1A1A1A;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(232,36,26,0.35);
  --text: #F0F0F0;
  --text-muted: #888;
  --text-faint: #555;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: var(--font-body); }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -1.5px; }
h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.5px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { color: var(--text-muted); line-height: 1.75; }

/* =============================================
   LAYOUT
============================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.section-title span { color: var(--red); }
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  border: 1px solid rgba(232,36,26,0.3);
  padding: 7px 16px;
  border-radius: 6px;
  transition: background var(--transition);
}
.see-all:hover { background: rgba(232,36,26,0.1); color: var(--red); }

/* =============================================
   HEADER & NAVIGATION
============================================= */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}

/* Logo */
.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--red); }
.site-logo img { max-height: 42px; width: auto; }

/* Search */
.nav-search { flex: 1; max-width: 420px; position: relative; }
.nav-search input {
  width: 100%;
  background: #1C1C1C;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px 9px 40px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.nav-search input:focus { border-color: var(--red); }
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search .search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

/* Nav right */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-compare-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(232,36,26,0.1);
  border: 1px solid rgba(232,36,26,0.3);
  color: var(--red);
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-compare-btn:hover { background: rgba(232,36,26,0.2); }

/* Primary Menu */
.nav-menu-wrap {
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu-wrap::-webkit-scrollbar { display: none; }

#primary-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  white-space: nowrap;
}
#primary-menu > li { position: relative; }
#primary-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-parent > a {
  color: var(--text);
  border-bottom-color: var(--red);
}

/* Dropdown */
#primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#primary-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#primary-menu .sub-menu li a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
#primary-menu .sub-menu li a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,36,26,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,36,26,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(232,36,26,0.12);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 5px;
  margin-bottom: 22px;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title { margin-bottom: 20px; }
.hero-title em { color: var(--red); font-style: normal; }
.hero-desc { font-size: 16px; max-width: 480px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,36,26,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--text); background: rgba(255,255,255,0.04); }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat-item {}
.stat-num {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }

/* Hero phones grid */
.hero-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-phone-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
}
.hero-phone-card:nth-child(even) { margin-top: 28px; }
.hero-phone-card:hover { transform: translateY(-6px); border-color: var(--border-hover); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-phone-card .card-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  margin-bottom: 10px;
}
.badge-new { background: rgba(232,36,26,0.15); color: var(--red); }
.badge-hot { background: rgba(255,165,0,0.12); color: #FFA500; }
.badge-sale { background: rgba(34,197,94,0.12); color: #22C55E; }
.hero-phone-card .phone-img {
  width: 64px; height: 64px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.hero-phone-card .phone-img-placeholder {
  width: 64px; height: 64px;
  background: #1E1E1E;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.hero-phone-card .card-name { font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.hero-phone-card .card-price { font-size: 14px; font-weight: 700; color: var(--red); }

/* =============================================
   BRANDS SECTION
============================================= */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.brand-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  display: block;
  color: inherit;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--card-hover);
  color: inherit;
}
.brand-logo-wrap {
  width: 56px; height: 56px;
  background: #1E1E1E;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-logo-wrap img { width: 40px; height: 40px; object-fit: contain; }
.brand-logo-wrap .brand-emoji { font-size: 28px; }
.brand-name-text { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.brand-count { font-size: 11px; color: var(--red); font-weight: 500; }

/* =============================================
   PHONE CARDS (Grid)
============================================= */
.phones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.phone-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}
.phone-card .card-pill {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
}
.phone-card .card-brand-label {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 14px;
}
.phone-card .card-img-wrap {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.phone-card .card-img-wrap img {
  max-height: 95px;
  object-fit: contain;
}
.phone-card .card-img-placeholder {
  font-size: 56px;
  line-height: 1;
}
.phone-card .card-name {
  font-size: 14px; font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.35;
}
.phone-card .card-specs {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 14px;
  flex: 1;
}
.phone-card .card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.phone-card .price-main {
  font-size: 15px; font-weight: 700;
  color: var(--red);
}
.phone-card .price-old {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: line-through;
}

/* Compare checkbox */
.compare-check-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.compare-check-wrap input[type="checkbox"] { accent-color: var(--red); }
.compare-check-wrap label { font-size: 11px; color: var(--text-faint); cursor: pointer; }

/* =============================================
   CATEGORIES SECTION
============================================= */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  color: inherit;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  color: inherit;
}
.cat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cat-info .cat-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cat-info .cat-sub { font-size: 12px; color: var(--text-faint); }
.cat-arrow { margin-left: auto; color: var(--text-faint); font-size: 18px; }

/* =============================================
   PROMO BANNER
============================================= */
.promo-banner {
  background: linear-gradient(135deg, #150907 0%, #1C0C0A 100%);
  border: 1px solid rgba(232,36,26,0.2);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(232,36,26,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.promo-left h2 { font-size: 32px; margin-bottom: 10px; }
.promo-left p { margin-bottom: 26px; }
.promo-vs {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}

/* =============================================
   SINGLE PHONE PAGE
============================================= */
.phone-single-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding: 60px 0;
  align-items: start;
}
.phone-gallery {
  position: sticky;
  top: 90px;
}
.gallery-main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin-bottom: 14px;
}
.gallery-main img { max-height: 280px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs img {
  width: 72px; height: 72px;
  object-fit: contain;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--red); }

.phone-info {}
.phone-brand-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.phone-title { margin-bottom: 8px; }
.phone-rating {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.stars { color: #FFA500; font-size: 16px; }
.rating-count { font-size: 13px; color: var(--text-faint); }
.phone-price-big { font-family: var(--font-heading); font-size: 42px; font-weight: 800; color: var(--red); margin-bottom: 24px; }

.spec-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.spec-quick-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.spec-quick-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.spec-quick-val { font-size: 14px; font-weight: 600; color: var(--text); }

.phone-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

/* Spec Table */
.spec-table-wrap { margin-top: 50px; }
.spec-section { margin-bottom: 36px; }
.spec-section-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 16px;
}
.spec-key { font-size: 13px; color: var(--text-faint); }
.spec-val { font-size: 14px; color: var(--text); font-weight: 500; }

/* =============================================
   COMPARE PAGE
============================================= */
.compare-table {
  overflow-x: auto;
}
.compare-table table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 14px;
  text-align: center;
}
.compare-table td {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: var(--text-muted);
}
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.compare-table .row-label {
  font-weight: 600;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.03);
}

/* =============================================
   SEARCH RESULTS PAGE
============================================= */
.search-hero {
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 50px;
}
.search-hero h1 { font-size: 32px; margin-bottom: 8px; }
.search-hero p { color: var(--text-faint); }
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(232,36,26,0.08);
}

/* Price range filter */
.price-range-filter { margin-bottom: 30px; }
.price-range-filter label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.price-range-filter input[type="range"] { width: 100%; accent-color: var(--red); }

/* =============================================
   SIDEBAR (Archive pages)
============================================= */
.archive-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.sidebar-links a:hover { color: var(--red); }
.sidebar-links .count {
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-faint);
}
.sidebar-price-filter { }
.price-inputs { display: flex; gap: 10px; margin-top: 12px; }
.price-inputs input {
  flex: 1; background: #1A1A1A;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.price-inputs input:focus { border-color: var(--red); }

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  border-color: var(--red);
  color: var(--red);
  background: rgba(232,36,26,0.08);
}

/* =============================================
   BLOG / NEWS
============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.news-card-img { height: 180px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 20px; }
.news-cat-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.news-card-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--red); }
.news-card-meta { font-size: 12px; color: var(--text-faint); }

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--text-faint); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--text-faint); opacity: 0.4; }
.breadcrumb .current { color: var(--text-muted); }

/* =============================================
   FOOTER
============================================= */
#colophon {
  background: #0A0A0A;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding: 60px 0 50px;
}
.footer-brand .site-logo { font-size: 20px; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px;
  background: #1A1A1A;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.social-btn:hover { border-color: var(--red); background: rgba(232,36,26,0.1); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-bottom p { font-size: 13px; color: var(--text-faint); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--text-faint); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text); }

/* =============================================
   COMPARE STICKY BAR
============================================= */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #141414;
  border-top: 1px solid var(--border);
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-phones { display: flex; gap: 16px; }
.compare-bar-phone {
  display: flex; align-items: center; gap: 10px;
  background: #1E1E1E;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}
.compare-bar-phone .remove { color: var(--text-faint); cursor: pointer; margin-left: 8px; }

/* =============================================
   TOAST NOTIFICATION
============================================= */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: #1E1E1E;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid #22C55E; }
.toast.error { border-left: 3px solid var(--red); }

/* =============================================
   BACK TO TOP
============================================= */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  border: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 800;
  font-size: 20px;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* =============================================
   LOADING SKELETON
============================================= */
.skeleton {
  background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================
   UTILITY CLASSES
============================================= */
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.hidden { display: none; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 36px; }
  .archive-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phones { display: none; }
  .nav-links-menu { display: none; }
  .menu-toggle { display: block; }
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 30px; }
  .promo-banner { flex-direction: column; text-align: center; padding: 36px 28px; }
  .promo-vs { font-size: 56px; }
  .phone-single-hero { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .spec-row { grid-template-columns: 140px 1fr; }
}

@media (max-width: 480px) {
  .footer-widgets { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .phones-grid { grid-template-columns: repeat(2, 1fr); }
}
