body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #164DFF;
  color: #000;
}

#page {
  width: 980px;
  margin: 0 auto;
  background: #fff;
}

#header {
  background: #000;
}

#header img {
  width: 100%;
  display: block;
}

#main {
  display: flex;
}

#sidebar {
  width: 220px;
  background: #d3d3d3;
}

#content {
  flex: 1;
  padding: 20px;
}

#content h1 {
  font-size: 26px;
  margin: 0 0 26px 0;
}

#content h2 {
  margin: 34px 0 18px 0;
}

#content h3 {
  margin: 34px 0 18px 0;
}

#content p {
  margin: 0 0 24px 0;
  line-height: 1.2;
}

#footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.product-table th,
.product-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ccc;
}

.product-table th {
  text-align: left;
  background: #eee;
}

.product-text {
  flex: 1;
}

.product-image {
  float: right;
  margin: 0 0 20px 30px;
}

.product-image img {
  max-width: 380px;
  height: auto;
  border: 1px solid #ccc;
}

.price {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 0 26px 0;
}

.hero {
  margin-bottom: 20px;
}

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

.mobile-back {
  display: none;
}

.brand-section {
  border-left: 4px solid;
  padding-left: 14px;
  margin: 28px 0;
}

.brand-section h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  font-weight: 600;
}

.brand-section ul {
  margin: 0;
  padding-left: 18px;
}

.brand-section li {
  margin: 4px 0;
}

/* Color treatments */
.brand-supported {
  border-color: #2f7d32; /* aviation green */
}

.brand-supported h3 {
  color: #2f7d32;
}

.brand-limited {
  border-color: #b58900; /* amber / caution */
}

.brand-limited h3 {
  color: #b58900;
}

.brand-unavailable {
  border-color: #b00020; /* muted red */
}

.brand-unavailable h3 {
  color: #b00020;
}

.brand-section {
  margin-bottom: 22px;
}

.next-steps {
  margin-top: 10px;
}

.next-steps li {
  margin-bottom: 10px;
}

.shipping-address {
  margin-top: 8px;
  margin-left: 22px;   /* creates the visual indent */
  padding-left: 12px;
  border-left: 3px solid #ccc; /* optional, subtle structure */
  line-height: 1.4;
  font-size: 0.95em;
}


/* Small explanatory text */
.note {
  color: #555;
  font-size: 0.9em;
}


/* ============================================
   MOBILE STYLES
   ============================================ */
@media (max-width: 768px) {
  
  body {
    overflow-x: hidden;
  }
  
  #page {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  #main {
    display: block;
  }
  
  #header {
    overflow-x: hidden;
  }
  
  #header img {
    max-width: 100%;
    height: auto;
  }

  /* ============================================
     HOME PAGE (no .category-page class)
     Show hero/content first, then menu
     ============================================ */
  body:not(.category-page) #main {
    display: flex;
    flex-direction: column;
  }

  body:not(.category-page) #content {
    display: block;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    order: 1;
  }

  body:not(.category-page) #sidebar {
    width: 100%;
    min-height: 0;
    order: 2;
  }

  /* ============================================
     CATEGORY PAGES (.category-page class)
     Hide menu, show content
     ============================================ */
  body.category-page #sidebar {
    display: none;
  }

  body.category-page #content {
    display: block;
    width: 100%;
    padding: 16px;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  body.category-page #content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Mobile back button */
  body.category-page .mobile-back {
    display: block;
    margin-bottom: 16px;
    font-size: 16px;
  }

  body.category-page .mobile-back a {
    display: inline-block;
    padding: 10px 14px;
    background: #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
  }

  /* Mobile table styles */
  body.category-page table {
    width: 100%;
    font-size: 16px;
    table-layout: fixed;
  }

  body.category-page th,
  body.category-page td {
    padding: 12px 8px;
    word-wrap: break-word;
  }
  
  body.category-page td:nth-child(1) {
    width: 30%;
  }
  
  body.category-page td:nth-child(2) {
    width: 30%;
  }
  
  body.category-page td:nth-child(3) {
    width: 40%;
  }

}
