@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-color: #4f46e5;
  --accent-light: rgba(79, 70, 229, 0.1);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --font-main: 'Outfit', sans-serif;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* Canvas Container */
.app-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  background-color: var(--bg-color);
}

#canvas3d {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Glassmorphic Panel Util */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* Custom Spinner */
.spinner-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spinner-rot 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--accent-color) transparent transparent transparent;
}

.spinner-ring div:nth-child(1) { animation-delay: -0.45s; }
.spinner-ring div:nth-child(2) { animation-delay: -0.3s; }
.spinner-ring div:nth-child(3) { animation-delay: -0.15s; }

.loading-progress {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.loading-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes spinner-rot {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Drag and Drop Zone Overlay */
.drag-drop-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.drag-drop-zone.active {
  opacity: 1;
  pointer-events: auto;
}

.drag-drop-content {
  padding: 48px;
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  border: 2px dashed var(--accent-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.drag-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

.drag-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.drag-drop-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.drag-drop-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ADMIN PANEL STYLES */
.admin-container {
  min-height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  overflow-y: auto;
  user-select: text;
}

.admin-container * {
  pointer-events: auto;
}

/* Login Wrapper */
.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  max-width: 420px;
  width: 100%;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
  text-align: center;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  font-family: var(--font-main);
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: #ffffff;
}

.error-message {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: none;
}

/* Dashboard Wrapper */
.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* Admin Header */
.admin-navbar {
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.user-tag strong {
  color: var(--text-main);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Admin Main Layout */
.admin-main {
  flex: 1;
  padding: 32px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 12px;
}

.admin-panel {
  padding: 28px;
  height: fit-content;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Products Table */
.table-container {
  overflow-x: auto;
  width: 100%;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.product-table th {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  letter-spacing: 0.05em;
}

.product-table td {
  padding: 16px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

.product-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.02);
}

.product-table img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.col-thumb {
  width: 70px;
}

.col-actions {
  width: 220px;
  white-space: nowrap;
}

/* Admin Action Buttons */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-main);
  border: none;
  transition: var(--transition-smooth);
}

.btn-view {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  margin-right: 8px;
}

.btn-view:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-edit {
  background: var(--accent-light);
  color: var(--accent-color);
  margin-right: 8px;
}

.btn-edit:hover {
  background: var(--accent-color);
  color: #ffffff;
}

.btn-delete {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.btn-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Form Styles */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn-success {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-success:hover {
  background: #059669;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-cancel {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex: 1;
}

.btn-cancel:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* File Upload Selectors */
.file-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.upload-zone-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-upload-zone {
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  gap: 4px;
}

.file-upload-zone:hover {
  border-color: var(--accent-color);
  background: var(--accent-light);
}

.file-upload-zone svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: var(--transition-smooth);
}

.file-upload-zone:hover svg {
  fill: var(--accent-color);
}

.file-upload-zone span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.file-upload-zone.uploaded {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.file-upload-zone.uploaded span {
  color: #059669;
}

.file-upload-zone.uploaded svg {
  fill: #10b981;
}

/* Responsive details for admin */
@media (max-width: 1024px) {
  .admin-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .admin-navbar {
    padding: 0 16px;
  }
  .file-upload-row {
    grid-template-columns: 1fr;
  }
  .product-table th:nth-child(3),
  .product-table td:nth-child(3) {
    display: none; /* Hide category on small screens */
  }
}

/* CATALOG GRID LAYOUT STYLES */
.catalog-body {
  background-color: #ffffff;
  color: var(--text-main);
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  user-select: text;
}

.admin-body {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
  user-select: text;
}

.catalog-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Catalog Header Section */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 24px;
}

.catalog-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.catalog-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.catalog-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 8px;
}

/* Category Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 100%;
}

.grid-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  z-index: 3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Card Hover Interactions */
.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

/* Footer Section */
.catalog-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.admin-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Error States */
.error-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #ef4444;
  font-weight: 500;
  font-size: 1rem;
}

/* Grid Breakpoints */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .catalog-container {
    padding: 32px 20px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .catalog-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Technical Specifications Admin Input Row */
.specs-form-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .specs-form-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .specs-form-row {
    grid-template-columns: 1fr;
  }
}

/* FLOATING INFO OVERLAY FOR 3D MODEL VIEWER */
.info-overlay {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 10;
  width: 380px;
  max-width: calc(100% - 64px);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.info-toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 12;
}

.info-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.08);
}

.info-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text-main);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 36px; /* spacing for toggle button */
}

.info-category-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.info-details {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.info-specs-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease, margin 0.4s ease, border-color 0.4s ease;
}

.specs-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* MINIMIZED STATE */
.info-overlay.minimized {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.info-overlay.minimized .info-toggle-btn svg {
  transform: rotate(180deg);
}

.info-overlay.minimized .viewer-variant-select-wrapper,
.info-overlay.minimized .info-specs-section {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-top-color: transparent !important;
  pointer-events: none;
}

@media (max-width: 600px) {
  .info-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 24px 24px 0 0;
    max-height: 42vh;
    overflow-y: auto;
    z-index: 100;
    background: rgba(255,255,255,0.95);
  }

  .info-title {
    font-size: 1.2rem;
  }

  .info-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  }
  
  .info-toggle-btn {
    top: 12px;
    right: 12px;
  }
  
  .info-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ADMIN PANEL VARIANT CONFIGURATOR STYLES */
.variants-toggle-group {
  display: flex;
  gap: 20px;
  padding: 8px 0;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.variant-configurator-section {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.3);
  padding: 20px;
  margin-top: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.variant-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-add-variant {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn-add-variant:hover {
  background: #4338ca;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.btn-add-variant svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.variant-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variant-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInSlide 0.3s ease;
}

.variant-fields-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: flex-end;
}

.btn-remove-variant {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-remove-variant:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-remove-variant svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.variant-file-zone {
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 8px;
  width: 100%;
}

.variant-file-zone:hover {
  border-color: var(--accent-color);
  background: var(--accent-light);
}

.variant-file-zone svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: var(--transition-smooth);
}

.variant-file-zone:hover svg {
  fill: var(--accent-color);
}

.variant-file-zone span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.variant-file-zone.uploaded {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.variant-file-zone.uploaded span {
  color: #059669;
}

.variant-file-zone.uploaded svg {
  fill: #10b981;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .variant-fields-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 3D VIEWER VARIANT CONFIGURATOR DROPDOWN STYLES */
.viewer-variant-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  max-height: 200px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.4s ease;
}

.viewer-variant-select-wrapper .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-custom-wrapper {
  position: relative;
  width: 100%;
}

.select-custom-wrapper select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-smooth);
}

.select-custom-wrapper select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: #ffffff;
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.select-custom-wrapper select:focus + .select-chevron {
  fill: var(--accent-color);
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 768px) {

  .info-overlay {
      position: fixed !important;
      bottom: 0 !important;
      left: 0 !important;
      width: 100% !important;
      max-height: 85vh !important;
      overflow-y: auto !important;
      transition: all .3s ease;
  }

  .info-overlay.minimized {
      transform: translateY(calc(100% - 140px));
  }

  .info-overlay:not(.minimized) {
      transform: translateY(0);
  }

}

.catalog-logo{
    height: 45px;
    width: auto;
    display: block;
}
