body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #eef2f4;
  color: #222;
}

/* Main application — mobile/app style */

main,
.header {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  box-sizing: border-box;
}

.header {
  box-sizing: border-box;
}

.header {
  text-align: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #e1e5e8;
}

.logo {
  display: block;
  width: 300px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto;
}

.tagline {
  margin: 6px 0 0;
  color: #34434a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  padding: 32px 24px 26px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fb 100%);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
  color: #003b5c;
}

.hero p {
  margin: 0 auto;
  max-width: 650px;
  color: #65727a;
  font-size: 16px;
  line-height: 1.5;
}

/* Search */

.search-section {
  padding: 0 24px 28px;
  background: #f5f9fb;
}

.search-box {
  display: flex;
  max-width: 850px;
  margin: 0 auto;
  gap: 10px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid #cbd4d9;
  border-radius: 10px;
  background: white;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.search-box input:focus {
  border-color: #003b5c;
  box-shadow: 0 0 0 3px rgba(0, 59, 92, .10);
}

.search-box button {
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #003b5c;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.search-box button:hover {
  background: #00557e;
}
/* Categories */

.categories {
  padding: 26px 24px 30px;
  background: #f7f8f9;
  border-top: 1px solid #e2e6e8;
  border-bottom: 1px solid #dce1e4;
}

.categories h2,
.content h2 {
  margin: 0 0 16px;
  font-size: 21px;
  color: #003b5c;
}

.category-intro {
  margin: -8px auto 20px;
  color: #69777e;
  font-size: 14px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  min-height: 0;
  padding: 0 0 15px;
  border: 1px solid #d2dadd;
  border-radius: 12px;
  background: white;
  color: #263238;
  cursor: pointer;
  transition: .15s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,.06);
}

.category-button:hover {
  border-color: #003b5c;
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,.10);
}

.category-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin: 0 0 12px;
}

.category-button .category-name {
  display: block;
  padding: 0 10px;
  color: #003b5c;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.category-button .category-description {
  display: block;
  margin-top: 6px;
  padding: 0 10px;
  color: #748188;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 800px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-image {
    height: 120px;
  }
}

@media (max-width: 600px) {
  .categories {
    padding: 20px 14px 24px;
  }

  .category-grid {
    gap: 10px;
  }

  .category-image {
    height: 105px;
  }

  .category-button .category-name {
    font-size: 14px;
  }

  .category-button .category-description {
    font-size: 10px;
  }
}

/* Results */

.content {
  padding: 32px 24px 50px;
  background: white;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 5px;
}

.status {
  margin: 0;
  color: #77838a;
  font-size: 13px;
}

/* Company result grid */

#results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Company cards */

.company-card {
  position: relative;
  padding: 20px;
  min-height: 125px;
  box-sizing: border-box;
  border: 1px solid #d9e0e4;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
  cursor: pointer;
  transition: .18s ease;
}

.company-card:hover {
  border-color: #8ca8b7;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .10);
  transform: translateY(-2px);
}

.company-name {
  padding-right: 10px;
  margin-bottom: 9px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 750;
  color: #17313e;
}

.company-category {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #edf4f7;
  color: #003b5c;
  font-size: 12px;
  font-weight: 700;
}

.company-address {
  color: #69777e;
  font-size: 13px;
  line-height: 1.45;
}

.verified {
  display: inline-block;
  vertical-align: middle;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 20px;
  background: #e5f3e8;
  color: #28633a;
  font-size: 10px;
  font-weight: 750;
}

/* Company details */

.detail {
  padding-bottom: 30px;
}

.back-button {
  margin-bottom: 18px;
  border: 0;
  background: none;
  padding: 0;
  color: #003b5c;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.detail h1 {
  margin: 0 0 18px;
  font-size: 30px;
  color: #003b5c;
}

.detail-section {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #e0e5e8;
  border-radius: 10px;
  background: #fafbfc;
}

.detail-section h2 {
  font-size: 17px;
  margin: 0 0 9px;
  color: #003b5c;
}

.detail-section p {
  margin: 5px 0;
  line-height: 1.6;
}

.detail-section a {
  color: #1558a6;
  word-break: break-word;
}

/* Company business logo */

.company-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 240px;
  height: 140px;
  margin: 10px auto 22px;
  background: #003b5c;
  border-radius: 10px;
  overflow: hidden;
}

.company-logo img {
  display: block;
  width: 215px;
  height: 125px;
  object-fit: contain;
}

/* Company cover image */

.company-cover {
  width: 100%;
  max-width: 1000px;
  height: 260px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 12px;
}

.company-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products */

.products-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 15px;
}

.product-card {
  padding: 17px;
  border: 1px solid #dce2e5;
  border-radius: 10px;
  background: white;
}

.product-card h3 {
  margin: 0 0 7px;
  color: #17313e;
}

.product-category {
  color: #003b5c;
  font-size: 13px;
  font-weight: 650;
}

.product-card p {
  color: #5f6c73;
  line-height: 1.5;
}

.product-stock,
.product-buy {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 650;
}

/* Empty state */

.empty {
  text-align: center;
  padding: 40px 20px;
  color: #777;
}

/* Sponsor area */

.sponsor-banner {
  margin: 0 24px 35px;
  min-height: 120px;
  border: 1px solid #d6dee2;
  border-radius: 12px;
  background: #f5f7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #718087;
}

.sponsor-banner strong {
  display: block;
  margin-bottom: 5px;
  color: #003b5c;
  font-size: 17px;
}

/* Desktop */

@media (min-width: 900px) {
  body {
    padding: 20px 0;
  }

  main,
  .header {
    box-shadow: 0 3px 25px rgba(0, 0, 0, .10);
  }

  .header {
    border-radius: 14px 14px 0 0;
  }

  main {
    min-height: calc(100vh - 40px);
    border-radius: 0 0 14px 14px;
  }
}

/* Tablet */

@media (max-width: 899px) {
  #results {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile */

@media (max-width: 600px) {
  body {
    background: white;
  }

  .header {
    padding: 8px 14px 7px;
  }

  .logo {
    width: 190px;
    height: 55px;
  }

  .hero {
    padding: 24px 16px 20px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero p {
    font-size: 14px;
  }

  .search-section {
    padding: 0 14px 22px;
  }

  .search-box {
    gap: 7px;
  }

  .search-box input {
    padding: 13px 12px;
  }

  .search-box button {
    padding: 0 16px;
  }

  .categories {
    padding: 20px 14px 23px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .category-button {
    min-height: 48px;
    font-size: 13px;
  }

  .content {
    padding: 24px 14px 35px;
  }

  .company-card {
    padding: 17px;
  }

  .company-name {
    font-size: 17px;
  }

  .company-cover {
    height: 150px;
    border-radius: 8px;
  }

  .sponsor-banner {
    margin: 0 14px 25px;
  }
}
v
/* SDXL category photography */

.category-button {
  overflow: hidden;
  padding: 0 0 14px;
}

.category-image {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  margin-bottom: 12px;
}

.category-button .category-name,
.category-button .category-description {
  padding-left: 10px;
  padding-right: 10px;
}

.category-button .category-name {
  font-size: 16px;
}

.category-button .category-description {
  margin-top: 6px;
}

@media (max-width: 600px) {
  .category-image {
    height: 105px;
  }

  .category-button {
    min-height: 0;
  }
}

/* Featured company logo area */

.company-logo {
  width: 100%;
  height: 72px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.company-logo img {
  max-width: 170px;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.company-logo-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: #f1f5f7;
  border: 1px solid #dce4e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78909c;
  font-size: 12px;
  font-weight: 700;
}

/* Featured company cards */

.company-logo {
  width: 100%;
  height: 72px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.company-logo img {
  max-width: 180px;
  max-height: 65px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.company-logo-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: #f1f5f7;
  border: 1px solid #dce4e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78909c;
  font-size: 11px;
  font-weight: 700;
}

/* Featured logo panel */

.company-logo {
  width: 100%;
  height: 82px;
  margin-bottom: 15px;
  padding: 10px 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #263f4c;
  border-radius: 9px;
  overflow: hidden;
}

.company-logo img {
  max-width: 190px;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.company-logo-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dce7ec;
  font-size: 11px;
  font-weight: 700;
}

/* WA Exporters branding */
.wa-branding {
  text-align: center;
  margin: 32px auto 24px;
  padding: 0 20px;
}

.wa-logo {
  display: block;
  width: min(420px, 85%);
  height: auto;
  margin: 0 auto;
}

.wa-subheading {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

