/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --primary-light: #EFF6FF;
    --secondary: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--dark);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover { color: var(--primary-dark); }

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

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    z-index: 1040;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar .container {
    gap: 12px;
}

.navbar-collapse {
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.navbar-nav {
    min-width: 0;
}

.navbar-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    flex-shrink: 0;
}

.navbar-brand span:last-child {
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Navbar Search */
.navbar-search {
    position: relative;
    width: min(100%, 280px);
    flex: 0 1 280px;
    min-width: 180px;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
    z-index: 2;
}

.navbar-search input,
.search-input {
    border-radius: 50px;
    border: 1px solid var(--gray-300);
    transition: all 0.2s;
    padding-left: 36px;
    min-width: 0;
    width: 100%;
    height: 42px;
    background: white;
}

.navbar-search input:focus,
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    outline: none;
}

.compare-nav-link,
#compare-link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.compare-nav-link {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0.55rem 0.95rem !important;
}

.compare-nav-link:hover {
    background: var(--primary-light);
    border-color: rgba(37, 99, 235, 0.18);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

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

.search-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

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

.search-item:hover { background: var(--gray-50); }

.search-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    margin-right: 12px;
}

.search-item-info { flex: 1; }
.search-item-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.search-item-price { font-size: 13px; color: var(--primary); font-weight: 600; }

/* Brands Dropdown */
.dropdown-menu {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 0.5rem 0;
    min-width: 220px;
    max-height: 360px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

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

.dropdown-item img {
    height: 20px;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
    max-width: 50px;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

.brands-dropdown-menu {
    min-width: 260px;
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.dropdown-brand-head {
    padding: 0.5rem 0.75rem 0.7rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--gray-500);
}

.brand-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
}

.brand-dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-light), #ffffff);
}

.brand-dropdown-media {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--gray-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-dropdown-media img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    margin-right: 0;
}

.brand-dropdown-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.brand-dropdown-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Compare Badge */
.nav-link .badge {
    font-size: 10px;
    padding: 3px 6px;
    min-width: 18px;
}

/* ===== POPULAR STRIP ===== */
.popular-strip {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 0;
    overflow: hidden;
}

.popular-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px;
    align-items: center;
}

.popular-scroll::-webkit-scrollbar { display: none; }

.popular-strip-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--gray-600);
    padding-right: 0.25rem;
}

.popular-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.popular-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.popular-chip .price {
    color: var(--primary);
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.4);
    color: #93c5fd;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-title span {
    color: #60a5fa;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-search {
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-width: 600px;
}

.hero-search input {
    border: none !important;
    outline: none !important;
    flex: 1;
    font-size: 16px;
    background: transparent;
    padding: 12px 0;
    box-shadow: none !important;
    color: #0f172a;
}

.hero-search input::placeholder {
    color: #94a3b8;
}

.hero-search button {
    border-radius: 50px !important;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-stat { color: white; }

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: relative;
    z-index: 2;
}

.hero-phone-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.hero-phone-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
}

.hero-phone-card img {
    height: 100px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 8px;
}

.hero-phone-card-body {
    margin-top: 0.4rem;
}

.hero-phone-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    min-height: 2.5em;
}

.hero-phone-price {
    font-size: 13px;
    color: #60a5fa;
    font-weight: 700;
}

/* ===== BRAND CHIPS ===== */
.brand-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.brand-chip:hover,
.brand-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.brand-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ===== SECTIONS ===== */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 0;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.section-link:hover { color: var(--primary-dark); }

/* ===== PRODUCT / PHONE CARD GENERIC ===== */
.product-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gray-200);
}

.product-image {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.product-image img {
    height: 140px;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badge,
.phone-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.badge-new { background: #dcfce7; color: #16a34a; }
.badge-hot { background: #fee2e2; color: #dc2626; }
.badge-sale { background: #fef3c7; color: #d97706; }

.product-brand {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.phone-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.phone-spec-tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
}

.stores-count {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.product-price {
    margin-top: auto;
}

.price-old {
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: line-through;
}

.price-discount {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}
/* ===== PHONE CARD REFINED ===== */
.phone-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.98);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.16);
}

.phone-card-image {
    background: linear-gradient(180deg, #fbfdff 0%, var(--gray-50) 100%);
    height: 188px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px 18px 12px;
}

.phone-card-image img {
    height: 142px;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

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

.phone-card-body {
    padding: 15px 15px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.7rem;
}

.phone-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.phone-brand {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: 58%;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-stores {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.phone-name-link {
    display: block;
}

.phone-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.35;
    margin: 0;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phone-card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phone-price,
.compact-price-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f1f7ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.price-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.price-from {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0;
    line-height: 1;
}

.price-number,
.price-from {
    letter-spacing: -0.4px;
}

.price-number {
    font-size: 21px;
    font-weight: 900;
    color: var(--dark);
}

.price-from:not(:has(.price-number)) {
    font-size: 21px;
    font-weight: 900;
    color: var(--dark);
}

.price-currency {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    margin-left: 0;
}

.phone-card-footer {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 0;
    border-top: 0;
    background: transparent;
}

.btn-compare {
    width: 52px;
    min-width: 52px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--gray-700);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: none;
}

.btn-compare .compare-text {
    display: none;
}

.btn-compare:hover {
    background: #eef4ff;
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.20);
}

.btn-compare.active {
    background: #dcfce7;
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.20);
}

.btn-view {
    min-height: 46px;
    border: none;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.btn-view:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    color: #fff;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

/* ===== COMPARE PAGE ===== */
.compare-empty-state,
.compare-single-state {
    display: block !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-width: 1px;
    text-align: center;
    padding: 2.5rem 1.5rem !important;
}

.compare-single-state h4,
.compare-empty-state h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.compare-single-state p,
.compare-empty-state p {
    margin-bottom: 0;
}

.compare-single-state .row,
.compare-empty-state .row {
    display: flex;
    justify-content: center;
    --bs-gutter-x: 1rem;
    margin-top: 1.5rem;
}

.compare-single-state .col-md-4,
.compare-empty-state .col-md-4 {
    display: block;
    width: 100%;
    max-width: 360px;
    flex: 0 0 360px;
}

.compare-single-state .phone-card,
.compare-empty-state .phone-card {
    text-align: left;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.compare-single-state .phone-card:hover,
.compare-empty-state .phone-card:hover {
    transform: none;
}

.compare-single-state > .btn,
.compare-empty-state > .btn {
    margin-top: 1.5rem;
    min-height: 46px;
}

.compare-table .table th,
.compare-table .table td {
    vertical-align: middle;
}

.compare-table .table thead th {
    background: var(--gray-50);
}

.compare-table-product-image {
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

.compare-table-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FEATURES ===== */
.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563EB 100%);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.newsletter-sub {
    opacity: 0.9;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 15px;
    outline: none;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-form button {
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--gray-100);
    transform: scale(1.02);
}

/* ===== FILTERS ===== */
.filters-sidebar {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.filter-group { margin-bottom: 1.5rem; }

.filter-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.filter-select,
.form-select {
    transition: all 0.2s;
    border: 1.5px solid var(--gray-200) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
}

.filter-select:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
    outline: none;
}

.filter-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ===== PRODUCT PAGE ===== */
.product-image-container {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.product-image-main img {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
}

.product-stats {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.stat-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-600);
}

.product-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.product-brand-tag,
.product-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.product-brand-link {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.18));
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
    text-decoration: none;
    transition: var(--transition);
}

.product-brand-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.product-brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.product-brand-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.product-brand-arrow {
    font-size: 0.82rem;
    opacity: 0.75;
}

.product-meta-chip {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.product-meta-chip-highlight {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.10), rgba(34, 197, 94, 0.16));
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.18);
}

.product-meta-chip i {
    font-size: 0.95rem;
    opacity: 0.9;
}

.product-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 0.75rem;
}

.product-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

.price-range-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.price-range-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.price-range-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.price-range-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.price-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.price-secondary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700);
    line-height: 1.1;
}

.price-difference-note {
    font-size: 0.82rem;
    color: var(--gray-600);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.product-action-main,
.product-action-secondary {
    min-height: 58px;
}

.product-action-main {
    flex: 1 1 auto;
    min-width: 0;
}

.product-action-secondary {
    flex: 0 0 180px;
    white-space: nowrap;
}

/* ===== STORE PRICES ===== */
.store-offers-card .card-header {
    background: linear-gradient(135deg, var(--gray-50), #ffffff);
}

.offers-sort-note {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-item {
    border-left: 4px solid transparent;
    border-radius: 0;
    margin-bottom: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: none;
    padding: 1rem 1.25rem;
    transition: var(--transition);
    overflow: hidden;
}

.store-item:last-child {
    border-bottom: 0;
}

.store-item:hover {
    transform: none;
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.02);
}

.store-item-best {
    border-left-color: var(--success);
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.05) 0%, rgba(255,255,255,1) 22%);
}

.store-item .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

.store-item .col-md-4,
.store-item .col-md-3,
.store-item .col-md-2 {
    display: flex;
    align-items: center;
}

.store-brand-wrap {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0 auto;
}

.store-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter 0.2s;
    margin: 0 auto;
}

.store-item:hover .store-logo {
    filter: grayscale(0);
}

.store-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.store-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 12px;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
    margin: 0 auto;
}

.store-item .btn {
    white-space: nowrap;
    min-width: 130px;
}

.store-offer-btn {
    min-width: 138px;
}

.specs-card .table td {
    vertical-align: middle;
}

.specs-card .table-light td {
    background: linear-gradient(135deg, var(--gray-50), #fff);
}
/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

.btn-outline-primary {
    background: transparent !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

.btn-outline-secondary {
    background: transparent !important;
    color: var(--gray-600) !important;
    border-color: var(--gray-300) !important;
}

.btn-outline-secondary:hover {
    background: var(--gray-100) !important;
    border-color: var(--gray-400) !important;
    color: var(--gray-700) !important;
}

.btn-success {
    background: var(--success) !important;
    color: white !important;
    border-color: var(--success) !important;
}

.btn-danger {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
}

.btn-outline-danger {
    border: 1.5px solid #ef4444;
    color: #ef4444;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.bg-primary { background-color: var(--primary) !important; color: white !important; }
.bg-success { background-color: var(--success) !important; color: white !important; }
.bg-danger { background-color: var(--danger) !important; color: white !important; }
.bg-warning { background-color: #ffc107 !important; color: #7c2d12 !important; }
.bg-info { background-color: #06b6d4 !important; color: white !important; }
.bg-secondary { background-color: var(--secondary) !important; color: white !important; }
.bg-light { background-color: var(--gray-100) !important; }

/* ===== FORMS ===== */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* ===== CARDS ===== */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* ===== BREADCRUMB ===== */
.page-breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    background: white;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.breadcrumb-item {
    font-size: 13px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--gray-600);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1;
    margin: 0 0.35rem 0 0.15rem;
    padding: 0;
    float: none;
}

.breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray-700);
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-link {
    border: 1.5px solid var(--gray-200);
    color: var(--gray-700);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert i { font-size: 1.25rem; }

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #155e75;
}

/* ===== FOOTER ===== */
.footer,
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
footer a {
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover,
footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link,
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover,
.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-contact div + div {
    margin-top: 0.35rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 2rem;
}

/* ===== BLOG ===== */
.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    display: block;
    overflow: hidden;
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

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

.blog-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-600);
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

/* ===== SCROLL TO TOP ===== */
#scrollTop,
.btn-scroll-top {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 18px;
    transition: var(--transition);
}

#scrollTop:hover,
.btn-scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}

#scrollTop.show,
.btn-scroll-top.show {
    display: flex;
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--gray-600) !important; }
.text-dark { color: var(--dark) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.bg-white { background-color: white !important; }
.border-bottom { border-bottom: 1px solid var(--gray-200) !important; }
.text-center { text-align: center !important; }
.text-decoration-none { text-decoration: none !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.w-100 { width: 100% !important; }
.rounded-3 { border-radius: var(--radius) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.container-fluid {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
}

@media (max-width: 992px) {
    .hero-section { padding: 40px 0 60px; }
    .hero-image-grid { margin-top: 2rem; }
    .hero-stats { gap: 20px; }
    .newsletter-section { padding: 32px 20px; }
    .filters-sidebar { position: static; margin-bottom: 2rem; }

    .product-title {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-action-main,
    .product-action-secondary {
        width: 100%;
        flex: 1 1 100%;
    }

    .store-item .row > div {
        margin-bottom: 0.75rem;
    }

    .store-item .row > div:last-child {
        margin-bottom: 0;
    }

    .store-item .col-md-2.text-end {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .store-item .btn {
        width: 100%;
        min-width: 0;
    }

    .navbar-collapse {
        padding-top: 12px;
        align-items: stretch;
        gap: 10px;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-search {
        margin-top: 0.5rem;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .navbar-search input { width: 100%; }

    .compare-nav-link,
    #compare-link {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        margin-top: 0.25rem;
    }

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

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        max-height: 260px;
    }

    .brands-dropdown-menu {
        min-width: 100%;
        padding: 0.35rem;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .popular-chip { font-size: 12px; padding: 5px 12px; }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        min-width: 100%;
    }

    .feature-card { padding: 20px; }
    .feature-icon { width: 56px; height: 56px; font-size: 24px; }
    .product-title { font-size: 1.75rem; }

    .product-image-container {
        padding: 1.5rem;
    }

    .price-main { font-size: 1.7rem; }
    .price-secondary { font-size: 1.25rem; }

    .compare-single-state,
    .compare-empty-state {
        padding: 2rem 1rem !important;
    }

    .compare-single-state .col-md-4,
    .compare-empty-state .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .compare-single-state .phone-card,
    .compare-empty-state .phone-card {
        max-width: 100%;
    }

    .compare-table-actions .btn {
        width: 100%;
    }

    .store-updated {
        padding: 0.3rem 0.65rem;
    }
}

@media (max-width: 576px) {
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 12px;
        gap: 12px;
    }

    .hero-search input {
        width: 100%;
        padding: 10px 0;
    }

    .hero-search button {
        width: 100%;
        border-radius: var(--radius-sm) !important;
    }

    .hero-stats { gap: 16px; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-image-grid { gap: 8px; }
    .hero-phone-card { padding: 12px; }
    .hero-phone-card img { height: 80px; }

    .brand-chips { justify-content: flex-start !important; }
    .section-title { font-size: 1.25rem; }

    .navbar {
        padding: 10px 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .search-dropdown {
        max-height: 320px;
    }

    .brand-dropdown-media {
        width: 32px;
        height: 32px;
    }

    .brand-dropdown-media img {
        width: 22px;
        height: 22px;
    }

    .popular-strip-label span {
        display: none;
    }

    .breadcrumb {
        padding: 0.75rem 0.875rem;
        gap: 0.2rem;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 13px;
        margin: 0 0.25rem 0 0.1rem;
    }

    .product-meta-badges {
        gap: 0.5rem;
    }

    .product-brand-tag,
    .product-meta-chip {
        font-size: 0.82rem;
        padding: 0.5rem 0.8rem;
        min-height: 38px;
    }

    .product-brand-logo,
    .product-brand-icon {
        width: 20px;
        height: 20px;
    }

    .product-stats {
        padding: 0.875rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

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

    .product-title {
        font-size: 1.55rem;
    }

    .price-range-card {
        padding: 1.25rem;
    }

    .phone-card {
        border-radius: 14px;
    }


    .price-from {
        font-size: 19px;
    }

    .btn-view {
        font-size: 12px;
        padding: 0 12px;
    }
}



/* ===== BLOG INDEX ===== */
.blog-hero {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-page-title {
    margin-bottom: 0.5rem;
}

.blog-page-subtitle {
    max-width: 760px;
    margin: 0 auto;
}

.blog-card-modern {
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.blog-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.blog-card-image {
    height: 220px;
}

.blog-card-image-fallback {
    background: radial-gradient(circle at top, #ffffff 0%, var(--gray-50) 60%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-fallback-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--gray-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 2rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.blog-card-body {
    padding: 1.35rem;
}

.blog-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-title a {
    color: var(--dark);
}

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

.blog-excerpt {
    margin-bottom: 1rem;
    min-height: 4.8em;
}

.blog-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    padding-top: 0.9rem;
    margin-top: auto;
}

.blog-meta-modern span {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--gray-600);
    white-space: nowrap;
}

.blog-read-more {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.blog-read-more:hover {
    gap: 0.6rem;
    color: var(--primary-dark);
}

/* ===== BLOG SHOW ===== */
.blog-post {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.blog-post-wide {
    overflow: hidden;
    padding: 0;
}

.post-featured-image img {
    max-height: 500px;
    object-fit: cover;
}

.post-featured-image-wide {
    margin-bottom: 0 !important;
}

.post-featured-image-wide img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.post-header-wide {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.post-header-inner {
    max-width: 920px;
    margin: 0 auto;
}

.post-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin: 1rem 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--gray-600);
    padding-bottom: 0;
    border-bottom: 0;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
}

.post-content-wrap {
    padding: 2rem 2rem 2.25rem;
}

.post-content {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--gray-700);
}

.post-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 2.25rem 0 1rem;
    color: var(--dark);
    line-height: 1.25;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.8rem 0 1rem;
    color: var(--dark);
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.75rem auto;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: var(--gray-600);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-share {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.related-posts-section {
    padding-top: 0.25rem;
}

.related-blog-card .blog-title {
    font-size: 1.05rem;
}

.related-blog-card .blog-card-image {
    height: 210px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .post-title {
        font-size: 2.25rem;
    }

    .post-header-wide,
    .post-content-wrap {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-card-image {
        height: 200px;
    }

    .blog-title {
        font-size: 1.05rem;
    }

    .blog-excerpt {
        min-height: auto;
    }

    .post-title {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-meta {
        gap: 12px;
    }

    .post-header-wide,
    .post-content-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .post-featured-image-wide img {
        max-height: 340px;
    }

    .related-blog-card .blog-card-image {
        height: 190px;
    }
}

.product-stats-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.product-stats-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.product-stat-box {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #fbfdff;
    min-height: 84px;
}

.product-stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.product-stat-content {
    min-width: 0;
}

.product-stat-value {
    font-size: 1.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

.product-stat-label {
    margin-top: 0.2rem;
    font-size: 0.92rem;
    color: #64748b;
}

@media (max-width: 575.98px) {
    .product-stats-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .phone-card-body {
        padding: 13px 13px 12px;
    }

    .phone-card-image {
        height: 176px;
        padding: 16px 16px 10px;
    }

    .phone-card-image img {
        height: 132px;
    }

    .phone-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .phone-brand {
        max-width: 100%;
    }

    .phone-card-footer {
        grid-template-columns: 46px 1fr;
        gap: 8px;
    }

    .btn-compare {
        width: 46px;
        min-width: 46px;
        height: 42px;
    }

    .btn-view {
        min-height: 42px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .phone-card {
        border-radius: 14px;
    }

    .phone-card-image {
        height: 160px;
    }

    .phone-card-image img {
        height: 120px;
    }

    .phone-price,
    .compact-price-card {
        padding: 0.8rem 0.9rem;
        border-radius: 14px;
    }

    .price-number {
        font-size: 19px;
    }

    .price-from:not(:has(.price-number)) {
        font-size: 19px;
    }

    .btn-view {
        font-size: 12px;
        padding: 0 12px;
    }
}
