/* 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: 20px;
  height: calc(100vh - 40px);
  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;
}

.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;
  }

  .modules-table,
  .specs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =================================
   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;
  position: relative;
}

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

.product-specs-inline .family-badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  box-sizing: border-box;
  gap: 2px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  color: #475569;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 0 10px 0 7px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  white-space: nowrap;
}

.product-specs-inline .family-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.product-specs-inline .family-badge span {
  line-height: 1;
  letter-spacing: 0.2px;
}

.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
   ================================= */

/* Outer wrapper for full-width gradient background */
.product-detail-wrapper {
  width: 100%;
  min-height: calc(100vh - 200px);
}

/* Inner container with max-width */
.product-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.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-title em {
  font-style: normal;
  color: #1e40af;
  font-weight: 700;
}

.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;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Certification Icons */
.product-certifications {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.product-certifications .cert-icon {
  height: 32px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0;
  background: none;
}

.product-certifications .cert-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Product Downloads (Flyer + Features & Specs) */
.product-downloads {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-download-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #f9fafb;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.product-download-link:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #333;
}
.product-download-link svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

/* 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;
}

/* Variants Info - Collapsible */
.variants-info {
  margin: 20px 0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  overflow: hidden;
}

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

.variants-info .variants-header:hover {
  background: #dbeafe;
}

.variants-info .variants-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
}

.variants-info .variants-icon {
  color: #3b82f6;
  flex-shrink: 0;
}

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

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

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

.variants-info .variants-list {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.variants-info.expanded .variants-list {
  display: flex;
}

.variants-info .variant-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  text-decoration: none;
  transition: all 0.15s;
}

.variants-info .variant-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.variants-info .variant-name {
  font-weight: 600;
  color: #1e40af;
  min-width: 100px;
}

.variants-info .variant-description {
  flex: 1;
  font-size: 13px;
  color: #475569;
}

.variants-info .variant-price {
  font-size: 14px;
  font-weight: 600;
  color: #059669;
}

/* 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: #2563eb;
  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;
}

/* Product Detail Skeleton Loading */
.product-skeleton {
  padding: 40px;
}

.skeleton-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.skeleton-image-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skeleton-main-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: product-shimmer 1.5s infinite;
  border-radius: 12px;
}

.skeleton-info-area {
  padding: 20px 0;
}

.skeleton-line {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: product-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 16px;
}

.skeleton-title-line {
  height: 36px;
  width: 60%;
}

.skeleton-subtitle-line {
  height: 20px;
  width: 40%;
  margin-bottom: 24px;
}

.skeleton-price-line {
  height: 28px;
  width: 30%;
  margin-bottom: 24px;
}

.skeleton-desc-line {
  height: 16px;
  width: 100%;
}

.skeleton-desc-line.short {
  width: 70%;
  margin-bottom: 32px;
}

.skeleton-button {
  height: 48px;
  width: 200px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: product-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes product-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 900px) {
  .skeleton-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skeleton-main-image {
    max-width: 300px;
    height: 300px;
  }
}

/* =================================
   Accessory & Module Detail Page
   ================================= */

.accessory-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.accessory-detail-image {
  background: #f8fafc;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessory-detail-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.accessory-detail-image.no-image {
  background: #f1f5f9;
  min-height: 280px;
}

.accessory-detail-image .placeholder-icon {
  opacity: 0.5;
}

.accessory-detail-info {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.accessory-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.accessory-detail-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;
}

.accessory-detail-category {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.accessory-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.accessory-detail-description {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.accessory-detail-notes {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 20px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #cbd5e1;
}

.accessory-detail-price {
  font-size: 26px;
  font-weight: 800;
  color: #0a0a0a;
  margin: 16px 0 24px 0;
}

.accessory-detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

/* Detail Page In-Cart Mode */
.accessory-detail-actions.in-cart-mode {
  background: #eff6ff;
  padding: 12px 16px;
  border-radius: 8px;
}

.accessory-detail-actions .in-cart-label {
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
}

.btn-remove {
  font-size: 13px;
  padding: 6px 12px;
  color: #64748b;
  border-color: #e2e8f0;
}

.btn-remove:hover {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f8fafc;
  color: #334155;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-input {
  width: 56px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #0a0a0a;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-display {
  width: 56px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #0a0a0a;
}

/* Add to Cart Button */
.btn-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
  max-width: 200px;
}

.btn-add-to-cart:hover {
  background: #1e3a8a;
}

.btn-add-to-cart.added {
  background: #16a34a;
}

/* Module Type Badges */
.module-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
}

.module-type-badge.input_module {
  color: #166534;
  background: #dcfce7;
}

.module-type-badge.output_analog {
  color: #9a3412;
  background: #ffedd5;
}

.module-type-badge.output_serial {
  color: #6b21a8;
  background: #f3e8ff;
}

.module-type-badge.output_relay {
  color: #0369a1;
  background: #e0f2fe;
}

.module-type-badge.display-option {
  color: #1e40af;
  background: #dbeafe;
}

.display-placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

/* Error State */
.product-detail .error-message {
  text-align: center;
  padding: 60px 20px;
}

.product-detail .error-message svg {
  color: #ef4444;
  margin-bottom: 16px;
}

.product-detail .error-message h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 8px 0;
}

.product-detail .error-message p {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 24px 0;
}

/* Responsive for Accessory/Module Detail */
@media (max-width: 768px) {
  .accessory-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .accessory-detail-image {
    padding: 20px;
  }

  .accessory-detail-image img {
    max-height: 250px;
  }

  .accessory-detail-title {
    font-size: 22px;
  }

  .accessory-detail-price {
    font-size: 22px;
  }

  .accessory-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .qty-selector {
    justify-content: center;
  }

  .btn-add-to-cart {
    max-width: none;
  }
}

/* =================================
   Product Code (below h1)
   ================================= */

.product-code {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Product code row with series badge */
.product-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-title-row .product-title {
  margin: 0;
}

/* Series badge in product detail */
.product-title-row .series-badge,
.product-code-row .series-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.product-title-row .series-badge img,
.product-code-row .series-badge img {
  height: 20px;
  width: auto;
}

.product-title-row .series-badge span,
.product-code-row .series-badge span {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.3px;
  margin-left: -1px;
}

/* Legacy product-code-row - keep for compatibility */
.product-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* =================================
   Compact Options List (for engineers)
   ================================= */

.product-options-compact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.product-options-compact h3 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.options-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.options-list dt {
  font-weight: 600;
  color: #475569;
}

.options-list dd {
  margin: 0;
  color: #64748b;
}

.options-list .more {
  color: #94a3b8;
  font-style: italic;
}

/* Compatible Modules Table */
.product-options-table {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.product-options-table h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 20px 0;
}

.product-options-table h4 {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

/* Module type sections (Input Modules, Serial Output, etc.) - collapsed by default */
.module-type-section {
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.module-type-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  cursor: pointer;
  gap: 8px;
  user-select: none;
}

.module-type-header:hover {
  background: #f1f5f9;
}

.module-type-header h4 {
  flex: 1;
  margin: 0;
}

.module-type-count {
  font-size: 12px;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.module-type-chevron {
  transition: transform 0.2s;
}

.module-type-section.collapsed .module-type-chevron {
  transform: rotate(-90deg);
}

.module-type-content {
  padding: 0;
}

.module-type-section.collapsed .module-type-content {
  display: none;
}

/* Category subgroups within input modules */
.detail-module-category {
  border-bottom: 1px solid #e2e8f0;
}

.detail-module-category:last-child {
  border-bottom: none;
}

.detail-category-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  gap: 8px;
  user-select: none;
}

.detail-category-header:hover {
  background: #f8fafc;
}

.detail-category-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.detail-category-count {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
}

.detail-category-chevron {
  transition: transform 0.2s;
}

.detail-module-category.collapsed .detail-category-chevron {
  transform: rotate(-90deg);
}

.detail-category-content {
  padding: 0 8px 8px;
}

.detail-module-category.collapsed .detail-category-content {
  display: none;
}

.detail-channel-group-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px 4px;
}

.detail-category-content .modules-table {
  margin-bottom: 0;
}

.modules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.modules-table th,
.modules-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.modules-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modules-table td {
  color: #334155;
}

.modules-table td:first-child {
  font-weight: 500;
}

.modules-table a {
  color: #1e40af;
  text-decoration: none;
}

.modules-table a:hover {
  text-decoration: underline;
}

.modules-table tbody tr:hover {
  background: #f8fafc;
}

/* Price area styling */
.product-price-area {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0;
}

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

.product-price-area .price-note {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Product detail layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.product-image-area {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: start;
}

.product-main-image {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-info-area {
  padding: 16px 0;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-main-image {
    max-height: 300px;
  }

  .options-table .option-name {
    width: auto;
  }
}
