/* ==========================================================================
   PRODUCT PAGE SECONDARY HEADER - XEYROX
   Structural alignment & clean product identity (Phase 02A fix)
   ========================================================================== */

.product-header {
  position: relative;
  width: 100%;
  height: var(--product-header-height, 56px);
  background: var(--x-white, #FFFFFF);
  border-bottom: 1px solid var(--x-border, #DCE6F2);
  z-index: 990;
}

.product-header-container {
  height: 100%;
}

.product-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Product Brand (Icon Box + Name) */
.product-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.product-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--x-text, #0B1733);
}

.product-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-brand-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.product-brand-title {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--x-navy-950, #0B1733);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Product Secondary Navigation */
.product-navigation {
  display: flex;
  align-items: center;
}

.product-nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-nav-link {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--x-text-secondary, #536581);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1;
  transition: color 180ms ease;
}

.product-nav-link:hover,
.product-nav-link.active {
  color: var(--x-green-500, #19C88B);
  text-decoration: none;
}

.product-nav-link:focus-visible {
  outline: 2px solid var(--x-green-500, #19C88B);
  outline-offset: 2px;
}

/* Product Header CTA Button */
.product-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--x-white, #FFFFFF);
  background-color: var(--x-navy-950, #0B1733);
  border: 1px solid var(--x-navy-950, #0B1733);
  border-radius: 8px;
  padding: 7px 16px;
  text-decoration: none;
  line-height: 1;
  transition: all 180ms ease;
  cursor: pointer;
}

.btn-product-cta:hover {
  background-color: var(--x-navy-800, #10234A);
  border-color: var(--x-navy-800, #10234A);
  color: var(--x-white, #FFFFFF);
  text-decoration: none;
}

.btn-product-cta:focus-visible {
  outline: 2px solid var(--x-green-500, #19C88B);
  outline-offset: 2px;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVENESS FOR PRODUCT HEADER
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-nav-list {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .product-header {
    height: auto;
    min-height: 52px;
    padding: 8px 0;
  }

  .product-header-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .product-brand {
    order: 1;
    min-width: 0;
  }

  .product-header-actions {
    order: 2;
  }

  .product-header .btn-product-cta {
    padding: 6px 12px;
    font-size: 12.5px;
    min-height: 36px;
  }

  .product-navigation {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 2px;
  }

  .product-navigation::-webkit-scrollbar {
    display: none;
  }

  .product-nav-list {
    display: flex;
    gap: 18px;
    padding: 2px 0;
  }

  .product-nav-link {
    font-size: 13px;
    white-space: nowrap;
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .product-brand-title {
    font-size: 14px;
  }

  .btn-product-cta {
    padding: 6px 11px;
    font-size: 12px;
    white-space: nowrap;
  }
}
