/* EVA DIAM shop by shape — gold / black, same tokens as Collection. */

.eds-shape {
  --eds-bg: #070708;
  --eds-gold: #e4c66a;
  --eds-gold-2: #c9a227;
  --eds-text: #f4f1ea;
  --eds-muted: #9a9aa3;
  --eds-sans: Montserrat, system-ui, sans-serif;
  --eds-side: clamp(22px, 2.6vw, 40px);
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto;
  right: auto;
  background: var(--edh-bg, var(--eds-bg));
  color: var(--edh-text, var(--eds-text));
  font-family: var(--edh-sans, var(--eds-sans));
  padding: clamp(22px, 3vw, 36px) var(--eds-side) clamp(24px, 3vw, 40px) !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.eds-shape *,
.eds-shape *::before,
.eds-shape *::after {
  box-sizing: border-box;
}

.ed-jump {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

body:has(.eds-shape) .entry-header,
body:has(.eds-shape) .page-header,
body:has(.eds-shape) h1.entry-title {
  display: none;
}

.elementor-section:has(.eds-shape),
.elementor-container:has(.eds-shape),
.elementor-element:has(.eds-shape),
.elementor-widget:has(.eds-shape),
.elementor-widget-wrap:has(.eds-shape),
.elementor-widget-container:has(.eds-shape),
.elementor-shortcode:has(.eds-shape),
.e-con:has(.eds-shape),
.e-con-inner:has(.eds-shape),
body:has(.eds-shape) .site,
body:has(.eds-shape) .site-main,
body:has(.eds-shape) #content,
body:has(.eds-shape) .content-area,
body:has(.eds-shape) .page-content,
body:has(.eds-shape) article,
body:has(.eds-shape) .entry-content,
body:has(.eds-shape) .elementor,
body:has(.eds-shape) .elementor-section,
body:has(.eds-shape) .elementor-section-boxed > .elementor-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

body.edh-site:has(.eds-shape) .site-main,
body.edh-site:has(.eds-shape) #content,
body.edh-site:has(.eds-shape) .page-content {
  padding-top: 0;
}

.eds-head {
  text-align: center;
  margin: 0 auto clamp(22px, 3vw, 34px);
  max-width: 56rem;
}

.eds-head__kicker {
  margin: 0 0 10px;
  font-family: var(--edh-sans, var(--eds-sans));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--edh-gold-t, var(--eds-gold));
}

.eds-head__title {
  margin: 0 0 12px;
  font-family: var(--edh-sans, var(--eds-sans));
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--edh-text, var(--eds-text));
}

.eds-head__text {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--edh-muted, var(--eds-muted));
}

.eds-head__kicker,
.eds-head__title,
.eds-head__text {
  opacity: 0;
  transform: translate3d(-42px, 0, 0);
  clip-path: inset(0 110% 0 -8px);
}

.eds-shape.is-in .eds-head__kicker,
.eds-shape.is-in .eds-head__title,
.eds-shape.is-in .eds-head__text {
  animation: eds-copy-in 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eds-shape.is-in .eds-head__kicker {
  animation-delay: 80ms;
}

.eds-shape.is-in .eds-head__title {
  animation-delay: 190ms;
}

.eds-shape.is-in .eds-head__text {
  animation-delay: 320ms;
}

@keyframes eds-copy-in {
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 -8% 0 -8px);
  }
}

.eds-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 28px) clamp(8px, 1.4vw, 22px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.eds-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
}

.eds-shape.is-in .eds-item {
  animation: eds-item-in 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eds-shape.is-in .eds-item:nth-child(1) { animation-delay: 280ms; }
.eds-shape.is-in .eds-item:nth-child(2) { animation-delay: 340ms; }
.eds-shape.is-in .eds-item:nth-child(3) { animation-delay: 400ms; }
.eds-shape.is-in .eds-item:nth-child(4) { animation-delay: 460ms; }
.eds-shape.is-in .eds-item:nth-child(5) { animation-delay: 520ms; }
.eds-shape.is-in .eds-item:nth-child(6) { animation-delay: 580ms; }
.eds-shape.is-in .eds-item:nth-child(7) { animation-delay: 640ms; }
.eds-shape.is-in .eds-item:nth-child(8) { animation-delay: 700ms; }
.eds-shape.is-in .eds-item:nth-child(n + 9) { animation-delay: 760ms; }

@keyframes eds-item-in {
  to {
    opacity: 1;
    transform: none;
  }
}

a.eds-item {
  cursor: pointer;
}

.eds-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 4px;
}

.eds-item__img {
  display: block;
  width: 88%;
  height: 88%;
  max-width: 118px;
  max-height: 118px;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.eds-item__ph {
  display: block;
  width: 72%;
  max-width: 96px;
  aspect-ratio: 1;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.06);
}

.eds-item__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  color: var(--edh-text, var(--eds-text));
  transition: color 180ms ease;
}

.eds-item:hover .eds-item__img,
.eds-item:focus-visible .eds-item__img {
  transform: translateY(-4px) scale(1.06);
}

.eds-item:hover .eds-item__ph,
.eds-item:focus-visible .eds-item__ph {
  border-color: var(--edh-gold-t, var(--eds-gold));
}

.eds-item:hover .eds-item__name,
.eds-item:focus-visible .eds-item__name {
  color: var(--edh-gold-t, var(--eds-gold));
}

.eds-item:focus-visible {
  outline: 1px solid var(--edh-gold-t, var(--eds-gold));
  outline-offset: 6px;
}

@media (max-width: 900px) {
  .eds-shape {
    padding: 20px 16px 24px !important;
  }

  .eds-head {
    margin-bottom: 16px;
  }

  .eds-head__kicker {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .eds-head__title {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .eds-head__text {
    max-width: none;
    font-size: 12px;
    line-height: 1.6;
  }

  .eds-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 12px;
  }
}

@media (max-width: 520px) {
  .eds-shape {
    padding: 20px 12px 24px !important;
  }

  .eds-head {
    margin-bottom: 16px;
  }

  .eds-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 8px;
  }

  .eds-item {
    gap: 8px;
  }

  .eds-item__name {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eds-head__title,
  .eds-head__text,
  .eds-head__kicker,
  .eds-item {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
  }

  .eds-item__img,
  .eds-item__name {
    transition: none;
  }

  .eds-item:hover .eds-item__img {
    transform: none;
  }
}
