/* ! Product Show Page */
.product-show-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 5%;
}

.product-show-title {
  margin: 2rem 0;
  font-weight: 500;
}

/* Breadcrumb */
.product-show-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 0.95rem;
}

.product-show-breadcrumb-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-show-breadcrumb-link:hover {
  color: var(--primary-color);
}

.product-show-breadcrumb-separator {
  color: #999;
}

.product-show-breadcrumb-current {
  color: var(--text-color);
  font-weight: 600;
}

/* Main Product Section */
.product-show-main {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 80px;
}

/* Image Gallery */
.product-show-gallery {
  top: 80px;
  height: fit-content;
}

.product-show-main-image {
  width: 100%;
  aspect-ratio: 1;
  background: white;
  border-radius: 20px;
  border: 2px solid #f0f0f0;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-show-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-show-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-show-thumbnail {
  aspect-ratio: 1;
  background: white;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-show-thumbnail:hover,
.product-show-thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(209, 29, 35, 0.2);
}

.product-show-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Card */
.product-show-info-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Options */
.product-show-option {
  margin-bottom: 30px;
}

.product-show-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.product-show-option-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #777;
  text-decoration: none;
  gap: 0.5rem;
}

.info-icon:hover {
  color: #555;
}

.info-icon .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: opacity 0.25s ease;
  z-index: 10;
  pointer-events: none;
}

.info-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Dropdown Select */
.product-show-select {
  width: 100%;
  padding: 14px 18px;
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 45px;
}

.product-show-qty {
  width: 100%;
  padding: 14px 18px;
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 15px center;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-show-select:focus,
.product-show-qty:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Print Sides Options */
.product-show-print-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.product-show-print-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.product-show-print-option:hover {
  border-color: var(--primary-color);
  background: rgba(209, 29, 35, 0.02);
}

.product-show-print-option.active {
  border-color: var(--primary-color);
  background: rgba(209, 29, 35, 0.05);
}

.product-show-print-icon {
  font-size: 2rem;
}

.product-show-print-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Corner Options */
.product-show-corner-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.product-show-corner-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-show-corner-option:hover {
  border-color: var(--primary-color);
  background: rgba(209, 29, 35, 0.02);
}

.product-show-corner-option.active {
  border-color: var(--primary-color);
  background: rgba(209, 29, 35, 0.05);
}

.product-show-corner-icon {
  width: 60px;
  height: 60px;
  border: 3px solid var(--text-color);
}

.product-show-corner-icon.sharp {
  border-radius: 0;
}

.product-show-corner-icon.rounded {
  border-radius: 15px;
}

.product-show-corner-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.plate-style {
  margin-right: 15px;
  cursor: pointer;
}

.plate-radio {
  margin-right: 5px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* Accessories */
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.accessory-grid:has(.accessory-item:only-child) {
  grid-template-columns: 180px;
}

.accessory-grid:has(.accessory-item:first-child:nth-last-child(-n + 2)) {
  grid-template-columns: repeat(auto-fit, 150px);
  justify-content: start;
}

.accessory-item {
  border: 2px solid #e6e6e6;
  position: relative;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition:
    border 0.2s ease,
    background 0.2s ease;
}

.accessory-item img {
  width: 100%;
  transition: 0.2s;
}

.accessory-item.selected {
  border-color: var(--primary-color);
}

.accessory-name-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary-color);
  color: var(--background);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.add-price {
  color: var(--primary-color);
  font-weight: 700;
}

.hidden {
  display: none;
}

#color-picker h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
}

#color-picker i {
  margin-right: 7px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
}

.color-options label {
  margin-right: 15px;
  cursor: pointer;
}

.color-options input {
  margin-right: 5px;
  accent-color: var(--primary-color);
}

/* Price Display */
.product-show-price-section {
  background: linear-gradient(
    135deg,
    rgba(226, 39, 45, 0.05),
    rgba(209, 29, 35, 0.02)
  );
  border-left: 4px solid var(--primary-color);
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
}

.product-show-price-label {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}

.product-show-price {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Order Button */
.product-show-order-btn {
  width: 100%;
  padding: 18px 32px;
  background: var(--primary-color-gradient);
  color: var(--text-color-alt);
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(209, 29, 35, 0.25);
  margin-top: 30px;
}

.product-show-order-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover-color), #b6191e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 29, 35, 0.35);
}

/* Template Button */
.product-template-btn {
  width: 100%;
  padding: 18px 32px;
  background: var(--background);
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(209, 29, 35, 0.25);
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-template-btn-text {
  color: var(--primary-color);
  text-decoration: none;
}

.product-template-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(209, 29, 35, 0.35);
  filter: brightness(1.05);
}

/* Process Cards */
.product-show-process-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.product-show-process-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.product-show-process-cards {
  display: grid;
  gap: 15px;
}

.product-show-process-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.product-show-process-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(209, 29, 35, 0.1);
}

.product-show-process-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(226, 39, 45, 0.08),
    rgba(209, 29, 35, 0.03)
  );
  border-color: var(--primary-color);
}

.product-show-process-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  font-size: 1.5rem;
}

.product-show-process-card.highlight .product-show-process-icon {
  background: var(--primary-color-gradient);
}

.product-show-process-content {
  flex: 1;
}

.product-show-process-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 5px;
}

.product-show-process-card-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Details Section */
.product-show-details {
  margin-top: 80px;
}

.product-show-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 3px solid #f0f0f0;
  margin-bottom: 40px;
}

.product-show-tab-btn {
  padding: 15px 30px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: "Open Sans", "Noto Sans Thai", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-show-tab-btn:hover {
  color: var(--primary-color);
  background: rgba(209, 29, 35, 0.05);
}

.product-show-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(209, 29, 35, 0.08);
}

.product-show-tab-content {
  display: none;
}

.code-apply {
  padding: 8px 16px;
  background: var(--background);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
}

.code-apply:hover {
  border-color: var(--primary-color);
  color: var(--background);
  background: var(--primary-color);
  transition: all 0.3s ease;
}

/* Tab Content */
.product-show-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.product-show-tab-panel {
  background: white;
  border-radius: 16px;
  padding: 40px;
  border: 2px solid #f0f0f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-show-tab-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.product-show-tab-panel p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.product-show-tab-panel ul {
  list-style: none;
  margin: 20px 0;
}

.product-show-tab-panel li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.product-show-tab-panel li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.product-show-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.product-show-specs-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.product-show-specs-table th,
.product-show-specs-table td {
  padding: 16px;
  text-align: left;
}

.product-show-specs-table th {
  font-weight: 700;
  color: var(--text-color);
  width: 40%;
}

.product-show-specs-table td {
  color: #555;
}

/* Product Detail Tab Section */
.product-description-section {
  max-width: 1200px;
}

.product-description-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Detail Tab Navigation */
.product-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  overflow-x: auto;
}

.tab-button {
  flex: 1;
  padding: 18px 24px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-button:hover {
  background: #fff;
  color: var(--primary-color);
}

.tab-button.active {
  color: var(--primary-color);
  background: #fff;
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.tab-button i {
  font-size: 1.1rem;
}

/* Detail Tab Content */
.tab-content-container {
  padding: 40px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

.tab-content-headline {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.tab-content-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 35px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.benefit-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 8, 0, 0.15);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.benefit-card h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.benefit-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #e8f4ff;
  transform: translateX(5px);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.feature-content h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.specs-table th,
.specs-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.specs-table th {
  font-weight: 600;
  color: #333;
  width: 30%;
  background: #f8f9fa;
  font-size: 1rem;
}

.specs-table th i {
  margin-right: 8px;
  color: var(--primary-color);
}

.specs-table td {
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
}

.specs-table td strong {
  color: #333;
  display: inline-block;
  margin-right: 5px;
}

/* Order Steps */
.order-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.step-card {
  display: flex;
  gap: 25px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(255, 8, 0, 0.15);
}

.step-content h4 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.step-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Help Box */
.help-box {
  margin-top: 40px;
  padding: 30px;
  background: var(--primary-color-gradient);
  border-radius: 12px;
  text-align: center;
  color: white;
}

.help-box h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.help-box p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  opacity: 0.95;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 8, 0, 0.15);

}

/* CTA Box */
.cta-box {
  margin-top: 35px;
  padding: 25px;
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.cta-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.cta-box a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.cta-box a:hover {
  text-decoration: underline;
}


/* ! Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Responsive Design */
@media (max-width: 968px) {
  /* Product Show Page */
  .product-show-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-show-title {
    display: none;
  }

  .product-show-title-mobile {
    display: block !important;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
  }

  .product-show-gallery {
    position: static;
  }

  .product-show-actions {
    flex-direction: column;
  }

  .product-show-tabs {
    overflow-x: auto;
  }

  .product-show-tab-panel {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .product-tabs {
    justify-content: flex-start;
  }

  .tab-button {
    padding: 14px 16px;
    font-size: 0.9rem;
    min-width: 120px;
  }

  .tab-button i {
    font-size: 1rem;
  }

  .tab-content-container {
    padding: 25px 20px;
  }

  .tab-content-headline {
    font-size: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .specs-table th,
  .specs-table td {
    padding: 12px;
    font-size: 0.9rem;
  }

  .specs-table th {
    width: 40%;
  }

  .step-card {
    flex-direction: column;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 568px) {
  .accessory-grid:has(.accessory-item:first-child:nth-last-child(-n + 2)) {
    grid-template-columns: repeat(auto-fit, 120px);
    justify-content: start;
  }
}

@media (max-width: 480px) {
  /* Product Show page */
  .product-show-container {
    padding: 40px 5%;
  }

  .product-show-title {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  .product-show-price {
    font-size: 2rem;
  }

  .product-show-size-options {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .product-show-tab-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
