/*
 * yurachi-seo.css
 * SEO helper styles + premium micro-interaction layer
 * Does NOT override visual design — additive only.
 */

/* ===== BREADCRUMB ===== */
.yr-breadcrumb {
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted, #999);
  letter-spacing: 0.04em;
}
.yr-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.yr-breadcrumb li + li::before {
  content: '/';
  margin-right: 4px;
  opacity: 0.4;
}
.yr-breadcrumb a {
  color: var(--muted, #999);
  text-decoration: none;
  transition: color 0.2s;
}
.yr-breadcrumb a:hover { color: var(--fg, #fff); }

/* ===== EDITORIAL REVERSE (About page alternating layout) ===== */
.yr-editorial--reverse .yr-editorial__media { order: 2; }
.yr-editorial--reverse .yr-editorial__copy { order: 1; }

/* ===== MISSION STATEMENT (About page) ===== */
.yr-statement {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.yr-statement .yr-kicker { display: block; }
.yr-statement__text {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}

/* ===== ABOUT CTA ===== */
.yr-about-cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.yr-about-cta__inner h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 28px;
}
.yr-about-cta__inner .yr-hero__actions {
  justify-content: center;
}

/* ===== PRODUCT PAGE BREADCRUMB ===== */
.yr-buy .yr-breadcrumb {
  margin-bottom: 20px;
}

/* ===== PREMIUM MICRO-ANIMATIONS ===== */

/* Smooth page reveal */
body { animation: yr-fade-in 0.35s ease-out both; }
@keyframes yr-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Product card hover — premium lift */
.yr-product-card {
  transition: transform 0.32s cubic-bezier(0.22,0.61,0.36,1),
              box-shadow 0.32s cubic-bezier(0.22,0.61,0.36,1);
  will-change: transform;
}
.yr-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* Category card hover */
.yr-category-card {
  transition: transform 0.3s cubic-bezier(0.22,0.61,0.36,1);
  overflow: hidden;
}
.yr-category-card img {
  transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
.yr-category-card:hover img {
  transform: scale(1.04);
}

/* Button hover */
.yr-btn {
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              transform 0.18s cubic-bezier(0.22,0.61,0.36,1),
              box-shadow 0.18s;
}
.yr-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.yr-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* Nav link underline animation */
.yr-nav-links a {
  position: relative;
}
.yr-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s cubic-bezier(0.22,0.61,0.36,1);
}
.yr-nav-links a:hover::after,
.yr-nav-links a[aria-current="page"]::after { width: 100%; }

/* Icon button hover */
.yr-icon-btn {
  transition: opacity 0.2s, transform 0.2s;
}
.yr-icon-btn:hover { transform: scale(1.08); }

/* Header smooth transition */
.yr-header {
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.yr-header.yr-header--scrolled {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Accordion smooth */
details summary { cursor: pointer; }
details[open] > *:not(summary) {
  animation: yr-accordion-open 0.25s ease-out both;
}
@keyframes yr-accordion-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Image gallery fade */
.yr-gallery__item img {
  transition: opacity 0.3s;
}
.yr-gallery__item img[loading="lazy"] {
  opacity: 0;
}
.yr-gallery__item img.loaded { opacity: 1; }

/* Size selector */
.yr-size-grid button {
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
}
.yr-size-grid button:hover:not(.selected) {
  transform: scale(1.05);
}

/* Chip filter */
.yr-chip {
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Footer marquee — smooth scroll */
.yr-footer__marquee {
  animation: yr-marquee 25s linear infinite;
}
@keyframes yr-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.yr-footer__marquee:hover { animation-play-state: paused; }

/* Mobile menu slide */
.yr-mobile-menu {
  transition: transform 0.3s cubic-bezier(0.22,0.61,0.36,1),
              opacity 0.3s;
}
.yr-mobile-menu[aria-hidden="true"] {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
.yr-mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Cart count badge */
.yr-count {
  transition: transform 0.2s cubic-bezier(0.22,0.61,0.36,1);
}
.yr-count.bump { transform: scale(1.4); }

/* Lazy image placeholder shimmer */
@keyframes yr-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.yr-product-card__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 800px 100%;
  animation: yr-shimmer 1.5s infinite;
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: inherit;
}
.yr-product-card__img-wrap.img-loaded::before { opacity: 0; }

/* Focus ring — accessibility */
*:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 3px;
  border-radius: 2px;
}

/* CLS prevention: reserve space for images */
.yr-hero__image { aspect-ratio: 16/9; overflow: hidden; }
.yr-category-card { aspect-ratio: 4/5; overflow: hidden; }
.yr-editorial__media img { display: block; width: 100%; height: auto; }

/* Responsive breadcrumb */
@media (max-width: 600px) {
  .yr-breadcrumb { font-size: 11px; }
  .yr-statement__text { font-size: clamp(24px, 7vw, 36px); }
  .yr-about-cta__inner .yr-hero__actions { flex-direction: column; align-items: stretch; }
}
