/* ==========================================================================
   ÓPTICA DONNATELLA - PROBADOR VIRTUAL 3D (VTO)
   Aesthetic: Luxury Luminous Boutique, Ivory, Champagne Gold & Charcoal
   Delicate, Modern, High-Precision & Fully Responsive
   ========================================================================== */

:root {
  --vto-bg: #f8f7f5;
  --vto-card: #ffffff;
  --vto-card-hover: #faf8f5;
  --vto-card-active: #fdfbf7;
  --vto-border: #e8e3dc;
  --vto-border-light: #f0ebe4;
  --vto-border-gold: rgba(184, 151, 108, 0.45);
  --vto-gold: #b8976c;
  --vto-gold-dark: #967448;
  --vto-gold-light: #dfcaa7;
  --vto-gold-glow: rgba(184, 151, 108, 0.22);
  --vto-text: #1a1a1a;
  --vto-muted: #596273;
  --vto-dim: #94a3b8;
  --vto-viewport-bg: #f3efe9;
  --vto-radius: 16px;
  --vto-font-head: 'Jost', -apple-system, sans-serif;
  --vto-font-body: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --vto-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --vto-shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --vto-shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.vto-page-body {
  background: var(--vto-bg);
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(184, 151, 108, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(184, 151, 108, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #fbfaf8 0%, #f6f4f0 100%);
  color: var(--vto-text);
  font-family: var(--vto-font-body);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Hero Section */
.vto-hero {
  padding: 36px 20px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.vto-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 151, 108, 0.12);
  border: 1px solid var(--vto-border-gold);
  color: var(--vto-gold-dark);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.vto-hero-title {
  font-family: var(--vto-font-head);
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--vto-text);
  margin-bottom: 10px;
  line-height: 1.25;
}

.vto-hero-title span {
  color: var(--vto-gold-dark);
  font-weight: 700;
  position: relative;
}

.vto-hero-subtitle {
  color: var(--vto-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto;
}

/* Main Interactive Layout */
.vto-container {
  max-width: 1360px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.vto-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .vto-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Stage / Viewport Card */
.vto-stage-card {
  background: var(--vto-card);
  border: 1px solid var(--vto-border);
  border-radius: var(--vto-radius);
  overflow: hidden;
  box-shadow: var(--vto-shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.vto-stage-header {
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--vto-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vto-modes {
  display: flex;
  gap: 6px;
  background: #f4f0eb;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--vto-border-light);
}

.vto-mode-btn {
  background: transparent;
  border: none;
  color: var(--vto-muted);
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.vto-mode-btn:hover {
  color: var(--vto-text);
  background: rgba(255, 255, 255, 0.6);
}

.vto-mode-btn.active {
  background: #ffffff;
  color: var(--vto-gold-dark);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.vto-fps {
  font-size: 12px;
  color: var(--vto-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-family: monospace;
}

.fps-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

/* Viewport Area */
.vto-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--vto-viewport-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .vto-viewport {
    aspect-ratio: 3 / 4;
  }
}

#vto-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Loader */
.vto-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.vto-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(184, 151, 108, 0.2);
  border-top-color: var(--vto-gold);
  border-radius: 50%;
  animation: vtoSpin 0.9s linear infinite;
}

@keyframes vtoSpin {
  to { transform: rotate(360deg); }
}

.vto-loader p {
  color: var(--vto-text);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 280px;
}

/* Face Guide */
.vto-face-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.vto-guide-oval {
  width: 200px;
  height: 270px;
  border: 2px dashed rgba(184, 151, 108, 0.5);
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
  box-shadow: 0 0 20px rgba(184, 151, 108, 0.15);
}

.vto-face-guide span {
  font-size: 12px;
  font-weight: 500;
  color: var(--vto-text);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--vto-border-light);
}

/* Shutter Buttons */
.vto-capture-btn, .vto-retake-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vto-gold);
  color: #ffffff;
  border: none;
  padding: 11px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(184, 151, 108, 0.35);
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.vto-capture-btn:hover, .vto-retake-btn:hover {
  background: var(--vto-gold-dark);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 151, 108, 0.45);
}

/* Mobile Side Selector Chips (alongside camera for phones) */
.vto-mobile-chips {
  position: absolute;
  right: 10px;
  top: 10px;
  bottom: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  z-index: 12;
  scrollbar-width: none;
}

.vto-mobile-chips::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .vto-mobile-chips {
    display: flex;
  }
}

.vto-chip {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--vto-border);
  border-radius: 12px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.vto-chip img {
  width: 48px;
  height: 26px;
  object-fit: contain;
}

.vto-chip span {
  font-size: 8px;
  color: var(--vto-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52px;
  margin-top: 2px;
}

.vto-chip.active {
  border: 2px solid var(--vto-gold);
  background: #fdfbf7;
  box-shadow: 0 0 10px var(--vto-gold-glow);
}

/* Adjustment Toolbar */
.vto-toolbar {
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--vto-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vto-control-item {
  flex: 1;
  min-width: 130px;
}

.vto-control-item label {
  display: block;
  font-size: 11px;
  color: var(--vto-muted);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vto-control-item input[type="range"] {
  width: 100%;
  accent-color: var(--vto-gold);
  cursor: pointer;
  height: 5px;
  background: #e5e0d8;
  border-radius: 3px;
}

.vto-reset-btn {
  background: #f4f0eb;
  border: 1px solid var(--vto-border);
  color: var(--vto-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vto-reset-btn:hover {
  background: var(--vto-gold);
  border-color: var(--vto-gold);
  color: #ffffff;
}

/* Catalog Sidebar */
.vto-catalog-sidebar {
  background: var(--vto-card);
  border: 1px solid var(--vto-border);
  border-radius: var(--vto-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--vto-shadow-md);
}

.vto-catalog-head h3 {
  font-family: var(--vto-font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--vto-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vto-catalog-head h3 i {
  color: var(--vto-gold-dark);
}

.vto-catalog-head p {
  font-size: 13px;
  color: var(--vto-muted);
  margin-top: 3px;
}

/* Category Filter Tabs */
.vto-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.vto-tabs::-webkit-scrollbar {
  height: 4px;
}
.vto-tabs::-webkit-scrollbar-thumb {
  background: #e2ddd5;
  border-radius: 2px;
}

.vto-tab {
  background: #f4f0eb;
  border: 1px solid var(--vto-border);
  color: var(--vto-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.vto-tab:hover {
  color: var(--vto-text);
  border-color: var(--vto-gold);
  background: #ffffff;
}

.vto-tab.active {
  background: var(--vto-gold);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--vto-gold);
  box-shadow: 0 2px 6px rgba(184, 151, 108, 0.25);
}

/* Search Box */
.vto-search-box {
  position: relative;
}

.vto-search-box input {
  width: 100%;
  background: #f9f8f6;
  border: 1px solid var(--vto-border);
  color: var(--vto-text);
  padding: 10px 14px 10px 36px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.vto-search-box input:focus {
  background: #ffffff;
  border-color: var(--vto-gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 108, 0.12);
}

.vto-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vto-dim);
  pointer-events: none;
}

/* Product List (Scrollable) */
.vto-product-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.vto-product-grid::-webkit-scrollbar {
  width: 5px;
}
.vto-product-grid::-webkit-scrollbar-thumb {
  background: #d8d0c5;
  border-radius: 3px;
}

.vto-product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #ebe6df;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vto-product-card:hover {
  background: var(--vto-card-hover);
  border-color: var(--vto-gold-light);
  transform: translateY(-1px);
}

.vto-product-card.active {
  background: #fdfbf7;
  border: 2px solid var(--vto-gold);
  box-shadow: 0 4px 14px rgba(184, 151, 108, 0.16);
}

.vto-card-thumb {
  width: 68px;
  height: 40px;
  background: #fbfaf8;
  border: 1px solid #f0ebe4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}

.vto-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vto-card-info {
  flex: 1;
  min-width: 0;
}

.vto-card-brand {
  font-size: 10px;
  color: var(--vto-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vto-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--vto-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.vto-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--vto-text);
  white-space: nowrap;
  text-align: right;
}

/* Selected Product Box */
.vto-selected-box {
  background: #fdfbf7;
  border: 1px solid var(--vto-gold-light);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(184, 151, 108, 0.08);
}

.vto-selected-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.vto-selected-tag {
  font-size: 10px;
  color: var(--vto-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.vto-selected-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--vto-text);
  line-height: 1.3;
}

.vto-selected-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--vto-text);
  white-space: nowrap;
}

.vto-selected-installments {
  font-size: 12px;
  color: var(--vto-muted);
}

.vto-selected-installments b {
  color: var(--vto-text);
}

.vto-selected-actions {
  display: flex;
  gap: 8px;
}

.btn-vto-buy {
  flex: 1;
  background: var(--vto-gold);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(184, 151, 108, 0.25);
}

.btn-vto-buy:hover {
  background: var(--vto-gold-dark);
  transform: translateY(-1px);
}

.btn-vto-detail {
  background: #ffffff;
  border: 1px solid var(--vto-border);
  color: var(--vto-text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-vto-detail:hover {
  background: #f4f0eb;
  border-color: var(--vto-gold);
}

/* Trust & Features Strip */
.vto-features-sec {
  max-width: 1360px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.vto-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.vto-feature-card {
  background: #ffffff;
  border: 1px solid var(--vto-border-light);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--vto-shadow-sm);
}

.vto-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(184, 151, 108, 0.12);
  border: 1px solid var(--vto-border-gold);
  color: var(--vto-gold-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.vto-feature-content h4 {
  font-family: var(--vto-font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--vto-text);
  margin-bottom: 4px;
}

.vto-feature-content p {
  font-size: 12px;
  color: var(--vto-muted);
  line-height: 1.5;
}
