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

/* View Transition API animations */
::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 Floating Control Bar & Demo Pill
   Positioned bottom-left to avoid collisions with bottom-right widgets
   ========================================================================== */
.cubesob-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 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.92);
  color: #090d16;
  font-family: var(--font-body, "Hanken Grotesk", 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.12);
  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: #c2603a;
  box-shadow: 0 0 8px rgba(194, 96, 58, 0.8);
  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.12);
  background: rgba(255, 255, 255, 0.92);
  color: #090d16;
  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);
}

.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;
}

html.dark .cubesob-demo-pill,
html[data-theme="dark"] .cubesob-demo-pill {
  background: rgba(26, 17, 23, 0.88);
  color: #f7eee7;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

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

/* ==========================================================================
   Cubesob Luxury Dark Mode Theme Engine
   Preserves original native light theme 100% untouched on default load.
   When toggled to dark, unlocks an ultra-luxurious, deep botanical aesthetic.
   ========================================================================== */
html.dark,
html[data-theme="dark"] {
  --c-bg: #120b10;
  --c-paper: #1c1218;
  --c-sand: #241620;
  --c-sand-2: #321e2b;
  --c-ink: #f7eee7;
  --c-muted: #bda6b2;
  --c-line: rgba(247, 238, 231, 0.12);
  color-scheme: dark;
}

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

/* Scrolled solid navigation bar in dark mode */
html.dark .nav.is-solid:before,
html[data-theme="dark"] .nav.is-solid:before {
  background: rgba(24, 15, 21, 0.92) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--c-line) !important;
}

html.dark .nav.is-solid,
html[data-theme="dark"] .nav.is-solid {
  color: var(--c-ink) !important;
}

html.dark .nav.is-solid .nav__links a:hover,
html[data-theme="dark"] .nav.is-solid .nav__links a:hover {
  background: var(--c-sand) !important;
}

html.dark .nav.is-solid .search,
html[data-theme="dark"] .nav.is-solid .search {
  background: var(--c-sand) !important;
  color: var(--c-ink) !important;
}

html.dark .nav.is-solid .search input,
html[data-theme="dark"] .nav.is-solid .search input {
  color: var(--c-ink);
}

html.dark .nav.is-solid .search input::placeholder,
html[data-theme="dark"] .nav.is-solid .search input::placeholder {
  color: var(--c-muted);
}

/* Product Cards & Media in dark mode */
html.dark .pcard,
html[data-theme="dark"] .pcard {
  background: var(--c-paper);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html.dark .pcard__media,
html[data-theme="dark"] .pcard__media {
  background: var(--c-sand);
}

html.dark .tag,
html[data-theme="dark"] .tag {
  background: rgba(24, 15, 21, 0.85);
  color: #f7eee7;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark .pcard__swatches button[aria-checked="true"],
html[data-theme="dark"] .pcard__swatches button[aria-checked="true"] {
  box-shadow:
    0 0 0 2px var(--c-paper),
    0 0 0 3px var(--c-clay);
}

/* Reviews Panel in dark mode */
html.dark .reviews__panel,
html[data-theme="dark"] .reviews__panel {
  background: #1e131b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html.dark .review,
html[data-theme="dark"] .review {
  background: #251822;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cart Panel & Drawer in dark mode */
html.dark .cart__panel,
html[data-theme="dark"] .cart__panel {
  background: #170e15;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

html.dark .cart__head,
html[data-theme="dark"] .cart__head {
  border-bottom: 1px solid var(--c-line);
}

html.dark .cart__foot,
html[data-theme="dark"] .cart__foot {
  border-top: 1px solid var(--c-line);
}

/* Mobile Menu in dark mode */
html.dark .menu,
html[data-theme="dark"] .menu {
  background: #1c1218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

/* Buttons in dark mode */
html.dark .btn--dark,
html[data-theme="dark"] .btn--dark {
  background: var(--c-clay);
  color: #ffffff;
}

html.dark .btn--dark:hover,
html[data-theme="dark"] .btn--dark:hover {
  background: #d6714a;
}

html.dark .cart-btn,
html[data-theme="dark"] .cart-btn {
  background: var(--c-clay);
  color: #ffffff;
}

html.dark .cart-btn:hover,
html[data-theme="dark"] .cart-btn:hover {
  background: #d6714a;
}

/* Carousel and gallery arrows */
html.dark .arrow,
html[data-theme="dark"] .arrow {
  background: var(--c-paper);
  color: var(--c-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html.dark .arrow:hover,
html[data-theme="dark"] .arrow:hover {
  background: var(--c-clay);
  color: #ffffff;
}

/* Footer border */
html.dark .footer,
html[data-theme="dark"] .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
