/* Products Page Layout */
.products-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 143px);
  max-width: 1600px;
  margin: 0 auto;
}

/* Sidebar */
.products-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 32px 0;
  position: sticky;
  top: 143px;
  height: calc(100vh - 143px);
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 16px;
}

.sidebar-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: white;
  color: #1e40af;
  border-left-color: #1e40af;
}

.sidebar-link.active {
  background: white;
  color: #1e40af;
  border-left-color: #1e40af;
  font-weight: 600;
}

.sidebar-link svg {
  opacity: 0;
  transition: opacity 0.2s;
}

.sidebar-link:hover svg,
.sidebar-link.active svg {
  opacity: 1;
}

.sidebar-plaintext {
  padding: 16px 24px;
  color: #64748b;
  font-size: 14px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}

/* Products Main Area */
.products-main {
  padding: 48px 40px;
}

.products-header {
  margin-bottom: 48px;
}

.products-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.category-description {
  font-size: 18px;
  color: #64748b;
  line-height: 1.6;
}

.products-loading,
.products-empty,
.products-error {
  text-align: center;
  padding: 80px 40px;
}

.products-empty h2,
.products-error h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.products-empty p,
.products-error p {
  color: #64748b;
  font-size: 16px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-view-details {
  padding: 12px 24px;
  background: white;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-details:hover {
  background: #1e40af;
  color: white;
  transform: translateY(-2px);
}

.product-info {
  padding: 20px;
}

.product-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e40af;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-subtype {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
}

/* Product Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-modal.active {
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 4px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  background: #f1f5f9;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 4px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.product-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e40af;
  background: #eff6ff;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.modal-details h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
  line-height: 1.2;
}

.modal-details .product-subtype {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 16px;
}

.modal-details .product-price {
  font-size: 28px;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 24px;
}

.product-description {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 32px;
  flex-grow: 1;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: #1e40af;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #1e3a8a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: white;
  color: #334155;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  border-color: #1e40af;
  color: #1e40af;
  background: #f8fafc;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-page {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .products-main {
    padding: 32px 20px;
  }

  .products-header h1 {
    font-size: 32px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 24px;
  }
}

/* =================================
   Product Detail Page Styles
   ================================= */

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product-header {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  gap: 30px;
  align-items: start;
}

.product-detail-image {
  width: 300px;
  height: 300px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  flex-shrink: 0;
}

.product-header-content {
  flex: 1;
}

.product-detail h1 {
  margin: 0 0 10px 0;
  color: #2c3e50;
}

.product-meta-detail {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.meta-item {
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
}

.functions-section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.functions-section h2 {
  margin: 0 0 20px 0;
  color: #2c3e50;
}

.function-category {
  margin-bottom: 30px;
}

.function-category h3 {
  margin: 0 0 15px 0;
  color: #34495e;
  font-size: 18px;
}

.function-detail {
  background: #f8f9fa;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  border-left: 3px solid #3498db;
}

.function-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.module-providers {
  font-size: 14px;
  color: #7f8c8d;
}

.module-providers strong {
  color: #34495e;
}

.function-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.function-list li {
  padding: 4px 0;
  color: #34495e;
}

.resources-section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resources-section h2 {
  margin: 0 0 20px 0;
  color: #2c3e50;
}

.resource-group {
  margin-bottom: 20px;
}

.resource-group h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #34495e;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  padding: 8px 0;
}

.resource-list a {
  color: #3498db;
  text-decoration: none;
}

.resource-list a:hover {
  text-decoration: underline;
}

.additional-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.additional-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.additional-image:hover {
  transform: scale(1.05);
}

.module-category {
  margin-bottom: 15px;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
}

.module-category-header {
  background: #f8f9fa;
  padding: 12px 15px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-category-header:hover {
  background: #ecf0f1;
}

.module-category-header .toggle {
  font-size: 12px;
  width: 20px;
}

.module-category-header .module-name {
  font-weight: 600;
  color: #2c3e50;
}

.module-link {
  color: #3498db;
  text-decoration: none;
}

.module-link:hover {
  text-decoration: underline;
}

.module-category-content {
  padding: 15px;
  background: white;
}

.back-link {
  display: inline-block;
  color: #3498db;
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.product-detail-page .loading {
  text-align: center;
  padding: 50px;
  font-size: 18px;
  color: #7f8c8d;
}

.product-detail-page .error {
  background: #fee;
  color: #c33;
  padding: 20px;
  border-radius: 4px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .product-detail {
    padding: 0;
  }
}

/* =================================
   Product Detail Container Styles
   ================================= */

.product-detail-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-top-section {
  display: flex;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 30px;
}

.product-image-column {
  flex-shrink: 0;
  width: 320px;
}

.product-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-info-column h1 {
  font-size: 2.2em;
  color: #2c3e50;
  margin: 0 0 10px 0;
}

.product-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.product-title-area {
  flex: 1;
}

.product-cta-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
}

.base-price-display {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  text-align: right;
}

.base-price-display.call-for-price {
  font-size: 16px;
  color: #64748b;
  font-weight: 600;
}

.product-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-case-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #e8e8e8;
  color: #555;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: nowrap;
}

.product-family {
  display: inline-block;
  padding: 4px 10px;
  background: #f5f5f5;
  color: #999;
  border-radius: 4px;
  font-size: 0.7em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =================================
   Resources Grid Styles
   ================================= */

.resources-grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.resource-grid-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.documentation-item h3 {
  font-size: 1em;
  color: #2c3e50;
  margin: 0 0 15px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85em;
}

.documentation-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.documentation-item li {
  padding: 6px 0;
  border-bottom: 1px solid #ecf0f1;
}

.documentation-item li:last-child {
  border-bottom: none;
}

.documentation-item a {
  color: maroon;
  text-decoration: none;
  font-size: 0.9em;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.documentation-item a::before {
  content: '⬇';
  font-size: 1.2em;
  color: #555;
}

.documentation-item a:hover {
  text-decoration: underline;
}

.software-grid-item {
  gap: 15px;
}

.accessory-grid-item,
.image-grid-item {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessory-image-compact {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: opacity 0.2s;
}

.accessory-image-compact:hover {
  opacity: 0.85;
}

.additional-image-compact {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 5px;
  background: white;
}

/* Software Section */
.software-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.software-grid-item .software-screenshot,
.software-screenshot {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.software-details {
  flex: 1;
}

.software-header {
  font-size: 1.3em;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.software-note {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.4;
}

.software-downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.software-download-primary a {
  color: maroon;
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 600;
}

.software-download-primary a:hover {
  text-decoration: underline;
}

.software-download-secondary a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.9em;
}

.software-download-secondary a:hover {
  text-decoration: underline;
}

/* =================================
   Configuration Mode Styles
   ================================= */

.btn-configure-primary {
  padding: 12px 24px;
  border: 2px solid #1e40af;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: #1e40af;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-configure-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-back {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: #666;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.btn-back:hover {
  background: #f5f5f5;
  border-color: #999;
}

.config-header {
  background: white;
  border-bottom: 2px solid #e0e0e0;
  padding: 15px 20px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.config-header-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.config-product-thumb {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
  border: 1px solid #e2e8f0;
}

.config-product-info h2 {
  margin: 0;
  font-size: 1.4em;
  color: #0a0a0a;
  font-weight: 700;
}

.config-product-meta {
  display: flex;
  gap: 15px;
  font-size: 0.95em;
  color: #64748b;
  margin-top: 8px;
}

.config-product-meta .base-price {
  color: #334155;
  font-weight: 600;
}

/* =================================
   Summary Bar Styles
   ================================= */

.summary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 15px 20px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  z-index: 1000;
}

.summary-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.summary-modules-container {
  display: flex;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.summary-total-area {
  flex-shrink: 0;
  min-width: 220px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-module {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 2px;
  border-left: 3px solid #cbd5e1;
  min-height: 70px;
  min-width: 150px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.summary-module:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.summary-module.has-selection {
  border-left-color: #1e40af;
  background: #eff6ff;
}

.summary-module.has-selection:hover {
  background: #dbeafe;
}

.summary-module.current-step {
  border-left-color: #1e40af;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #1e40af inset;
}

.summary-module.current-step:hover {
  background: #dbeafe;
}

.summary-module-label {
  font-size: 0.75em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.summary-module-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95em;
  margin-bottom: 2px;
}

.summary-module-price {
  color: #334155;
  font-size: 0.9em;
  font-weight: 600;
}

.summary-total-box {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.total-info {
  text-align: center;
}

.total-label {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: #64748b;
}

.total-price {
  font-size: 1.5em;
  font-weight: 700;
  color: #0a0a0a;
}

.summary-nav-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-nav-back,
.btn-nav-continue {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav-back {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.btn-nav-back:hover {
  background: #e0e0e0;
}

.btn-nav-continue {
  background: #2196f3;
  color: white;
}

.btn-nav-continue:hover:not(:disabled) {
  background: #1976d2;
}

.btn-nav-continue:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-add-to-cart {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: #27ae60;
  color: white;
  width: 100%;
}

.btn-add-to-cart:hover {
  background: #229954;
  transform: translateY(-1px);
}

/* =================================
   Product Detail Responsive
   ================================= */

@media (max-width: 768px) {
  .product-detail-container {
    padding: 20px;
  }

  .product-top-section {
    flex-direction: column;
  }

  .product-image-column {
    width: 100%;
  }

  .product-header-row {
    flex-direction: column;
    gap: 16px;
  }

  .product-purchase-area {
    align-items: stretch;
    width: 100%;
  }

  .purchase-price {
    text-align: left;
  }

  .btn-configure-purchase {
    width: 100%;
  }

  .product-info-header {
    flex-direction: column;
  }

  .product-cta-area {
    align-items: flex-start;
    width: 100%;
  }

  .btn-configure-primary {
    width: 100%;
  }

  .product-info-column h1,
  .product-title-section h1 {
    font-size: 1.6em;
  }

  .resources-grid-section {
    grid-template-columns: 1fr;
  }

  .summary-bar {
    padding: 10px 8px;
    max-height: 50vh;
    overflow-y: auto;
  }

  .summary-grid {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
  }

  .summary-modules-container {
    flex-direction: column;
    gap: 6px;
  }

  .summary-module {
    min-height: 45px;
    padding: 6px 8px;
  }

  .summary-module-label {
    font-size: 0.65em;
    margin-bottom: 2px;
  }

  .summary-module-name {
    font-size: 0.8em;
    line-height: 1.2;
  }

  .summary-module-price {
    font-size: 0.75em;
  }

  .summary-total-area {
    margin-left: 0;
  }

  .summary-total-box {
    padding: 8px;
    gap: 8px;
  }

  .total-label {
    font-size: 0.7em;
  }

  .total-price {
    font-size: 1em;
  }

  .summary-nav-buttons {
    flex-wrap: wrap;
  }

  .btn-nav-back,
  .btn-nav-continue {
    padding: 6px 12px;
    font-size: 0.8em;
  }

  .btn-add-to-cart {
    padding: 6px 12px;
    font-size: 0.8em;
  }

  .config-header {
    padding: 8px;
  }

  .config-product-thumb {
    width: 45px;
    height: 45px;
  }

  .config-product-info h2 {
    font-size: 1em;
  }

  .config-product-meta {
    font-size: 0.75em;
    gap: 8px;
    flex-wrap: wrap;
  }

  body.config-mode {
    padding-bottom: 300px !important;
  }
}

/* =================================
   Updated Product Detail Page Styles
   ================================= */

.product-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.product-detail-back {
  margin-bottom: 24px;
}

.product-detail-back .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.product-detail-back .back-link:hover {
  color: #1e40af;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px 0;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.product-price-row .price-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.product-price-row .price-value {
  font-size: 28px;
  font-weight: 800;
  color: #0a0a0a;
}

.product-price-row .price-value.call-for-price {
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
}

.product-description {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 16px 0;
}

.product-actions {
  margin-top: 24px;
}

.product-actions .btn-configure {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.product-actions .btn-configure:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Product Specs Inline Tags */
.product-specs-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.spec-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border-radius: 6px;
}

/* Product Header Row - title left, price/button right */
.product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
}

.product-title-section {
  flex: 1;
}

.product-title-section h1 {
  margin: 0 0 8px 0;
}

.product-purchase-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.purchase-price {
  text-align: right;
}

.purchase-price .price-value {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

.purchase-price .price-value.call-for-price {
  font-size: 16px;
  color: #64748b;
  font-weight: 600;
}

/* Input Support Info - Collapsible */
.input-support-info {
  margin: 20px 0;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  overflow: hidden;
}

.input-support-info .support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.input-support-info .support-header:hover {
  background: #dcfce7;
}

.input-support-info .support-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}

.input-support-info .support-check {
  color: #16a34a;
  flex-shrink: 0;
}

.input-support-info .support-expand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-support-info .module-count {
  font-size: 12px;
  color: #64748b;
}

.input-support-info .expand-chevron {
  color: #64748b;
  transition: transform 0.2s;
}

.input-support-info.expanded .expand-chevron {
  transform: rotate(180deg);
}

.input-support-info .support-modules {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.input-support-info.expanded .support-modules {
  display: flex;
}

.input-support-info .support-module-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dcfce7;
}

.input-support-info .module-name {
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
}

.input-support-info .module-name:hover {
  text-decoration: underline;
}

.input-support-info .module-name.built-in {
  color: #475569;
}

.input-support-info .channel-badge {
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
}

.input-support-info .channel-details {
  width: 100%;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Configure & Buy Button */
.btn-configure-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-configure-purchase:hover {
  background: #1e3a8a;
}

.product-image-placeholder {
  width: 100%;
  height: 300px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart badge style */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-btn {
  position: relative;
}
