/* RvtStore — Apple / Linear inspired minimal UI */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.apple-ui {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background: #fff;
}

body.apple-ui .bg-mesh {
  display: none;
}

body.apple-ui.is-home-spotlight .page-wrap {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

body.apple-ui.is-home-spotlight .sidebar.sidebar-ozon,
body.apple-ui.is-home-spotlight .catalog-toolbar {
  display: none;
}

body.apple-ui.is-home-spotlight.library-visible .sidebar.sidebar-ozon,
body.apple-ui.is-home-spotlight.library-visible .catalog-toolbar {
  display: block;
}

body.apple-ui.is-home-spotlight .page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.apple-ui.is-home-spotlight.library-visible .page-wrap {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: var(--page-max);
  gap: 24px;
  padding: 0 32px 48px;
}

body.apple-ui.is-home-spotlight:not(.library-visible) #product-grid {
  display: none;
}

body.apple-ui .site-header {
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
  background: #fff;
}

body.apple-ui .logo-text,
body.apple-ui .logo-icon {
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.apple-ui .top-nav a {
  font-size: 14px;
  color: #666;
}

body.apple-ui .top-nav a.active,
body.apple-ui .top-nav a:hover {
  color: #111;
}

/* Spotlight home */
.spotlight-home {
  text-align: center;
  padding: 48px 0 40px;
}

.spotlight-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #888;
  margin: 0 0 8px;
}

.spotlight-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #111;
}

.spotlight-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin: 0 0 32px;
  font-weight: 400;
}

.spotlight-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 28px;
}

.spotlight-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 17px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: #fafafa;
  transition: border-color 0.1s, background 0.1s;
}

.spotlight-input:focus {
  outline: none;
  border-color: #111;
  background: #fff;
}

.spotlight-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.spotlight-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  z-index: 50;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.spotlight-dropdown[hidden] {
  display: none;
}

.spotlight-dropdown button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: background 0.1s;
}

.spotlight-dropdown button:hover,
.spotlight-dropdown button:focus {
  background: #f5f5f5;
}

.spotlight-dropdown img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
}

.spotlight-dropdown-meta {
  font-size: 12px;
  color: #888;
}

.project-context {
  margin: 0 auto 24px;
  max-width: 560px;
}

.project-context-label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.project-context-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.project-chip {
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}

.project-chip:hover {
  transform: scale(1.02);
}

.project-chip.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.popular-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.popular-row a {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.1s;
}

.popular-row a:hover {
  border-bottom-color: #111;
  color: #111;
}

.popular-emoji {
  margin-right: 4px;
}

.spotlight-mission {
  margin-top: 40px;
  font-size: 13px;
  color: #999;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Apple cards — no shadow */
body.apple-ui .model-card--premium {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: none;
  transition: transform 0.1s ease;
}

body.apple-ui .model-card--premium:hover {
  transform: scale(1.01);
  box-shadow: none;
}

body.apple-ui .product-trust-badges--compact {
  display: none;
}

body.apple-ui .model-card-specs {
  color: #888;
}

/* Apple product page */
body.apple-ui.detail-page .detail-layout-3ddd {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
}

body.apple-ui .component-passport {
  margin: 20px 0;
  display: grid;
  gap: 16px;
}

body.apple-ui .passport-row {
  display: grid;
  gap: 2px;
}

body.apple-ui .passport-row dt {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

body.apple-ui .passport-row dd {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
}

body.apple-ui .passport-verified {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #d1fae5;
  background: #f0fdf4;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 8px;
}

body.apple-ui .btn-use-project {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease;
}

body.apple-ui .btn-use-project:hover {
  transform: scale(1.02);
}

body.apple-ui .btn-use-project.owned,
body.apple-ui .btn-use-project.is-free {
  background: var(--primary);
}

body.apple-ui .model-sidebar-apple {
  position: sticky;
  top: 24px;
}

body.apple-ui .model-sidebar-apple .model-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.apple-ui .model-rating-row {
  font-size: 14px;
  color: #666;
  margin: 8px 0 4px;
}

body.apple-ui .model-price-apple {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 12px 0 0;
  letter-spacing: -0.02em;
}

body.apple-ui .recommend-bar,
body.apple-ui .model-actions-row {
  display: none;
}

body.apple-ui .gallery-model-viewer {
  height: min(72vh, 640px);
}

body.apple-ui .gallery-viewport-wrap {
  min-height: min(72vh, 640px);
}

body.apple-ui .gallery-viewport img {
  max-height: min(72vh, 640px);
  object-fit: contain;
}

body.apple-ui .gallery-spec-panel {
  padding: 24px;
  overflow-y: auto;
  max-height: min(72vh, 640px);
}

body.apple-ui .gallery-spec-panel.hidden,
body.apple-ui .gallery-model-viewer.hidden {
  display: none !important;
}

body.apple-ui .hero-marketplace,
body.apple-ui .home-hero,
body.apple-ui .promo-banner {
  display: none !important;
}

body.apple-ui .model-card {
  box-shadow: none;
  border: 1px solid #e8e8e8;
}

body.apple-ui .detail-bottom-grid {
  margin-top: 48px;
  border-top: 1px solid #eee;
  padding-top: 32px;
}

@media (max-width: 900px) {
  body.apple-ui.is-home-spotlight.library-visible .page-wrap {
    grid-template-columns: 1fr;
  }

  body.apple-ui.detail-page .detail-layout-3ddd {
    grid-template-columns: 1fr;
  }
}
