/* ============================================================
   VENVITY — Enhancements & Fine Details
   ============================================================ */

/* ---- Smooth page transitions ---- */
body {
  animation: pageFade 0.35s ease forwards;
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Focus visible outlines ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Selection color ---- */
::selection {
  background: rgba(111,143,134,.2);
  color: var(--text-dark);
}

/* ---- Scrollbar styling ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---- Product visual hover lift ---- */
.product-visual {
  transition: transform 0.4s ease;
}

/* ---- Tag hover states ---- */
.tag { transition: opacity 0.2s; }

/* ---- Product card link wrapper fix ---- */
.product-card a,
.related-card,
.system-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ---- Print styles ---- */
@media print {
  .site-nav,
  .site-footer,
  .cart-btn { display: none; }
  body { background: white; }
}

/* ---- Reduced motion support ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Additional spacing utility ---- */
.pt-nav { padding-top: 68px; }

/* ---- Eyebrow helper ---- */
.eyebrow-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ---- Link arrow style ---- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.arrow-link:hover {
  gap: 0.625rem;
  color: var(--primary-dark);
}

/* ---- Image ratio helper ---- */
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-1-1 { aspect-ratio: 1/1; }
.aspect-16-9 { aspect-ratio: 16/9; }

/* ---- Overflow clip for visuals ---- */
.clip { overflow: hidden; }

/* ---- Form error state ---- */
.form-input.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.form-error-msg {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.375rem;
}

/* ---- Button loading state ---- */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ---- Responsive nav fix ---- */
@media (max-width: 768px) {
  .nav-drawer {
    padding-left: clamp(1.25rem, 4vw, 2rem);
    padding-right: clamp(1.25rem, 4vw, 2rem);
  }
}

/* ---- Cart summary sticky fix at various viewports ---- */
@media (min-height: 700px) and (min-width: 1025px) {
  .cart-summary,
  .checkout-summary {
    max-height: calc(100vh - 68px - 3rem);
    overflow-y: auto;
  }
}
