/* =============================================
   NOVA SHOP — Enhancements
   Liquid Glass · Hero Animations · Scroll FX · Chatbot · Logo · Watch
   ============================================= */

/* ── Logo Image ── */
.site-logo__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 5px 12px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.site-logo:hover .site-logo__img-wrap {
  transform: scale(1.05) rotate(-1.5deg);
  box-shadow: 0 6px 24px rgba(232,101,26,0.22);
}
.site-logo__img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* Footer logo image */
.footer-logo-img {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 4px 10px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.footer-logo-wrap:hover { transform: scale(1.04); }

/* ── Hero Watch Showcase — single clean element ── */
.hero-watch-showcase {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Watch frame — circular, 3D rotation, no extra decoration */
.hero-watch-frame {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 48px 120px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(255,255,255,0.05),
    0 0 80px rgba(232, 101, 26, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.20);
  animation: watch3DRotate 14s ease-in-out infinite;
  will-change: transform;
}

@keyframes watch3DRotate {
  0%   { transform: perspective(1200px) rotateY(0deg)   rotateX(0deg); }
  18%  { transform: perspective(1200px) rotateY(16deg)  rotateX(3deg); }
  36%  { transform: perspective(1200px) rotateY(6deg)   rotateX(-2deg); }
  54%  { transform: perspective(1200px) rotateY(-16deg) rotateX(3deg); }
  72%  { transform: perspective(1200px) rotateY(-6deg)  rotateX(-2deg); }
  90%  { transform: perspective(1200px) rotateY(10deg)  rotateX(2deg); }
  100% { transform: perspective(1200px) rotateY(0deg)   rotateX(0deg); }
}

/* Radial gradient mask — dissolves the white JPEG edges */
.hero-watch-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent  46%,
    rgba(17,17,17,0.50) 62%,
    rgba(17,17,17,0.86) 74%,
    rgba(17,17,17,0.98) 84%
  );
  pointer-events: none;
  z-index: 1;
}

/* Liquid glass top-shine */
.hero-watch-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42%;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.10) 0%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-watch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shift up to center the watch face; avoids excess bracelet at bottom */
  object-position: center 30%;
  display: block;
}

/*
 * Dial mask — blurs the brand name area on the dial.
 * Positioned over the upper-center of the dial where brand text sits.
 * Uses backdrop-filter so the blur applies to the image beneath.
 */
.watch-dial-mask {
  position: absolute;
  /* Calibrated to cover ~40-55% from top, center 40% of width */
  top: 36%;
  left: 26%;
  right: 26%;
  height: 19%;
  background: rgba(18, 18, 18, 0.28);
  backdrop-filter: blur(3px) brightness(0.88);
  -webkit-backdrop-filter: blur(3px) brightness(0.88);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-watch-frame   { width: 340px; height: 340px; }
  .hero-watch-showcase { right: 3%; }
}
@media (max-width: 1024px) {
  .hero-watch-showcase { display: none; }
}

/* Legacy hero image always hidden */
.hero .hero__image { display: none; }

/* ── Liquid Glass Base ── */
.glass {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08),
              inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ── Header Liquid Glass ── */
.site-header {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.07);
  border-bottom-color: rgba(255,255,255,0.4) !important;
}
.site-header.hero-top {
  background: rgba(17, 17, 17, 0.15) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
.site-header.hero-top .site-logo__text,
.site-header.hero-top .nav-category > a,
.site-header.hero-top .header-icon-btn {
  color: rgba(255,255,255,0.92);
}
.site-header.hero-top .site-logo__mark {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

/* ── Nav Dropdown — Glass ── */
.nav-dropdown {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13),
              inset 0 1px 0 rgba(255,255,255,0.6) !important;
}

/* ── Product Cards — Glass Hover ── */
.product-card {
  transition: transform 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-card__img-wrap {
  transition: box-shadow 0.35s ease;
}
.product-card:hover .product-card__img-wrap {
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
}
/* Glass tint overlay on hover */
.product-card__glass-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0) 60%,
    rgba(232,101,26,0.04) 100%
  );
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.product-card:hover .product-card__glass-hover { opacity: 1; }

/* Category cards — glass label */
.category-card__label {
  background: linear-gradient(
    to right,
    rgba(17,17,17,0.55) 0%,
    rgba(17,17,17,0.15) 100%
  );
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Search Overlay — Glass Input ── */
.search-overlay__input-wrap {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: 8px 0;
}

/* ── Auth Forms — Glass Card ── */
.auth-form-side {
  position: relative;
}
.auth-form-inner {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.08),
              0 1px 0 rgba(255,255,255,0.9) inset;
  border: 1px solid rgba(255,255,255,0.7);
}

/* Cart summary glass */
.cart-summary {
  background: rgba(250,250,248,0.90) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* Hero z-index stack */
.hero__content { z-index: 3; }
.hero__bg      { z-index: 0; }
.hero__scroll  { z-index: 3; }

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal--left {
  transform: translateX(-32px);
}
.reveal.reveal--right {
  transform: translateX(32px);
}
.reveal.reveal--scale {
  transform: scale(0.95) translateY(16px);
}
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}
/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.30s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.40s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: none;
}

/* ── Chatbot Widget ── */
#chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8888;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
#chatbot-bubble {
  width: 56px;
  height: 56px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232,101,26,0.45),
              0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
  flex-shrink: 0;
  position: relative;
}
#chatbot-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(232,101,26,0.55), 0 4px 12px rgba(0,0,0,0.15);
}
#chatbot-bubble svg { transition: opacity 0.2s, transform 0.3s; }
#chatbot-bubble .icon-chat,
#chatbot-bubble .icon-close {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
#chatbot-bubble .icon-close { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
#chatbot-widget.open #chatbot-bubble .icon-chat { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
#chatbot-widget.open #chatbot-bubble .icon-close { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }

/* Pulse ring */
#chatbot-bubble::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(232,101,26,0.4);
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.5); }
}

/* Unread badge */
#chatbot-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background: #DC2626;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat window */
#chatbot-window {
  width: 360px;
  max-height: 520px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18),
              0 2px 0 rgba(255,255,255,0.8) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom right;
}
#chatbot-widget.open #chatbot-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat header */
.chat-header {
  background: linear-gradient(135deg, var(--dark) 0%, #2a1a0a 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-header__avatar {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(232,101,26,0.3);
}
.chat-header__info { flex: 1; }
.chat-header__name { font-weight: 700; font-size: 0.9rem; color: white; }
.chat-header__status { font-size: 0.72rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 5px; }
.chat-header__status::before {
  content: '';
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }

/* Message bubbles */
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msgIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg--bot { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg__avatar {
  width: 28px; height: 28px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.chat-msg__bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.chat-msg--bot .chat-msg__bubble {
  background: rgba(240,239,237,0.95);
  backdrop-filter: blur(10px);
  color: var(--dark);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(229,227,223,0.8);
}
.chat-msg--user .chat-msg__bubble {
  background: var(--orange);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 12px rgba(232,101,26,0.3);
}

/* Quick replies */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 8px;
}
.chat-qr {
  padding: 6px 12px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232,101,26,0.25);
  border-radius: 40px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--orange);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chat-qr:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,101,26,0.3);
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(240,239,237,0.95);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(229,227,223,0.8);
  width: fit-content;
  display: none;
}
.chat-typing.show { display: flex; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--gray-mid);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* Chat input area */
.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(229,227,223,0.6);
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  border: 1.5px solid rgba(229,227,223,0.8);
  border-radius: 24px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-family: var(--font-sans);
  outline: none;
  background: rgba(255,255,255,0.9);
  color: var(--dark);
  transition: border-color 0.2s;
}
#chat-input:focus { border-color: var(--orange); }
#chat-input::placeholder { color: var(--gray-mid); }
#chat-send {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(232,101,26,0.35);
}
#chat-send:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(232,101,26,0.45); }

/* Responsive chatbot */
@media (max-width: 480px) {
  #chatbot-widget { bottom: 16px; right: 16px; }
  #chatbot-window { width: calc(100vw - 32px); max-height: 420px; }
}


/* Trust strip items — animate on scroll */
.trust-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.trust-item.visible { opacity: 1; transform: none; }
