/**
 * Copyright 2026 Cubesob Demo Template.
 * Theme Name: Ovia
 * Theme Type: E-Commerce
 * Developed by Mohammad Rehaan Nizami and Designed by Arsala Jeelani
 * All rights reserved.
 */

/* View Transition API Keyframes & Reset */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* Cubesob Dark Mode Variable Overrides */
html.dark,
html[data-theme="dark"] {
  --paper: #131211;
  --ink: #f4f0e8;
  --ink-soft: #c9c3b8;
  --muted: #8e897f;
  --line: #2d2a25;
  --apricot: #e8a97c;
  --cream: #1c1a17;
  --stone: #24211d;
  color-scheme: dark;
}

html.dark body,
html[data-theme="dark"] body {
  background-color: var(--paper);
  color: var(--ink);
}

html.dark .topbar,
html[data-theme="dark"] .topbar {
  background: rgba(19, 18, 17, 0.92);
  border-bottom-color: var(--line);
}

html.dark .menu,
html[data-theme="dark"] .menu {
  background: var(--paper);
}

html.dark .curtain,
html[data-theme="dark"] .curtain {
  background: var(--paper);
}

html.dark .pc__media,
html[data-theme="dark"] .pc__media,
html.dark .frame,
html[data-theme="dark"] .frame {
  background-color: var(--stone);
}

/* Light / Dark Mode Toggle Icon Visibility */
.theme-icon--sun {
  display: none;
}
.theme-icon--moon {
  display: block;
}

html.dark .theme-icon--sun,
html[data-theme="dark"] .theme-icon--sun {
  display: block;
}

html.dark .theme-icon--moon,
html[data-theme="dark"] .theme-icon--moon {
  display: none;
}

/* Cubesob Floating Control Bar & Demo Pill */
.cubesob-floating-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cubesob-floating-bar > * {
  pointer-events: auto;
}

.cubesob-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink, #111);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
  cursor: default;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cubesob-demo-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.cubesob-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #38bdf8);
  box-shadow: 0 0 8px var(--accent, #38bdf8);
  display: inline-block;
  animation: cubesobPulse 2.4s infinite ease-in-out;
}

@keyframes cubesobPulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.cubesob-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink, #111);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cubesob-theme-toggle:hover {
  transform: scale(1.08);
}

.cubesob-theme-toggle:active {
  transform: scale(0.95);
}

html.dark .cubesob-demo-pill,
html[data-theme="dark"] .cubesob-demo-pill {
  background: rgba(19, 18, 17, 0.88);
  color: #f4f0e8;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark .cubesob-theme-toggle,
html[data-theme="dark"] .cubesob-theme-toggle {
  background: rgba(19, 18, 17, 0.88);
  color: #f4f0e8;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .cubesob-floating-bar {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .cubesob-demo-pill {
    height: 40px;
    padding: 0 13px;
    font-size: 11.5px;
  }
  .cubesob-theme-toggle {
    width: 40px;
    height: 40px;
  }
}
