/*
 * Nostalgia — collection page styles
 *
 * Includes: collection panels (categories + products),
 *           collection grid + cards, btn-ghost button system,
 *           collection-specific responsive rules.
 */

body[data-page="collection"] {
  --collection-cream: #f7f3eb;
  --collection-cream-paper: #faf7f2;
  --collection-cream-ink: #1a1612;
  --collection-visual-bg: #3a3632;
  --collection-visual-border: rgba(255, 248, 240, 0.12);
  --collection-stage: #0e0c0b;
  --collection-stage-accent: #c5a060;
}

[data-theme="light"] body[data-page="collection"] {
  --collection-visual-bg: #d4cec4;
}

[data-theme="dark"] body[data-page="collection"] {
  --collection-cream: #060605;
  --collection-cream-paper: #0c0b09;
  --collection-cream-ink: rgba(250, 247, 242, 0.92);
  --collection-visual-bg: #141312;
}

/* Luxury heading για το "Η συλλογή" — Cormorant Garamond italic, gold gradient */
.page-intro--collection h1 {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.022em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(212, 175, 55, 0.92) 55%,
    rgba(157, 120, 65, 0.86) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  text-shadow: 0 2px 22px rgba(197, 160, 96, 0.14);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .page-intro--collection h1 {
  background: linear-gradient(
    180deg,
    #e9c97e 0%,
    var(--accent) 55%,
    rgba(157, 120, 65, 0.8) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 26px rgba(197, 160, 96, 0.22);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.42));
}

.page-intro--collection .section-rule {
  margin-top: 1.2rem;
  max-width: 18rem;
}

.collection-section {
  padding: 0 4vw 4rem;
}

body.collection-products-open .page-intro--collection {
  display: none;
}

.collection-panel--categories {
  background: var(--collection-cream);
  color: var(--collection-cream-ink);
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(36, 28, 20, 0.08);
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(28, 22, 16, 0.06);
}

[data-theme="dark"] .collection-panel--categories {
  border-color: rgba(197, 160, 96, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.collection-panel--products {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(197, 160, 96, 0.07), transparent 52%),
    linear-gradient(180deg, #151311 0%, #0a0908 55%, #080706 100%);
  color: rgba(250, 247, 242, 0.92);
  margin-top: clamp(1rem, 3vw, 1.75rem);
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
  border-radius: 3px;
  border: 1px solid rgba(197, 160, 96, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.collection-panel--products[hidden] {
  display: none !important;
}

.collection-products-brandbar {
  margin: 0 0 0;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--collection-cream-ink);
  background: var(--collection-cream-paper);
  border-bottom: 1px solid rgba(36, 28, 20, 0.1);
}

[data-theme="dark"] .collection-products-brandbar {
  border-bottom-color: rgba(197, 160, 96, 0.18);
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.collection-back {
  flex-shrink: 0;
  align-self: flex-start;
}

.collection-panel--products .collection-back {
  border-color: rgba(212, 175, 55, 0.55);
  color: rgba(250, 247, 242, 0.92);
}

.collection-panel--products .collection-back:hover {
  background: rgba(197, 160, 96, 0.12);
  color: #faf7f2;
  border-color: var(--collection-stage-accent);
}

.collection-products-title {
  flex: 1;
  margin: 0;
  min-width: 12rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.95);
}

.collection-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.collection-grid--categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collection-grid--products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
}

.collection-card__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: var(--collection-visual-bg);
  border: 1px solid var(--collection-visual-border);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.collection-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 0.4rem;
  transition: transform 0.6s var(--reveal-ease, ease);
}

.collection-card:hover .collection-card__visual img {
  transform: scale(1.03);
}

.collection-panel--categories .collection-card__visual {
  background: #e0dbd2;
  border-color: rgba(36, 28, 20, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .collection-panel--categories .collection-card__visual {
  background: #141312;
  border-color: rgba(197, 160, 96, 0.28);
  box-shadow: inset 0 0 0 1px rgba(197, 160, 96, 0.06);
}

.collection-card:hover .collection-card__visual {
  transform: translateY(-3px);
  border-color: rgba(197, 160, 96, 0.45);
}

.collection-panel--products .collection-card:hover .collection-card__visual {
  border-color: rgba(212, 175, 55, 0.35);
}

.collection-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 1rem 1rem 1.15rem;
  background: var(--collection-cream-paper);
  border: 1px solid rgba(36, 28, 20, 0.1);
  border-top: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.collection-panel--categories .collection-card__copy {
  box-shadow: 0 8px 24px rgba(28, 22, 16, 0.08);
}

[data-theme="dark"] .collection-card__copy {
  border-color: rgba(197, 160, 96, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .collection-panel--categories .collection-card__copy {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.collection-card__copy--product {
  min-height: 8.5rem;
  justify-content: space-between;
}

.collection-card__copy--product:not(:has(.collection-card__title)) {
  justify-content: center;
}

.collection-panel--categories .collection-card__title {
  font-size: clamp(0.62rem, 1.05vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--collection-cream-ink);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.collection-panel--products .collection-card__title {
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--collection-cream-ink);
  margin: 0 0 1.1rem;
  max-width: 16rem;
}

.collection-card__footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.collection-card__copy--product .collection-card__footer {
  margin-top: 0;
  padding-top: 0;
}

.collection-card .btn-ghost {
  margin-top: 0;
  align-self: center;
}

.btn-ghost {
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 2.55rem;
  padding: 0.62rem 1.35rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  align-self: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.collection-panel--categories .collection-card .btn-ghost,
.collection-panel--products .collection-card .btn-ghost {
  border-color: rgba(90, 70, 50, 0.42);
  color: #3d2c20;
}

.btn-ghost:hover {
  background: var(--ghost-hover);
}

[data-theme="light"] .btn-ghost:hover {
  color: #f8f3e7;
  background: #3d2c20;
  border-color: #3d2c20;
}

.collection-panel--categories .collection-card .btn-ghost:hover,
.collection-panel--products .collection-card .btn-ghost:hover {
  color: #f8f3e7;
  background: #3d2c20;
  border-color: #3d2c20;
}

[data-theme="dark"] .collection-panel--categories .collection-card .btn-ghost,
[data-theme="dark"] .collection-panel--products .collection-card .btn-ghost {
  border-color: rgba(197, 160, 96, 0.5);
  color: var(--accent);
  background: transparent;
}

[data-theme="dark"] .collection-panel--categories .collection-card .btn-ghost:hover,
[data-theme="dark"] .collection-panel--products .collection-card .btn-ghost:hover {
  color: #faf7f2;
  background: rgba(197, 160, 96, 0.16);
  border-color: var(--accent);
}

.btn-ghost--back {
  letter-spacing: 0.12em;
  border-color: var(--accent);
  color: var(--accent);
}

.collection-card .btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.collection-card .btn-ghost:disabled:hover {
  background: transparent;
}

@media (max-width: 960px) {
  .collection-grid--categories,
  .collection-grid--products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .collection-grid--categories,
  .collection-grid--products {
    grid-template-columns: 1fr;
  }
}

/* ===== Collection stories — per-category lore with scroll reveal ===== */

/* Scroll-reveal primitives (mirrors home.css so collection page can animate) */
.collection-stories,
body[data-page="collection"] {
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="collection"] .home-reveal {
  opacity: 0;
  transform: translate3d(0, 1.6rem, 0) scale(0.985);
  filter: blur(4px);
  backface-visibility: hidden;
  transition:
    opacity 1s var(--reveal-ease),
    transform 1.1s var(--reveal-ease),
    filter 0.9s var(--reveal-ease);
  will-change: opacity, transform, filter;
}

body[data-page="collection"] .home-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  will-change: auto;
}

body[data-page="collection"] .home-reveal--d1.is-visible { transition-delay: 0.08s; }
body[data-page="collection"] .home-reveal--d2.is-visible { transition-delay: 0.18s; }
body[data-page="collection"] .home-reveal--d3.is-visible { transition-delay: 0.28s; }
body[data-page="collection"] .home-reveal--d4.is-visible { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  body[data-page="collection"] .home-reveal,
  body[data-page="collection"] .home-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    transition-delay: 0s;
    will-change: auto;
  }
}

.collection-stories {
  --story-ink: var(--collection-cream-ink);
  --story-muted: rgba(36, 28, 20, 0.62);
  --story-rule: rgba(90, 70, 50, 0.32);
  --story-accent: #c5a060;

  max-width: 920px;
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  color: var(--story-ink);
}

[data-theme="dark"] .collection-stories {
  --story-ink: rgba(250, 247, 242, 0.9);
  --story-muted: rgba(250, 247, 242, 0.55);
  --story-rule: rgba(197, 160, 96, 0.32);
  --story-accent: #e9c97e;
}

.collection-stories__head {
  text-align: center;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.collection-stories__heading {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--story-ink);
}

.collection-stories__rule {
  display: block;
  width: 3.6rem;
  height: 1px;
  margin: 0.95rem auto 0;
  background: linear-gradient(90deg, transparent, var(--story-accent), transparent);
  opacity: 0.7;
}

.collection-story {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
  border-top: 1px solid var(--story-rule);
}

.collection-story:first-of-type {
  border-top: none;
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.collection-story:last-of-type {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.collection-story__head {
  text-align: center;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  max-width: 38rem;
}

.collection-story__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--story-muted);
  margin-bottom: clamp(0.8rem, 1.6vw, 1.1rem);
}

.collection-story__title {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  letter-spacing: 0.018em;
  line-height: 1.18;
  margin: 0;
  background: linear-gradient(
    180deg,
    var(--story-accent) 0%,
    rgba(212, 175, 55, 0.92) 55%,
    rgba(157, 120, 65, 0.86) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--story-accent);
  text-shadow: 0 2px 22px rgba(197, 160, 96, 0.14);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}

[data-theme="dark"] .collection-story__title {
  background: linear-gradient(
    180deg,
    #e9c97e 0%,
    var(--story-accent) 55%,
    rgba(157, 120, 65, 0.85) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 26px rgba(197, 160, 96, 0.22);
}

.collection-story__title-rule {
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 1.1rem auto 0;
  background: var(--story-accent);
  opacity: 0.55;
}

.collection-story__body {
  max-width: 38rem;
  margin: 0 auto;
}

.collection-story__p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.78;
  letter-spacing: 0.005em;
  color: var(--story-ink);
  margin: 0 0 1.05rem;
  text-align: left;
}

.collection-story__p:last-child {
  margin-bottom: 0;
}

.collection-story__p--emphasis {
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  text-align: center;
  color: var(--story-accent);
  letter-spacing: 0.012em;
  margin: 1.3rem 0 1.5rem;
  line-height: 1.55;
}

.collection-story__p--lead {
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.collection-story__list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0 0 0 0.4rem;
}

.collection-story__li {
  position: relative;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--story-ink);
  padding: 0.32rem 0 0.32rem 1.4rem;
}

.collection-story__li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 0.55rem;
  height: 1px;
  background: var(--story-accent);
  opacity: 0.7;
}

.collection-story__motto {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  border-top: 1px solid var(--story-rule);
  border-bottom: 1px solid var(--story-rule);
}

.collection-story__motto-line {
  margin: 0;
  font-family: var(--font-body);
}

.collection-story__motto-line--whisper {
  font-style: italic;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  color: var(--story-muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.collection-story__motto-amp {
  display: block;
  margin: 0.65rem auto;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--story-accent);
  opacity: 0.75;
  line-height: 1;
}

.collection-story__motto-line--shout {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.18rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  background: linear-gradient(
    180deg,
    var(--story-accent) 0%,
    rgba(212, 175, 55, 0.85) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--story-accent);
}

[data-theme="dark"] .collection-story__motto-line--shout {
  background: linear-gradient(180deg, #e9c97e 0%, var(--story-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 640px) {
  .collection-story__p {
    text-align: left;
  }
  .collection-story__p--emphasis {
    text-align: center;
  }
}
