* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Forma DJR Micro";
  src: url(fonts/forma-djr-micro.otf);
  src: url(fonts/forma-djr-micro.otf?#iefix) format("embedded-opentype"),
    url("fonts/forma-djr-micro.woff") format("woff"),
    url("fonts/forma-djr-display.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: #f4f4f9;
  font-family: "Forma DJR Micro", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

h1 {
  margin: 0;
  font-size: 2.2rem;
}

a {
  text-decoration: none;
  color: #024ad8;
  transition: color 0.2s ease-in-out;
}

a:hover {
  text-decoration: none;
}

p {
  font-size: 1rem;
}

strong {
  font-weight: 600;
}

sup {
  vertical-align: super;
  font-size: smaller;
  color: #024ad8;
}

/* =================================================================
   PRODUCT PAGE STYLES
   ================================================================= */

#ATF {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 15px;
}

.content-card {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.country-selector {
  text-align: right;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0241c0 0%, #1a5ef5 100%);
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(2, 74, 216, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.locale-dropdown {
  position: relative;
  display: inline-block;
}

.locale-btn {
  background-color: transparent;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background-color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.locale-btn:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.locale-btn .bi-globe,
.locale-btn .bi-chevron-down {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.locale-dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  z-index: 100;
  border-radius: 8px;
  padding: 6px 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(0,0,0,0.08);
}

.locale-dropdown-content a {
  color: #222;
  padding: 9px 18px;
  text-decoration: none;
  display: block;
  font-size: 0.875rem;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
  text-align: left;
}

.locale-dropdown-content a:hover {
  background-color: #f0f4ff;
  color: #024ad8;
}

.locale-dropdown-content a.selected {
  background-color: transparent;
  color: #024ad8;
  font-weight: 700;
}

.locale-dropdown-content a.disabled {
  color: #bbb;
  pointer-events: none;
}

.locale-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 20px;
  color: #999;
  font-size: 0.82rem;
  text-align: center;
}

.locale-empty i {
  font-size: 1.4rem;
  color: #ccc;
}

.locale-loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 16px;
}

.locale-loading-overlay .locale-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #024ad8;
  border-radius: 50%;
  animation: locale-spin 0.75s linear infinite;
}

.locale-loading-overlay .locale-loading-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

@keyframes locale-spin {
  to { transform: rotate(360deg); }
}


.product-header {
  text-align: center;
}

.product-description {
  text-align: justify;
}

.info-headline {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.info-body {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.feature-block .info-headline {
  font-size: 1.2rem;
}

.feature-block .info-body {
  font-size: 0.9rem;
}

.bordered-section {
  padding: 25px;
  text-align: center;
  position: relative;
}

.gallery-disclaimer {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.7rem;
  color: #888;
  text-align: right;
}

.product-gallery-main {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  min-height: 400px;
}

.product-gallery-main img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.product-gallery-thumbs .thumb-item {
  width: 90px;
  height: 65px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

.product-gallery-thumbs .thumb-item.active,
.product-gallery-thumbs .thumb-item:hover {
  opacity: 1;
  border-color: #024ad8;
}

.thumb-item-container {
  position: relative;
  display: inline-block;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-overlay i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.mm-block {
  text-align: center;
}

.mm-image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.mm-text {
  text-align: center;
}

.section-divider {
  border: none;
  height: 1px;
  background-color: #024ad8;
  width: 100%;
  margin: 0.75rem auto;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-block {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(50% - 20px);
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.feature-block:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.feature-image {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-image img {
  max-width: 100%;
  max-height: 90px;
}

.companions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.companion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 calc(50% - 20px);
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.companion-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.companion-item img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 15px;
}

.companion-details p {
  font-size: 1rem;
  margin: 2px 0;
}

.expand-button {
  color: #333;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0;
  cursor: pointer;
  background-color: #ffffff;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.expand-button:hover {
  background-color: #f8f9fa;
  border-color: #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.expand-button::after {
  content: '\203A';
  display: inline-block;
  margin-left: 10px;
  font-size: 1.4rem;
  line-height: 1;
  vertical-align: middle;
  color: #024ad8;
  transition: transform 0.25s ease-in-out;
  transform: rotate(90deg);
}

.expand-button.open::after {
  transform: rotate(270deg);
}

.tech-specs-table,
.footnotes-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-specs-table td,
.footnotes-table td {
  padding: 10px;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.tech-specs-table .group-header {
  background-color: #f5f7ff;
  font-weight: 600;
  border-left: 3px solid #024ad8;
}

.tech-specs-table .spec-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.tech-specs-table .spec-value {
  font-size: 0.95rem;
}

.footer-image-container {
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.footer-image-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =================================================================
   RESPONSIVE STYLES
   ================================================================= */

@media (max-width: 768px) {
  .features-grid,
  .companions-grid {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  #ATF {
    margin-top: 10px;
    padding: 0 10px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .content-card {
    padding: 15px;
    margin-bottom: 20px;
  }

  .country-selector {
    padding: 3px 10px;
  }

  .product-description {
    text-align: left;
    padding: 15px;
  }

  .gallery-disclaimer {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 10px;
    text-align: center;
  }

  .tech-specs-table tr,
  .footnotes-table tr {
    display: block;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
  }

  .tech-specs-table td,
  .footnotes-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 3px 15px;
    word-break: break-word;
  }

  .tech-specs-table .spec-label {
    font-weight: bold;
    color: #555;
    font-size: 0.85rem !important;
    white-space: normal;
  }

  .tech-specs-table .spec-value {
    font-size: 0.9rem !important;
  }

  .tech-specs-table tr:last-child,
  .footnotes-table tr:last-child {
    border-bottom: none;
  }

  .product-gallery-main {
    min-height: auto;
  }

  .product-gallery-thumbs {
    margin-top: 0;
  }

  .product-gallery-thumbs .thumb-item {
    width: 70px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .info-headline {
    font-size: 1.4rem;
  }

  .country-selector {
    padding: 2px 8px;
  }

  .feature-block .info-headline {
    font-size: 1.1rem;
  }

  .product-gallery-thumbs .thumb-item {
    width: 60px;
    height: 45px;
  }
}