:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --dark-bg: #2c3e50;
    --light-bg: #ecf0f1;
    --nav-height: 56px;
    --sub-nav-height: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    padding-top: 0; /* Remove padding since we're using sticky navs */
}

/* Main Navigation Styles */
#main-nav {
    transition: transform 0.3s ease;
}

#main-nav .navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

#main-nav .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    margin-top: 0.5rem;
}

#main-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease;
}

#main-nav .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

#main-nav .dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

#main-nav .dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Sub Navigation Styles */
.sub-nav {
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

.sub-nav .nav-pills .nav-link {
    color: var(--dark-bg);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.sub-nav .nav-pills .nav-link:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.sub-nav .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.sub-nav .nav-pills .nav-link i {
    margin-right: 0.25rem;
}

/* Section Content Spacing */
.section-content {
    scroll-margin-top: calc(var(--nav-height) + var(--sub-nav-height) + 20px);
}

/* Hero Section Adjustment for Sticky Navs */
.hero-section {
    padding-top: 80px; /* Add padding to account for sticky navs */
}

.hero-section h1 {
    font-size: 2.25rem; /* 50% of display-3 (4.5rem) */
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .sub-nav .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .sub-nav .nav-pills::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .sub-nav .nav-pills .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    #main-nav.navbar-dark {
        position: fixed;
        width: 100%;
        top: 0;
    }
    
    .sub-nav {
        position: fixed;
        width: 100%;
    }
    
    .hero-section {
        margin-top: calc(var(--nav-height) + var(--sub-nav-height));
    }
}

@media (max-width: 576px) {
    .sub-nav .nav-pills .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .sub-nav .nav-pills .nav-link i {
        display: none; /* Hide icons on very small screens */
    }
}

.disclaimer-banner {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #495057;
    text-align: center;
    min-height: 20px;
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
select:focus,
input:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 15px 0;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-in;
}

.hero-subtitle {
    font-size: 1.8rem;
    opacity: 0.9;
    font-weight: 600;
}

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

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

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

.product-card .product-img-wrapper {
    flex: 0 0 310px;
    order: 1;
    position: relative;
}

.badge-winner {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
}

.product-card .card-body {
    flex: 1;
    order: 2;
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 310px;
    object-fit: cover;
    width: 310px;
    background-color: #f8f9fa;
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-title-section {
    flex: 1 1 auto;
    min-width: 200px;
}

.product-rating-section {
    flex: 0 0 auto;
}

.rating {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
}

.card-title {
    font-size: 1.65rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-price-section {
    flex: 0 0 auto;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    margin-bottom: 8px;
}

.feature-list li {
    padding: 2px 0;
    font-size: 0.8rem;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 4px;
}

.product-description {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 8px;
    flex: 1;
    min-height: 0;
}

.description-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 4px;
}

.description-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-text.collapsed {
    max-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.description-text.expanded {
    max-height: 500px;
}

.description-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 3px 0;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 3px;
}
 
.description-toggle:hover {
    color: var(--dark-bg);
}

.price {
    font-size: 1.65rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 0;
}

.filter-section {
    background: transparent;
    padding: 20px;
    margin-bottom: 30px;
}

.btn-view {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: var(--dark-bg);
    transform: scale(1.05);
}

.stats-badge {
    background: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin: 5px;
    font-size: 0.9rem;
}

.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 40px 0;
    margin-top: 0;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
}

@media (max-width: 1024px) {
    .product-card {
        flex-direction: column;
    }
    
    .product-card .product-img-wrapper {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
    }
    
    .product-card .card-body {
        order: 2;
        width: 100%;
    }
    
    .product-img {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Hide less important table columns on smaller screens */
    .comparison-table table th:nth-child(3),
    .comparison-table table td:nth-child(3),
    .comparison-table table th:nth-child(4),
    .comparison-table table td:nth-child(4) {
        display: none;
    }
}

/* Carousel Indicators Custom Styling */
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: #c4c4c4 !important;
    opacity: 1 !important;
    border: none !important;
}

.carousel-indicators button.active {
    background-color: #cc0000 !important;
}

/* Homepage specific styles */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    margin-bottom: 20px;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Inline style replacements */
#main-nav {
    background-color: var(--dark-bg);
    z-index: 1030;
}

#sub-nav {
    background-color: #ffffff;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1020;
    top: 56px;
}

.product-img-placeholder {
    width: 100%;
    height: 310px;
    object-fit: contain;
}

.footer .social-hidden {
    display: none;
}

.footer hr {
    border-color: rgba(255,255,255,0.2);
}

.comparisons-section {
    background-color: var(--light-bg);
    border-radius: 12px;
}

.border-dashed {
    border: 2px dashed #ccc;
}

.featured-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    border-radius: 12px;
    color: white;
}

.scroll-top {
    display: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .product-img {
        height: auto;
        max-height: 300px;
