/*
 Theme Name:   91Mobiles Theme - GeneratePress Child
 Theme URI:    https://your-site.com
 Description:  A comprehensive gadget review & price comparison theme built on GeneratePress, inspired by 91mobiles.com. Features phone finder, comparisons, brand listings, news hub, and more.
 Author:       Your Name
 Author URI:   https://your-site.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  flavor91mobiles
*/

/* ============================================
   91MOBILES THEME - COMPLETE STYLING
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #e21717;
    --primary-dark: #b91212;
    --primary-light: #ff4444;
    --secondary: #1a1a2e;
    --accent: #f5a623;
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #888888;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-gray: #eeeeee;
    --bg-dark: #1a1a2e;
    --border-light: #e0e0e0;
    --border-medium: #cccccc;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #2980b9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 0.25s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   TOP BAR / TICKER
   ============================================ */
.top-ticker {
    background: var(--secondary);
    color: var(--text-white);
    font-size: 13px;
    padding: 6px 0;
    overflow: hidden;
}
.top-ticker .ticker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-ticker .ticker-label {
    background: var(--primary);
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.top-ticker .ticker-items {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
    gap: 30px;
}
.top-ticker .ticker-items a {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}
.top-ticker .ticker-items a:hover { color: #fff; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header-main {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-logo img {
    max-height: 36px;
    width: auto;
}
.site-logo .logo-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}
.site-logo .logo-text span {
    color: var(--secondary);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 420px;
    margin: 0 25px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 9px 40px 9px 14px;
    border: 2px solid var(--border-light);
    border-radius: 24px;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
    background: var(--bg-light);
}
.header-search input:focus {
    border-color: var(--primary);
    background: #fff;
}
.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-right .compare-btn,
.header-right .login-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition);
}
.header-right .compare-btn {
    border: 1px solid var(--border-medium);
    background: transparent;
    color: var(--text-dark);
}
.header-right .compare-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.header-right .login-btn {
    background: var(--primary);
    color: #fff;
    border: none;
}
.header-right .login-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   MEGA MENU / NAVIGATION
   ============================================ */
.main-navigation {
    background: var(--bg-white);
    border-bottom: 2px solid var(--primary);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.main-menu > li {
    position: relative;
}
.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    white-space: nowrap;
}
.main-menu > li > a:hover,
.main-menu > li.active > a {
    color: var(--primary);
    background: rgba(226,23,23,0.04);
}
.main-menu > li > a .arrow {
    font-size: 10px;
    opacity: 0.5;
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 700px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 20px;
    display: none;
    z-index: 999;
    border-top: 3px solid var(--primary);
}
.main-menu > li:hover .mega-menu { display: flex; }

.mega-menu-col {
    flex: 1;
    padding: 0 15px;
    border-right: 1px solid var(--border-light);
}
.mega-menu-col:last-child { border-right: none; }

.mega-menu-col h4 {
    font-family: var(--font-primary);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-menu-col ul li a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-medium);
}
.mega-menu-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* ============================================
   HERO / PHONE FINDER
   ============================================ */
.hero-finder {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 50%, #0f3460 100%);
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-finder::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(226,23,23,0.08);
}
.hero-finder .finder-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-finder h1 {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}
.hero-finder .subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    margin-bottom: 30px;
}

/* Finder Filters */
.finder-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.finder-filters .filter-group {
    position: relative;
}
.finder-filters select,
.finder-filters input[type="number"] {
    padding: 12px 18px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    min-width: 160px;
    outline: none;
    transition: all var(--transition);
    -webkit-appearance: none;
}
.finder-filters select:focus,
.finder-filters input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
}
.finder-filters select option { color: #333; }

.finder-btn {
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.finder-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226,23,23,0.3);
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.quick-links a {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all var(--transition);
}
.quick-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   CATEGORY TABS / WHAT TO BUY
   ============================================ */
.what-to-buy {
    background: var(--bg-white);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
}
.buy-categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.buy-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition);
    padding: 10px 20px;
    border-radius: var(--radius-md);
}
.buy-cat-item:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}
.buy-cat-item .cat-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all var(--transition);
}
.buy-cat-item:hover .cat-icon {
    background: rgba(226,23,23,0.08);
    color: var(--primary);
}
.buy-cat-item span {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-dark);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-gray);
}
.section-header h2 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-left: 14px;
}
.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}
.section-header .view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-header .view-all:hover { text-decoration: underline; }

/* ============================================
   BRAND CAROUSEL
   ============================================ */
.brands-section { padding: 30px 0; background: var(--bg-white); }
.brand-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.brand-grid::-webkit-scrollbar { display: none; }

.brand-card {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all var(--transition);
    padding: 10px;
    border-radius: var(--radius-md);
}
.brand-card:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}
.brand-card .brand-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-medium);
    border: 2px solid var(--border-light);
    overflow: hidden;
}
.brand-card .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.brand-card .brand-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-primary);
}

/* ============================================
   PRICE RANGE PILLS
   ============================================ */
.price-range-section { padding: 20px 0; background: var(--bg-white); }
.price-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.price-pill {
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-primary);
}
.price-pill:hover,
.price-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   PHONE CARDS - GRID
   ============================================ */
.phones-section { padding: 30px 0; }
.phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.phone-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
}
.phone-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.phone-card .badge-row {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}
.phone-card .badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}
.badge-new { background: var(--success); color: #fff; }
.badge-upcoming { background: var(--warning); color: #fff; }
.badge-hot { background: var(--primary); color: #fff; }

.phone-card .phone-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: var(--bg-light);
}
.phone-card .phone-img img {
    max-height: 170px;
    object-fit: contain;
    transition: transform var(--transition);
}
.phone-card:hover .phone-img img { transform: scale(1.05); }

.phone-card .phone-info {
    padding: 12px;
}
.phone-card .phone-name {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.phone-card .phone-price {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.phone-card .phone-price .orig-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 5px;
}

/* 91Score Badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: #fff;
}
.score-high { background: #27ae60; }
.score-medium { background: #f39c12; }
.score-low { background: #e74c3c; }

.phone-card .phone-specs {
    padding: 0 12px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.phone-card .spec-tag {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--bg-light);
    border-radius: 3px;
    color: var(--text-light);
    white-space: nowrap;
}
.phone-card .compare-add {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}
.phone-card .compare-add:hover {
    background: rgba(226,23,23,0.04);
    color: var(--primary);
}

/* ============================================
   PHONE CARD - LIST VIEW
   ============================================ */
.phone-list .phone-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
}
.phone-list .phone-card .phone-img {
    height: 150px;
}
.phone-list .phone-card .phone-info {
    padding: 15px 20px;
}
.phone-list .phone-card .phone-actions {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* ============================================
   NEWS / HUB SECTION
   ============================================ */
.news-section {
    padding: 30px 0;
}
.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Featured Article */
.news-featured {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    min-height: 400px;
}
.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.4s ease;
}
.news-featured:hover img { opacity: 0.4; transform: scale(1.03); }
.news-featured .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
}
.news-featured .news-cat {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.news-featured h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}
.news-featured .news-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.news-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}
.news-item .news-thumb {
    width: 140px;
    height: 100px;
    overflow: hidden;
}
.news-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.news-item:hover .news-thumb img { transform: scale(1.05); }

.news-item .news-content {
    padding: 10px 12px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-item .news-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.news-item h4 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item .news-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    gap: 10px;
}
.news-item .news-meta .author { font-weight: 600; color: var(--text-medium); }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-section { padding: 30px 0; }
.compare-table-wrap {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
}
.compare-table thead {
    background: var(--secondary);
    color: #fff;
}
.compare-table th {
    padding: 14px 16px;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
}
.compare-table th:first-child {
    text-align: left;
    width: 150px;
}
.compare-table td {
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 12px;
    background: var(--bg-light);
}
.compare-table tbody tr:hover { background: rgba(226,23,23,0.02); }
.compare-table .phone-head-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.compare-table .phone-head-cell img {
    width: 60px;
    height: 80px;
    object-fit: contain;
}
.compare-table .phone-head-cell .ph-name {
    font-size: 12px;
}
.compare-winner { color: var(--success); font-weight: 700; }

/* ============================================
   PHONE DETAIL PAGE
   ============================================ */
.phone-detail-hero {
    background: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}
.phone-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: start;
}
.phone-gallery {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    position: sticky;
    top: 80px;
}
.phone-gallery .main-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    margin-bottom: 15px;
}
.phone-gallery .thumb-strip {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.phone-gallery .thumb-strip img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    background: #fff;
}
.phone-gallery .thumb-strip img:hover,
.phone-gallery .thumb-strip img.active {
    border-color: var(--primary);
}

.phone-detail-info h1 {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}
.phone-detail-info .detail-score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.phone-detail-info .price-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}
.phone-detail-info .detail-price {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* Key Specs Grid */
.key-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.key-spec-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}
.key-spec-item .spec-icon {
    font-size: 22px;
    margin-bottom: 4px;
}
.key-spec-item .spec-label {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
}
.key-spec-item .spec-value {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-dark);
}

/* Store Prices */
.store-prices {
    margin-bottom: 20px;
}
.store-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: all var(--transition);
}
.store-row:hover { border-color: var(--primary); }
.store-row .store-name {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.store-row .store-price {
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary);
}
.store-row .go-store {
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Variant Selector */
.variant-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.variant-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    background: var(--bg-white);
    transition: all var(--transition);
}
.variant-btn:hover,
.variant-btn.active {
    border-color: var(--primary);
    background: rgba(226,23,23,0.04);
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   SPECS TABLE
   ============================================ */
.specs-section { padding: 30px 0; }
.specs-table {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.specs-group-title {
    background: var(--bg-light);
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
}
.specs-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--border-light);
}
.specs-row:last-child { border-bottom: none; }
.specs-row .spec-key {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-light);
    background: rgba(245,245,245,0.5);
}
.specs-row .spec-val {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================
   REVIEW SECTION
   ============================================ */
.review-section { padding: 30px 0; }
.review-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--border-light);
}
.review-score-big {
    text-align: center;
    margin-bottom: 20px;
}
.review-score-big .big-score {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 800;
    color: var(--success);
    line-height: 1;
}
.review-score-big .score-label {
    font-size: 14px;
    color: var(--text-light);
}

.review-bars {}
.review-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.review-bar-item .bar-label {
    width: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    text-align: right;
}
.review-bar-item .bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
}
.review-bar-item .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.bar-fill.excellent { background: #27ae60; }
.bar-fill.good { background: #2ecc71; }
.bar-fill.average { background: #f39c12; }
.bar-fill.poor { background: #e74c3c; }

.review-bar-item .bar-value {
    width: 30px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-dark);
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.pros-list h4,
.cons-list h4 {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pros-list h4 { color: var(--success); }
.cons-list h4 { color: #e74c3c; }
.pros-list ul,
.cons-list ul {
    list-style: none;
    padding: 0;
}
.pros-list ul li,
.cons-list ul li {
    padding: 6px 0;
    font-size: 13px;
    padding-left: 20px;
    position: relative;
}
.pros-list ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}
.cons-list ul li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}
.sidebar {}
.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    overflow: hidden;
}
.sidebar-widget .widget-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid var(--primary);
    background: var(--bg-light);
}
.sidebar-widget .widget-content { padding: 14px 16px; }

/* Popular Phones Widget */
.popular-phone-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.popular-phone-item:last-child { border-bottom: none; }
.popular-phone-item .rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-medium);
    flex-shrink: 0;
}
.popular-phone-item .rank.top3 {
    background: var(--primary);
    color: #fff;
}
.popular-phone-item img {
    width: 40px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}
.popular-phone-item .pop-info {
    flex: 1;
}
.popular-phone-item .pop-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.popular-phone-item .pop-price {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px 30px;
}
.footer-col h4 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: all var(--transition);
}
.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom .footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   HUB / BLOG PAGE LAYOUT
   ============================================ */
.hub-hero {
    padding: 30px 0;
}
.hub-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 25px;
}
.hub-main-story {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 350px;
    background: #000;
}
.hub-main-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.hub-main-story .story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
}
.hub-main-story h2 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
.hub-side-stories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hub-side-story {
    flex: 1;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}
.hub-side-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.hub-side-story .story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
}
.hub-side-story h3 {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}

/* Blog Post Card */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.blog-card .blog-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.blog-card .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-card .blog-body {
    padding: 14px;
}
.blog-card .blog-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.blog-card h3 {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card .blog-meta {
    font-size: 11px;
    color: var(--text-light);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 30px 0;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-primary);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all var(--transition);
}
.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-light);
}
.breadcrumbs a { color: var(--text-medium); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 6px; color: var(--text-light); }

/* ============================================
   FILTER BAR (Phone Finder Page)
   ============================================ */
.filter-bar {
    background: var(--bg-white);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 60px;
    z-index: 50;
}
.filter-bar-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-chip {
    padding: 7px 14px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-white);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}
.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(226,23,23,0.04);
}
.filter-chip .arrow { font-size: 10px; }

.sort-dropdown {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.sort-dropdown select {
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 4px;
}
.view-toggle button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.view-toggle button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   COMPARE PAGE
   ============================================ */
.compare-hero {
    background: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}
.compare-selector {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}
.compare-phone-select {
    width: 200px;
    text-align: center;
    cursor: pointer;
}
.compare-phone-select .phone-placeholder {
    width: 120px;
    height: 160px;
    margin: 0 auto 10px;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-light);
    background: var(--bg-light);
    transition: all var(--transition);
}
.compare-phone-select:hover .phone-placeholder {
    border-color: var(--primary);
    color: var(--primary);
}
.compare-vs {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    .phone-detail-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-layout {
        grid-template-columns: 1fr;
    }
    .hub-featured-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compare-selector {
        flex-direction: column;
    }
    .mega-menu {
        min-width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .main-menu { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-finder h1 { font-size: 24px; }
    .finder-filters { flex-direction: column; align-items: center; }
    .finder-filters select,
    .finder-filters input[type="number"] { min-width: 100%; }
    .phone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .phone-card .phone-img { height: 150px; }
    .blog-grid { grid-template-columns: 1fr; }
    .news-item { grid-template-columns: 110px 1fr; }
    .key-specs { grid-template-columns: repeat(2, 1fr); }
    .pros-cons { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .buy-categories { gap: 15px; }
    .buy-cat-item { padding: 5px 10px; }
    .buy-cat-item .cat-icon { width: 44px; height: 44px; font-size: 20px; }
}

@media (max-width: 480px) {
    .phone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .phone-card .phone-name { font-size: 12px; }
    .phone-card .phone-price { font-size: 13px; }
    .phone-card .phone-info { padding: 8px; }
    .hero-finder { padding: 30px 0 40px; }
    .hero-finder h1 { font-size: 20px; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: var(--text-dark);
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}
.mobile-nav.active { display: block; }
.mobile-nav .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-nav .mobile-search {
    margin: 40px 0 20px;
}
.mobile-nav .mobile-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
}
.mobile-nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   GENERATEPRESS & CUSTOM WRAPPER OVERRIDES
   ============================================ */

/* Our custom site wrapper - bypasses GP entirely */
.flavor91-site {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.flavor91-content {
    flex: 1;
    width: 100%;
}

/* Hide GP default elements if they somehow appear */
body.flavor91mobiles .site-header,
body.flavor91mobiles #site-navigation,
body.flavor91mobiles .main-navigation[id],
body.flavor91mobiles .site-footer:not(.site-footer-custom) {
    display: none !important;
}

/* Override GP content wrappers if they leak through */
body.flavor91mobiles .site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
body.flavor91mobiles .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
}
body.flavor91mobiles .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}
body.flavor91mobiles article.page,
body.flavor91mobiles article.post {
    padding: 0 !important;
}
body.flavor91mobiles .entry-header {
    display: none !important;
}
body.flavor91mobiles .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}
body.flavor91mobiles #right-sidebar,
body.flavor91mobiles #left-sidebar {
    display: none !important;
}
body.flavor91mobiles .site-main > * {
    max-width: 100% !important;
}

/* Ensure full-width on container elements */
body.flavor91mobiles .grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Fix section widths */
.hero-finder,
.what-to-buy,
.brands-section,
.price-range-section,
.phones-section,
.news-section,
.comparison-section,
.phone-detail-hero,
.specs-section,
.filter-bar,
.compare-hero,
.hub-hero {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure our sections stack vertically */
.flavor91-content > * {
    display: block;
    width: 100%;
}

