/* ==========================================================================
   PhonesDaddy - Modern Mobile Specifications Design System
   ========================================================================== */

:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #f0fdfa;
  --primary-border: #99f6e4;
  
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --success: #16a34a;
  --warning: #b45309;
  --danger: #dc2626;
  --info: #0284c7;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-dropdown: 0 12px 24px -4px rgba(15, 23, 42, 0.12);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1240px;
}

/* Accessibility screen-reader only utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

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

/* SVG Icon Utility Classes */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
}
.svg-icon-sm { width: 12px; height: 12px; }
.svg-icon-lg { width: 18px; height: 18px; }
.svg-icon-xl { width: 22px; height: 22px; }
.icon-with-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body:not(.admin-body) {
  display: flex;
  flex-direction: column;
}

/* ── Global Heading Scale ── */
h1 { font-size: 2.4rem;  font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 1.85rem; font-weight: 800; line-height: 1.2;  letter-spacing: -0.3px; }
h3 { font-size: 1.5rem;  font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.25rem; font-weight: 700; line-height: 1.3;  }
h5 { font-size: 1.1rem;  font-weight: 700; line-height: 1.35; }
h6 { font-size: 1rem;    font-weight: 700; line-height: 1.4;  }

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.site-header .container {
  max-width: 1460px;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: clamp(12px, 1.8vw, 30px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-logo .brand-highlight {
  color: var(--primary);
}

.brand-logo .brand-text {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
  font-weight: 800;
}

.site-header-logo-img {
  max-height: 38px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.site-footer-logo-img {
  max-height: 36px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  list-style: none;
  white-space: nowrap;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

/* Hide mobile drawer elements on desktop */
.nav-drawer-header,
.nav-drawer-section-label,
.nav-drawer-backdrop {
  display: none !important;
}

/* Hide injected nav drawer SVG icons on desktop (not existing .svg-icon ones) */
.nav-links .nav-link > svg:not(.svg-icon) {
  display: none;
}

.nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--dark-light);
  transition: color 0.15s ease, background-color 0.15s ease;
  font-size: 14.5px;
  padding: 6px 3px;
  position: relative;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  line-height: 1.2;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

.nav-link.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px !important;
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-link.nav-login-btn:hover {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
  transform: translateY(-1px);
}

.nav-link.nav-login-btn::after {
  display: none !important;
}

#pwa-nav-install-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#pwa-nav-install-link .nav-link {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 5px 11px !important;
  border-radius: 20px !important;
  background: rgba(20, 184, 166, 0.1) !important;
  color: #0d9488 !important;
  border: 1px solid rgba(13, 148, 136, 0.35) !important;
  flex-shrink: 0;
  transition: all 0.2s ease !important;
}

#pwa-nav-install-link .nav-link:hover {
  background: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

#pwa-nav-install-link .nav-link::after {
  display: none !important;
}

.header-search {
  flex: 0 1 280px;
  min-width: 170px;
  max-width: 320px;
  position: relative;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  height: 38px;
  padding: 8px 16px 8px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-page);
  color: var(--text-main);
  outline: none;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.header-search input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

@media (max-width: 1200px) and (min-width: 992px) {
  .nav-links {
    gap: 10px;
  }
  .nav-link {
    font-size: 13.5px;
    padding: 6px 2px;
  }
  .header-search {
    flex: 0 1 200px;
    min-width: 140px;
  }
}

/* Mobile Header Actions (Filter Icon + Search Icon + Hamburger) */
.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 6px;
}

.mobile-filter-btn,
.mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--dark);
  padding: 7px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-filter-btn:hover,
.mobile-filter-btn.active,
.mobile-search-toggle:hover,
.mobile-search-toggle.active {
  color: var(--primary);
  background: rgba(13, 148, 136, 0.1);
}

/* Hide mobile-specific nav search item on desktop */
.mobile-nav-search-item {
  display: none !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  padding: 6px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Global Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.search-results-dropdown.show {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--primary-light);
}

.search-thumb {
  width: 38px;
  height: 48px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.search-item-info {
  flex: 1;
}

.search-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.search-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.search-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  text-align: right;
}

/* ==========================================================================
   Hero Flagship Slider (Ultra-Modern, Unusual Showcase)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background: #060b13;
  color: #ffffff;
  overflow: hidden;
  padding: 42px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ambient Dynamic Glow */
.hero-ambient-glow {
  position: absolute;
  top: -160px;
  right: 6%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--current-glow, rgba(13, 148, 136, 0.45)) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 72%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 1;
  transition: background 0.8s ease;
  animation: ambientPulse 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes ambientPulse {
  0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.75; }
  100% { transform: translate3d(20px, 25px, 0) scale(1.1); opacity: 0.95; }
}

/* Subtle Cyber Tech Grid Pattern */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 35%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 35%, transparent 95%);
  pointer-events: none;
  z-index: 2;
}

.hero-slider-container {
  position: relative;
  z-index: 3;
}

/* Slides Wrapper */
.hero-slides-wrapper {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
}

/* Left Specs Deck */
.hero-slide-content {
  padding-right: 15px;
}

.hero-spotlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 14px;
}

.pulsing-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: beaconPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes beaconPing {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50% { transform: translate3d(0, 0, 0) scale(1.35); opacity: 0.5; }
}

.hero-phone-heading {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-phone-heading span.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-price-badge {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2dd4bf;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #5eead4;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.hero-status-pill.upcoming {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.hero-desc-text {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 22px;
}

/* Unusual Specs HUD (4-Box Glass Cards) */
.hero-specs-hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  max-width: 580px;
}

.spec-hud-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.spec-hud-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.spec-hud-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-hud-info {
  flex: 1;
  min-width: 0;
}

.spec-hud-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.spec-hud-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slide Action Buttons */
.hero-slide-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
  transition: all 0.25s ease;
  border: none;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Right 3D Showcase Stage */
.hero-phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  perspective: 1200px;
}

.phone-halo-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--slide-accent, rgba(13, 148, 136, 0.45)) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  animation: haloBreathe 5s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes haloBreathe {
  0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.6; }
  100% { transform: translate3d(0, 0, 0) scale(1.15); opacity: 0.9; }
}

.hero-phone-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: phoneFloat 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes phoneFloat {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(0.8deg); }
}

.hero-phone-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.75));
  border-radius: 24px;
  transition: transform 0.4s ease;
}

.hero-phone-card:hover .hero-phone-img {
  transform: scale(1.03) rotate(-1deg);
}

/* Floating Feature Badges (3D Depth Effect) */
.floating-callout-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
  transform: translateZ(0);
}

.floating-callout-badge.badge-top-right {
  top: 15%;
  right: -10px;
  animation: floatBadge1 5s ease-in-out infinite;
}

.floating-callout-badge.badge-mid-left {
  top: 52%;
  left: -20px;
  animation: floatBadge2 6s ease-in-out infinite;
}

.floating-callout-badge.badge-bot-right {
  bottom: 12%;
  right: 10px;
  animation: floatBadge3 5.5s ease-in-out infinite;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 8px, 0); }
}

@keyframes floatBadge3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

/* Slider Controls & Tabs Bar */
.hero-slider-bottom-bar {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-slider-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-slider-tabs::-webkit-scrollbar {
  display: none;
}

.hero-slider-tab {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 16px 12px;
  cursor: pointer;
  flex: 1;
  min-width: 170px;
  text-align: left;
  transition: all 0.25s ease;
  overflow: hidden;
}

.hero-slider-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-slider-tab.active {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(45, 212, 191, 0.4);
}

.hero-tab-index {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.hero-slider-tab.active .hero-tab-index {
  color: #2dd4bf;
}

.hero-tab-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-slider-tab.active .hero-tab-title {
  color: #ffffff;
}

.hero-tab-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-tab-progress {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #0d9488, #38bdf8);
  border-radius: 2px;
  will-change: transform;
}

.hero-slider-tab.active .hero-tab-progress {
  animation: heroTabProgress 6s linear forwards;
}

@keyframes heroTabProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-slider-section:hover .hero-slider-tab.active .hero-tab-progress {
  animation-play-state: paused;
}

.hero-slider-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.slider-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

/* Quick Brands Strip */
.brands-strip {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.brands-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  color: var(--dark-light);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.brand-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Section Headers & Grids
   ========================================================================== */
.section {
  padding: 22px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  gap: 12px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.25;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.view-all-link {
  font-weight: 700;
  color: var(--primary);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary-light);
  border: 1px solid rgba(13, 148, 136, 0.25);
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(2px);
  text-decoration: none;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .section-title {
    font-size: 1.15rem;
    gap: 6px;
  }
  .section-title::before {
    height: 16px;
    width: 3.5px;
  }
  .view-all-link {
    font-size: 12px;
    padding: 3px 9px;
  }
  .heading-text-extra {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.05rem;
  }
  .view-all-link {
    font-size: 11.5px;
    padding: 3px 8px;
  }
}

/* Phone Cards Grid - Reduced Width Layout (8 Cards Per Row on Desktop) */
.phones-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  background: var(--border-color);
}

@media (max-width: 1200px) {
  .phones-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 1024px) {
  .phones-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 860px) {
  .phones-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 700px) {
  .phones-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 540px) {
  .phones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .phones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.catalog-layout .phones-grid {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
  .catalog-layout .phones-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .catalog-layout .phones-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-layout .phones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .catalog-layout .phones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.phone-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-left: none;
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.phone-card:hover {
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.phone-card-image-wrap {
  position: relative;
  background: #f8fafc;
  padding: 10px 6px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 !important;
}

.phone-card-image {
  max-height: 112px;
  max-width: 88%;
  width: auto;
  aspect-ratio: 160 / 212;
  object-fit: contain;
  transition: transform 0.2s ease;
  border-radius: 0 !important;
  content-visibility: auto;
  contain-intrinsic-size: 160px 112px;
}

.phone-card:hover .phone-card-image {
  transform: scale(1.05);
}

/* Brand Name Label - Upper Top Left Corner */
.phone-card-brand-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.phone-card:hover .phone-card-brand-badge {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.phone-card-badge {
  display: none !important;
}

.badge-available {
  background: #dcfce7;
  color: #15803d;
}

.badge-upcoming {
  background: #fef3c7;
  color: #b45309;
}

.badge-rumored {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-discontinued {
  background: #f1f5f9;
  color: #64748b;
}

.phone-card-brand {
  display: none; /* Replaced by top-left label */
}

/* Compact Centered Phone Card Body */
.phone-card-body {
  padding: 5px 6px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex: 1;
  border-radius: 0 !important;
}

.phone-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 2px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
  max-height: 28px;
  width: 100%;
}

.phone-card-title:hover {
  color: var(--primary);
}

/* Landing Page Compact Phone Card - Model Centered Below Image with Zero Excess Space */
.home-phone-card .phone-card-body {
  padding: 6px 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 0 auto;
  min-height: 38px;
  box-sizing: border-box;
}

.home-phone-card .phone-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin: 0;
  padding: 0;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: auto;
  max-height: 30px;
  width: 100%;
}

.phone-card-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1.2;
  text-align: center;
}

/* Specs highlights hidden per user instruction */
.phone-card-specs {
  display: none !important;
}

.phone-card-actions {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--dark-light);
}

.btn-outline:hover {
  background: var(--bg-page);
  border-color: #cbd5e1;
  color: var(--dark);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Brand Cards Grid
   ========================================================================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.brand-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s;
}

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

.brand-card-logo {
  height: 48px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  margin-bottom: 12px;
}

.brand-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
}

.brand-card-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  display: inline-block;
}

/* ==========================================================================
   News & Tech Blog Cards System
   ========================================================================== */
.news-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.news-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 185px;
  background: #f1f5f9;
  overflow: hidden;
}

.news-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb {
  transform: scale(1.04);
}

.news-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4);
}

.news-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a:hover {
  color: var(--primary);
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Compare Section / Widget
   ========================================================================== */
.compare-widget-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.compare-inputs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.compare-select-wrap {
  position: relative;
}

.compare-vs-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

@media (max-width: 768px) {
  .compare-inputs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .compare-vs-badge {
    margin: 4px auto;
  }
  #btnLaunchQuickCompare {
    width: 100%;
    margin-top: 8px !important;
  }
}

/* ==========================================================================
   Phone Detail Page Layout & Specifications Table
   ========================================================================== */
.phone-detail-header {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.phone-detail-top-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
}

.phone-visual-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.phone-main-card,
.phone-main-image-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.phone-main-image {
  max-height: 290px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.phone-main-image:hover {
  transform: scale(1.03);
}

.phone-slider-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-slider-arrow {
  display: none !important; /* Arrows permanently hidden */
}

.slider-arrow-prev {
  left: 6px;
}

.slider-arrow-next {
  right: 6px;
}

.gallery-count-pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  z-index: 4;
  white-space: nowrap;
}

.gallery-count-pill:hover {
  background: rgba(13, 148, 136, 0.95);
  transform: translateX(-50%) scale(1.04);
}

.phone-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2px 0;
}

.phone-thumb-item {
  width: 58px;
  height: 68px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  padding: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.phone-thumb-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.phone-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.3);
}

.phone-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.phone-info-col h1 {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-top: 6px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.phone-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.phone-brand-tag:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.phone-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.phone-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.phone-meta-chip .chip-icon {
  font-size: 12.5px;
  line-height: 1;
}

.phone-meta-clickable {
  cursor: pointer;
  background: #f0fdfa;
  border-color: #ccfbf1;
  color: var(--primary);
}

.phone-meta-clickable:hover {
  background: #ccfbf1;
  border-color: #99f6e4;
  transform: translateY(-1px);
}

.phone-detail-price-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1px solid #99f6e4;
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.05);
}

.price-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-flag {
  font-size: 14px;
  line-height: 1;
}

.price-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f766e;
}

.price-verified-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: auto;
}

.price-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.phone-short-desc {
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 720px;
}

.phone-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-compare-main,
.btn-compare-sub {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ── Phone Quick Action Tab Bar ── */
.phone-quick-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}

.phone-quick-tab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1e293b;
  border-right: 1px solid var(--border-light);
  background: #ffffff;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 0;
  box-sizing: border-box;
}

.phone-quick-tab-item:last-child {
  border-right: none;
}

.phone-quick-tab-item:hover,
.phone-quick-tab-item:active {
  background: #f0fdfa;
  color: var(--primary);
}

.phone-quick-tab-item.tab-item-prices {
  color: var(--primary);
}

.phone-quick-tab-item .tab-icon {
  font-size: 14px;
  line-height: 1;
}

.phone-quick-tab-item .tab-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.phone-quick-tab-item .tab-badge {
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-block;
}

.quick-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quick-spec-item {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.quick-spec-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.quick-spec-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specifications Table Sections */
.specs-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-section-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-section-title {
  background: #f1f5f9;
  color: var(--dark);
  font-size: 15.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-light);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table tr:hover {
  background: #fafafa;
}

.spec-key {
  width: 28%;
  min-width: 160px;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--dark-light);
  font-size: 14px;
  vertical-align: top;
  border-right: 1px solid var(--border-light);
  background: #fafcfd;
}

.spec-val {
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

/* ==========================================================================
   Device Overview & Key Highlights Expand/Collapse
   ========================================================================== */
.overview-card-body {
  padding: 24px;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.phone-overview-card .overview-content-wrap {
  position: relative;
  overflow: hidden;
  max-height: 3000px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-overview-card .overview-content-wrap.collapsed {
  max-height: 155px;
}

.overview-fade-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
  pointer-events: none;
}

.phone-overview-card .overview-content-wrap.collapsed .overview-fade-overlay {
  display: block;
}

.overview-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.btn-overview-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  color: var(--primary, #00897b);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-overview-toggle:hover {
  background: #f1f5f9;
  border-color: var(--primary, #00897b);
  color: var(--primary-dark, #00695c);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-overview-toggle:active {
  transform: translateY(0);
}

.btn-overview-toggle .overview-toggle-icon {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  transition: transform 0.25s ease;
}

@media (max-width: 768px) {
  .overview-card-body {
    padding: 16px;
  }
  .phone-overview-card .overview-content-wrap.collapsed {
    max-height: 140px;
  }
  .overview-toggle-wrap {
    margin-top: 10px;
    padding-top: 8px;
  }
  .btn-overview-toggle {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Multi-country Price Table */
.prices-table {
  width: 100%;
  border-collapse: collapse;
}

.prices-table th {
  background: #f8fafc;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.prices-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

/* Desktop Global Prices Section & Modern Colorful Cards */
.desktop-prices-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.desktop-price-country-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-price-country-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.desktop-price-country-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.desktop-price-country-val {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

/* Mobile Multi-Country Prices Styles (Under / Next to Pakistan Price) */
.mobile-multi-prices-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(13, 148, 136, 0.25);
  width: 100%;
}

@media (min-width: 769px) {
  .mobile-multi-prices-wrap {
    display: none !important;
  }
}

.mobile-multi-prices-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f766e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-intl-prices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  width: 100%;
}

.mobile-price-chip {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.mobile-price-chip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
}

.mobile-price-chip-val {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
}

/* Mobile Filter Drawer Popup Overlay */
.mobile-filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-filter-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-filter-drawer-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-filter-drawer-overlay.active .mobile-filter-drawer-sheet {
  transform: translateY(0);
}

.mobile-filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mobile-filter-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}

.mobile-filter-drawer-title svg {
  color: var(--primary);
}

.mobile-filter-drawer-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.mobile-filter-drawer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mobile-filter-drawer-body {
  padding: 14px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.mobile-filter-drawer-body .adv-filter-card {
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-filter-drawer-body .adv-filter-header {
  display: none !important;
}

.phone-mobile-title-container {
  display: none;
}

/* ==========================================================================
   External Store Deals / Affiliate Links (Where to Buy)
   ========================================================================== */
.phone-affiliate-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.phone-affiliate-body {
  padding: 18px 20px;
}

.phone-affiliate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.affiliate-deal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.affiliate-deal-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.deal-store-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.deal-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.deal-store-badge .store-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.deal-tag {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.deal-price-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-price-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.deal-price-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.deal-action-col {
  margin-left: auto;
}

.deal-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.deal-buy-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .phone-affiliate-body {
    padding: 12px 14px;
  }
  .phone-affiliate-list {
    gap: 9px;
  }
  .affiliate-deal-item {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
  }
  .deal-store-info {
    min-width: 0;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .deal-store-badge {
    padding: 4px 8px;
    font-size: 11.5px;
    gap: 5px;
  }
  .deal-store-badge .store-dot {
    width: 6px;
    height: 6px;
  }
  .deal-tag {
    font-size: 10px;
    max-width: 85px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  .deal-price-col {
    margin-left: auto;
    margin-right: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
    min-width: 0;
    flex-shrink: 0;
  }
  .deal-price-label {
    font-size: 9px;
    color: #64748b;
    letter-spacing: 0.3px;
    line-height: 1;
  }
  .deal-price-val {
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.2;
  }
  .deal-action-col {
    width: auto;
    margin-left: 0;
    flex-shrink: 0;
  }
  .deal-buy-btn {
    width: auto;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    gap: 5px;
    border-radius: 6px;
    justify-content: center;
    white-space: nowrap;
  }
  .deal-buy-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 380px) {
  .affiliate-deal-item {
    padding: 8px 10px;
    gap: 6px;
  }
  .deal-tag {
    display: none;
  }
  .deal-price-label {
    display: none;
  }
  .deal-price-val {
    font-size: 12.5px;
  }
  .deal-buy-btn {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }
}

/* ==========================================================================
   Video Review & Unboxing (YouTube Responsive Player)
   ========================================================================== */
.phone-video-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.phone-video-body {
  padding: 18px 20px;
  background: #0f172a;
}

.phone-video-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.phone-video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Comparison Page
   ========================================================================== */
.compare-matrix-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.compare-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compare-matrix th, .compare-matrix td {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  vertical-align: top;
}

.compare-head-col {
  width: 200px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
}

.compare-phone-card {
  text-align: center;
  position: relative;
}

.compare-phone-thumb {
  max-height: 140px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.compare-phone-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.compare-phone-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
}

.compare-section-header-row {
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-section-header-row td {
  border-color: #0f172a;
  padding: 10px 18px;
}

.compare-add-card {
  min-width: 220px;
  vertical-align: middle;
  background: #f8fafc;
  border: 2px dashed #cbd5e1 !important;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.compare-add-card:hover {
  border-color: var(--primary) !important;
  background: #f1f5f9;
}

.compare-add-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.compare-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

.compare-add-card:hover .compare-add-icon {
  background: var(--primary);
  color: #fff;
}

.compare-add-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.compare-slot-search-wrap {
  width: 100%;
  position: relative;
}

.compare-slot-search {
  width: 100%;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #fff;
}

.compare-slot-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  text-align: left;
}

.compare-slot-dropdown.show {
  display: block;
}

.compare-suggestions-bar {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.compare-suggestions-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compare-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.compare-cell-empty {
  background: #fcfdfe;
  border-style: dashed !important;
  color: #94a3b8;
  text-align: center;
}


/* ==========================================================================
   Catalog & Filter Sidebar (/phones)
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Mobile Filter Bar Toggle Button (Desktop: Hidden) */
.mobile-filter-bar {
  display: none;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-chevron {
  display: none;
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.filter-group-content {
  display: block;
}

.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
}

.filter-label input[type="checkbox"],
.filter-label input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-price-inputs input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.catalog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-count {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.catalog-sort select {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  outline: none;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-light);
  cursor: pointer;
  transition: all 0.15s;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-top {
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .phone-detail-top-grid {
    grid-template-columns: 1fr;
  }

  .phone-main-image-wrap {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  /* ── Mobile Header ── */
  .header-inner {
    height: 56px;
    gap: 8px;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 7px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 22px;
    transition: background 0.15s ease;
  }

  .mobile-toggle:hover,
  .mobile-toggle:active {
    background: #f1f5f9;
  }

  /* ─── Clean Mobile Navigation Dropdown (No blur, no fixed transitions) ─── */
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 8px 12px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--primary);
    gap: 2px;
    z-index: 999;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .nav-links.show {
    display: flex;
    animation: mobileNavDrop 0.2s ease-out both;
  }

  @keyframes mobileNavDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Drawer header & backdrop — mobile only */
  .nav-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 998;
  }
  .nav-drawer-backdrop.show { display: block !important; }

  /* Show drawer header on mobile */
  .nav-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
  }
  .nav-drawer-header .nav-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
  }
  .nav-drawer-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f1f5f9; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
  }
  .nav-drawer-close svg { width: 15px; height: 15px; }

  .nav-drawer-section-label {
    display: block !important;
    font-size: 10px; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 1.2px;
    padding: 6px 8px 4px;
  }

  /* Show injected icons on mobile */
  .nav-links .nav-link > svg:not(.svg-icon) {
    display: inline-block !important;
  }

  /* ── Mobile Filters Collapsible Drawer & Closed Filter Groups ── */
  .mobile-filter-bar {
    display: block;
    margin-bottom: 14px;
  }

  .mobile-filter-bar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #ffffff;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
    transition: all 0.2s ease;
  }

  .mobile-filter-bar-btn:active {
    background: #f0fdfa;
    transform: scale(0.99);
  }

  .mobile-filter-toggle-state {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
  }

  .filter-sidebar {
    display: none; /* Closed by default in mobile view */
    margin-bottom: 20px;
    position: static;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 16px;
  }

  .filter-sidebar.mobile-open {
    display: block !important;
    animation: fadeInSlide 0.25s ease;
  }

  @keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Inside mobile view, all filter groups are closed by default! */
  .filter-accordion-group {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
  }

  .filter-accordion-group .filter-title {
    cursor: pointer;
    user-select: none;
    padding: 8px 4px;
    border-radius: 6px;
    margin-bottom: 0;
    transition: background 0.15s ease;
  }

  .filter-accordion-group .filter-title:active {
    background: #f8fafc;
  }

  .filter-accordion-group .filter-chevron {
    display: inline-block !important;
  }

  .filter-accordion-group .filter-group-content {
    display: none; /* Closed by default on mobile! */
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .filter-accordion-group.is-expanded .filter-group-content {
    display: block; /* Opens on click! */
    animation: fadeInSlide 0.2s ease;
  }

  .filter-accordion-group.is-expanded .filter-chevron {
    transform: rotate(180deg);
    color: var(--primary);
  }

  .nav-links li {
    width: 100%;
    padding: 0 12px;
  }

  .nav-links .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    border-radius: 10px;
    border-left: none;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
  }

  .nav-links .nav-link svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.15s ease;
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link:active {
    background: #f0fdfa;
    color: var(--primary);
    border-left-color: transparent;
  }

  .nav-links .nav-link:hover svg,
  .nav-links .nav-link:active svg {
    color: var(--primary);
  }

  .nav-links .nav-link.active {
    background: #f0fdfa;
    color: var(--primary);
    font-weight: 700;
    border-left-color: transparent;
  }

  .nav-links .nav-link.active svg {
    color: var(--primary);
  }

  .nav-links .nav-link.active::after {
    display: none;
  }

  /* Login button in drawer */
  .nav-links .nav-login-btn {
    margin-top: 8px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 10px;
    justify-content: center;
    font-weight: 700;
  }
  .nav-links .nav-login-btn:hover {
    background: var(--primary-dark);
    color: #fff !important;
  }
  .nav-links .nav-login-btn svg { color: #fff !important; }

  /* Mobile Header Actions (Search Icon + Hamburger) */
  .header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-filter-btn,
  .mobile-search-toggle {
    display: inline-flex;
  }

  /* Desktop search hidden by default on mobile */
  .header-search {
    display: none;
  }

  /* When mobile search icon is clicked — full-width bar below header */
  .header-search.mobile-open {
    display: block !important;
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid var(--primary) !important;
    box-shadow: 0 12px 25px -4px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    z-index: 10001 !important;
    margin: 0 !important;
    animation: headerSearchSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .header-search.mobile-open input {
    width: 100%;
    height: 44px;
    font-size: 15px;
    padding: 10px 18px 10px 42px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-page);
    border-radius: var(--radius-full);
    box-sizing: border-box;
  }

  .header-search.mobile-open input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    outline: none;
  }

  .header-search.mobile-open .search-icon {
    left: 28px;
  }

  .header-search.mobile-open .search-results-dropdown {
    position: fixed;
    top: calc(68px + 68px);
    left: 0;
    right: 0;
    width: 100vw;
    max-height: 65vh;
    z-index: 10002;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
    border-radius: 0;
  }

  @keyframes headerSearchSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ── Hero Flagship Slider Mobile ── */
  .hero-slider-section {
    padding: 22px 0 16px;
    overflow: hidden;
  }

  .hero-slides-wrapper {
    min-height: auto;
  }

  .hero-slide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .hero-slide-content {
    padding-right: 0;
    max-width: 100%;
  }

  .hero-spotlight-pill {
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 10px;
  }

  .hero-phone-heading {
    font-size: 1.7rem;
    line-height: 1.18;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
  }

  .hero-meta-strip {
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-price-badge {
    font-size: 1.25rem;
  }

  .hero-status-pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .hero-desc-text {
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    max-width: 520px;
  }

  /* 2-Column Clean HUD Grid */
  .hero-specs-hud {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 520px;
    width: 100%;
  }

  .spec-hud-card {
    padding: 8px 10px;
    gap: 8px;
    align-items: center;
    border-radius: 10px;
    min-width: 0;
    text-align: left;
  }

  .spec-hud-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .spec-hud-icon svg {
    width: 16px;
    height: 16px;
  }

  .spec-hud-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .spec-hud-label {
    font-size: 9.5px;
    margin-bottom: 1px;
  }

  .spec-hud-val {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-slide-actions {
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 9px 18px;
    font-size: 13px;
  }

  /* Compact 3D Stage on Mobile */
  .hero-phone-stage {
    min-height: 220px;
    max-height: 250px;
    order: -1;
    perspective: 800px;
    margin-bottom: 4px;
  }

  .hero-phone-card {
    height: 210px;
    max-width: 220px;
    animation: phoneFloat 5s ease-in-out infinite;
  }

  .hero-phone-img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    border-radius: 16px;
  }

  .phone-halo-glow {
    width: 220px;
    height: 220px;
    filter: blur(40px);
  }

  .floating-callout-badge {
    font-size: 10.5px;
    padding: 5px 10px;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  .floating-callout-badge.badge-top-right {
    top: 6px;
    right: 8px;
  }

  .floating-callout-badge.badge-bot-right {
    bottom: 6px;
    right: 8px;
  }

  /* Bottom Navigation Tabs */
  .hero-slider-bottom-bar {
    margin-top: 14px;
    padding-top: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .hero-slider-tabs {
    width: 100%;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px;
    scrollbar-width: none;
  }

  .hero-slider-tabs::-webkit-scrollbar {
    display: none;
  }

  .hero-slider-tab {
    flex: 0 0 auto;
    min-width: 115px;
    max-width: 140px;
    scroll-snap-align: center;
    padding: 7px 10px 8px;
    border-radius: 8px;
    text-align: left;
  }

  .hero-tab-index {
    font-size: 9.5px;
    letter-spacing: 0.3px;
  }

  .hero-tab-title {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-slider-arrows {
    display: none;
  }

  /* ── Compare Mobile ── */
  .compare-inputs-grid {
    grid-template-columns: 1fr;
  }

  .compare-vs-badge {
    margin: 0 auto;
  }

  .spec-table {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .spec-table tr {
    display: table-row;
  }

  .spec-key {
    display: table-cell;
    width: 32%;
    min-width: 95px;
    max-width: 130px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-light);
    border-right: 1px solid var(--border-light);
    border-bottom: none;
    background: #fafcfd;
    vertical-align: top;
    word-break: break-word;
  }

  .spec-val {
    display: table-cell;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* ── Footer Mobile ── */
  .footer-top {
    padding: 32px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-col .brand-logo {
    justify-content: center;
    font-size: 1.2rem;
  }

  .footer-col p {
    font-size: 13px;
  }

  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footer-links {
    align-items: center;
    font-size: 13px;
  }

  .footer-bottom {
    padding: 14px 0;
    font-size: 12px;
  }

  /* ── Phone Detail Page Mobile Responsiveness ── */
  .phone-mobile-title-container {
    display: block !important;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .phone-mobile-main-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.4px;
  }

  .phone-desktop-only-heading {
    display: none !important;
  }

  .phone-detail-header {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  /* 2-Column Split: Left Image Slider, Right Tags */
  .phone-detail-top-grid {
    display: grid !important;
    grid-template-columns: 145px 1fr !important;
    grid-template-areas:
      "visual meta"
      "price  price"
      "desc   desc"
      "action action" !important;
    gap: 12px !important;
    align-items: stretch;
  }

  .phone-visual-col {
    grid-area: visual;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  .phone-main-card {
    min-height: 200px;
    max-height: 215px;
    padding: 10px 4px 26px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
  }

  .phone-main-image {
    max-height: 165px;
    max-width: 100%;
    object-fit: contain;
  }

  /* Hide thumbnail gallery row on mobile per user instruction */
  .phone-gallery-thumbs {
    display: none !important;
  }

  .phone-info-col {
    display: contents !important;
  }

  /* Right column meta box beside image */
  .phone-hero-meta-box {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    padding-top: 2px;
    min-width: 0;
  }

  .phone-hero-meta-box .phone-brand-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    align-self: flex-start;
    margin-bottom: 2px;
    text-transform: uppercase;
  }

  .phone-hero-meta-box .phone-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 0;
    width: 100%;
  }

  .phone-hero-meta-box .phone-meta-chip {
    width: 100%;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
    justify-content: flex-start;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .phone-detail-price-box {
    grid-area: price;
    width: 100% !important;
    margin-bottom: 8px !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    box-sizing: border-box;
  }

  .price-header-row {
    gap: 5px;
  }

  .price-label {
    font-size: 11px;
  }

  .price-verified-badge {
    font-size: 10px;
    padding: 1px 5px;
  }

  .price-val {
    font-size: 1.55rem;
  }

  .phone-short-desc {
    grid-area: desc;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }

  .phone-action-buttons {
    grid-area: action;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .btn-compare-main,
  .btn-compare-sub {
    width: 100%;
    padding: 10px 6px;
    font-size: 12.5px;
    text-align: center;
    box-sizing: border-box;
  }

  .desktop-prices-cards-grid {
    display: none !important;
  }

  /* ── Quick Action Tab Bar: 100% Inside Screen, No Scrollbar ── */
  .phone-quick-tabs {
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
  }

  .phone-quick-tab-item {
    flex-direction: column;
    gap: 2px;
    padding: 8px 1px;
    font-size: 10px;
    letter-spacing: -0.2px;
    min-width: 0;
  }

  .phone-quick-tab-item .tab-icon {
    font-size: 15px;
    margin-bottom: 1px;
  }

  .phone-quick-tab-item .tab-text {
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.15;
    white-space: normal;
  }

  .phone-quick-tab-item .tab-badge {
    font-size: 9px;
    padding: 0 4px;
    margin-left: 0;
    margin-top: 1px;
  }
}

@media (max-width: 480px) {
  /* ── Header Extra Small ── */
  .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 6px;
  }

  .brand-icon {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .nav-links .nav-link {
    padding: 12px 20px;
    font-size: 14px;
  }

  .mobile-nav-search-item {
    padding: 10px 16px 6px;
  }

  .mobile-nav-search input {
    height: 38px;
    font-size: 13px;
  }

  /* ── Hero Extra Small ── */
  .hero-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  /* ── Hero Flagship Slider Extra Small ── */
  .hero-slider-section {
    padding: 16px 0 14px;
  }

  .hero-slide-grid {
    gap: 12px;
  }

  .hero-phone-stage {
    min-height: 185px;
    max-height: 200px;
  }

  .hero-phone-card {
    height: 180px;
    max-width: 180px;
  }

  .hero-phone-img {
    max-height: 175px;
  }

  .phone-halo-glow {
    width: 180px;
    height: 180px;
    filter: blur(30px);
  }

  .floating-callout-badge {
    font-size: 9.5px;
    padding: 3px 8px;
    gap: 4px;
  }

  .hero-spotlight-pill {
    font-size: 10px;
    padding: 3px 9px;
    margin-bottom: 6px;
  }

  .hero-phone-heading {
    font-size: 1.42rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .hero-price-badge {
    font-size: 1.15rem;
  }

  .hero-status-pill {
    font-size: 10px;
    padding: 2px 7px;
  }

  .hero-desc-text {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-specs-hud {
    gap: 6px;
    margin-bottom: 12px;
  }

  .spec-hud-card {
    padding: 6px 8px;
    gap: 6px;
  }

  .spec-hud-icon {
    width: 26px;
    height: 26px;
  }

  .spec-hud-icon svg {
    width: 14px;
    height: 14px;
  }

  .spec-hud-label {
    font-size: 8.5px;
  }

  .spec-hud-val {
    font-size: 11px;
  }

  .hero-slide-actions {
    gap: 8px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-slider-tab {
    min-width: 100px;
    max-width: 125px;
    padding: 6px 8px 7px;
  }

  .hero-tab-index {
    font-size: 8.5px;
  }

  .hero-tab-title {
    font-size: 11px;
  }

  /* ── Spec Table Extra Small ── */
  .spec-key {
    width: 30%;
    min-width: 85px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .spec-val {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .spec-section-title {
    padding: 10px 14px;
    font-size: 13.5px;
  }

  /* ── Grid Extra Small ── */
  .phones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Footer Extra Small ── */
  .footer-top {
    padding: 24px 0 16px;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-col h4 {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .footer-links {
    font-size: 12px;
    gap: 5px;
  }

  .footer-bottom {
    font-size: 11px;
    padding: 12px 0;
  }

  /* ── Phone Detail Extra Small ── */
  .phone-detail-header {
    padding: 12px;
  }

  .phone-info-col h1 {
    font-size: 1.4rem;
  }

  .price-val {
    font-size: 1.45rem;
  }

  .phone-quick-tab-item {
    padding: 7px 1px;
  }

  .phone-quick-tab-item .tab-icon {
    font-size: 13.5px;
  }

  .phone-quick-tab-item .tab-text {
    font-size: 9px;
  }

  .phone-action-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .phone-action-buttons {
    grid-template-columns: 1fr;
  }

  .phone-quick-tab-item .tab-text {
    font-size: 8.5px;
  }

  .phone-quick-tab-item .tab-icon {
    font-size: 12.5px;
  }
}

/* ── Rich Comment & Review Inline Styling ── */
.comment-inline-image {
  max-width: 100%;
  max-height: 380px;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
  display: block;
  border: 1px solid #cbd5e1;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ql-toolbar.ql-snow {
  border-color: #cbd5e1 !important;
  border-radius: 6px 6px 0 0 !important;
  background: #f8fafc !important;
}

.ql-container.ql-snow {
  border-color: #cbd5e1 !important;
  border-radius: 0 0 6px 6px !important;
  font-family: inherit !important;
  background: #ffffff !important;
}

.ql-editor {
  line-height: 1.65;
  font-size: 14px;
}

.ql-editor.ql-blank::before {
  color: #94a3b8;
  font-style: normal;
}

/* ==========================================================================
   GSMArena-Style 2-Column Layout & Sidebar Widgets
   ========================================================================== */

.gsm-page-wrapper {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

/* Single Phone Detail Page Grid Layout (Desktop: clean 2-column sidebar + main, NO huge gap) */
.phone-page-wrapper {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

.phone-page-wrapper .detail-adv-filter-wrapper {
  display: none !important;
}

.phone-page-wrapper .gsm-sidebar-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phone-page-wrapper #desktopFilterSlot {
  width: 100%;
  margin: 0;
  padding: 0;
}

.phone-page-wrapper #desktopFilterSlot .adv-filter-card {
  display: block !important;
  margin-bottom: 0 !important;
}

.phone-page-wrapper .gsm-main-col {
  min-width: 0;
  width: 100%;
}

@media (max-width: 991px) {
  .gsm-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gsm-main-col {
    order: 1; /* Mobile phone post shows FIRST on mobile screens */
    width: 100%;
  }

  .gsm-sidebar-col {
    order: 2; /* Sidebar widgets show AFTER the mobile post on mobile screens */
    width: 100%;
    margin-top: 10px;
  }

  /* Single Phone Page: Collapsible Advanced Filter on Top */
  .phone-page-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .phone-page-wrapper .detail-adv-filter-wrapper {
    display: block !important;
    order: 1 !important; /* Advanced filter bar is on the VERY TOP */
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .phone-page-wrapper .detail-mobile-filter-bar {
    display: block !important;
    margin-bottom: 0 !important;
  }

  /* By default on mobile, the top filter slot is collapsed */
  .phone-page-wrapper #mobileFilterTopSlot {
    display: none;
    margin-top: 10px;
    animation: detailFilterSlide 0.22s ease-out;
  }

  /* When opened on mobile, it expands smoothly */
  .phone-page-wrapper .detail-adv-filter-wrapper.mobile-open #mobileFilterTopSlot {
    display: block !important;
  }

  .phone-page-wrapper #mobileFilterTopSlot .adv-filter-card {
    display: block !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  }

  .phone-page-wrapper .gsm-main-col {
    order: 2 !important; /* Mobile phone post shows directly under the filter toggle */
    width: 100% !important;
  }

  .phone-page-wrapper .gsm-sidebar-col {
    order: 3 !important; /* Sidebar widgets show AFTER the mobile post */
    width: 100% !important;
    margin-top: 10px !important;
  }
}

@keyframes detailFilterSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gsm-sidebar-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gsm-main-col {
  min-width: 0;
  width: 100%;
}

/* ==========================================================================
   Home Page Desktop Layout with Brand Sidebar Menu
   ========================================================================== */
/* ==========================================================================
   Home Page Desktop Layout with Modern Professional Advanced Filters Sidebar
   ========================================================================== */
@media (min-width: 992px) {
  .mobile-only-strip {
    display: none !important;
  }

  .home-desktop-wrapper {
    display: grid !important;
    grid-template-columns: 270px 1fr !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
  }

  .home-sidebar-col {
    display: flex !important;
    flex-direction: column !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    position: sticky !important;
    top: 86px !important;
  }

  .home-main-col {
    min-width: 0 !important;
    width: 100% !important;
  }

  .home-main-col .phones-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .home-desktop-wrapper {
    grid-template-columns: 250px 1fr !important;
    gap: 18px !important;
  }

  .home-sidebar-col {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
  }

  .home-main-col .phones-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

@media (max-width: 991px) {
  .mobile-only-strip {
    display: block !important;
  }

  .home-desktop-wrapper {
    display: block !important;
    width: 100% !important;
  }

  .home-sidebar-col {
    display: none !important;
  }

  .home-main-col {
    width: 100% !important;
  }

  .home-main-col .phones-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 700px) {
  .home-main-col .phones-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .home-main-col .phones-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   Modern Professional Advanced Filter Sidebar Card
   ========================================================================== */
.adv-filter-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  padding: 18px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.adv-filter-card::-webkit-scrollbar {
  width: 5px;
}
.adv-filter-card::-webkit-scrollbar-track {
  background: transparent;
}
.adv-filter-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Header */
.adv-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.adv-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.2px;
}

.adv-filter-title svg {
  color: var(--primary);
}

.adv-filter-reset {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.adv-filter-reset:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Filter Sections */
.adv-filter-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.adv-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.adv-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.adv-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--dark-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.adv-badge-count {
  font-size: 10.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Search Box */
.adv-search-box {
  position: relative;
  margin-bottom: 9px;
}

.adv-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.adv-search-input {
  width: 100%;
  height: 33px;
  padding: 0 10px 0 30px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  transition: all 0.15s ease;
}

.adv-search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

/* Brand List */
.adv-brands-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 205px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.adv-brands-list::-webkit-scrollbar {
  width: 4px;
}
.adv-brands-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.adv-brand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 7px;
  border-radius: 5px;
  transition: background 0.12s ease;
  cursor: pointer;
  user-select: none;
}

.adv-brand-item:hover {
  background: #f0fdfa;
}

.adv-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.adv-brand-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 3px;
}

.adv-brand-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adv-brand-item:hover .adv-brand-name {
  color: var(--primary);
}

.adv-brand-count {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  flex-shrink: 0;
}

.adv-brand-item:hover .adv-brand-count {
  background: #ccfbf1;
  color: var(--primary-hover);
}

/* Price Inputs & Range Chips */
.adv-price-inputs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.adv-price-field {
  position: relative;
  flex: 1;
}

.adv-price-field span {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  pointer-events: none;
}

.adv-price-input {
  width: 100%;
  height: 31px;
  padding: 0 6px 0 25px;
  font-size: 11.5px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
}

.adv-price-input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.adv-price-sep {
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

/* Chips Grid (Price Presets, RAM, Storage) */
.adv-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.adv-chip {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  text-decoration: none;
  line-height: 1.3;
}

.adv-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0fdfa;
}

.adv-chip.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* 5G Toggle Switch */
.adv-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.adv-toggle-row:hover {
  background: #f0fdfa;
  border-color: var(--primary-border);
}

.adv-toggle-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.adv-toggle-title svg {
  color: var(--primary);
}

.adv-toggle-badge {
  font-size: 9px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.adv-switch {
  position: relative;
  width: 34px;
  height: 18px;
  display: inline-block;
  cursor: pointer;
}

.adv-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.adv-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 20px;
}

.adv-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.adv-switch input:checked + .adv-slider {
  background-color: var(--primary);
}

.adv-switch input:checked + .adv-slider:before {
  transform: translateX(16px);
}

/* Apply Filters Button */
.adv-apply-btn {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.25);
  transition: all 0.15s ease;
  margin-top: 14px;
}

.adv-apply-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 5px 15px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

/* Widget Card Shell */
.gsm-widget-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.gsm-widget-title {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gsm-widget-title .widget-icon {
  font-size: 14px;
}

.gsm-widget-body {
  padding: 12px;
}

.gsm-widget-footer-link {
  display: block;
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  text-align: right;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.15s ease;
}

.gsm-widget-footer-link:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  text-decoration: underline;
}

/* 1. Phone Finder / Brands Grid */
.gsm-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.gsm-brand-item {
  background: #ffffff;
  padding: 7px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.gsm-brand-item:hover {
  background: var(--primary);
  color: #ffffff;
}

.gsm-brand-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-color);
}

.gsm-brand-action-btn {
  background: #f8fafc;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  display: block;
  transition: all 0.15s ease;
}

.gsm-brand-action-btn:hover {
  background: #0f172a;
  color: #ffffff;
}

/* 2. Prices Widget */
.gsm-price-variant-selector {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #ffffff;
  color: #1e293b;
  margin-bottom: 10px;
  outline: none;
}

.gsm-prices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gsm-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
  font-size: 12px;
  transition: background 0.12s;
}

.gsm-price-row:hover {
  background: #f1f5f9;
}

.gsm-price-store {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #334155;
}

.gsm-price-value {
  font-weight: 800;
  color: #b91c1c;
  font-size: 13px;
}

.gsm-btn-show-prices {
  display: block;
  width: 100%;
  padding: 7px 0;
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  margin-top: 10px;
  letter-spacing: 0.4px;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
}

.gsm-btn-show-prices:hover {
  background: var(--primary);
}

/* 3. In The News Widget */
.gsm-news-list {
  display: flex;
  flex-direction: column;
}

.gsm-news-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  transition: background 0.12s ease;
  text-decoration: none;
}

.gsm-news-item:last-child {
  border-bottom: none;
}

.gsm-news-item:hover {
  background: #f8fafc;
}

.gsm-news-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.gsm-news-info {
  min-width: 0;
  flex: 1;
}

.gsm-news-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.gsm-news-item:hover .gsm-news-title {
  color: var(--primary);
}

.gsm-news-meta {
  font-size: 10.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 4. Phone Reviews Banner Widget */
.gsm-review-banner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
}

.gsm-review-banner-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gsm-review-banner:hover .gsm-review-banner-img {
  transform: scale(1.04);
  opacity: 1;
}

.gsm-review-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.gsm-review-banner-tag {
  background: #b91c1c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 4px;
}

.gsm-review-banner-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

/* 5 & 6. Devices Grid (Related & Popular) */
.gsm-devices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.gsm-device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.15s ease;
  text-decoration: none;
}

.gsm-device-item:hover {
  border-color: var(--primary-border);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.gsm-device-thumb {
  width: 54px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 6px;
}

.gsm-device-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 26px;
}

.gsm-device-item:hover .gsm-device-name {
  color: var(--primary);
}

/* Sticky sidebar ad container */
.gsm-sidebar-ad-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gsm-sticky-sidebar {
  position: sticky;
  top: 76px;
  z-index: 20;
}

/* ==========================================================================
   Modern Flat Reviews & Comments Feed (Eliminates Nested "Block Inside Block")
   ========================================================================== */

/* Outer Section Wrappers */
.reviews-content-wrap {
  padding: 24px;
}

.comments-content-wrap {
  padding: 28px;
}

@media (max-width: 768px) {
  .reviews-content-wrap {
    padding: 14px 10px !important;
  }
  .comments-content-wrap {
    padding: 16px 12px !important;
  }
}

/* Rating Overview Grid — Clean & Responsive */
.phone-rating-overview-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.phone-rating-score-card {
  text-align: center;
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .phone-rating-overview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }
  .phone-rating-score-card {
    padding: 14px 16px;
  }
}

/* Clean Form Containers (Sleek, Not Heavy Cluttered Boxes) */
.review-form-card,
.comment-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .review-form-card,
  .comment-form-card {
    padding: 14px 12px !important;
    margin-bottom: 18px;
    border-radius: 6px;
  }
}

/* Reviews and Comments Feed — Flat, Divided Items (NO Box-in-Box) */
.reviews-feed-list,
.comments-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.review-thread-item,
.comment-thread-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 18px 0 !important;
  margin-bottom: 0 !important;
  transition: background 0.15s ease;
}

.review-thread-item:last-child,
.comment-thread-item:last-child {
  border-bottom: none !important;
}

@media (max-width: 768px) {
  .review-thread-item,
  .comment-thread-item {
    padding: 14px 0 !important;
  }
}

/* Threaded Replies — Flat Indented Tree (NO Box-in-Box) */
.thread-reply-item,
.comment-reply-item {
  background: transparent !important;
  border: none !important;
  border-left: 2.5px solid #cbd5e1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 0 8px 14px !important;
  margin-top: 10px !important;
  margin-left: 14px !important;
}

.thread-reply-item.is-admin-reply,
.comment-reply-item.is-admin-reply {
  border-left-color: #3b82f6 !important;
  background: rgba(239, 246, 255, 0.4) !important;
  border-radius: 0 6px 6px 0 !important;
  padding-right: 8px !important;
}

@media (max-width: 768px) {
  .thread-reply-item,
  .comment-reply-item {
    margin-left: 8px !important;
    padding-left: 10px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
}

/* Inline Reply Form (Clean & Flat) */
.inline-reply-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 14px 16px !important;
  margin-top: 12px !important;
  margin-left: 14px !important;
}

@media (max-width: 768px) {
  .inline-reply-box {
    margin-left: 0 !important;
    padding: 10px 12px !important;
  }
}

/* ── Phone Card Stats: Compact count on mobile ── */
@media (max-width: 768px) {
  .phone-card-stats-row .stat-label {
    display: inline;
    font-size: 11px;
    font-weight: 600;
  }
  .phone-card-stats-row > span {
    gap: 3px !important;
    font-size: 12px;
  }
}

/* ==========================================================================
   Phone Detail Gallery Strip & Lightbox Styling
   ========================================================================== */
.phone-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.phone-thumb-item {
  width: 58px;
  height: 64px;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-thumb-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.phone-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.phone-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-count-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.gallery-count-pill:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Phone Detail Video Review & Unboxing Player Styling
   ========================================================================== */
.phone-video-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.phone-video-body {
  padding: 16px;
  background: #f8fafc;
}

.phone-video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0f172a;
  box-shadow: var(--shadow-sm);
}

.phone-video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Scroll To Top Button
   ========================================================================== */

#scrollToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.45), 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), visibility 0.3s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#scrollToTopBtn:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #0a6660 100%);
  box-shadow: 0 6px 28px rgba(13, 148, 136, 0.6), 0 2px 10px rgba(0,0,0,0.22);
  transform: translateY(-2px) scale(1.07);
}

#scrollToTopBtn:active {
  transform: translateY(0) scale(0.96);
}

#scrollToTopBtn svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  flex-shrink: 0;
}

/* Ripple animation on click */
#scrollToTopBtn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#scrollToTopBtn.ripple::after {
  opacity: 1;
  transform: scale(1.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #scrollToTopBtn {
    bottom: 18px;
    right: 14px;
    width: 42px;
    height: 42px;
  }
  #scrollToTopBtn svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Floating Social Channels Dock (TikTok, Facebook, WhatsApp)
   ========================================================================== */

#floatingSocialDock {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

#floatingSocialDock.has-scroll-btn {
  bottom: 86px;
}

#floatingSocialDock .social-float-btn,
#whatsappFloatBtn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
}

#whatsappFloatBtn:not(.social-float-btn) {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
}
#whatsappFloatBtn:not(.social-float-btn).has-scroll-btn {
  bottom: 86px;
}

#floatingSocialDock .social-float-btn:hover,
#whatsappFloatBtn:hover {
  transform: translateY(-2px) scale(1.08);
}

#floatingSocialDock .social-float-btn:active,
#whatsappFloatBtn:active {
  transform: translateY(0) scale(0.96);
}

#floatingSocialDock .social-float-btn svg,
#whatsappFloatBtn svg,
#whatsappFloatBtn .whatsapp-icon {
  display: block;
  flex-shrink: 0;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

#whatsappFloatBtn svg,
#whatsappFloatBtn .whatsapp-icon {
  width: 26px;
  height: 26px;
}

/* YouTube Floating Button */
#youtubeFloatBtn {
  background: #FF0000;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.45);
}
#youtubeFloatBtn:hover {
  background: #e60000;
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.65);
}

/* Instagram Floating Button */
#instagramFloatBtn {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(214, 36, 159, 0.45);
}
#instagramFloatBtn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(214, 36, 159, 0.65);
}

/* TikTok Floating Button */
#tiktokFloatBtn {
  background: #010101;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
#tiktokFloatBtn:hover {
  background: #000000;
  box-shadow: 0 6px 22px rgba(254, 44, 85, 0.5), 0 0 12px rgba(37, 244, 238, 0.35);
}

/* Facebook Floating Button */
#facebookFloatBtn {
  background: #1877F2;
  color: #fff;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.45);
}
#facebookFloatBtn:hover {
  background: #166fe5;
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.65);
}

/* WhatsApp Floating Button */
#whatsappFloatBtn {
  position: relative;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  will-change: transform;
}
#whatsappFloatBtn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  z-index: -1;
  transform: scale(1);
  animation: waPulseGlow 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
#whatsappFloatBtn:hover {
  background: #20ba5a;
  transform: scale(1.06);
}

@keyframes waPulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #whatsappFloatBtn::before {
    animation: none;
    display: none;
  }
}

/* Tooltips on hover */
#floatingSocialDock .social-float-tooltip,
#whatsappFloatBtn .whatsapp-tooltip {
  position: absolute;
  right: 58px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  font-family: inherit;
}

#floatingSocialDock .social-float-btn:hover .social-float-tooltip,
#whatsappFloatBtn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #floatingSocialDock {
    bottom: 18px;
    right: 14px;
    gap: 8px;
  }
  #floatingSocialDock.has-scroll-btn {
    bottom: 68px;
  }
  #floatingSocialDock .social-float-btn,
  #whatsappFloatBtn {
    width: 42px;
    height: 42px;
  }
  #whatsappFloatBtn:not(.social-float-btn) {
    bottom: 18px;
    right: 14px;
  }
  #whatsappFloatBtn:not(.social-float-btn).has-scroll-btn {
    bottom: 68px;
  }
  #floatingSocialDock .social-float-btn svg,
  #whatsappFloatBtn svg,
  #whatsappFloatBtn .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
  #floatingSocialDock .social-float-tooltip,
  #whatsappFloatBtn .whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================================================
   Content-Visibility Performance Boost for Below-The-Fold Sections
   Eliminates layout recalculation for offscreen DOM subtrees (Saves ~120ms CPU)
   ========================================================================== */
#popularPhonesGrid,
#upcomingPhonesGrid,
.compare-widget-box,
.news-grid,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 450px;
}

