/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.site-header nav {
  display: flex;
  gap: 20px;
  flex: 1;
}
.site-header nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}
.site-header nav a:hover {
  color: #fff;
}
.cart-icon {
  font-size: 1.2rem;
  cursor: pointer;
}
.cart-count {
  background: #4a90d9;
  color: #fff;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 10px;
  vertical-align: top;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.85rem;
  color: #888;
  padding: 16px 0;
}
.breadcrumbs a {
  color: #4a90d9;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ===== Product Layout ===== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Configurator iframe ===== */
.configurator-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.configurator-wrapper iframe {
  width: 100%;
  height: 600px;
  display: block;
}

/* ===== Product Info ===== */
.product-info h1 {
  font-size: 1.8rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.product-sku {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 16px;
}
.product-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}
.product-supplier {
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: #f0f7ff;
  border-radius: 6px;
  display: inline-block;
}

/* ===== Config Summary ===== */
.config-summary {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.config-summary h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #1a1a2e;
}
.config-summary table {
  width: 100%;
}
.config-summary td {
  padding: 4px 0;
  font-size: 0.9rem;
}
.config-summary td:first-child {
  color: #888;
  width: 100px;
}
.price {
  font-weight: 700;
  color: #1a1a2e;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: #4a90d9;
  color: #fff;
  width: 100%;
}
.btn-primary:hover {
  background: #357abd;
}
.btn-primary:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
}
.btn-secondary {
  background: #f0f0f0;
  color: #333;
}
.btn-secondary:hover {
  background: #e0e0e0;
}

/* ===== Confirmation Popup ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.confirmation-popup {
  background: #fff;
  border-radius: 12px;
  width: 480px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}
.popup-header h2 {
  font-size: 1.1rem;
  color: #1a1a2e;
}
.popup-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
}
.popup-close:hover {
  color: #333;
}
.popup-body {
  padding: 16px 24px;
}
.popup-product {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.product-thumb-placeholder {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.popup-product-details h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.popup-product-details ul {
  list-style: none;
}
.popup-product-details li {
  font-size: 0.85rem;
  padding: 2px 0;
  color: #666;
}
.popup-product-details .opt-label {
  color: #999;
}
.popup-product-details .opt-value {
  color: #333;
}
.popup-subtotal {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 1rem;
  font-weight: 600;
}
.popup-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 20px;
}
.popup-actions .btn {
  flex: 1;
  text-align: center;
}
