:root {
  --brand-primary: #0b4fa8;
  --brand-primary-dark: #083a7a;
  --brand-light: #eaf3ff;
  --brand-soft-bg: #eef7ff;
  --text-dark: #11243d;
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(9, 64, 142, 0.14);
}

.bg-primary {
  background: var(--brand-primary) !important;
}

.bg-success {
  background: #0f6bd8 !important;
}

/* Top navigation placed in the thin header strip */
.top-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.nav-top-link {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.15rem 0.6rem;
}
.nav-top-link:hover {
  opacity: 0.95;
  text-decoration: underline;
}

/* WhatsApp icon-only (green icon, no green background) */
.whatsapp-only ion-icon,
.only-whatsapp ion-icon {
  color: #25d366 !important;
  font-size: 1.4rem;
}
.only-whatsapp {
  background: transparent !important;
  border: 2px solid rgba(37, 211, 102, 0.08);
}

.t-primary {
  color: var(--brand-primary) !important;
}

.bg-light-primary {
  background: #d9eaff !important;
}

.bg-element,
body {
  background: var(--brand-soft-bg) !important;
  color: var(--text-dark);
}

/* Global header: white wrapper with centered blue nav box */
#site-header.global-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 900;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(9, 64, 142, 0.08);
}

.global-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo {
  max-height: 70px;
  width: auto;
  display: block;
}

.header-nav-box {
  flex: 1 1 auto;
  max-width: 640px;
  margin: 0 auto;
  background: #003366;
  border-radius: 50px;
  padding: 0.95rem 1.4rem;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.header-nav-link:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.header-phone {
  color: #003366;
  font-weight: 800;
  white-space: nowrap;
  font-size: 1rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.header-phone ion-icon {
  font-size: 1.1rem;
  color: #003366 !important;
}

body {
  padding-top: 0;
}

.site-nav,
.site-nav .nav-inner,
.site-nav .nav-actions,
.site-nav .nav-inner ion-icon {
  color: #ffffff !important;
}

.menu-btn {
  display: none;
}

.site-logo {
  max-height: 50px;
  width: auto;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.right-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-top-link,
.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

/* Mobile: show menu button and hide inline nav */
@media (max-width: 900px) {
  .global-header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem 0.75rem;
    padding: 0.7rem 0.8rem;
  }

  .header-logo-link {
    order: 1;
    align-self: center;
  }

  .header-logo {
    max-height: 56px;
  }

  .header-phone {
    order: 2;
    align-self: center;
    margin-left: auto;
    font-size: 0.88rem;
    padding: 0;
    white-space: nowrap;
  }

  .header-nav-box {
    order: 3;
    width: 100%;
    max-width: none;
    padding: 0.65rem 0.8rem;
    border-radius: 32px;
  }

  .header-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
  }

  .header-nav-link {
    font-size: 0.88rem;
  }

  .header-phone ion-icon {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .global-header-inner {
    padding: 0.6rem 0.7rem;
  }

  .header-nav-box {
    padding: 0.55rem 0.65rem;
  }

  .header-nav {
    gap: 0.45rem 0.85rem;
  }

  .header-nav-link {
    font-size: 0.82rem;
  }

  .header-phone {
    font-size: 0.82rem;
  }
}

.intro-section {
  background: #ffffff;
  padding: 3.2rem 4%;
}

.intro-inner {
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
}

.intro-title {
  color: var(--brand-primary);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin: 0 0 0.4rem;
  font-weight: 900;
}

.intro-sub {
  color: #20384f;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.intro-desc {
  color: #355377;
  margin-bottom: 0.8rem;
}

.image-section {
  background: transparent;
  padding: 0 4% 2.4rem;
}
.image-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.fullwidth-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6rem;
}

.section-wrap {
  padding: 2rem 4% 3rem;
}

.catalogue-section {
  max-width: 1280px;
  margin: 0 auto;
}

.catalogue-section .catalog-grid {
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-align: center;
  color: #04509b;
  font-weight: 800;
  margin-bottom: 1.6rem;
}

.catalog-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.catalog-card,
.product-card {
  background: var(--card-bg);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card-link {
  color: inherit;
  text-decoration: none;
}

.catalog-card img,
.product-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f7fbff;
  border-radius: 0.9rem;
}

.catalog-card h3,
.product-card h3 {
  margin: 0.85rem 0 0;
  text-align: center;
  color: #04509b;
  font-weight: 800;
}

.download-btn,
.primary-btn {
  margin-top: 0.9rem;
  border: none;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 1.2rem;
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.7rem;
  max-width: 860px;
  box-shadow: var(--shadow);
}

.tab-btn {
  border: 0;
  background: transparent;
  color: #0b4fa8;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 0.8rem;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--brand-primary);
  color: #fff;
}

.product-card {
  cursor: pointer;
}

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

.product-detail-page {
  padding: 9rem 4% 3rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.95fr);
  gap: 2rem;
  align-items: center;
  background: linear-gradient(180deg, #f6fbff 0%, #eaf3ff 100%);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
}

.product-hero-card {
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 1rem;
}

.product-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 1rem;
}

.product-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.eyebrow {
  color: #2a6db3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.95rem;
}

.product-hero-copy h1 {
  color: #04509b;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.03;
}

.product-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #20384f;
}

.section-narrow {
  max-width: 1200px;
  margin: 0 auto;
}

.info-section {
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.info-section h2 {
  color: #04509b;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.8rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.meta-chip {
  background: #f5f9ff;
  border: 1px solid #d8e6f7;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-chip strong {
  color: #04509b;
}

.meta-chip span {
  color: #20384f;
}

.info-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.3rem;
  color: #20384f;
  font-size: 1.05rem;
}

.brochure-section {
  overflow: hidden;
}

.brochure-image {
  width: 100%;
  display: block;
  border-radius: 1rem;
  background: #f7fbff;
  object-fit: contain;
}

.product-detail {
  margin-top: 2rem;
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: flex-start;
}

/* Composition table styling to prevent overflow on small screens */
.composition-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.composition-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.composition-table th,
.composition-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef6fb;
}

.composition-table th {
  text-align: left;
  font-weight: 800;
  color: #163444;
  font-size: 1.05rem;
  white-space: normal;
  word-break: break-word;
}

.composition-table td {
  text-align: right;
  color: #20384f;
  white-space: nowrap;
}

/* Prefer proportional columns on wider screens */
.composition-table th {
  width: 70%;
}
.composition-table td {
  width: 30%;
}

@media (max-width: 520px) {
  .composition-table th {
    font-size: 0.98rem;
  }

  .composition-table td {
    font-size: 0.95rem;
  }

  /* Render each row as a full-width gray box with name left, qty right */
  .composition-table {
    table-layout: auto;
    width: 100%;
  }

  .composition-table tbody {
    display: block;
  }

  .composition-table tbody tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #f1f5f8; /* light gray box */
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }

  .composition-table th,
  .composition-table td {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
  }

  .composition-table th {
    flex: 1 1 auto;
    font-weight: 800;
    color: #163444;
    white-space: nowrap; /* prevent wrapping */
    word-break: normal; /* avoid breaking words mid-word */
    overflow: visible;
    text-overflow: clip;
    margin: 0;
    background: transparent !important; /* ensure no inner pill */
    min-width: 0; /* allow flex children to shrink properly */
    padding-left: 0.6rem;
  }

  .composition-table td {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    color: #20384f;
    margin: 0 0 0 0.75rem;
    padding-right: 0.6rem;
  }
}

/* Fallback layout when tables are transformed to divs */
.composition-list {
  display: block;
}

.composition-list .comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #f1f5f8;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.composition-list .comp-name {
  font-weight: 800;
  color: #163444;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: clip;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c7d4e3 transparent;
  padding-bottom: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.composition-list .comp-qty {
  color: #20384f;
  flex: 0 0 auto;
  margin-left: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-cover {
  width: 100%;
  border-radius: 1rem;
  background: #f6faff;
  object-fit: contain;
  max-height: 560px;
}

.detail-info-image {
  width: 100%;
  border-radius: 1rem;
  object-fit: contain;
  background: #f6faff;
}

.detail-meta {
  margin-top: 0.8rem;
  color: #355377;
}

.hide {
  display: none !important;
}

@media (max-width: 900px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    z-index: 2000;
  }

  #site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links .navabar-links {
    width: 100%;
  }

  .hero {
    padding-top: 5.2rem;
  }

  .hero-grid,
  .product-detail-grid,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-detail-page {
    padding-top: 8.6rem;
  }

  .catalog-card img,
  .product-card img {
    height: 220px;
  }
}

/* Hide brochure image sections across all product pages */
.brochure-section {
  display: none !important;
}
