/* ═══════════════════════════════════════
   LA NUDITÉ — Art Deco Design System CSS
   Поверх Tailwind CSS
   ═══════════════════════════════════════ */

/* ═══ PALETTE — единый источник правды ═══ */
:root {
    --season: #DC9FB4;
    --burgundy: #800020;
    --burgundy-dark: #5a0219;
    --burgundy-light: #9a1438;
    --gold: #b5ab92;
    --gold-light: #c4b07a;
    --gold-muted: #8a7a50;
    --gold-faint: #d4c9a8;
    --ivory: #f5f0e8;
    --ivory-warm: #ede6db;
    --cream: #fafaf9;
    --white: #fffdf9;
    --text-dark: #2a1a1a;
    --text-muted: #7a6a6a;
}

[data-season="seiji"] { --season: #819C8B; }
[data-season="momiji"] { --season: #D57835; }
[data-season="ruri"] { --season: #1F4788; }
[data-season="kobai"] { --season: #DC9FB4; }

/* — BASE — */
::selection { background: var(--burgundy); color: var(--cream); }
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

/* — FOCUS & SCROLLBAR — */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ═══ ART DECO GEOMETRIC PATTERNS ═══ */
.deco-pattern-fans {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 A40 40 0 0 1 40 40 A40 40 0 0 1 80 80' fill='none' stroke='%23b5ab92' stroke-width='0.3' opacity='0.15'/%3E%3Cpath d='M-40 80 A40 40 0 0 1 0 40 A40 40 0 0 1 40 80' fill='none' stroke='%23b5ab92' stroke-width='0.3' opacity='0.15'/%3E%3Cpath d='M40 80 A40 40 0 0 1 80 40 A40 40 0 0 1 120 80' fill='none' stroke='%23b5ab92' stroke-width='0.3' opacity='0.15'/%3E%3C/svg%3E");
}
.deco-corner::before,
.deco-corner::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(181, 171, 146, 0.3);
}
.deco-corner::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.deco-corner::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* ═══ SCROLL REVEAL ANIMATIONS ═══ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-stagger > .reveal { transition-delay: calc(var(--i, 0) * 0.07s); }

/* ═══ ANIMATED DECO DIVIDER ═══ */
.deco-line-animated .line-left,
.deco-line-animated .line-right {
    width: 0;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.deco-line-animated.visible .line-left,
.deco-line-animated.visible .line-right { width: 100%; }
.deco-line-animated .diamond-inner {
    transform: rotate(45deg) scale(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.deco-line-animated.visible .diamond-inner { transform: rotate(45deg) scale(1); }

/* ═══ SHIMMER LINE ═══ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.gold-shimmer {
    background: linear-gradient(90deg, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

/* ═══ FLOATING DIAMONDS ═══ */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-8px) rotate(45deg); }
}
.floating-diamond { animation: float-slow 6s ease-in-out infinite; }

/* ═══ SCROLL PROGRESS BAR ═══ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    z-index: 9999;
    transition: width 0.1s;
}

/* ═══ NAV LINK UNDERLINE ═══ */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--burgundy);
    transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1), right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.active::after { left: 0; right: 0; }

/* ═══ BREADCRUMB ARROW ═══ */
.breadcrumb-arrow {
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--gold);
    position: relative;
    vertical-align: middle;
    margin: 0 8px;
}
.breadcrumb-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    transform: rotate(45deg);
}

/* ═══ PRODUCT CARD ENHANCED ═══ */
.product-card .card-image {
    position: relative;
    overflow: hidden;
}
.product-card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
    margin: 10px;
}
.product-card:hover .card-image::after {
    border-color: rgba(181, 171, 146, 0.35);
}
.product-card .deco-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.product-card .deco-accent svg { width: 100%; height: 100%; }
.product-card .deco-tl { top: 10px; left: 10px; transform: translate(-4px, -4px); }
.product-card .deco-tr { top: 10px; right: 10px; transform: translate(4px, -4px); }
.product-card .deco-bl { bottom: 10px; left: 10px; transform: translate(-4px, 4px); }
.product-card .deco-br { bottom: 10px; right: 10px; transform: translate(4px, 4px); }
.product-card:hover .deco-accent { opacity: 1; transform: translate(0, 0); }
.product-card .price-line {
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 6px;
}
.product-card:hover .price-line { width: 32px; }

@keyframes badge-appear {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.badge-animated { animation: badge-appear 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ═══ FILTER DRAWER STYLES ═══ */
.filter-section { position: relative; padding-left: 12px; }
.filter-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: 0.3;
}
.deco-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--ivory-warm);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
    flex-shrink: 0;
}
.deco-checkbox:checked { border-color: var(--burgundy); background: var(--burgundy); }
.deco-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--cream);
    transform: translate(-50%, -50%) rotate(45deg);
}
.deco-checkbox:hover { border-color: var(--gold); }

.filter-tag {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--ivory-warm);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}
.filter-tag:hover::before,
.filter-tag.active::before { transform: scaleX(1); }
.filter-tag:hover, .filter-tag.active { border-color: var(--burgundy); color: var(--cream); }
.filter-tag span { position: relative; z-index: 1; }

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--ivory-warm) 0%, var(--gold) 100%);
    outline: none;
    border-radius: 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--burgundy);
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(181,171,146,0.1);
    transition: box-shadow 0.3s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 8px rgba(181,171,146,0.15);
}
input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--burgundy);
    border: 1px solid var(--gold);
    border-radius: 0;
    transform: rotate(45deg);
    cursor: pointer;
}

.sort-select {
    background: transparent;
    border: 1px solid var(--ivory-warm);
    padding: 8px 32px 8px 14px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b5ab92' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.3s;
}
.sort-select:hover { border-color: var(--gold); }

/* ═══ PRODUCT PAGE: GALLERY ═══ */
.gallery-item { position: relative; overflow: hidden; }
.gallery-item .deco-frame {
    position: absolute; inset: 12px; border: 1px solid transparent;
    transition: border-color 0.5s; pointer-events: none; z-index: 2;
}
.gallery-item:hover .deco-frame { border-color: rgba(181,171,146,0.25); }

.video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 60px; height: 60px; border: 1px solid rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; cursor: pointer; z-index: 3;
    backdrop-filter: blur(4px); background: rgba(90,2,25,0.3);
}
.video-play:hover { background: rgba(128,0,32,0.7); border-color: rgba(255,255,255,0.9); }

@media (min-width: 1024px) {
    .product-info-sticky { position: sticky; top: 100px; }
}

.probe-tab {
    padding: 8px 20px; border: 1px solid var(--ivory-warm); text-align: center;
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s; flex: 1;
}
.probe-tab:hover { border-color: var(--gold); }
.probe-tab.active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

.color-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 14px; border: 1px solid var(--ivory-warm);
    cursor: pointer; transition: all 0.3s; font-size: 11px;
}
.color-chip:hover { border-color: var(--gold); }
.color-chip.active { border-color: var(--burgundy); }
.color-chip .swatch {
    width: 14px; height: 14px; transform: rotate(45deg);
    border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0;
}

.size-btn {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--ivory-warm); font-size: 11px; cursor: pointer; transition: all 0.3s;
}
.size-btn:hover { border-color: var(--gold); }
.size-btn.active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

.upsell-card { transition: all 0.3s; }
.upsell-card:hover { transform: translateY(-2px); }
.upsell-card .upsell-img::after {
    content: ''; position: absolute; inset: 0; border: 1px solid transparent;
    transition: border-color 0.3s; pointer-events: none; margin: 6px;
}
.upsell-card:hover .upsell-img::after { border-color: rgba(181,171,146,0.3); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1); }
.accordion-content.open { max-height: 500px; }

.form-input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--ivory-warm); background: transparent;
    font-size: 13px; font-family: 'Inter', sans-serif; color: var(--text-dark);
    transition: border-color 0.3s; outline: none;
}
.form-input:focus { border-color: var(--burgundy); }
.form-input::placeholder { color: var(--text-muted); }

.deco-step {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.deco-step span { transform: rotate(-45deg); }

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    .product-card .deco-accent { transition: none; }
    .gold-shimmer { animation: none; }
    .floating-diamond { animation: none; }
    .deco-line-animated .line-left,
    .deco-line-animated .line-right,
    .deco-line-animated .diamond-inner { transition: none; }
}

/* ═══ FLOWERS — sezonny backgrounds ═══ */
.season-bg-spring {
  background:
    radial-gradient(ellipse 55% 35% at 88% 15%, rgba(220,159,180,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 8% 85%, rgba(220,159,180,0.14) 0%, transparent 65%),
    #faf7f2;
}
.season-bg-summer {
  background:
    radial-gradient(ellipse 55% 35% at 88% 15%, rgba(129,156,139,0.20) 0%, transparent 65%),
    #faf7f2;
}
.season-bg-autumn {
  background:
    radial-gradient(ellipse 55% 35% at 88% 15%, rgba(213,120,53,0.18) 0%, transparent 65%),
    #faf7f2;
}
.season-bg-winter {
  background:
    radial-gradient(ellipse 55% 35% at 88% 15%, rgba(31,71,136,0.15) 0%, transparent 65%),
    #faf7f2;
}

.botanical-corner {
  position: absolute;
  bottom: 0;
  right: 40px;
  width: 80px;
  height: 140px;
  opacity: 0.16;
  pointer-events: none;
}

/* ═══ FLOWERS — Cormorant Garamond для italic-цитат и subheadings ═══ */
/* Используется вместо font-display italic — La Nudité не имеет italic-варианта */
.font-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

/* ═══ FLOWERS — переходы между секциями ═══ */
/* Тонкая золотая линия "прорастающая" через границу секций — не стык, а связка */
/* Botanical-corner — z-index чтобы был виден над фоном но под контентом */
.botanical-corner {
  z-index: 1;
}

/* ═══ FLOWERS — premium hover & motion ═══ */
/* Все hover-эффекты на интерактивных элементах — единая длительность и easing.
   cubic-bezier(0.22,1,0.36,1) — ease-out с длинным tail, читается как "элегантно затихает".
   ~340ms — быстро, но с внятным settle. */
.lux,
.lux a,
.lux button,
.lux > * {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 340ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Тонкий lift + золотая обводка на карточках капсулы при hover */
.lux-card {
  transition: transform 380ms cubic-bezier(0.22,1,0.36,1),
              box-shadow 380ms cubic-bezier(0.22,1,0.36,1),
              border-color 340ms cubic-bezier(0.22,1,0.36,1);
}
.lux-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(42,26,26,0.10), 0 2px 8px rgba(42,26,26,0.04);
}

/* Nav-link underline уже в lanudite.css — но усиливаем длительность */
.nav-link::after {
  transition: left 380ms cubic-bezier(0.22,1,0.36,1),
              right 380ms cubic-bezier(0.22,1,0.36,1) !important;
}

/* CTA-buttons — мягкий settle на hover */
.btn-lux {
  transition: background-color 280ms cubic-bezier(0.22,1,0.36,1),
              color 280ms cubic-bezier(0.22,1,0.36,1),
              transform 240ms cubic-bezier(0.22,1,0.36,1);
}
.btn-lux:hover { transform: translateY(-1px); }
.btn-lux:active { transform: translateY(0); }

/* Botanical-corner — z-index подняли над фоновым gradient'ом, но под текстом */
.botanical-corner {
  z-index: 1;
  transition: opacity 600ms cubic-bezier(0.22,1,0.36,1);
}

/* ═══ FLOWERS — расширенные ботанические элементы ═══ */
/* Парный botanical в левом верхнем углу — для секций где есть и низ-право (botanical-corner) */
.botanical-corner-tl {
  position: absolute;
  top: 0;
  left: 40px;
  width: 70px;
  height: 110px;
  opacity: 0.13;
  pointer-events: none;
  z-index: 1;
  transform: scaleY(-1);
}

/* Floating petal — мелкие лепестки в фоне hero */
.petal-float {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.35;
  animation: petal-drift 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes petal-drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25%      { transform: translate(8px, -6px) rotate(8deg); }
  50%      { transform: translate(-4px, -12px) rotate(-6deg); }
  75%      { transform: translate(6px, -4px) rotate(4deg); }
}

/* ═══ FLOWERS — переходы между секциями ═══ */
/* Тонкая золотая нить, прорастающая через стык двух секций */
.section-link {
  position: relative;
}
