/* ==========================================================================
   Reproduction de la page d'accueil fr.jellypin.com
   ========================================================================== */

:root{
  --ink:#2c2a29;
  --cream:#f1deab;
  --cream-light:#faf6ec;
  --burgundy:#6d1230;
  --line:#e3e0da;
  --grey:#6d6a66;
  --max:1265px;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  font-family:"Plus Jakarta Sans",Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.55;
  color:var(--ink);
  background:#fff;
}

img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
h1,h2,h3,p{margin:0}

.container{width:100%;max-width:var(--max);margin:0 auto;padding:0 20px}

/* Bouton contour, style Jellypin -------------------------------------------- */
.btn{
  display:inline-block;
  padding:8px 36px;
  font-size:14px;
  font-weight:600;
  line-height:1.6;
  border:1px solid var(--ink);
  border-radius:0;
  background:transparent;
  color:var(--ink);
  transition:background-color .2s ease,color .2s ease;
}
.btn:hover{background:var(--ink);color:#fff}
.btn--light{border-color:#fff;color:#fff}
.btn--light:hover{background:#fff;color:var(--ink)}

/* ==========================================================================
   Bandeau promo
   ========================================================================== */
.promo-bar{
  background:var(--ink);
  color:#fff;
  text-align:center;
  font-size:13px;
  letter-spacing:.02em;
  padding:9px 20px;
}
.promo-bar a{text-decoration:underline;text-underline-offset:3px}

/* ==========================================================================
   En-tete
   ========================================================================== */
.header{
  position:sticky;
  top:0;
  z-index:60;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header__top{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
  padding:18px 20px 14px;
  max-width:var(--max);
  margin:0 auto;
}

.search{position:relative;max-width:320px;width:100%}
.search input{
  width:100%;
  padding:9px 14px 9px 38px;
  font:inherit;
  font-size:14px;
  color:var(--ink);
  background:#f5f3ef;
  border:1px solid transparent;
  border-radius:999px;
  outline:none;
}
.search input::placeholder{color:var(--grey)}
.search input:focus{border-color:var(--ink);background:#fff}
.search svg{
  position:absolute;
  left:14px;top:50%;
  width:15px;height:15px;
  transform:translateY(-50%);
  fill:var(--ink);
  pointer-events:none;
}

.logo{display:block;text-align:center}
.logo__mark{
  display:inline-block;
  font-size:30px;
  font-weight:700;
  letter-spacing:.01em;
  line-height:1.1;
  color:var(--ink);
}
.logo__mark::first-letter{color:var(--burgundy)}

.header__actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:20px;
}
.header__actions a{position:relative;display:flex;align-items:center}
.header__actions svg{width:21px;height:21px;fill:none;stroke:var(--ink);stroke-width:1.5}
.cart-count{
  position:absolute;
  top:-6px;right:-8px;
  min-width:16px;height:16px;
  padding:0 4px;
  font-size:10px;
  font-weight:700;
  line-height:16px;
  text-align:center;
  color:#fff;
  background:var(--ink);
  border-radius:999px;
}

/* Navigation --------------------------------------------------------------- */
.nav{padding:0 20px 14px;max-width:var(--max);margin:0 auto}
.nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:6px 26px;
  margin:0;
  padding:0;
  list-style:none;
}
.nav a{
  display:inline-block;
  padding:6px 0;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-bottom:2px solid transparent;
}
.nav a:hover{border-bottom-color:var(--ink)}

/* ==========================================================================
   Carrousel heros
   ========================================================================== */
.hero{position:relative;overflow:hidden}
.hero__track{display:flex;transition:transform .55s cubic-bezier(.4,0,.2,1)}
.hero__slide{
  flex:0 0 100%;
  display:flex;
  min-height:704px;
}
.hero__panel{
  flex:0 0 33.333%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  padding:32px 48px;
  background:var(--cream);
}
.hero__panel h2{font-size:26px;font-weight:600;line-height:1.25}
.hero__panel p{font-size:15px;line-height:1.7}
.hero__panel .btn{align-self:flex-start}
.hero__panel--dark{background:var(--burgundy);color:#fff}
.hero__media{flex:1 1 auto;overflow:hidden}
.hero__media img{width:100%;height:100%;object-fit:cover}

.hero__arrow{
  position:absolute;
  top:50%;
  z-index:5;
  display:grid;
  place-items:center;
  width:40px;height:40px;
  transform:translateY(-50%);
  background:rgba(255,255,255,.85);
  border-radius:999px;
}
.hero__arrow--prev{left:16px}
.hero__arrow--next{right:16px}
.hero__arrow svg{width:14px;height:14px;stroke:var(--ink);stroke-width:2;fill:none}

.hero__dots{
  position:absolute;
  left:0;right:0;bottom:20px;
  display:flex;
  justify-content:center;
  gap:9px;
}
.hero__dots button{
  width:9px;height:9px;
  background:rgba(44,42,41,.3);
  border-radius:999px;
}
.hero__dots button[aria-current="true"]{background:var(--ink)}

/* ==========================================================================
   Rail de produits
   ========================================================================== */
.rail{padding:56px 0}
.rail__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}
.rail__head h2{font-size:30px;font-weight:600}
.rail__head a{font-size:14px;text-decoration:underline;text-underline-offset:4px}

.rail__viewport{position:relative}
.rail__scroller{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding-bottom:8px;
  scrollbar-width:none;
}
.rail__scroller::-webkit-scrollbar{display:none}

.card{
  flex:0 0 calc((100% - 80px)/5);
  scroll-snap-align:start;
  text-align:center;
}
.card__img{
  position:relative;
  aspect-ratio:1;
  overflow:hidden;
  background:#f7f5f1;
}
.card__img img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.card:hover .card__img img{transform:scale(1.04)}
.card__wish{
  position:absolute;
  top:10px;right:10px;
  display:grid;place-items:center;
  width:30px;height:30px;
  background:rgba(255,255,255,.9);
  border-radius:999px;
}
.card__wish svg{width:15px;height:15px;fill:none;stroke:var(--ink);stroke-width:1.5}
.card__name{margin-top:14px;font-size:14px;font-weight:600}
.card__price{margin-top:4px;font-size:14px;color:var(--grey)}

.rail__arrow{
  position:absolute;
  top:calc(50% - 30px);
  z-index:5;
  display:grid;place-items:center;
  width:38px;height:38px;
  transform:translateY(-50%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
}
.rail__arrow--prev{left:-14px}
.rail__arrow--next{right:-14px}
.rail__arrow svg{width:13px;height:13px;stroke:var(--ink);stroke-width:2;fill:none}

/* ==========================================================================
   Trio de categories
   ========================================================================== */
.trio{padding:40px 0 64px}
.trio__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.trio__item{text-align:center}
.trio__item figure{margin:0;overflow:hidden;aspect-ratio:634/761}
.trio__item img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.trio__item:hover img{transform:scale(1.04)}
.trio__item figcaption{margin-top:16px;font-size:17px;font-weight:600}

/* ==========================================================================
   Bloc de marque
   ========================================================================== */
.brand{padding:24px 0 64px;text-align:center}
.brand h2{max-width:760px;margin:0 auto;font-size:30px;font-weight:600;line-height:1.3}
.brand p{max-width:820px;margin:20px auto 0;font-size:15px;line-height:1.8;color:var(--grey)}

.brand__banner{margin:44px 0 0;aspect-ratio:16/7.5;overflow:hidden}
.brand__banner img{width:100%;height:100%;object-fit:cover}

.brand__cta{margin-top:44px}
.brand__cta h2{font-size:30px;font-weight:600}
.brand__cta .btn{margin-top:22px}

/* ==========================================================================
   Grille de categories
   ========================================================================== */
.cats{padding:16px 0 72px}
.cats__grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.cats__item{text-align:center}
.cats__item figure{margin:0;overflow:hidden;aspect-ratio:634/761;background:#f7f5f1}
.cats__item img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.cats__item:hover img{transform:scale(1.04)}
.cats__item figcaption{margin-top:14px;font-size:15px;font-weight:600}
.cats__item--last figure{display:grid;place-items:center;background:var(--cream-light)}
.cats__item--last span{font-size:17px;font-weight:600;text-decoration:underline;text-underline-offset:5px}

/* ==========================================================================
   Banniere Purrks
   ========================================================================== */
.purrks{position:relative;color:#fff;text-align:center}
.purrks__bg{position:absolute;inset:0}
.purrks__bg img{width:100%;height:100%;object-fit:cover}
.purrks__bg::after{content:"";position:absolute;inset:0;background:rgba(44,42,41,.35)}
.purrks__inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
  padding:88px 20px;
}
.purrks__logo{width:200px;height:auto}
.purrks p{max-width:560px;font-size:17px;font-weight:600;line-height:1.6}
.purrks span{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}

/* ==========================================================================
   Instagram
   ========================================================================== */
.insta{padding:72px 0}
.insta h2{margin-bottom:26px;font-size:30px;font-weight:600;text-align:center}
.insta__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.insta__grid figure{margin:0;aspect-ratio:1;overflow:hidden;background:#f7f5f1}
.insta__grid img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.insta__grid figure:hover img{transform:scale(1.06)}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter{background:var(--cream-light);padding:64px 20px;text-align:center}
.newsletter h2{font-size:26px;font-weight:600}
.newsletter p{margin-top:12px;font-size:15px;color:var(--grey)}
.newsletter form{display:flex;gap:10px;justify-content:center;margin-top:26px;flex-wrap:wrap}
.newsletter input{
  width:340px;
  padding:11px 16px;
  font:inherit;font-size:14px;
  background:#fff;
  border:1px solid var(--ink);
  outline:none;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer{border-top:1px solid var(--line);padding:60px 0 0;font-size:14px}
.footer h3{
  margin-bottom:16px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.footer ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.footer a:hover{text-decoration:underline;text-underline-offset:3px}

.footer__cols{display:grid;grid-template-columns:repeat(4,1fr);gap:40px}

.footer__region{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 26px;
  margin-top:48px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.footer__region strong{font-size:13px;letter-spacing:.06em;text-transform:uppercase}

.footer__bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:28px;
  padding:22px 0 40px;
  border-top:1px solid var(--line);
  color:var(--grey);
  font-size:13px;
}
.footer__social{display:flex;gap:18px}
.footer__social svg{width:19px;height:19px;fill:var(--ink)}

/* ==========================================================================
   Page categorie
   ========================================================================== */
.cat__head{padding:8px 0 26px;text-align:center}
.cat__head h1{font-size:34px;font-weight:600;letter-spacing:.04em}
.cat__intro{max-width:640px;margin:12px auto 0;font-size:15px;color:var(--grey)}

.cat__subs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 12px;
  margin-bottom:30px;
}
.cat__subs a{
  padding:8px 18px;
  font-size:13px;
  font-weight:600;
  border:1px solid var(--line);
  border-radius:999px;
  transition:border-color .2s ease,background-color .2s ease;
}
.cat__subs a:hover{border-color:var(--ink);background:var(--cream-light)}

.cat__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  font-size:14px;
}
.cat__filter{font-weight:600;text-decoration:underline;text-underline-offset:4px}
.cat__bar p{color:var(--grey)}
.cat__sort{display:flex;align-items:center;gap:8px;font-weight:600}
.cat__sort select{font:inherit;font-size:14px;padding:6px 8px;border:1px solid var(--line);background:#fff}

.cat__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px 20px;
  padding:34px 0 72px;
}
.cat__grid .card{flex:none}

.card__badge{
  position:absolute;
  top:10px;left:10px;
  z-index:2;
  padding:3px 9px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--ink);
  background:var(--cream);
}

.cat__empty{padding:40px 0 80px;text-align:center;color:var(--grey)}

/* ==========================================================================
   Fiche produit
   ========================================================================== */
.crumbs{padding:22px 0;font-size:13px;color:var(--grey)}
.crumbs a:hover{text-decoration:underline;text-underline-offset:3px}
.crumbs span{color:var(--ink)}

.pdp{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:start}

.pdp__gallery{display:grid;grid-template-columns:80px 1fr;gap:14px}
.pdp__thumbs{display:grid;gap:10px;align-content:start}
.pdp__thumbs button{padding:0;border:1px solid transparent;background:#f7f5f1;aspect-ratio:1;overflow:hidden}
.pdp__thumbs button[aria-current="true"]{border-color:var(--ink)}
.pdp__thumbs img{width:100%;height:100%;object-fit:cover}
.pdp__main{background:#f7f5f1;aspect-ratio:1;overflow:hidden}
.pdp__main img{width:100%;height:100%;object-fit:cover}

.pdp__info h1{font-size:30px;font-weight:600;line-height:1.25}
.pdp__price{margin-top:10px;font-size:22px;font-weight:600}

.pdp__rating{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px;color:var(--grey)}
.stars{color:#f0a500;letter-spacing:1px}
.pdp__rating a{text-decoration:underline;text-underline-offset:3px}

.pdp__sizelink{
  margin-top:18px;
  font-size:14px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px;
}

.pdp__dims{display:grid;gap:8px;margin:20px 0 0;font-size:14px}
.pdp__dims div{display:flex;gap:10px}
.pdp__dims dt{font-weight:600;min-width:96px}
.pdp__dims dd{margin:0;color:var(--grey)}

.pdp__wish{width:100%;margin-top:26px;padding:14px 36px;font-size:18px;font-weight:500;background:#fff}

.btn-cart{
  display:block;
  width:100%;
  margin-top:12px;
  padding:14px 36px;
  font-size:18px;
  font-weight:500;
  color:var(--ink);
  background:#33cee5;
  border:0;
  border-radius:0;
  transition:filter .2s ease;
}
.btn-cart:hover{filter:brightness(.93)}
.btn-cart:disabled{background:#e6e3dd;color:var(--grey);cursor:not-allowed;filter:none}

.pdp__added{margin-top:12px;font-size:14px;font-weight:600;color:#8a6d1f}

/* Accordeons --------------------------------------------------------------- */
.acc{margin-top:34px;border-top:1px solid var(--line)}
.acc__item{border-bottom:1px solid var(--line)}
.acc__item summary{
  padding:16px 0;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  list-style:none;
}
.acc__item summary::-webkit-details-marker{display:none}
.acc__item summary::after{content:"+";float:right;font-size:18px;font-weight:400}
.acc__item[open] summary::after{content:"\2013"}
.acc__body{padding:0 0 20px;font-size:15px;line-height:1.8;color:var(--grey)}
.acc__body p+p{margin-top:14px}

/* Avis --------------------------------------------------------------------- */
.reviews{margin-top:72px;padding-top:36px;border-top:1px solid var(--line)}
.reviews__head{display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.reviews__head h2{font-size:22px;font-weight:600;letter-spacing:.06em}
.reviews__head p{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--grey)}
.reviews__head .btn{margin-left:auto}
.reviews__note{margin-top:16px;max-width:760px;font-size:13px;line-height:1.7;color:var(--grey)}
.reviews__list{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;margin-top:30px}
.review h3{font-size:16px;font-weight:600}
.review .stars{margin-top:4px;font-size:14px}
.review__meta{margin:6px 0 8px;font-size:13px;color:var(--grey)}
.review p:last-child{font-size:15px;line-height:1.7}

/* ==========================================================================
   Adaptatif
   ========================================================================== */
@media (max-width:1100px){
  .card{flex-basis:calc((100% - 60px)/4)}
  .cats__grid{grid-template-columns:repeat(3,1fr)}
  .insta__grid{grid-template-columns:repeat(4,1fr)}
  .cat__grid{grid-template-columns:repeat(3,1fr)}
}

@media (max-width:900px){
  .header__top{grid-template-columns:1fr auto 1fr;gap:12px}
  .search{max-width:200px}
  .logo__mark{font-size:24px}
  .nav ul{gap:4px 18px}
  .nav a{font-size:12px}
  .hero__slide{flex-direction:column;min-height:0}
  .hero__panel{flex:0 0 auto;padding:32px 24px;order:2}
  .hero__media{aspect-ratio:4/3}
  .card{flex-basis:calc((100% - 40px)/3)}
  .trio__grid{grid-template-columns:1fr}
  .footer__cols{grid-template-columns:repeat(2,1fr)}
  .pdp{grid-template-columns:1fr;gap:32px}
  .reviews__list{grid-template-columns:1fr}
}

@media (max-width:640px){
  .header__top{grid-template-columns:1fr auto auto;padding:14px 16px 10px}
  .search{display:none}
  .nav{overflow-x:auto}
  .nav ul{flex-wrap:nowrap}
  .nav a{white-space:nowrap}
  .rail__head h2,.brand h2,.brand__cta h2,.insta h2{font-size:24px}
  .card{flex-basis:calc((100% - 20px)/2)}
  .cats__grid{grid-template-columns:repeat(2,1fr)}
  .insta__grid{grid-template-columns:repeat(3,1fr)}
  .cat__grid{grid-template-columns:repeat(2,1fr);gap:24px 14px}
  .cat__head h1{font-size:26px}
  .cat__bar{flex-wrap:wrap;gap:10px}
  .rail__arrow{display:none}
  .newsletter input{width:100%}
  .pdp__gallery{grid-template-columns:1fr}
  .pdp__thumbs{grid-auto-flow:column;grid-auto-columns:64px;overflow-x:auto;order:2}
  .pdp__info h1{font-size:24px}
}

/* ==========================================================================
   Tiroir panier / paiement
   ========================================================================== */
.drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:900}
.drawer-overlay.open{display:block}
.drawer{
  position:fixed;top:0;right:0;width:min(420px,100vw);height:100vh;
  background:#fff;z-index:901;
  display:flex;flex-direction:column;padding:24px 20px;gap:16px;
  transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y:auto;box-shadow:-4px 0 24px rgba(0,0,0,.12)
}
.drawer.open{transform:none}
.drawer__head{display:flex;justify-content:space-between;align-items:center}
.drawer__head h2{font-size:22px;font-weight:800;margin:0}
.drawer__close{font-size:24px;line-height:1;padding:4px 8px;border-radius:2px}
.drawer__close:hover{background:var(--cream)}

.drawer__items{display:flex;flex-direction:column;gap:16px}
.drawer__item{display:flex;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.drawer__item img{width:84px;height:84px;object-fit:contain;background:var(--cream-light);flex-shrink:0}
.drawer__item-info{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.drawer__item-name{font-size:16px;font-weight:600}
.drawer__item-price{font-size:20px;font-weight:800}
.drawer__qty{display:flex;align-items:center;gap:10px;margin-top:2px}
.drawer__qty-btn{
  width:26px;height:26px;border:1px solid var(--line);
  font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center
}
.drawer__qty-btn:hover{border-color:var(--burgundy)}
.drawer__qty span{min-width:16px;text-align:center;font-weight:700}
.drawer__remove{align-self:flex-start;font-size:13px;text-decoration:underline;color:var(--grey)}
.drawer__remove:hover{color:var(--burgundy)}
.drawer__empty{color:var(--grey);font-size:14px;padding:12px 0}

.drawer__shipping{
  background:var(--cream);padding:10px 14px;
  font-size:13px;font-weight:700;border-radius:2px
}

.drawer__spacer{flex:1}

.drawer__total{
  display:flex;justify-content:space-between;align-items:center;
  font-size:16px;font-weight:700;padding-top:12px;border-top:1px solid var(--line)
}
.drawer__promo{
  background:var(--cream);color:var(--burgundy);
  font-size:13px;font-weight:600;padding:8px 12px;margin:0
}
.drawer__checkout{
  display:block;width:100%;text-align:center;
  background:var(--ink);color:#fff;padding:16px;
  font-size:16px;font-weight:600;border:0;border-radius:0
}
.drawer__checkout:hover{background:var(--burgundy)}
