/* Styles for general NFC page elements */
:root {
  --nfc-primary-color: #183756;
  --nfc-text-color: #333;
  --nfc-light-text-color: #555;
  --nfc-background-color: #f4f6f8;
  --nfc-card-background-color: #ffffff;
  --nfc-border-color: #e0e0e0;
  --nfc-success-color: #28a745;
  --nfc-error-color: #dc3545;
  --nfc-warning-color: #ffc107;
  --nfc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.template-page-nfc-verification {
  font-family: var(--nfc-font-family);
  background-color: var(--nfc-background-color);
  color: var(--nfc-text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.nfc-page-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 15px 5px; /* Reduced horizontal padding */
  box-sizing: border-box;
  background-color: var(--nfc-background-color);
}

.nfc-result-wrapper {
  background-color: var(--nfc-card-background-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Changed from visible to hidden for consistency */
  transition: all 0.3s ease-in-out;
}

.nfc-loading,
.nfc-message {
  padding: 40px 20px;
  text-align: center;
  font-size: 1.1em;
}

.nfc-loading p {
  margin-top: 10px;
  color: var(--nfc-light-text-color);
}

.nfc-message.nfc-error p {
  color: var(--nfc-error-color);
  font-weight: 500;
}
.nfc-message.nfc-error strong {
  font-size: 1.5em;
  display: block;
  margin-bottom: 8px;
}

.nfc-product-image-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px auto;
  background-color: var(--nfc-card-background-color);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--nfc-border-color);
}

.nfc-product-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nfc-product-details {
  padding: 0 10px 20px 10px; /* Reduced horizontal padding */
}

.nfc-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.nfc-info-table td {
  padding: 10px 5px;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95em;
}

.nfc-info-table tr:last-child td {
  border-bottom: none;
}

.nfc-info-table td:first-child {
  font-weight: 600; /* Labels like "Xuất xứ:" can remain bold */
  color: var(--nfc-light-text-color);
  width: 150px;
}

/* Updated styling for SKU and Price values */
.nfc-info-table .sku-value,
.nfc-info-table .price-value {
  font-size: 0.95em; /* Match other values */
  font-weight: normal; /* Not bold */
  color: var(--nfc-primary-color); /* Primary color */
}

.nfc-section {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px dashed var(--nfc-border-color);
}

.nfc-section h3 {
  font-size: 1.2em;
  color: var(--nfc-primary-color);
  margin-bottom: 10px;
  /* Accordion header styling will be in standard-page.css if it's an accordion */
}

.nfc-section p,
.nfc-section ul,
.nfc-section .tech-specs-table {
  /* Target tech specs table specifically */
  font-size: 0.85em;
  color: var(--nfc-light-text-color);
  margin-bottom: 10px;
}
.nfc-section .tech-specs-table td {
  padding: 8px 5px;
  border-bottom: 1px solid #f7f7f7;
}
.nfc-section .tech-specs-table td:first-child {
  color: var(--nfc-primary-color); /* Changed from light text color to primary color */
  width: 180px;
  /* Removed font-weight: 600; to remove bold formatting */
}

.nfc-section ul {
  list-style: disc;
  padding-left: 20px;
}

.nfc-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--nfc-primary-color);
  animation: spin 1s ease infinite;
  margin: 0 auto 10px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .nfc-page-container {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .nfc-result-wrapper {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
  }
  .nfc-product-image-container {
    max-width: 90%;
    padding: 5px;
  }
  .nfc-info-table td,
  .nfc-info-table .sku-value,
  .nfc-info-table .price-value {
    font-size: 0.9em;
  }
  .nfc-info-table td:first-child {
    width: 120px;
  }
  .nfc-section .tech-specs-table td:first-child {
    width: 140px;
  }
}