/* ===== RESPONSIVE DESIGN ===== */

/* Desktop Large (1440px+) - Default styles already cover this */

/* Laptop (1024px - 1439px) */
@media screen and (max-width: 1439px) {
  :root {
    --container-padding: var(--space-5);
    --text-6xl: 3rem;      /* 48px */
    --text-5xl: 2.5rem;    /* 40px */
    --text-4xl: 2rem;      /* 32px */
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .hero-container {
    gap: var(--space-12);
  }

  .value-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }

  .comparison-container {
    padding: 0 var(--space-4);
  }

  .use-case-grid {
    gap: var(--space-8);
  }

  /* Green Commitment Responsive */
  .green-hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
  }

  .commitment-goals {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
  }

  .trust-content {
    gap: var(--space-12);
  }

  .cta-content {
    gap: var(--space-12);
  }

  .footer-content {
    gap: var(--space-12);
  }
}

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
  :root {
    --container-padding: var(--space-4);
    --space-20: 4rem;      /* 64px */
    --space-16: 3rem;      /* 48px */
    --space-12: 2rem;      /* 32px */
    --text-6xl: 2.5rem;    /* 40px */
    --text-5xl: 2rem;      /* 32px */
    --text-4xl: 1.75rem;   /* 28px */
    --text-3xl: 1.5rem;    /* 24px */
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-8);
    transition: left var(--transition-base);
    z-index: var(--z-modal);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: var(--z-tooltip);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Hero Section */
  .hero {
    padding: calc(80px + var(--space-16)) 0 var(--space-16);
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  /* Reorder hero content on mobile - image first */
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: var(--space-8);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-badges {
    justify-content: center;
    gap: var(--space-6);
  }

  /* Sections */
  .section {
    padding: var(--space-16) 0;
  }

  .section-header {
    margin-bottom: var(--space-12);
  }

  /* Value Proposition */
  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .value-card {
    padding: var(--space-6);
  }

  /* Product Showcase */
  .product-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-8);
    text-align: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Tab content responsive fixes */
  .tab-content {
    min-height: 400px;
  }

  .use-case-grid {
    min-height: 350px;
  }

  .product-card.featured {
    transform: none;
  }

  .product-card.featured:hover {
    transform: translateY(-8px);
  }

  /* Technology Comparison */
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }

  .comparison-feature {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
  }

  .comparison-value {
    margin-bottom: var(--space-4);
  }

  .comparison-header .comparison-col:first-child {
    display: none;
  }

  /* Use Cases */
  .use-case-tabs {
    flex-direction: column;
    gap: var(--space-1);
  }

  .tab-btn {
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }

  .use-case-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-8);
  }

  .use-case-info h3 {
    font-size: var(--text-2xl);
  }

  /* Green Commitment Mobile */
  .green-hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .green-hero-text .section-title {
    font-size: var(--text-4xl);
  }

  .impact-visualization {
    height: 200px;
  }

  .icon-large {
    width: 80px;
    height: 80px;
  }

  .pulse-ring {
    width: 120px;
    height: 120px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .metric-card {
    padding: var(--space-6);
  }

  .sustainability-commitment {
    padding: var(--space-8);
    margin-top: var(--space-8);
  }

  .commitment-title {
    font-size: var(--text-2xl);
  }

  .commitment-goals {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .certifications {
    gap: var(--space-3);
  }

  .counter-number {
    font-size: var(--text-4xl);
  }

  /* Customer Trust */
  .trust-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .trust-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .stat-item {
    padding: var(--space-4);
  }

  .stat-number {
    font-size: var(--text-3xl);
  }

  /* Contact CTA */
  .cta-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .cta-title {
    font-size: var(--text-3xl);
  }

  .cta-benefits {
    margin-bottom: var(--space-8);
  }

  /* Forms */
  .contact-form {
    padding: var(--space-6);
  }

  .alternative-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Footer */
  .footer {
    padding: var(--space-16) 0 var(--space-6);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* Mobile Large (480px - 767px) */
@media screen and (max-width: 767px) {
  :root {
    --container-padding: var(--space-3);
    --space-20: 3rem;      /* 48px */
    --space-16: 2.5rem;    /* 40px */
    --space-12: 1.5rem;    /* 24px */
    --space-8: 1rem;       /* 16px */
    --text-6xl: 2rem;      /* 32px */
    --text-5xl: 1.75rem;   /* 28px */
    --text-4xl: 1.5rem;    /* 24px */
    --text-3xl: 1.25rem;   /* 20px */
    --text-2xl: 1.125rem;  /* 18px */
  }

  /* Navigation */
  .nav {
    padding: var(--space-3) var(--container-padding);
  }

  .nav-logo {
    height: 32px;
  }

  /* Hero Section - Mobile Large */
  .hero {
    padding: calc(70px + var(--space-8)) 0 var(--space-8);
  }

  .hero-container {
    gap: var(--space-6);
    display: flex;
    flex-direction: column;
  }

  /* Mobile hero reorder - image first, then content */
  .hero-image {
    order: 1;
    max-width: 280px;
    margin: 0 auto var(--space-6);
  }
  
  .hero-content {
    order: 2;
  }

  .hero-title {
    font-size: var(--text-4xl);
    line-height: 1.1;
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }

  .btn {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
  }

  .hero-badges {
    gap: var(--space-4);
  }

  .stats-badge {
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
  }

  .stats-icon {
    width: 40px;
    height: 40px;
  }

  .stats-icon svg {
    width: 20px;
    height: 20px;
  }

  .stats-number {
    font-size: var(--text-xl);
  }

  .stats-label {
    font-size: var(--text-xs);
  }

  /* Sections */
  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }

  /* Value Proposition */
  .value-card {
    padding: var(--space-5);
  }

  .value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
  }

  .value-title {
    font-size: var(--text-xl);
  }

  /* Product Showcase */
  .product-card {
    padding: var(--space-6);
  }

  .product-name {
    font-size: var(--text-2xl);
  }

  .product-capacity {
    font-size: var(--text-base);
  }

  /* Technology Comparison */
  .comparison-table {
    margin: 0 -var(--space-3);
  }

  .comparison-header,
  .comparison-row {
    padding: var(--space-4);
  }

  .comparison-value {
    gap: var(--space-1);
  }

  .progress-bar {
    width: 60px;
    height: 4px;
  }

  .space-indicator {
    width: 30px;
    height: 15px;
  }

  .space-indicator.small {
    width: 15px;
  }

  .space-indicator.large {
    width: 30px;
  }

  /* Use Cases */
  .tab-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  .tab-icon {
    width: 16px;
    height: 16px;
  }

  .use-case-grid {
    padding: var(--space-6);
  }

  .use-case-info h3 {
    font-size: var(--text-xl);
  }

  /* Green Commitment Extra Small Mobile */
  .green-hero-features {
    gap: var(--space-3);
  }

  .green-feature {
    padding: var(--space-3);
  }

  .metric-number {
    font-size: var(--text-3xl);
  }

  .cert-badge {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }

  /* Customer Trust */
  .testimonial-card {
    padding: var(--space-8);
  }

  .testimonial-quote {
    font-size: var(--text-base);
  }

  .testimonial-quote::before {
    font-size: var(--text-4xl);
    top: -15px;
    left: -5px;
  }

  .trust-stats {
    gap: var(--space-4);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }

  /* Contact CTA */
  .cta-title {
    font-size: var(--text-2xl);
  }

  .cta-subtitle {
    font-size: var(--text-base);
  }

  .contact-form {
    padding: var(--space-5);
  }

  .form-group {
    margin-bottom: var(--space-5);
  }

  /* Footer */
  .footer {
    padding: var(--space-12) 0 var(--space-5);
  }

  .footer-logo {
    height: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-section {
    text-align: left;
  }
}

/* Mobile Small (320px - 479px) */
@media screen and (max-width: 479px) {
  :root {
    --container-padding: var(--space-2);
    --text-6xl: 1.75rem;   /* 28px */
    --text-5xl: 1.5rem;    /* 24px */
    --text-4xl: 1.25rem;   /* 20px */
    --text-3xl: 1.125rem;  /* 18px */
  }

  /* Hero - Mobile Small */
  .hero {
    padding: calc(60px + var(--space-6)) 0 var(--space-6);
  }

  .hero-container {
    gap: var(--space-4);
  }

  .hero-image {
    max-width: 240px;
    margin-bottom: var(--space-4);
  }

  .hero-title {
    font-size: var(--text-3xl);
    line-height: 1.1;
    margin-bottom: var(--space-3);
  }

  .hero-subtitle {
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
    line-height: 1.4;
  }

  .hero-badges {
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }

  .stats-badge {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
    justify-content: center;
    min-width: 0;
  }

  .stats-icon {
    width: 36px;
    height: 36px;
  }

  .stats-icon svg {
    width: 18px;
    height: 18px;
  }

  .stats-number {
    font-size: var(--text-lg);
  }

  .stats-label {
    font-size: var(--text-xs);
  }

  /* Sections */
  .section-title {
    font-size: var(--text-2xl);
  }

  /* Value Cards */
  .value-icon {
    width: 50px;
    height: 50px;
  }

  .icon {
    width: 24px;
    height: 24px;
  }

  /* Comparison Table */
  .comparison-table {
    margin: 0 -var(--space-2);
  }

  .comparison-header,
  .comparison-row {
    padding: var(--space-3);
  }

  .comparison-logo {
    width: 20px;
    height: 20px;
  }

  /* Use Case Tabs */
  .tab-btn {
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2);
    font-size: var(--text-xs);
  }

  .tab-icon {
    width: 20px;
    height: 20px;
  }

  /* Forms */
  .form-group input,
  .form-group select {
    padding: var(--space-3);
  }

  .form-group label {
    left: var(--space-3);
    top: var(--space-3);
    font-size: var(--text-sm);
  }

  /* Trust Stats */
  .trust-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Contact Email */
  .contact-email {
    font-size: var(--text-base);
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: calc(60px + var(--space-8)) 0 var(--space-8);
  }

  .section {
    padding: var(--space-8) 0;
  }

  .nav-menu {
    flex-direction: row;
    height: auto;
    padding: var(--space-4) 0;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media screen and (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Mobile tab content fixes */
  .tab-content {
    min-height: 300px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    min-height: auto;
    text-align: center;
  }

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

  .product-actions .btn {
    width: 100%;
  }

  /* Larger touch targets */
  .btn,
  .nav-link,
  .tab-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better focus indicators */
  *:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }

  /* Improved form labels */
  .form-group label {
    font-weight: 600;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .header,
  .nav-toggle,
  .carousel-btn,
  .contact-form,
  .footer {
    display: none;
  }

  .hero-container,
  .value-grid,
  .product-card,
  .use-case-grid,
  .trust-content,
  .cta-content {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .section {
    padding: var(--space-4) 0;
    break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  img {
    max-width: 100% !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ===== PRODUCT PAGE RESPONSIVE FIXES ===== */
@media (max-width: 1023px) {
  /* Product Grid Layout - Tablet */
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .product-gallery {
    position: static;
    order: 2;
  }

  .product-info {
    order: 1;
  }

  /* Capacity Options - Tablet */
  .capacity-options {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Feature Grid - Tablet */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Thumbnail Gallery - Tablet */
  .thumbnail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  /* Specs Tabs - Tablet */
  .specs-tabs {
    flex-wrap: wrap;
  }

  .spec-tab-btn {
    flex: 1 1 calc(50% - var(--space-2));
    min-width: 150px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }

  /* Comparison Grid - Tablet */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .comparison-divider {
    margin: var(--space-4) auto;
    justify-self: center;
  }

  /* Installation Content - Tablet */
  .installation-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .installation-visual {
    order: 1;
  }

  .installation-text {
    order: 2;
  }

  /* Related Grid - Tablet */
  .related-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Learn More CTA - Tablet */
  .cta-highlight {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-6);
  }
}

@media (max-width: 767px) {
  /* Product Header Mobile */
  .product-header {
    padding: var(--space-6) 0 var(--space-4);
  }

  .product-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
  }

  .quick-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .spec-item {
    padding: var(--space-3);
  }

  /* Product Main Mobile */
  .product-main {
    padding: var(--space-8) 0;
  }

  .product-grid {
    gap: var(--space-8);
  }

  /* Gallery Mobile */
  .main-image-container {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }

  /* Capacity Options Mobile */
  .capacity-options {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .capacity-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  /* Feature Grid Mobile */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-item {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-text h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
  }

  .feature-text p {
    font-size: var(--text-sm);
  }

  /* Product Actions Mobile */
  .product-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .product-actions .btn {
    width: 100%;
  }

  .showcase-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .showcase-actions .btn {
    width: 100%;
  }

  /* Specs Tabs Mobile */
  .specs-tabs {
    flex-direction: column;
    gap: 0;
  }

  .spec-tab-btn {
    flex: none;
    width: 100%;
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .spec-tab-btn:first-child {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }

  .spec-tab-btn:last-child {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    border-bottom: none;
  }

  .spec-tab-btn.active {
    border-bottom: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
  }

  /* Specs Content Mobile */
  .spec-panel {
    padding: var(--space-6);
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .overview-card {
    padding: var(--space-6);
  }

  .overview-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
  }

  .overview-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Technical Specs Table Mobile */
  .spec-table-container {
    overflow-x: auto;
    margin: 0 -var(--space-6);
    padding: 0 var(--space-6);
  }

  .spec-table {
    min-width: 300px;
    font-size: var(--text-sm);
  }

  .spec-table td {
    padding: var(--space-3);
  }

  /* Safety Features Mobile */
  .safety-features {
    gap: var(--space-6);
  }

  .safety-category h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
  }

  .safety-list li {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
  }

  /* Compatibility Mobile */
  .inverter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .inverter-brand {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }

  /* Downloads Mobile */
  .downloads-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .download-item {
    padding: var(--space-4);
  }

  .download-info h4 {
    font-size: var(--text-lg);
  }

  .download-info p {
    font-size: var(--text-sm);
  }

  .app-links {
    display: flex;
    gap: var(--space-2);
  }

  /* Comparison Section Mobile */
  .comparison-section {
    padding: var(--space-12) 0;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .comparison-column {
    width: 100%;
  }

  .comparison-header {
    padding: var(--space-4);
  }

  .comparison-header h3 {
    font-size: var(--text-lg);
  }

  .comparison-logo {
    width: 30px;
    height: 30px;
  }

  .comparison-features {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .comparison-feature {
    padding: var(--space-3);
  }

  .feature-value {
    font-size: var(--text-lg);
  }

  .feature-label {
    font-size: var(--text-xs);
  }

  .comparison-divider {
    margin: var(--space-2) auto;
    width: 50px;
    height: 50px;
    font-size: var(--text-base);
  }

  /* Installation Section Mobile */
  .installation-section {
    padding: var(--space-12) 0;
  }

  .installation-text h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
  }

  .installation-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .installation-timeline {
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .timeline-step {
    gap: var(--space-3);
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: var(--text-base);
  }

  .step-content h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
  }

  .step-content p {
    font-size: var(--text-sm);
  }

  .support-contact {
    gap: var(--space-2);
  }

  .contact-item {
    font-size: var(--text-sm);
  }

  .warranty-badge {
    bottom: var(--space-3);
    right: var(--space-3);
    padding: var(--space-3);
  }

  .warranty-text strong {
    font-size: var(--text-base);
  }

  /* Related Products Mobile */
  .related-products {
    padding: var(--space-12) 0;
  }

  .related-grid {
    margin-top: var(--space-8);
  }

  .related-image {
    height: 200px;
  }

  .related-info {
    padding: var(--space-5);
  }

  .related-info h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
  }

  .related-info p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
  }

  .related-specs {
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
  }

  .related-specs span {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
  }
}

@media (max-width: 479px) {
  /* Product Header - Extra Small Mobile */
  .product-title {
    font-size: var(--text-2xl);
  }

  .quick-specs {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .spec-item {
    padding: var(--space-2);
  }

  /* Capacity Options - Extra Small Mobile */
  .capacity-options {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .capacity-btn {
    padding: var(--space-2);
    font-size: var(--text-xs);
  }

  /* Thumbnail Gallery - Extra Small Mobile */
  .thumbnail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-1);
  }

  /* Feature Icons - Extra Small Mobile */
  .feature-icon {
    width: 32px;
    height: 32px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }

  /* Overview Cards - Extra Small Mobile */
  .overview-icon {
    width: 50px;
    height: 50px;
  }

  .overview-icon svg {
    width: 24px;
    height: 24px;
  }

  .overview-card {
    padding: var(--space-4);
  }

  .overview-card h4 {
    font-size: var(--text-lg);
  }

  /* Specs Content - Extra Small Mobile */
  .spec-panel {
    padding: var(--space-4);
  }

  /* Installation Timeline - Extra Small Mobile */
  .step-number {
    width: 32px;
    height: 32px;
    font-size: var(--text-sm);
  }

  .step-content h4 {
    font-size: var(--text-base);
  }

  /* Comparison Features - Extra Small Mobile */
  .feature-value {
    font-size: var(--text-base);
  }

  /* Warranty Badge - Extra Small Mobile */
  .warranty-badge {
    padding: var(--space-2);
  }

  .warranty-icon {
    font-size: var(--text-lg);
  }

  .warranty-text strong {
    font-size: var(--text-sm);
  }

  .warranty-text span {
    font-size: var(--text-xs);
  }
}

/* ===== LEARN MORE SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
  .info-cards {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .cta-highlight {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
  }
  
  .learn-more-header h2 {
    font-size: var(--text-3xl);
  }
  
  .learn-more-header p {
    font-size: var(--text-lg);
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
  }
  
  .cta-icon {
    width: 48px;
    height: 48px;
  }
  
  .cta-actions {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-3);
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ===== MOBILE OVERFLOW FIXES ===== */
@media (max-width: 767px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Container fixes */
  .container {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 var(--container-padding);
  }
  
  /* Section spacing improvements */
  .section {
    padding: var(--space-8) 0;
    overflow-x: hidden;
  }
  
  /* Card improvements */
  .value-card, .product-card, .testimonial-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Button improvements */
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Stats badges mobile fix */
  .hero-badges {
    width: 100%;
    max-width: 100%;
  }
  
  .stats-badge {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
  
  /* Technology grid improvements */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  /* Metrics grid fix */
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  /* Form improvements */
  .contact-form {
    max-width: 100%;
    width: 100%;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Navigation improvements */
  .nav {
    padding: var(--space-3) var(--space-3);
  }
  
  .nav-container {
    max-width: 100%;
    overflow: hidden;
  }
}

/* ===== DARK MODE SUPPORT ===== */
/* Force Light Mode Only - Dark mode disabled */
html {
  color-scheme: light only;
}

:root {
  color-scheme: light;
}