/**
 * TRANS Price Simulator - Price List Stylesheet
 * Scoped strictly under .tps-pricelist and .tps-container
 */

.tps-pricelist {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  box-sizing: border-box;
  font-family: "Helvetica Neue", "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  color: #f0f0f0;
  background: #080808;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 168, 76, 0.05);
  overflow: hidden;
  word-break: keep-all;
}

.tps-pricelist *,
.tps-pricelist *::before,
.tps-pricelist *::after {
  box-sizing: border-box;
}

.tps-pricelist-inner {
  padding: 36px 32px;
}

/* Header & Brand */
.tps-pricelist .tps-pl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  padding-bottom: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.tps-pricelist .tps-pl-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tps-pricelist .tps-pl-logo-wrap img {
  max-height: 48px;
  width: auto;
  display: block;
}

.tps-pricelist .tps-pl-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.2;
}

.tps-pricelist .tps-pl-title span {
  color: var(--tps-gold, #c9a84c);
}

.tps-pricelist .tps-pl-subtitle {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--tps-gold-light, #ecd783);
  text-transform: uppercase;
}

/* Certificate Showcase (XPEL.png etc.) */
.tps-pricelist .tps-certificate-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  padding: 10px 16px;
  transition: all 0.3s ease;
}

.tps-pricelist .tps-certificate-wrap:hover {
  border-color: rgba(201, 168, 76, 0.6);
  background: rgba(201, 168, 76, 0.1);
}

.tps-pricelist .tps-certificate-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tps-pricelist .tps-certificate-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tps-gold, #c9a84c);
  text-transform: uppercase;
}

.tps-pricelist .tps-certificate {
  display: inline-block;
  transition: transform 0.25s ease;
}

.tps-pricelist .tps-certificate:hover {
  transform: scale(1.06);
}

.tps-pricelist .tps-certificate img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.tps-pricelist .tps-certificate-caption {
  font-size: 9px;
  color: #999999;
  text-align: right;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.tps-pricelist .tps-certificate-caption small {
  display: block;
  color: var(--tps-gold-light, #ecd783);
  font-size: 8px;
}

/* Loading State */
.tps-pricelist .tps-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--tps-gold, #c9a84c);
  gap: 16px;
}

.tps-pricelist .tps-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201, 168, 76, 0.15);
  border-top-color: var(--tps-gold, #c9a84c);
  border-radius: 50%;
  animation: tps-pl-spin 0.8s linear infinite;
}

@keyframes tps-pl-spin {
  to { transform: rotate(360deg); }
}

/* Country Filter Bar */
.tps-pricelist .tps-pl-country-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tps-pricelist .tps-pl-country-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #999999;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.tps-pricelist .tps-pl-country-pill:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.4);
  color: #ffffff;
}

.tps-pricelist .tps-pl-country-pill.active {
  background: linear-gradient(135deg, var(--tps-gold-light, #ecd783), var(--tps-gold, #c9a84c));
  border-color: var(--tps-gold, #c9a84c);
  color: #080808;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.35);
}

/* Maker Tabs (Scrollable on Mobile) */
.tps-pricelist .tps-pl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.tps-pricelist .tps-tab-btn {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cccccc;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
  user-select: none;
}

.tps-pricelist .tps-tab-btn:hover {
  border-color: rgba(201, 168, 76, 0.6);
  color: #ffffff;
  background: #1c1c1c;
}

.tps-pricelist .tps-tab-btn.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.08));
  border-color: var(--tps-gold, #c9a84c);
  color: var(--tps-gold-light, #ecd783);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.2);
}

/* Table Container & Sticky Column */
.tps-pricelist .tps-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #101010;
  margin-bottom: 24px;
}

.tps-pricelist .tps-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

.tps-pricelist .tps-table th,
.tps-pricelist .tps-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tps-pricelist .tps-table thead th {
  background: #181818;
  color: var(--tps-gold-light, #ecd783);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid rgba(201, 168, 76, 0.4);
  position: sticky;
  top: 0;
  z-index: 2;
}

.tps-pricelist .tps-table tbody tr {
  transition: background-color 0.15s ease;
}

.tps-pricelist .tps-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.tps-pricelist .tps-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.08);
}

.tps-pricelist .tps-table tbody tr.tps-highlight {
  background: rgba(201, 168, 76, 0.2) !important;
  box-shadow: inset 3px 0 0 var(--tps-gold, #c9a84c);
}

/* Model Name Column */
.tps-pricelist .tps-col-model {
  font-weight: 600;
  color: #ffffff;
  background: inherit;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.tps-pricelist .tps-table thead th.tps-col-model {
  z-index: 3;
  background: #181818;
}

/* Price Cells */
.tps-pricelist .tps-col-price {
  font-feature-settings: "tnum";
  color: #e0e0e0;
  text-align: right;
}

.tps-pricelist .tps-col-price.tps-empty {
  color: #555555;
  text-align: center;
}

.tps-pricelist .tps-col-full {
  font-weight: 700;
  color: var(--tps-gold-light, #ecd783);
}

/* Price Notes */
.tps-pricelist .tps-pl-notes {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: #888888;
  word-break: normal;
}

.tps-pricelist .tps-pl-notes strong {
  color: var(--tps-gold-light, #ecd783);
}

/* =========================================================================
 * Mobile Breakpoints
 * ========================================================================= */
@media (max-width: 768px) {
  .tps-pricelist {
    margin: 10px auto;
    border-radius: 10px;
  }
  .tps-pricelist-inner {
    padding: 20px 14px;
  }
  .tps-pricelist .tps-pl-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }
  .tps-pricelist .tps-pl-title {
    font-size: 20px;
  }
  .tps-pricelist .tps-certificate-wrap {
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
  }
  .tps-pricelist .tps-certificate-info {
    align-items: flex-start;
  }
  .tps-pricelist .tps-certificate-caption {
    text-align: left;
  }
  .tps-pricelist .tps-certificate img {
    height: 36px;
  }

  .tps-pricelist .tps-pl-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 8px;
    scrollbar-width: none;
  }
  .tps-pricelist .tps-pl-tabs::-webkit-scrollbar {
    display: none;
  }
  .tps-pricelist .tps-tab-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 12px;
  }

  .tps-pricelist .tps-table th,
  .tps-pricelist .tps-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* =========================================================================
 * SSR Full Price Table (.tps-pl-all) - SEO / Crawler Friendly [T2]
 * ========================================================================= */
.tps-pricelist .tps-pl-all {
  margin-top: 32px;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  padding-top: 20px;
}

.tps-pricelist .tps-pl-all summary.tps-pl-all-summary {
  cursor: pointer;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  color: var(--tps-gold-light, #ecd783);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  user-select: none;
  outline: none;
}

.tps-pricelist .tps-pl-all summary.tps-pl-all-summary:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--tps-gold, #c9a84c);
  color: #ffffff;
}

.tps-pricelist .tps-pl-all[open] summary.tps-pl-all-summary {
  margin-bottom: 24px;
  border-color: var(--tps-gold, #c9a84c);
}

.tps-pricelist .tps-pl-all-content {
  padding: 0 4px;
}

.tps-pricelist .tps-pl-all-maker-section {
  margin-bottom: 28px;
}

.tps-pricelist .tps-pl-all-maker-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  border-left: 3px solid var(--tps-gold, #c9a84c);
  padding-left: 10px;
  margin: 0 0 12px 0;
  letter-spacing: 0.05em;
}

.tps-pricelist .tps-pl-all-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.6);
}

.tps-pricelist .tps-pl-all-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #e0e0e0;
}

.tps-pricelist .tps-pl-all-table th,
.tps-pricelist .tps-pl-all-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.tps-pricelist .tps-pl-all-table thead th {
  background: rgba(201, 168, 76, 0.1);
  color: var(--tps-gold-light, #ecd783);
  font-weight: 600;
  text-align: right;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.tps-pricelist .tps-pl-all-table thead th.tps-col-model {
  text-align: left;
}

.tps-pricelist .tps-pl-all-table tbody th.tps-col-model {
  text-align: left;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.tps-pricelist .tps-pl-all-table tbody th.tps-col-model small.tps-katakana {
  font-size: 11px;
  color: #999999;
  font-weight: 400;
  margin-left: 4px;
}

.tps-pricelist .tps-pl-all-table tbody td.tps-col-price {
  text-align: right;
  font-feature-settings: "tnum";
}

.tps-pricelist .tps-pl-all-table tbody td.tps-empty {
  color: #555555;
  text-align: center;
}

@media (max-width: 760px) {
  .tps-pricelist .tps-pl-all {
    margin-top: 24px;
    padding-top: 16px;
  }
  .tps-pricelist .tps-pl-all summary.tps-pl-all-summary {
    font-size: 13px;
    padding: 10px 14px;
  }
  .tps-pricelist .tps-pl-all-maker-title {
    font-size: 14px;
  }
  .tps-pricelist .tps-pl-all-table th,
  .tps-pricelist .tps-pl-all-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .tps-pricelist .tps-pl-all summary.tps-pl-all-summary {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* =========================================================================
   Table Photo Button & Ultra-Luxury Lightbox Modal
   ========================================================================= */
.tps-pricelist .tps-table-photo-btn {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.16) 0%, rgba(201, 168, 76, 0.05) 100%);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: #ecd783;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tps-pricelist .tps-table-photo-btn .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
  line-height: 13px;
  color: #c9a84c;
}

.tps-pricelist .tps-table-photo-btn:hover {
  background: linear-gradient(135deg, #ecd783 0%, #c9a84c 100%);
  color: #080808;
  border-color: #ecd783;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
  transform: translateY(-1px);
}

.tps-pricelist .tps-table-photo-btn:hover .dashicons {
  color: #080808;
}

.tps-photo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 4, 0.9);
  box-sizing: border-box;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tps-photo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tps-photo-modal-dialog {
  background: linear-gradient(160deg, #161616 0%, #0d0d0d 100%);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 14px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(201, 168, 76, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tps-photo-modal-overlay.active .tps-photo-modal-dialog {
  transform: scale(1) translateY(0);
}

.tps-photo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(18, 18, 18, 0.95);
  position: relative;
}

.tps-photo-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tps-photo-modal-title span.tps-badge {
  background: linear-gradient(135deg, #c9a84c, #987a2d);
  color: #080808;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tps-photo-modal-title span.tps-modal-title-text {
  color: #f5f5f5;
  font-size: 14px;
}

.tps-photo-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaaaaa;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none;
}

.tps-photo-modal-close:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: #c9a84c;
  color: #ffffff;
  transform: rotate(90deg);
}

.tps-photo-modal-body {
  padding: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.tps-photo-modal-body img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.tps-photo-modal-caption {
  padding: 14px 24px;
  font-size: 13px;
  color: #cccccc;
  background: #0e0e0e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.5;
}

.tps-photo-modal-caption-text {
  flex: 1 1 auto;
}

.tps-photo-modal-brand-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #c9a84c;
  text-transform: uppercase;
  font-weight: 700;
}

/* Table Photo Trigger Badge Button */
.tps-pricelist .tps-cell-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.tps-pricelist .tps-table-photo-btn {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.24) 0%, rgba(24, 24, 24, 0.95) 100%);
  border: 1px solid rgba(201, 168, 76, 0.65);
  color: #f7e8a9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  white-space: nowrap;
}

.tps-pricelist .tps-table-photo-btn svg {
  color: #c9a84c;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tps-pricelist .tps-table-photo-btn:hover {
  background: linear-gradient(135deg, #ecd783 0%, #c9a84c 100%);
  color: #080808;
  border-color: #ecd783;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.55), 0 3px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.tps-pricelist .tps-table-photo-btn:hover svg {
  color: #080808;
  transform: scale(1.15);
}

/* Mobile Responsive Optimization for Photo Modal */
@media (max-width: 600px) {
  .tps-photo-modal-overlay {
    padding: 10px 8px;
  }
  .tps-photo-modal-dialog {
    max-width: 100%;
    border-radius: 10px;
  }
  .tps-photo-modal-header {
    padding: 10px 14px;
  }
  .tps-photo-modal-title {
    font-size: 13px;
    gap: 6px;
  }
  .tps-photo-modal-title span.tps-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  .tps-photo-modal-title span.tps-modal-title-text {
    font-size: 12px;
  }
  .tps-photo-modal-close {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .tps-photo-modal-body {
    min-height: 180px;
    max-height: 52vh;
  }
  .tps-photo-modal-body img {
    max-height: 52vh;
  }
  .tps-photo-modal-caption {
    padding: 10px 14px;
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .tps-photo-modal-brand-tag {
    font-size: 9px;
  }
}




