/* Main Styles for Mobile Specification Comparison Website */

/* General Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --accent-color: #3a0ca3;
    --background-color: #f5f7ff;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    --hover-shadow: 0 15px 40px rgba(67, 97, 238, 0.15); /* Modern hover shadow */
    --transition-speed: 0.3s;
    --border-radius: 16px; /* Increased border radius for modern feel */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: left;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1030;
}

/* Fixed header and spacer */
.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.header-spacer {
    height: 70px; /* Adjust based on your navbar height */
}

@media (max-width: 768px) {
    .header-spacer {
        height: 60px;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

/* Fix for navbar disappearing issue */
.navbar-collapse.show,
.navbar-collapse.collapsing,
.navbar-always-visible {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Ensure navbar stays on top */
.navbar, .fixed-top {
    z-index: 9999 !important;
}

.search-form {
    position: relative;
    max-width: 300px;
}

.search-form .form-control {
    border-radius: 50px;
    padding-right: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form .btn {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 50px;
    color: white;
    padding: 0.375rem 0.75rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.9), rgba(58, 12, 163, 0.95)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    min-height: calc(100vh - 56px); /* Subtract header height */
    display: flex;
    align-items: center;
}

.hero-section .container {
    width: 100%;
    padding: 3rem 15px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero-image {
    transform: translateY(0);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    max-height: 500px;
    animation: float 6s ease-in-out infinite;
    margin: 0 auto;
    display: block;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 2rem 0;
    }
}

/* Mobile Card */
.mobile-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    height: 100%;
    margin-bottom: 1.5rem;
    background-color: #fff;
    overflow: hidden;
}

.mobile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mobile-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mobile-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-img-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    overflow: hidden;
}

.card-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(58, 12, 163, 0.05));
    z-index: 0;
}

.card-img-top {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-speed) ease;
}

.mobile-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.specs-preview {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.specs-preview p {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specs-preview i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.price-tag {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
}

/* Hover effect for desktop */
@media (min-width: 992px) {
    .mobile-card:hover .price-tag.blurred {
        filter: blur(0);
    }
    
    .mobile-card:hover .price-tag .price-overlay {
        opacity: 0;
    }
}

/* Comparison Page */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: left;
}

.comparison-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.comparison-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.comparison-table .spec-name {
    font-weight: bold;
    background-color: #e9ecef;
}

.comparison-header {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.comparison-header img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
}

.comparison-header h5 {
    margin-top: 10px;
    font-size: 1rem;
}

.comparison-header .price {
    color: var(--primary-color);
    font-weight: bold;
}

/* Comparison Page Styles */
.comparison-image-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.comparison-image-container:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-image {
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 15px;
}

.price-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.price-tag h4 {
    margin: 0;
    font-size: 1.2rem;
}

.content-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mobile-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.price-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.price-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.price-value {
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
    margin: 10px 0;
}

.specifications-container .card-header {
    font-weight: bold;
}

.spec-row {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.spec-title {
    font-weight: bold;
    color: #495057;
}

.spec-value {
    color: #6c757d;
}

.comparison-image-container a {
    text-decoration: none;
    color: var(--dark-color);
    display: block;
}

.comparison-image-container a:hover {
    text-decoration: none;
}

.card-header a.text-white {
    text-decoration: none;
}

.card-header a.text-white:hover {
    text-decoration: underline;
}

.content-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

/* Specifications HTML */
.specifications-html {
    font-size: 0.9rem;
}

.specifications-html table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.specifications-html table, .specifications-html th, .specifications-html td {
    border: 1px solid #dee2e6;
}

.specifications-html th, .specifications-html td {
    padding: 0.5rem;
}

.specifications-html th {
    background-color: #f8f9fa;
}

/* Specifications Sections */
.spec-section {
    margin-bottom: 1.5rem;
}

.spec-section h4 {
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.spec-item {
    display: flex;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #e9ecef;
}

.spec-label {
    width: 40%;
    font-weight: 600;
    color: #495057;
}

.spec-value {
    width: 60%;
}

/* Remove button styling */
.comparison-image-container .btn-danger {
    margin-top: 10px;
    transition: all 0.3s ease;
}

.comparison-image-container .btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-sidebar h4 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    font-weight: 500;
}

/* Brand Logos */
.brand-card {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-logo img {
    max-height: 100%;
    max-width: 100%;
}

/* Mobile Detail Page */
.mobile-detail-img {
    max-height: 400px;
    max-width: 100%;
    object-fit: contain;
}

.mobile-detail-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 15px 0;
}

.spec-section {
    margin-bottom: 30px;
}

.spec-section h4 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    margin-bottom: 10px;
}

.spec-label {
    font-weight: 500;
    width: 40%;
}

.spec-value {
    width: 60%;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-sidebar {
        margin-bottom: 20px;
    }
    
    .spec-item {
        flex-direction: column;
    }
    
    .spec-label, .spec-value {
        width: 100%;
    }
}

/* Compare Floating Button */
.compare-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.compare-float .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.compare-float .badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Compare Selection Bar */
.compare-selection {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
}

.compare-selection.active {
    display: block;
}

.compare-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
}

.compare-item img {
    height: 50px;
    width: auto;
}

.compare-item .remove-item {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

/* Comparison bar */
.comparison-bar {
    transition: all 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.comparison-counter {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    margin-right: 5px;
}

.compare-float-btn {
    transition: all 0.2s ease;
}

.compare-float-btn:hover {
    transform: scale(1.05);
    background-color: #f8f9fa;
}

/* Floating Compare Icon */
.floating-compare-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.floating-compare-icon .btn {
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-compare-icon .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-compare-icon .comparison-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Home Page Sections */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Search Results */
.search-result-count {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
}

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

.pagination .page-link {
    color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: 50px;
}

footer h5 {
    margin-bottom: 15px;
}

footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Category Cards */
.category-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    color: inherit;
}

.category-card .card {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover .card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.category-card .card-body {
    padding: 1.5rem;
}

.category-card .fas {
    margin-bottom: 0.5rem;
}

/* Custom Notification */
.custom-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.custom-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.custom-notification .notification-icon {
    margin-right: 10px;
    font-size: 20px;
}

.custom-notification .notification-content {
    flex: 1;
}

.custom-notification .notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.custom-notification .notification-message {
    margin-bottom: 0;
}

.custom-notification .notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.custom-notification.success {
    border-left: 4px solid #28a745;
}

.custom-notification.success .notification-icon {
    color: #28a745;
}

.custom-notification.warning {
    border-left: 4px solid #ffc107;
}

.custom-notification.warning .notification-icon {
    color: #ffc107;
}

.custom-notification.error {
    border-left: 4px solid #dc3545;
}

.custom-notification.error .notification-icon {
    color: #dc3545;
}

.custom-notification.info {
    border-left: 4px solid #17a2b8;
}

.custom-notification.info .notification-icon {
    color: #17a2b8;
}

/* Brand Card */
.brand-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.brand-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.brand-logo img {
    max-height: 100%;
    max-width: 100%;
}

.brand-card h5 {
    margin-bottom: 0;
    color: var(--accent-color);
    font-weight: 600;
}

/* Price Range Cards */
.price-range-section .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    text-align: center;
    overflow: hidden;
}

.price-range-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.price-range-section .card-body {
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.price-range-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.price-range-section .card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-range-section .card-text {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2b2d42, #1a1a2e) !important;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

footer a.text-white {
    transition: all var(--transition-speed) ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

footer a.text-white:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
    text-decoration: none;
}

.social-icons {
    display: flex;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-section {
        min-height: calc(100vh - 56px);
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }
    
    .hero-section .btn {
        margin-bottom: 0.5rem;
    }
    
    .hero-image {
        max-height: 300px;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-image {
        max-height: 250px;
    }
}

/* Reviews Section Styles */
#reviews-section .card-header {
    background-color: #f8f9fa;
}

.average-rating {
    display: flex;
    align-items: center;
}

.rating-stars {
    margin-right: 10px;
}

.rating-value {
    font-weight: bold;
}

.review-item {
    padding: 15px 0;
}

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

.reviewer-info h6 {
    font-weight: 600;
}

.review-rating i {
    margin-right: 2px;
}

.rating-input .form-check-inline {
    margin-right: 15px;
}

/* Form validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Full-width Reviews Section */
.container-fluid.bg-light {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.container-fluid.bg-light #reviews-section .card {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.container-fluid.bg-light #reviews-section .card-header {
    background-color: transparent;
    border-bottom: 1px solid #e9ecef;
    padding-left: 0;
    padding-right: 0;
}

.container-fluid.bg-light #reviews-section .card-body {
    padding-left: 0;
    padding-right: 0;
}

/* Responsive adjustments for reviews section */
@media (max-width: 767px) {
    .container-fluid.bg-light {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 404 Error Page Styles */
.error-page {
    padding: 60px 0;
}

.error-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #4361ee;
    margin-bottom: 0;
    line-height: 1;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-suggestions {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.suggestions-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background-color: #f0f2ff;
    transform: translateY(-3px);
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.suggestion-item span {
    font-size: 14px;
    color: #333;
}

.mobile-suggestion {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-suggestion:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.mobile-suggestion-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 15px;
}

.mobile-suggestion-img img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
}

.mobile-suggestion-title {
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background-color: #f8f9fa;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Sidebar Styles */
.sidebar {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

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

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.sidebar-list li a:hover {
    color: #4361ee;
    transform: translateX(5px);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f2ff;
    border-radius: 20px;
    color: #4361ee;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-tag:hover {
    background-color: #4361ee;
    color: #fff;
    transform: translateY(-2px);
}

.sidebar-brands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    background-color: #f0f2ff;
    transform: translateY(-3px);
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
}

.sidebar-brand i {
    font-size: 24px;
    color: #4361ee;
    margin-bottom: 5px;
}

.sidebar-brand span {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Related Phones Section */
.related-phones {
    margin-top: 40px;
    margin-bottom: 40px;
}

.related-phones-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.related-phones-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

.related-phones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .sidebar-brands {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-phones-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

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

/* Media Queries */
@media (max-width: 1199.98px) {
    .hero-section {
        min-height: calc(100vh - 56px);
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }
    
    .hero-section .btn {
        margin-bottom: 0.5rem;
    }
    
    .hero-image {
        max-height: 300px;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-image {
        max-height: 250px;
    }
}

/* =========================================================
   MODERN REDESIGN ADDITIONS
   ========================================================= */

/* Hero Section Modern */
.modern-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1ff 100%);
    z-index: 1;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 20s ease-in-out infinite alternate;
}

.hero-bg-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(67, 97, 238, 0.3);
    top: -100px;
    right: -100px;
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(58, 12, 163, 0.2);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.hero-bg-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(76, 201, 240, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    color: var(--dark-color);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-hover-elevate {
    transition: all 0.3s ease;
}

.btn-hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.hero-image-wrapper {
    z-index: 2;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Modern Brands */
.modern-brand-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    padding: 2rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.modern-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(67, 97, 238, 0.3);
}

.brand-logo img {
    transition: transform 0.3s ease;
}

.modern-brand-card:hover .brand-logo img {
    transform: scale(1.1);
}

/* Modern Price Ranges */
.price-card-modern {
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.price-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 0.4s ease;
}

.price-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.price-card-modern:hover .price-card-bg {
    transform: scale(1.05);
}

.price-tier-1 .price-card-bg {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.price-tier-2 .price-card-bg {
    background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%);
}
.price-tier-3 .price-card-bg {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}
.price-tier-4 .price-card-bg {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.icon-wrapper {
    transition: all 0.3s ease;
}

.price-card-modern:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Tracking Wide Utitlity */
.tracking-wide {
    letter-spacing: 1px;
}

/* Hover Underline Utility */
.hover-underline {
    position: relative;
}
.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
