/* NovaStar by Olympian LED - Main Stylesheet */

/* CSS Variables */
:root {
    --accent-primary: #ff1744;
    --accent-primary-dark: #c4001d;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-card: #ffffff;
    --bg-tertiary: #f9f9f9;
    --border-color: #e0e0e0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    border-bottom: 4px solid #ff0000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

header .container {
    padding: 6px 20px;
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

header a {
    display: inline-block;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #ff0000;
}

.hours {
    font-size: 0.85em;
    color: #ffffff;
    opacity: 0.9;
    white-space: nowrap;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.language-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.language-option:hover {
    background: rgba(255,255,255,0.14);
}

.language-option.active {
    background: #ffffff;
    color: #111827;
}

header img {
    max-width: 175px;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    header img {
        max-width: 125px;
    }
    
    .header-contact {
        display: none; /* Hide phone/hours on mobile to save space */
    }
    
    /* Keep logo left and cart right on same row */
    header .header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    header a:first-child {
        flex: 0 0 auto; /* Don't grow, don't shrink - keep logo left */
    }
    
    .cart-icon-header {
        flex: 0 0 auto; /* Don't grow, don't shrink - keep cart right */
    }
}

/* Main Content */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px 20px;
}

main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 14px 20px;
    background: white;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    border: 2px solid transparent;
}

.cta-button:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.cta-button.secondary {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #ff0000;
}

.cta-button.secondary:hover {
    background: #1a1a1a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.app-link {
    display: inline-block;
    background: #000000;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 10px 10px 0;
    transition: all 0.3s;
    border: 2px solid #ff0000;
}

.app-link:hover {
    background: #1a1a1a;
}

/* Search Box */
.search-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

.calculator-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calculator-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.downloads-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.downloads-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-box {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #ff0000;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    font-size: 1.3em;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ff0000;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.autocomplete-results.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:hover {
    background: #ffe0e0;
}

.autocomplete-item .name {
    font-weight: 500;
    color: #333;
}

.autocomplete-item .category {
    font-size: 0.85em;
    color: #666;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 10px;
}

.autocomplete-item .price {
    color: #2e7d32;
    font-weight: 600;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Product Cards */
.product-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    background: #ffffff;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,0,0,0.2);
    border-color: #ff0000;
}

.product-card {
    position: relative;
}

.product-card .status-badge {
    position: absolute;
    top: 35px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 5;
}

.product-card .status-badge.status-eol {
    background: #dc3545;
    color: white;
}

.product-card .status-badge.status-nrnd {
    background: #ffc107;
    color: #000;
}

.product-card h3 {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.product-specs {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-card .price {
    font-size: 1.5em;
    color: #2e7d32;
    font-weight: bold;
    margin: 10px 0;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255,0,0,0.2);
    border-color: #ff0000;
}

.category-card h3 {
    font-size: 1.6em;
    color: #ff0000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card .count {
    font-size: 0.7em;
    background: #ffe0e0;
    color: #cc0000;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.category-card .arrow {
    color: #ff0000;
    font-size: 1.5em;
    float: right;
    transition: transform 0.3s;
}

.category-card:hover .arrow {
    transform: translateX(5px);
}

/* Filters */
.filters {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.filters h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

/* Pricing Notice */
.pricing-notice {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-secondary);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pricing-notice a {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.pricing-notice a:hover {
    color: var(--accent-primary);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: #ffe0e0;
    color: #cc0000;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
}

.filter-btn:hover {
    background: #ffcccc;
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border-color: #cc0000;
}

/* Typography */
h2 {
    color: #ff0000;
    margin: 30px 0 15px 0;
    border-bottom: 2px solid #ffe0e0;
    padding-bottom: 10px;
}

a {
    color: #ff0000;
}

a:hover {
    color: #cc0000;
}

/* Product Details */
.product-header {
    border-bottom: 3px solid #ff0000;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.product-header h1 {
    color: #ff0000;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.price {
    font-size: 2em;
    color: #2e7d32;
    font-weight: bold;
    margin: 10px 0;
}

.stock {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.in-stock {
    background: #4caf50;
    color: white;
    font-weight: 600;
}

.out-of-stock {
    background: #ff9800;
    color: white;
    font-weight: 600;
}

.category {
    display: inline-block;
    background: #ffe0e0;
    color: #cc0000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin: 10px 0;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1565c0 !important;
    text-decoration: underline !important;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.feature-tags .tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.feature-tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255,0,0,0.3);
}

/* Highlights */
.highlights {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlights h2 {
    color: var(--text-primary);
    margin-top: 0;
    border-bottom: none;
}

.highlights-list {
    list-style: disc;
    margin-left: 25px;
}

.highlights-list li {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.05em;
    line-height: 1.6;
}

/* Enhanced Highlights Section */
.highlights-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
    padding: 60px 20px;
    margin: 40px 0;
}

.highlights-section h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2em;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.highlight-icon {
    font-size: 2em;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
}

.highlight-text {
    color: var(--text-primary);
    font-size: 1em;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-section {
        padding: 40px 15px;
    }
}

/* Downloads Page */
.downloads-hero {
    background: var(--bg-card);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.downloads-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 300;
    color: var(--text-primary);
}

.downloads-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.downloads-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.downloads-section h2 {
    font-size: 2.2em;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.download-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.download-info .description {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 8px;
    line-height: 1.6;
}

.download-info .version-info {
    color: var(--text-tertiary);
    font-size: 0.95em;
    margin: 0;
}

.download-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1em;
    white-space: nowrap;
}

.download-btn .download-icon {
    font-size: 1.2em;
}

.download-btn .version {
    font-size: 0.9em;
    opacity: 0.9;
}

.download-btn.windows {
    background: #0078d4;
    color: white;
}

.download-btn.windows:hover {
    background: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,120,212,0.3);
}

.download-btn.mac {
    background: #333;
    color: white;
}

.download-btn.mac:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.download-btn.firmware {
    background: #ff0000;
    color: white;
}

.download-btn.firmware:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

@media (max-width: 768px) {
    .downloads-hero h1 {
        font-size: 2em;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .download-actions {
        width: 100%;
    }
    
    .download-btn {
        flex: 1;
        justify-content: center;
    }
}
/* Ensure search is always visible on mobile */
@media (max-width: 768px) {
    .search-container { display: flex !important; }
    .search-box { display: block !important; width: 100% !important; }
    .search-input { min-height: 44px; }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid #ff0000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #ff0000;
}

.footer-section p {
    margin: 8px 0;
    color: #ccc;
}

.footer-phone,
.footer-email {
    color: #ff0000 !important;
    font-weight: 600;
}

.footer-hours {
    font-size: 0.9em;
    color: #999;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    margin-top: 15px;
    gap: 5px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #333;
    border-radius: 6px;
    background: #222;
    color: white;
    font-size: 0.95em;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #ff0000;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #cc0000;
}

.newsletter-form button:disabled {
    background: #666;
    cursor: not-allowed;
}

.newsletter-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

.newsletter-status.success {
    background: #d4edda;
    color: #155724;
}

.newsletter-status.error {
    background: #f8d7da;
    color: #721c24;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom a {
    color: #ff0000;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

footer p {
    margin: 15px 0;
}

/* Lists */
ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Category Section */
.category-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-section h2 {
    color: #ff0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffe0e0;
    font-size: 1.8em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Product Actions & Cart */
.product-actions {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-weight: bold;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.add-to-cart-btn {
    background: #2e7d32 !important;
}

.add-to-cart-btn:hover {
    background: #1b5e20 !important;
}

.cart-icon-header {
    background: #ff0000;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-icon-header:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chat-icon-header {
    background: #111827;
}

.chat-icon-header:hover {
    background: #334155;
}

/* Old fixed cart icon for product pages */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff0000;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.cart-count {
    background: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8em;
    margin-left: 5px;
}

.quick-add-btn {
    margin-top: 10px;
    background: #2e7d32;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    width: 100%;
    transition: background 0.3s;
}

.quick-add-btn:hover {
    background: #1b5e20;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 10px 0;
}

.status-badge.eol {
    background: #ff9800;
    color: white;
}

.status-badge.discontinued {
    background: #dc3545;
    color: white;
}

.status-badge.new {
    background: #28a745;
    color: white;
}

.status-badge.nrnd {
    background: #ffc107;
    color: #000;
}

.status-badge-small {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 5px;
}

.status-badge-small.eol {
    background: #ff9800;
    color: white;
}

.status-badge-small.discontinued {
    background: #dc3545;
    color: white;
}

.status-badge-small.new {
    background: #28a745;
    color: white;
}

.status-badge-small.nrnd {
    background: #ffc107;
    color: #000;
}

.eol-price {
    color: #dc3545 !important;
    font-weight: bold;
}

/* Product Comparison (Index Page) */
.product-card-wrapper {
    position: relative;
}

.compare-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 10;
}

.compare-btn {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    right: calc(env(safe-area-inset-right, 0px) + 16px);
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    z-index: 2147483000;
    display: none;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
    .compare-btn {
        padding: 12px 22px;
        font-size: 1em;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
        right: calc(env(safe-area-inset-right, 0px) + 14px);
    }
}

.compare-btn:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.compare-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.compare-modal-content {
    background-color: white;
    margin: 20px auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    max-width: 1400px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.compare-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #666;
}

.compare-close:hover {
    color: #ff0000;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: 2px solid #ddd;
}

.compare-table th {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 15px;
    text-align: left;
    position: sticky;
    top: 0;
    border: 1px solid #cc0000;
}

.compare-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.6;
}

.compare-table td em {
    color: #666;
    font-size: 0.9em;
}

.compare-table tr:nth-child(even) {
    background: #f9f9f9;
}

.compare-table tr:hover {
    background: #fff5f5;
}

.spec-label {
    font-weight: bold;
    color: #333;
    background: #f8f8f8;
    border-right: 2px solid #ccc;
}

#compareTableContainer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Product Page Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.spec-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.spec-section h3 {
    color: #ff0000;
    font-size: 1.2em;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff0000;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table .spec-label {
    font-weight: 600;
    color: #555;
    width: 45%;
    background: transparent;
    border-right: none;
}

.spec-table td:not(.spec-label) {
    color: #333;
    font-weight: 400;
}

/* Firmware Download Button */
.firmware-download-btn {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.firmware-download-btn:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    /* Hide "Cart" text on mobile, show only emoji and count */
    .cart-text {
        display: none;
    }
    
    .cart-icon-header {
        padding: 8px 12px;
        font-size: 1.1em;
    }

    .language-switcher {
        margin-left: auto;
    }

    .language-option {
        min-height: 30px;
        padding: 5px 7px;
    }

    .language-option span {
        display: none;
    }
    
    /* Stack search, calculator and downloads button on mobile */
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .calculator-btn,
    .downloads-btn {
        display: none;
    }
    
    .search-box {
        width: 100%;
    }
    
    /* On mobile, show filters below products */
    .container {
        display: flex;
        flex-direction: column;
    }
    
    .search-container {
        order: 0;
    }
    
    .category-section {
        order: 2;
    }
    
    .filters {
        order: 3;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff0000;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255,0,0,0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
}

/* ========== NEW UI SECTIONS ========== */

/* Product Hero Section */
.product-hero {
    background: var(--bg-secondary);
    padding: 30px 20px 60px 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Single column layout when no product image */
.hero-grid-no-image {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.product-hero h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

.product-hero .description {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 25px 0;
}
/* At-a-Glance chips */
.at-a-glance {
    margin: 15px 0 10px 0;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9em;
}

.product-hero .price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

.product-hero .stock {
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    display: inline-block;
}

.product-hero .stock.in-stock {
    background: #4caf50;
    color: white;
}

.product-hero .stock.out-of-stock {
    background: #ff9800;
    color: white;
}

.product-hero .eol-price {
    font-size: 1.8em;
    font-weight: 600;
    color: #ef5350;
}

/* Feature Cards Section */
.feature-cards-section {
    background: var(--bg-secondary);
    padding: 40px 20px;
}

.feature-cards-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-cards-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

body.light-theme .feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Use Cases Section */
.use-cases-section {
    background: var(--bg-secondary);
    padding: 40px 20px;
}

.use-cases-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.use-cases-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 50px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.use-case-item {
    text-align: center;
    padding: 30px 20px;
}

.use-case-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.use-case-item h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Specs Section */
.specs-section {
    background: var(--bg-tertiary);
    padding: 40px 20px;
}
/* Section navigation */
.section-nav {
    display: flex;
    gap: 16px;
}
.section-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}
.section-link:hover {
    color: var(--accent-primary);
}

.specs-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.specs-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 50px;
}

/* H Series Customizer Section */
.h-series-customizer-section {
    background: var(--bg-secondary);
    padding: 40px 20px;
    border-top: 2px solid var(--border-color);
}

.h-series-customizer-section h2 {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-weight: 700;
}

.h-series-customizer-section > .container > p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.h-series-specs-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.h-spec-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h-spec-label {
    font-size: 0.95em;
    color: var(--text-secondary);
    font-weight: 500;
}

.h-spec-value {
    font-size: 1.5em;
    color: var(--accent-primary);
    font-weight: 700;
}

.configure-system-btn {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    display: inline-block;
    text-decoration: none;
}

.configure-system-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: #c82333 !important;
    color: #ffffff !important;
}

.h-series-available-cards {
    margin-top: 40px;
}

.h-series-available-cards h3 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.card-name {
    font-weight: 600;
    font-size: 1.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--accent-primary);
}

/* H Series Card Pages */
.card-type-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin: 10px 0;
}

.card-details-section {
    background: var(--bg-secondary);
    padding: 60px 20px;
}

.card-details-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.compatible-frames {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.compatible-frames li {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.compatible-frames li:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compatible-frames a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

.card-info-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.card-info-box h3 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.card-info-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-info-box .cta-button {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-info-box .cta-button:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* H Series Customizer Modal */
.h-customizer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.h-customizer-content {
    background: #1a1a1a;
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.h-customizer-header {
    background: #dc3545;
    color: #ffffff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-customizer-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #ffffff;
}

.h-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5em;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
}

.h-close-btn:hover {
    color: #ffcccc;
}

.h-customizer-body {
    background: #1a1a1a;
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.h-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 400px;
    gap: 30px;
}

.h-cards-panel,
.h-slots-panel {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
}

.h-cards-panel h3,
.h-slots-panel h3,
.h-summary-panel h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
}

.h-available-cards {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 30px;
    padding-right: 10px;
}

.h-cards-panel-highlight {
    animation: pulse-highlight 1.5s ease-in-out infinite;
    border: 3px solid #28a745 !important;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
    background: rgba(40, 167, 69, 0.1) !important;
}

@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
        border-color: #28a745;
    }
    50% {
        box-shadow: 0 0 35px rgba(40, 167, 69, 0.9);
        border-color: #34ce57;
    }
}

.h-card-option {
    background: #2a2a2a;
    border: 2px solid #444444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-card-option:hover {
    transform: translateX(5px);
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.h-card-option-name {
    font-weight: 600;
    font-size: 1.05em;
    color: #ffffff;
    margin-bottom: 5px;
}

.h-card-option-ports {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    min-height: 28px;
}

.h-port-badge {
    background: #3a3a3a;
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75em;
    color: #e0e0e0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    margin-right: 4px;
    margin-bottom: 4px;
}

.h-port-badge svg {
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}

.h-port-badge-empty {
    font-size: 0.8em;
    color: #888888;
    font-style: italic;
}

.h-card-option-price {
    font-size: 1.1em;
    font-weight: 700;
    color: #dc3545;
}

.h-card-option-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.h-card-details-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #444444;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.h-card-details-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

/* Card Details Modal */
.h-card-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.h-card-details-content {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(220, 53, 69, 0.5);
}

.h-card-details-header {
    background: #2a2a2a;
    padding: 20px;
    border-bottom: 2px solid #444444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-card-details-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.3em;
}

.h-card-details-body {
    padding: 20px;
}

.h-card-details-section {
    margin-bottom: 20px;
}

.h-card-details-section strong {
    display: block;
    color: #dc3545;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.h-card-details-section p {
    margin: 0;
    color: #ffffff;
    font-size: 1.05em;
    line-height: 1.6;
    white-space: pre-line;
}

.h-card-details-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444444;
    text-align: center;
}

.h-card-full-details-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #444444;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.h-card-full-details-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.h-card-specs-list {
    margin: 10px 0;
    padding-left: 20px;
    color: #cccccc;
    line-height: 1.8;
}

.h-card-specs-list li {
    margin-bottom: 5px;
}

.h-card-connector-section {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

.h-card-connector-name {
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.h-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.h-slot {
    background: #2a2a2a;
    border: 2px dashed #555555;
    border-radius: 8px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 0.9em;
    position: relative;
}

.h-slot-filled {
    background: #2a2a2a;
    border-style: solid;
    border-color: #dc3545;
    cursor: move;
}

.h-slot-filled[draggable="true"]:active {
    opacity: 0.5;
    cursor: grabbing;
}

.h-slot-empty {
    cursor: pointer;
}

.h-slot-label {
    font-size: 0.75em;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h-slot-card-name {
    font-weight: 600;
    margin: 5px 0;
    font-size: 0.9em;
    color: #ffffff;
}

.h-slot-card-ports {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 4px;
    justify-content: center;
    align-items: center;
    min-height: 28px;
}

/* Port badges container used on H Series category page */
.port-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    min-height: 28px;
    margin-top: 8px;
}

.h-slot-card-ports .h-port-badge {
    font-size: 0.7em;
    padding: 3px 6px;
    margin: 0;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.h-double-slot-badge {
    position: absolute;
    right: 15px;
    top: 5px;
    background: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: bold;
    z-index: 10;
}

.h-slot-card-price {
    font-size: 0.85em;
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 5px;
}

.h-slot-empty-text {
    color: #888888;
    font-style: italic;
    font-size: 0.9em;
}

.h-slot-fixed {
    background: #3a3a3a;
    border-color: #666666;
    cursor: default;
}

.h-slot-fixed-text {
    color: #aaaaaa;
    font-size: 0.8em;
    font-style: italic;
}

.h-slot-blank {
    background: #1a1a1a;
    border-color: #333333;
    border-style: solid;
    cursor: default;
}

.h-slot-blocked {
    background: repeating-linear-gradient(
        45deg,
        #2a2a2a,
        #2a2a2a 10px,
        #1a1a1a 10px,
        #1a1a1a 20px
    );
    border: 2px dashed #555555;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    cursor: not-allowed;
    opacity: 0.7;
}

.h-slot-blocked-text {
    color: #888888;
    font-size: 11px;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.h-slot-double {
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid #dc3545 !important;
}

.h-double-slot-badge {
    position: absolute;
    top: 5px;
    right: 15px;
    background: #dc3545;
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.h-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h-grid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.h-column-layout {
    flex-direction: row !important;
    gap: 20px;
}

.h-grid-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h-slot-optional {
    background: #2a2a2a;
    border-color: #ffa500;
    border-style: dashed;
    cursor: default;
}

.h-slot-optional-text {
    color: #ffa500;
    font-size: 0.8em;
    font-style: italic;
}

.h-slot-pending {
    border-color: #00ff00 !important;
    border-width: 3px !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    animation: pulse-pending 1.5s ease-in-out infinite;
}

.h-slot-drop-zone {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
    transition: all 0.2s ease;
}

@keyframes pulse-pending {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    }
}

.h-slot button {
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 1.2em;
    line-height: 1;
}

.h-summary-panel {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 0;
}

#configSummary {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.h-summary-item {
    padding: 10px;
    border-bottom: 1px solid #444444;
    color: #ffffff;
    font-size: 0.95em;
}

.h-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
    padding: 20px 0;
    border-top: 3px solid #dc3545;
    color: #ffffff;
}

.h-add-to-cart-btn {
    width: 100%;
    background: #dc3545;
    color: #ffffff;
    border: none;
    padding: 18px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: #c82333;
}

.h-export-config-btn {
    width: 100%;
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #444444;
    padding: 14px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.h-export-config-btn:hover {
    background: #333333;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

@media (max-width: 1200px) {
    .h-config-grid {
        grid-template-columns: 1fr;
    }
    
    .h-summary-panel {
        position: static;
    }
}

/* Contact CTA Section */
.cta-contact-section {
    background: var(--bg-tertiary);
    padding: 40px 20px;
    border-top: 3px solid var(--accent-primary);
}

.cta-contact-section h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    font-weight: 700;
    color: var(--text-primary);
}

.cta-contact-section p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.cta-contact-section .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-contact-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-email-btn,
.cta-website-btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.cta-email-btn {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
}

.cta-website-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-website-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-primary);
}

.quantity-selector input {
    width: 80px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.add-to-cart-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 12px rgba(255,0,0,0.2);
}

.add-to-cart-btn:hover {
    background: #cc0000;
}

.configure-top-btn {
    background: #172033 !important;
    color: #ffffff !important;
    border: 2px solid #172033 !important;
    padding: 15px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(23, 32, 51, 0.2);
}

.configure-top-btn:hover {
    background: #2c374f !important;
    border-color: #2c374f !important;
}

.spec-sheet-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ff1744 !important;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ff1744;
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.2);
}

.spec-sheet-btn:hover {
    background: #f01440 !important;
    color: white !important;
    border-color: #f01440;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

/* Breadcrumb */
/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: 8px;
    margin: 4px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 100%;
}
.breadcrumb-list::-webkit-scrollbar { display: none; }

.breadcrumb-item {
    display: flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb-link {
    color: var(--accent-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1.5;
    transform: translateY(1px);
}

.breadcrumb-link:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.breadcrumb-icon {
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-text {
    display: inline;
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    font-weight: 300;
    user-select: none;
    padding: 0 2px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
    padding: 2px 8px;
    line-height: 1.5;
    transform: translateY(1px);
}

.breadcrumb-current span {
    color: var(--text-primary);
}

/* Product Images */
.product-image-main {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Product Image Placeholder */
.product-image-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 5em;
    opacity: 0.3;
    margin-bottom: 15px;
}

.placeholder-text {
    font-size: 1.2em;
    color: var(--text-secondary);
    opacity: 0.6;
    font-weight: 500;
}

.additional-images {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.product-image-clickable {
    cursor: pointer;
    transition: transform 0.3s;
}

.product-image-clickable:hover {
    transform: scale(1.05);
}

.additional-images .product-image-clickable {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.additional-images .product-image-clickable:hover {
    transform: scale(1.1);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-grid-no-image {
        max-width: 100%;
    }
    
    .product-image-placeholder {
        padding: 40px 30px;
        max-width: 300px;
    }
    
    .placeholder-icon {
        font-size: 3.5em;
    }
    
    .placeholder-text {
        font-size: 1em;
    }
    
    .product-hero h1 {
        font-size: 2em;
    }
    
    .product-hero .price {
        font-size: 1.8em;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-actions button,
    .product-actions a {
        width: 100%;
        text-align: center;
    }
    
    .cta-contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-email-btn,
    .cta-website-btn {
        width: 100%;
        text-align: center;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Homepage-specific styles */
.intro {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    text-align: center;
}

.intro h2 {
    color: #ff0000;
    font-size: 2em;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.section-title {
    font-size: 2.2em;
    color: #ff0000;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 300;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.features {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 50px 0;
}

.features h2 {
    text-align: center;
    color: #ff0000;
    font-size: 2em;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature h3 {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature p {
    color: #666;
    font-size: 1em;
}

/* Customer Types Section */
.customer-types {
    margin: 40px 0 30px 0;
    text-align: center;
}

.customer-types h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.customer-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.customer-type {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

.customer-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #ff0000;
}

.customer-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.customer-type h3 {
    color: #ff0000;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.customer-type p {
    color: #666;
    font-size: 1.05em;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    margin: 10px 0 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-section h2 {
    color: white;
    font-size: 2.5em;
    margin: 0 0 15px 0;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2em;
    margin: 0 auto 25px auto;
    max-width: 700px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.cta-btn.secondary {
    background: white;
    color: #333;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .customer-types h2 {
        font-size: 1.8em;
    }
    
    .customer-types-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .customer-type {
        padding: 30px 20px;
    }
    
    .customer-icon {
        font-size: 3em;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8em;
    }
    
    .cta-section p {
        font-size: 1em;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
    }
}

/* Why Choose Section */
.why-choose-section {
    background: #f9f9f9;
    padding: 12px 0;
    margin: 12px 0;
}

.why-choose-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.5em;
    margin-bottom: 12px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.why-choose-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.why-choose-item h3 {
    color: #4caf50;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.why-choose-item p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 12px 0;
    margin: 12px 0;
}

.faq-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.5em;
    margin-bottom: 12px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff0000;
}

.faq-question {
    color: #ff0000;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-answer {
    color: #666;
    line-height: 1.8;
    font-size: 1.05em;
}

/* Frequently Purchased Together Section */
.frequently-purchased-section {
    background: white;
    padding: 12px 0;
    margin: 12px 0;
}

.frequently-purchased-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.frequently-purchased-section > .container > p {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 12px;
}

.purchased-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

/* Fiber Education Section */
.fiber-education-section {
    background: #fff;
    padding: 12px 0;
    margin: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.fiber-education-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.fiber-education-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05em;
    margin: 0 0 10px 0;
}

.fiber-education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.fiber-card {
    background: var(--bg-card);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.fiber-card h3 {
    margin: 0 0 10px 0;
    color: var(--accent-primary);
    font-size: 1.3em;
}

.fiber-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.purchased-product-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.purchased-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #ff0000;
}

.purchased-product-content {
    padding: 25px;
}

.purchased-product-category {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.purchased-product-card h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
    min-height: 2.6em;
}

.purchased-product-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 3em;
}

.purchased-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.purchased-product-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #4caf50;
}

@media (max-width: 768px) {
    .purchased-products-grid {
        grid-template-columns: 1fr;
    }
    
    .purchased-product-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .view-product-btn {
        width: 100%;
        text-align: center;
    }
}

/* Related Products Section */
.related-products-section {
    background: #f5f5f5;
    padding: 50px 0;
    text-align: center;
    margin: 40px 0;
}

.related-products-section h2 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.related-products-section p {
    color: #666;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.related-products-section a {
    color: #ff0000;
    font-weight: 600;
}

.related-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Series Comparison Table */
.series-comparison-table {
    max-width: 1000px;
    margin: 30px auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: #333;
    color: white;
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr.current-product {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
}

.current-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 10px;
}

.series-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 10px;
}

.series-label.upgrade {
    background: #4caf50;
    color: white;
}

.series-label.downgrade {
    background: #9e9e9e;
    color: white;
}

.series-label.alternative {
    background: #ff9800;
    color: white;
}

.view-product-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #ff0000;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-product-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

/* Comparison table checkboxes */
.comparison-table input[type="checkbox"] {
    position: static !important;
    cursor: pointer;
    transform: scale(1.2);
}

.comparison-table input[type="checkbox"]:hover {
    transform: scale(1.3);
}

/* Mobile responsiveness for series comparison table */
@media (max-width: 640px) {
    .series-comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    /* Hide less critical column on mobile: View (7) */
    .comparison-table th:nth-child(7),
    .comparison-table td:nth-child(7) {
        display: none;
    }
}

/* Compare button in series comparison */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #ff9800;
    color: white !important;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #ff0000;
    text-decoration: none;
    border: 2px solid #ff0000;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Competitive Advantages Section */
.competitive-advantages-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 60px 0;
    margin: 40px 0 0 0;
}

.competitive-advantages-section h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
    color: white;
}

.advantage-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.advantage-item h3 {
    color: #ff0000;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.advantage-item p {
    color: #ccc;
    line-height: 1.6;
    font-size: 1.05em;
}

@media (max-width: 768px) {
    .why-choose-section h2,
    .faq-section h2,
    .related-products-section h2,
    .competitive-advantages-section h2 {
        font-size: 1.8em;
    }
    
    .why-choose-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
    }
}

/* Calculator Page - Processor Cards */
.processor-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #4caf50;
    margin: 10px 0;
}

.processor-price.contact {
    font-size: 1.2em;
    color: var(--accent-primary);
    font-weight: 600;
}

.view-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #ff1744 !important;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ff1744;
}

.view-btn:hover {
    background: #f01440 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

/* Contact Page */
.contact-hero {
    text-align: center;
    padding: 40px 0;
}

.contact-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-hero p {
    font-size: 1.2em;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-method .icon {
    font-size: 2em;
    flex-shrink: 0;
}

.contact-method h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-method p {
    margin: 5px 0;
    color: var(--text-primary);
}

.contact-method .hours {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 8px;
}

.contact-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #ff1744;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #f01440;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Page Mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-hero h1 {
        font-size: 2em;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legal-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-content .last-updated {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-primary);
}

.legal-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 25px;
        margin: 20px auto;
    }
    
    .legal-content h1 {
        font-size: 2em;
    }
    
    .legal-content h2 {
        font-size: 1.5em;
    }
}
.warranty-note {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* IC Driver Filter Styles */
.ic-filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.ic-filter-btn:hover {
    border-color: #ff0000;
    background: #fff5f5;
}

.ic-filter-btn.active {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.spec-section > div {
    max-width: 100%;
}

/* Make IC driver section span full width of grid */
.spec-section:has(.ic-driver-section) {
    grid-column: 1 / -1;
}

.ic-driver-section {
    width: 100%;
    max-width: 100%;
}

.ic-driver-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .ic-driver-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ic-driver-grid {
        grid-template-columns: 1fr;
    }
}

.ic-driver-chip {
    background: white;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.2s;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.ic-driver-chip.highlight {
    background: #fff3cd;
}

.ic-driver-chip:hover {
    border-color: #ff0000 !important;
    box-shadow: 0 2px 8px rgba(255,0,0,0.1);
    transform: translateY(-1px);
}

.firmware-download-btn:hover {
    background: #cc0000 !important;
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
    transform: translateY(-2px);
}

/* Cart Page */
.cart-page h1 {
    font-size: 2em;
    color: var(--text-primary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-table th,
.cart-table td {
    white-space: nowrap;
}

.text-right { text-align: right; }
.text-center { text-align: center; }

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.remove-btn {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
}

.remove-btn:hover { background: #d32f2f; }

/* Compact icon button for cart actions */
.icon-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    color: #d32f2f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.icon-btn:hover { background: #fee; }
.trash-btn svg { display: block; width: 20px; height: 20px; }

.product-name-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}
.product-name-link:hover { text-decoration: underline; }

.cart-total {
    font-size: 1.5em;
    font-weight: 700;
    color: #2e7d32;
    text-align: right;
    padding-top: 10px;
}

.cart-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-blue { background: #1976d2 !important; }
.btn-black { background: #000 !important; }

.clear-cart {
    background: transparent;
    color: #dc3545;
    border: none;
    padding: 8px 0;
    font-weight: 600;
    cursor: pointer;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-empty-emoji {
    font-size: 4em;
    opacity: 0.3;
    margin-bottom: 10px;
}

.cart-empty-subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cart-actions { flex-direction: column; align-items: stretch; }
    .cart-actions .cta-button, .cart-actions a, .cart-actions button { width: 100%; text-align: center; }
    /* Stack cart table rows for mobile */
    .table-responsive { overflow-x: visible; }
    .cart-table { display: block; width: 100%; }
    .cart-table thead { display: none; }
    .cart-table tbody { display: block; }
    .cart-table tr { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; white-space: normal; padding: 8px 0; }
    .cart-table td::before { content: attr(data-label); font-weight: 600; color: #666; margin-right: 12px; }
    .text-right { text-align: right; }
    .text-center { text-align: right; }
    .quantity-input { width: 100px; }
}

/* 5G Badge */
.five-g-badge {
    display: inline-block;
    background: #0d47a1;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-left: 8px;
    vertical-align: middle;
}

.five-g-only-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-left: 8px;
    vertical-align: middle;
}

.subpixel-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Additional downloads page tweaks for responsiveness */
.downloads-section { max-width: 1000px; margin: 0 auto; }
.download-info, .download-actions, .version-actions, .manual-actions { min-width: 0; }
.version-actions a, .manual-actions a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.version-row { padding: 14px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f8f9fa; }
.version-row.latest { background: #fff; }
.version-row.alt { background: #f8f9fa; }
.latest-badge { background: #28a745; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .85em; font-weight: 600; margin-left: 8px; }
.manuals { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e0e0e0; }
.manual-row { padding: 12px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f0f7ff; }
.manual-label .manual-version { color:#666; font-size:.9em; margin-left: 10px; }
@media (max-width: 768px){
  .version-row, .manual-row { flex-direction: column; align-items: stretch; }
  .version-actions, .manual-actions { display: flex; gap: 10px; }
  .download-btn { width: 100%; justify-content: center; }
}

/* Mobile hamburger navigation */
@media (min-width: 769px){ .hamburger{ display:none; } .mobile-drawer{ display:none; } .nav-overlay{ display:none; } }
@media (max-width: 768px){
  .hamburger{ margin-left: 10px; width: 36px; height: 28px; display:flex; flex-direction:column; justify-content:space-between; background:none; border:none; cursor:pointer; }
  .hamburger span{ display:block; height:3px; background:#fff; border-radius:2px; }
  .mobile-drawer{ position: fixed; top:0; right:-300px; width:280px; height:100vh; background:#fff; box-shadow:-2px 0 8px rgba(0,0,0,0.15); transition:right 0.25s ease; z-index:1001; display:flex; flex-direction:column; overflow-y:auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .mobile-drawer.open{ right:0; }
  .mobile-drawer-header{ display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid #eee; font-weight:600; }
  .drawer-close{ background:none; border:none; font-size:24px; line-height:1; cursor:pointer; }
  .mobile-nav-list{ list-style:none; padding:8px 0; margin:0 0 calc(16px + env(safe-area-inset-bottom)); }
  .mobile-nav-list li{ margin:0; }
  .mobile-nav-list li.divider{ border-top:1px solid #eee; margin:8px 0; }
  .mobile-nav-list a{ display:block; padding:12px 16px; color:#333; text-decoration:none; }
  .mobile-nav-list a:hover{ background:#f7f7f7; }
  .nav-overlay{ position:fixed; inset:0; background:rgba(0,0,0,0.3); z-index:1000; }
  .nav-overlay[hidden]{ display:none; }
  body.no-scroll{ overflow:hidden; }
}

/* Calculator mobile layout tweaks */
.calc-source-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
@media (max-width: 900px){ .calc-source-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px){
  .calculator-container { padding: 16px; margin: 12px auto; max-width: 100%; }
  .input-row { flex-direction: column; gap: 8px; }
  .input-row span { order: 2; }
}

/* AI support chat */
.ai-chat-launcher{position:fixed;right:18px;bottom:18px;z-index:900;background:#111827;color:#fff;border:0;border-radius:999px;padding:12px 18px;font-weight:700;box-shadow:0 8px 20px rgba(0,0,0,.22);text-decoration:none}
.support-chat-page{background:#f5f7fb;min-height:calc(100vh - 180px);padding:28px 16px}
.support-chat-shell{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:20px;max-width:1180px;margin:0 auto}
.support-chat-sidebar,.support-chat-main{background:#fff;border:1px solid #d8dee8;border-radius:8px;box-shadow:0 10px 28px rgba(15,23,42,.08)}
.support-chat-sidebar{padding:22px;align-self:start}
.support-chat-sidebar h1{font-size:2rem;line-height:1.08;margin:6px 0 10px;color:#111827}
.support-chat-sidebar p{color:#475569;line-height:1.55}
.support-chat-sr-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.support-chat-policy h2{font-size:1rem;margin:0 0 6px;color:#111827}
.support-chat-email{display:inline-block;margin-top:14px;color:#b91c1c;font-weight:700}
.support-chat-main{display:flex;flex-direction:column;min-height:680px;overflow:hidden}
.support-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e5e7eb;background:#fff}
.support-chat-toolbar span{display:block;color:#64748b;font-size:.88rem;margin-top:2px}
.support-chat-toolbar button,.support-chat-prompts button,.support-chat-compose button{border:0;border-radius:6px;font-weight:700;cursor:pointer}
.support-chat-toolbar button{background:#f1f5f9;color:#111827;padding:9px 12px}
.support-chat-thread{flex:1;overflow:auto;padding:18px;background:#f8fafc}
.support-chat-message{max-width:820px;margin:0 0 16px}
.support-chat-message.support-chat-user{margin-left:auto}
.support-chat-role{font-size:.78rem;font-weight:700;color:#64748b;margin:0 0 5px}
.support-chat-user .support-chat-role{text-align:right}
.support-chat-bubble{padding:12px 14px;border-radius:8px;line-height:1.52;border:1px solid #e2e8f0;background:#fff;color:#172033}
.support-chat-bubble p{margin:0 0 8px}
.support-chat-bubble p:last-child{margin-bottom:0}
.support-chat-bubble ul{margin:6px 0 8px 18px;padding:0}
.support-chat-bubble li{margin:4px 0}
.support-chat-bubble a{color:#b91c1c;font-weight:700;text-decoration:underline;text-underline-offset:2px;word-break:break-word}
.support-chat-user .support-chat-bubble{background:#dc2626;color:#fff;border-color:#dc2626}
.support-chat-user .support-chat-bubble a{color:#fff}
.support-chat-sources{margin-top:8px;border:1px solid #d7dee9;border-radius:8px;background:#fff;overflow:hidden}
.support-chat-sources summary{cursor:pointer;padding:8px 10px;font-size:.82rem;font-weight:800;color:#334155;background:#f1f5f9}
.support-chat-sources ul{list-style:none;margin:0;padding:0}
.support-chat-sources li{display:grid;grid-template-columns:94px minmax(0,1fr);gap:8px;padding:9px 10px;border-top:1px solid #e5e7eb}
.support-chat-sources a{color:#b91c1c;font-weight:800;text-decoration:none}
.support-chat-sources a:hover{text-decoration:underline}
.support-chat-sources small{display:block;color:#64748b;margin-top:2px;line-height:1.35}
.support-chat-source-type{align-self:start;text-transform:capitalize;font-size:.72rem;border:1px solid #cbd5e1;border-radius:999px;padding:3px 7px;color:#334155;background:#f8fafc;text-align:center}
.support-chat-download-action{display:inline-flex;margin-top:7px;border:0;border-radius:6px;background:#dc2626;color:#fff;font-size:.78rem;font-weight:800;padding:6px 9px;cursor:pointer}
.support-chat-download-action:disabled{opacity:.68;cursor:not-allowed}
.support-chat-review-callout{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;padding:10px 12px;border:1px solid #fed7aa;border-radius:8px;background:#fff7ed;color:#7c2d12}
.support-chat-review-callout strong{font-size:.86rem}
.support-chat-review-callout span{font-size:.82rem;color:#9a3412}
.support-chat-review-callout button{border:0;border-radius:6px;background:#c2410c;color:#fff;font-size:.78rem;font-weight:800;padding:7px 10px;cursor:pointer}
.support-chat-feedback{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.support-chat-feedback button{border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#334155;font-size:.76rem;font-weight:800;padding:5px 8px;cursor:pointer}
.support-chat-feedback button[data-chat-escalate]{border-color:#fecaca;color:#991b1b;background:#fff5f5}
.support-chat-feedback button:disabled{opacity:.65;cursor:not-allowed}
.support-chat-prompts{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;border-top:1px solid #e5e7eb;background:#fff}
.support-chat-prompts button{background:#eef2f7;color:#172033;padding:8px 10px}
.support-chat-prompts button:disabled{opacity:.55;cursor:not-allowed}
.support-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 16px;border-top:1px solid #e5e7eb;background:#fff}
.support-chat-compose textarea{resize:vertical;min-height:68px;max-height:180px;border:1px solid #cbd5e1;border-radius:6px;padding:11px;font:inherit;font-size:16px}
.support-chat-compose button{background:#dc2626;color:#fff;padding:0 18px}

/* Admin chat review */
.admin-chat-detail{margin:16px 0}
.admin-chat-detail:empty{display:none}
.admin-chat-detail{border:1px solid #d8dee8;border-radius:8px;background:#fff;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.08)}
.admin-chat-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin-bottom:14px}
.admin-chat-detail-head h3{margin:0 0 4px}
.admin-chat-detail-head button{border:1px solid #cbd5e1;background:#f8fafc;border-radius:6px;padding:8px 10px;cursor:pointer}
.admin-chat-review{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;align-items:end;margin-bottom:16px}
.admin-chat-review label{display:flex;flex-direction:column;gap:5px;font-weight:700;color:#334155;font-size:.86rem}
.admin-chat-review label:has(input[type="checkbox"]){flex-direction:row;align-items:center;align-self:center}
.admin-chat-review input,.admin-chat-review select,.admin-chat-review textarea{border:1px solid #cbd5e1;border-radius:6px;padding:8px;font:inherit;font-weight:400}
.admin-chat-transcript{display:flex;flex-direction:column;gap:10px;margin:10px 0 16px}
.admin-chat-message{border:1px solid #e2e8f0;border-radius:8px;padding:10px;background:#f8fafc}
.admin-chat-assistant{background:#fff}
.admin-chat-user{background:#fff5f5;border-color:#fecaca}
.admin-chat-message strong{text-transform:capitalize;color:#334155}
.admin-chat-message details{margin-top:8px}
.admin-chat-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.admin-chat-tags span{border:1px solid #cbd5e1;background:#eef2f7;color:#334155;border-radius:999px;padding:3px 7px;font-size:.75rem;font-weight:800}
.software-page{background:#f6f8fb}
.software-hero{background:linear-gradient(135deg,#162033 0%,#26425f 55%,#7a1f1f 100%);color:#fff;padding:56px 20px}
.software-hero-inner,.software-layout{max-width:1180px;margin:0 auto}
.software-hero h1{margin:8px 0 10px;font-size:42px;letter-spacing:0}
.software-hero p{max-width:820px;line-height:1.65}
.software-eyebrow{color:#b71c1c;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.software-hero .software-eyebrow{color:#ffd6d6}
.software-subtitle{font-size:20px;font-weight:700}
.software-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;padding:34px 20px 56px}
.software-version-card,.software-section,.software-sidebar section{background:#fff;border:1px solid #e2e7ef;border-radius:8px;padding:22px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.software-version-card{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}
.software-download-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.software-section{margin-top:18px}
.software-resource-list,.software-sidebar ul{list-style:none;padding:0;margin:0}
.software-resource-list li,.related-software-list li{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #edf0f4}
.software-resource-list li:last-child,.related-software-list li:last-child{border-bottom:0}
.software-resource-list span,.related-software-list span{display:block;color:#667085;font-size:14px;margin-top:3px}
.software-faq-list{display:grid;gap:14px}
.software-faq-item h3{font-size:18px;margin:0 0 8px}
.software-faq-item p{margin:0;color:#3f4b5a;line-height:1.6}
.software-troubleshooting-list{display:grid;gap:16px}
.software-troubleshooting-item h3{font-size:18px;margin:0 0 8px}
.software-troubleshooting-item p{margin:0 0 10px;color:#3f4b5a;line-height:1.6}
.software-troubleshooting-item ul{margin:0 0 10px 20px;padding:0;color:#3f4b5a;line-height:1.58}
.software-troubleshooting-item li{margin:6px 0}
.software-source-note{font-size:13px;color:#667085}
.software-sidebar{display:flex;flex-direction:column;gap:18px}
.software-sidebar li{padding:8px 0;border-bottom:1px solid #edf0f4}
.software-page-link{display:inline-flex;margin:4px 0 14px;color:#b71c1c;font-weight:800;text-decoration:none}
.software-page-link:hover{text-decoration:underline}
@media (max-width: 860px){
  .support-chat-shell{grid-template-columns:1fr}
  .support-chat-main{min-height:620px}
  .support-chat-compose{grid-template-columns:1fr}
  .support-chat-compose button{padding:12px}
  .software-layout,.software-version-card{display:block}
  .software-download-actions{justify-content:flex-start;margin-top:14px}
  .software-hero h1{font-size:34px}
}
