/* =========================================================================
   Product Theme — shared styles for all product page templates
   Uses --color-primary / --color-primary-dark / --color-primary-soft from
   the site-wide theming system defined in header.php.
   ========================================================================= */

.product-theme .theme-primary-link {
  color: var(--color-primary);
}

.product-theme .theme-primary-link:hover {
  color: var(--color-primary-dark);
}

.product-theme .theme-primary-btn {
  background-color: var(--color-primary);
}

.product-theme .theme-primary-btn:hover {
  background-color: var(--color-primary-dark);
}

.product-theme .action-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background-color: var(--color-primary);
  transition: background-color .3s ease;
}

.product-theme .action-btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.product-theme .action-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgb(203 213 225);
  background-color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: rgb(51 65 85);
  transition: background-color .3s ease;
}

.product-theme .action-btn-secondary:hover {
  background-color: rgb(248 250 252);
}

.product-theme .action-btn-primary.action-btn-compact,
.product-theme .action-btn-secondary.action-btn-compact {
  justify-content: flex-start;
  gap: 0;
  width: auto;
  min-width: 2.75rem;
  max-width: 2.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  overflow: hidden;
  transition: max-width 0.3s ease, gap 0.3s ease, padding-right 0.3s ease;
}

.product-theme .action-btn-compact .action-btn-label {
  margin-left: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s;
}

.product-theme .action-btn-compact:hover,
.product-theme .action-btn-compact:focus-visible {
  max-width: 10rem;
  gap: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.875rem;
}

.product-theme .action-btn-compact:hover .action-btn-label,
.product-theme .action-btn-compact:focus-visible .action-btn-label {
  margin-left: 0;
  max-width: 7rem;
  opacity: 1;
}

.product-theme .product-size-grid label:has(input:checked) {
  border-color: var(--color-primary) !important;
  background-color: var(--color-primary) !important;
}

.product-theme .product-size-grid label:has(input:focus-visible) {
  outline-color: var(--color-primary) !important;
}

.product-theme .theme-primary-badge {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.product-theme #product-dummy-tabs .product-tab-link {
  border: 0;
  border-bottom: 2px solid transparent;
  background-color: transparent;
  box-shadow: none;
  color: #6b7280;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-theme #product-dummy-tabs .product-tab-link:not(.is-active) {
  background-color: transparent !important;
  box-shadow: none !important;
}

.product-theme #product-dummy-tabs .product-tab-link:hover {
  color: var(--color-primary);
}

.product-theme #product-dummy-tabs .product-tab-link:hover .product-tab-icon {
  color: var(--color-primary);
}

.product-theme #product-dummy-tabs .product-tab-link.is-active {
  background-color: transparent;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.product-theme #product-dummy-tabs .product-tab-link.is-active .product-tab-icon {
  color: var(--color-primary);
}

.product-theme #product-dummy-tabs .product-tab-icon {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.product-theme #product-dummy-tabs #product-tab-select:focus-visible {
  outline-color: var(--color-primary);
}
