/* Éclorya — Boutique signature
 * Scope volontairement limité à .eclorya-shop-page / .eclorya-shop.
 */

.eclorya-shop-page {
  --eshop-paper: #fcfbf8;
  --eshop-cream: #f5eee3;
  --eshop-ink: #18140f;
  --eshop-soft: #6c6057;
  --eshop-gold: #ad824e;
  --eshop-gold-soft: #d8bd91;
  --eshop-line: rgba(24, 20, 15, .11);
  --eshop-shadow: 0 18px 50px rgba(53, 39, 24, .07);
  background: var(--eshop-paper);
}

.eclorya-shop-page .content-area,
.eclorya-shop-page .site-main,
.eclorya-shop-page #primary {
  margin: 0;
  padding: 0;
  max-width: none;
}

.eclorya-shop {
  background:
    radial-gradient(circle at 50% 0%, rgba(216,189,145,.13), transparent 30rem),
    var(--eshop-paper);
  color: var(--eshop-ink);
  font-family: "Work Sans", sans-serif;
  overflow: hidden;
}

.eclorya-shop *,
.eclorya-shop *::before,
.eclorya-shop *::after {
  box-sizing: border-box;
}

.eshop-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Intro */
.eshop-intro {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 2.2rem;
  text-align: center;
}

.eshop-intro-inner {
  max-width: 900px;
}

.eshop-kicker,
.eshop-card-kicker,
.eshop-royal-kicker {
  margin: 0 0 .85rem;
  color: var(--eshop-gold);
  font-family: "Work Sans", sans-serif;
  font-size: .69rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.eshop-intro .eshop-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.eshop-intro .eshop-kicker::before,
.eshop-intro .eshop-kicker::after {
  content: "";
  width: 62px;
  height: 1px;
  background: rgba(173,130,78,.42);
}

.eshop-intro h1 {
  margin: 0;
  color: var(--eshop-ink);
  font-family: "Bodoni Moda", serif;
  font-weight: 400;
  font-size: clamp(2.65rem, 5.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.eshop-lead {
  max-width: 660px;
  margin: 1.2rem auto 0;
  color: var(--eshop-soft);
  font-size: .98rem;
  line-height: 1.75;
}

.eshop-needs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 2.1rem;
}

.eshop-needs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .72rem 1.25rem;
  border: 1px solid rgba(173,130,78,.19);
  border-radius: 999px;
  background: rgba(245,238,227,.72);
  color: #5e534b;
  text-decoration: none;
  font-size: .82rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.eshop-needs a:hover,
.eshop-needs a:focus-visible {
  transform: translateY(-1px);
  background: var(--eshop-gold);
  border-color: var(--eshop-gold);
  color: #fffdf8;
}

/* 4 huiles */
.eshop-collection {
  padding: 1.35rem 0 clamp(4.5rem, 8vw, 7rem);
}

.eshop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.eshop-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--eshop-line);
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 10px 32px rgba(57,43,27,.035);
  scroll-margin-top: 130px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.eshop-card:target {
  border-color: rgba(173,130,78,.46);
  box-shadow: 0 0 0 4px rgba(173,130,78,.08), var(--eshop-shadow);
}

.eshop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eshop-shadow);
}

.eshop-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #eee5d8;
}

/* Kadence/WooCommerce peut imposer height:auto aux images.
 * On verrouille le remplissage pour éviter la grande zone beige sous le visuel. */
.eclorya-shop .eshop-card-media .eshop-card-image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.eshop-card:hover .eshop-card-image {
  transform: scale(1.025);
}

.eshop-card-body {
  padding: 1.25rem 1.25rem 1.35rem;
}

.eshop-card-kicker {
  margin-bottom: .45rem;
  font-size: .58rem;
  letter-spacing: .18em;
}

.eshop-card h2 {
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.eshop-card h2 a {
  color: var(--eshop-ink);
  text-decoration: none;
}

.eshop-card-needs {
  min-height: 2.8em;
  margin: .7rem 0 .9rem;
  color: var(--eshop-soft);
  font-size: .83rem;
  line-height: 1.58;
}

.eshop-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}

.eshop-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .38rem .62rem;
  border-radius: 999px;
  background: #f5efe5;
  color: #6f6154;
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.eshop-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .9rem;
  border-top: 1px solid var(--eshop-line);
}

.eshop-price,
.eshop-royal-price {
  color: var(--eshop-ink);
  font-family: "Josefin Sans", sans-serif;
  font-size: .98rem;
  font-weight: 500;
}

.eshop-price del,
.eshop-royal-price del {
  opacity: .5;
  font-size: .82em;
}

.eshop-price ins,
.eshop-royal-price ins {
  text-decoration: none;
}

.eshop-discover {
  color: #78552f;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
}

.eshop-discover span {
  display: inline-block;
  margin-left: .25rem;
  transition: transform .2s ease;
}

.eshop-discover:hover span {
  transform: translateX(3px);
}

/* Royal */
.eshop-royal-wrap {
  padding: 0 0 clamp(5rem, 9vw, 8rem);
  scroll-margin-top: 120px;
}

.eshop-royal {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 46vw, 560px);
  overflow: hidden;
  border-radius: 18px;
  background-image:
    linear-gradient(90deg, rgba(20,14,9,.82) 0%, rgba(20,14,9,.65) 35%, rgba(20,14,9,.18) 64%, rgba(20,14,9,.02) 100%),
    var(--eshop-royal-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 65px rgba(48,34,21,.13);
}

.eshop-royal-copy {
  position: relative;
  z-index: 1;
  width: min(590px, 60%);
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fbf6ec;
}

.eshop-royal-kicker {
  color: #d9bd88;
}

.eshop-royal h2 {
  margin: 0;
  color: #fffaf1;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
}

.eshop-royal-subtitle {
  margin: 1rem 0 0;
  color: #f4eadb;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.35;
}

.eshop-royal-text {
  max-width: 520px;
  margin: 1rem 0 0;
  color: rgba(251,246,236,.78);
  font-size: .84rem;
  line-height: 1.72;
}

.eshop-royal-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1.7rem;
}

.eshop-royal-facts span {
  padding-top: .7rem;
  border-top: 1px solid rgba(255,247,231,.22);
  color: rgba(255,249,238,.72);
  font-size: .62rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.eshop-royal-facts b {
  display: block;
  margin-bottom: .28rem;
  color: #fffaf1;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
}

.eshop-royal-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.eshop-royal-action > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .85rem 1.15rem;
  border: 1px solid #caa369;
  border-radius: 4px;
  background: #b88b51;
  color: #fffaf2;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}

.eshop-royal-action > a:hover {
  background: #a67842;
  transform: translateY(-1px);
}

.eshop-royal-price {
  color: #fff8ec;
}

/* Aide au choix */
.eshop-help {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(173,130,78,.14);
  background: linear-gradient(180deg, rgba(245,238,227,.28), rgba(252,251,248,0));
}

.eshop-help-inner {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  max-width: 980px;
}

.eshop-help-visual {
  text-align: center;
}

.eshop-help-visual img {
  display: block;
  width: min(100%, 310px);
  max-height: 310px;
  margin: 0 auto;
  object-fit: contain;
  filter: sepia(.12) contrast(.96);
}

.eshop-help-visual p {
  margin: .7rem 0 0;
  color: #9a7042;
  font-family: "La Belle Aurore", cursive;
  font-size: 1.15rem;
}

.eshop-help-copy h2 {
  margin: 0;
  color: var(--eshop-ink);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.eshop-help-copy > p:not(.eshop-kicker) {
  max-width: 620px;
  margin: 1rem 0 1.5rem;
  color: var(--eshop-soft);
  font-size: .87rem;
  line-height: 1.7;
}

.eshop-help-links {
  border-top: 1px solid var(--eshop-line);
}

.eshop-help-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem .2rem;
  border-bottom: 1px solid var(--eshop-line);
  color: #4d433c;
  text-decoration: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: .9rem;
  transition: color .2s ease, padding-left .2s ease;
}

.eshop-help-links a:hover {
  padding-left: .35rem;
  color: var(--eshop-gold);
}

.eshop-help-links b {
  color: var(--eshop-gold);
  font-weight: 400;
}

/* Kadence / Woo : enlever les restes d'archive quand notre template est actif */
.eclorya-shop-page .woocommerce-breadcrumb,
.eclorya-shop-page .woocommerce-products-header,
.eclorya-shop-page .woocommerce-result-count,
.eclorya-shop-page .woocommerce-ordering,
.eclorya-shop-page .woocommerce-pagination {
  display: none !important;
}

/* Responsive */
@media (max-width: 980px) {
  .eshop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eshop-card-media {
    aspect-ratio: 5 / 4;
  }

  .eshop-royal {
    min-height: 500px;
    background-position: 58% center;
  }

  .eshop-royal-copy {
    width: min(620px, 72%);
  }

  .eshop-help-inner {
    grid-template-columns: 1fr 1.35fr;
  }
}

@media (max-width: 700px) {
  .eshop-shell {
    width: min(100% - 28px, 1180px);
  }

  .eshop-intro {
    padding-top: 3.4rem;
  }

  .eshop-intro .eshop-kicker::before,
  .eshop-intro .eshop-kicker::after {
    width: 34px;
  }

  .eshop-needs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 .4rem;
    scrollbar-width: none;
  }

  .eshop-needs::-webkit-scrollbar {
    display: none;
  }

  .eshop-needs a {
    flex: 0 0 auto;
  }

  .eshop-grid {
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
  }

  .eshop-card {
    border-radius: 12px;
  }

  .eshop-card-media {
    aspect-ratio: 5 / 4;
  }

  .eshop-card-body {
    padding: .95rem .9rem 1rem;
  }

  .eshop-card h2 {
    font-size: 1.1rem;
  }

  .eshop-card-needs {
    min-height: 4em;
    font-size: .72rem;
  }

  .eshop-card-meta span:nth-child(2) {
    display: none;
  }

  .eshop-card-bottom {
    display: block;
  }

  .eshop-discover {
    display: inline-block;
    margin-top: .65rem;
  }

  .eshop-royal {
    align-items: flex-end;
    min-height: 610px;
    background-image:
      linear-gradient(0deg, rgba(20,14,9,.92) 0%, rgba(20,14,9,.72) 37%, rgba(20,14,9,.12) 70%, rgba(20,14,9,0) 100%),
      var(--eshop-royal-image);
    background-position: 66% center;
  }

  .eshop-royal-copy {
    width: 100%;
    padding: 1.6rem;
  }

  .eshop-royal-facts {
    grid-template-columns: 1fr 1fr;
  }

  .eshop-help-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .eshop-help-visual img {
    max-height: 220px;
  }

  .eshop-help-copy {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .eshop-grid {
    grid-template-columns: 1fr;
  }

  .eshop-card-media {
    aspect-ratio: 5 / 4;
  }

  .eshop-card-needs {
    min-height: 0;
  }

  .eshop-card-bottom {
    display: flex;
  }

  .eshop-discover {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eclorya-shop *,
  .eclorya-shop *::before,
  .eclorya-shop *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
