/* ==================================================
   MELINOE ROUTINE SINGLE
================================================== */

.single-mel_routine{
  background:#faf8f5;
}

.mel-routine-single{
  --mel-black:#171717;
  --mel-gold:#b58d2f;
  --mel-cream:#faf8f5;
  --mel-beige:#f2ece5;
  --mel-border:#e7dfd6;

  width:100%;
  color:var(--mel-black);
  font-family:"Arimo", Arial, sans-serif;
}

.mel-routine-single *,
.mel-routine-single *::before,
.mel-routine-single *::after{
  box-sizing:border-box;
}


/* HERO */

/* ==================================================
   ROUTINE HERO
================================================== */

.mel-routine-single__hero{
  width:min(1260px, calc(100% - 48px));
  margin:0 auto;
  padding:70px 0 90px;
}

.mel-routine-single__hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(420px, .82fr);
  align-items:center;
  gap:80px;
}

.mel-routine-single__hero-content{
  max-width:650px;
}

.mel-routine-single__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;

  margin-bottom:20px;

  font-size:11px;
  font-weight:700;
  letter-spacing:2.2px;
  color:var(--mel-gold);
}

.mel-routine-single__eyebrow::before{
  content:"";
  width:34px;
  height:1px;
  background:var(--mel-gold);
}

.mel-routine-single__heading{
  margin:0;

  font-size:clamp(48px, 5.5vw, 76px);
  line-height:1.02;
  letter-spacing:-3px;
  font-weight:500;
}

.mel-routine-single__intro{
  max-width:570px;
  margin:25px 0 0;

  font-size:16px;
  line-height:1.8;
  color:#6f6963;
}

.mel-routine-single__intro p:last-child{
  margin-bottom:0;
}


/* META CHIPS */

.mel-routine-single__meta{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:30px;
}

.mel-routine-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 15px;

  border:1px solid #ded5cb;
  border-radius:999px;

  background:#fff;

  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;

  color:#504a45;
}


/* HERO IMAGE */

.mel-routine-single__hero-image{
  position:relative;
  overflow:hidden;

  min-height:540px;
  border-radius:30px;

  background:var(--mel-beige);
}

.mel-routine-single__hero-image img{
  display:block;
  width:100%;
  height:540px;
  object-fit:cover;
}

.mel-routine-single__image-badge{
  position:absolute;
  left:24px;
  bottom:24px;

  display:inline-flex;
  align-items:center;

  min-height:36px;
  padding:0 16px;

  border-radius:999px;

  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);

  color:#28231f;

  font-size:9px;
  font-weight:700;
  letter-spacing:1.5px;
}


/* TABLET */

@media(max-width:980px){

  .mel-routine-single__hero-grid{
    grid-template-columns:1fr;
    gap:45px;
  }

  .mel-routine-single__hero-content{
    max-width:760px;
  }

  .mel-routine-single__hero-image{
    min-height:460px;
  }

  .mel-routine-single__hero-image img{
    height:460px;
  }

}


/* MOBILE */

@media(max-width:680px){

  .mel-routine-single__hero{
    width:min(100% - 32px, 1260px);
    padding:50px 0 65px;
  }

  .mel-routine-single__hero-grid{
    gap:35px;
  }

  .mel-routine-single__heading{
    font-size:44px;
    letter-spacing:-2px;
  }

  .mel-routine-single__intro{
    font-size:15px;
  }

  .mel-routine-single__hero-image{
    min-height:370px;
    border-radius:22px;
  }

  .mel-routine-single__hero-image img{
    height:370px;
  }

}


/* STEPS AREA */

.mel-routine-single__steps{
  padding:80px 24px 100px;
  background:#fff;
	padding-bottom:0 !important;
  margin-bottom:0 !important;
}

.mel-routine-single__steps-head{
  width:min(760px, 100%);
  margin:0 auto 55px;
  text-align:center;
}

.mel-routine-single__small-title{
  display:block;
  margin-bottom:12px;

  font-size:11px;
  font-weight:700;
  letter-spacing:2.2px;
  color:var(--mel-gold);
}

.mel-routine-single__steps-head h2{
  margin:0;

  font-size:clamp(32px, 4vw, 50px);
  line-height:1.08;
  font-weight:500;
  letter-spacing:-1.5px;
}

.mel-routine-single__steps-head p{
  max-width:560px;
  margin:18px auto 0;

  color:#77716b;
  font-size:16px;
  line-height:1.7;
}


/* GRID */

.mel-routine-single__grid{
  width:min(1260px, 100%);
  margin:0 auto;

  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:24px;
}


/* PRODUCT CARD */

.mel-routine-card{
  position:relative;
  overflow:hidden;

  background:var(--mel-cream);
  border:1px solid var(--mel-border);
  border-radius:26px;

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.mel-routine-card:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 55px rgba(20,20,20,.08);
}

.mel-routine-card__top{
  min-height:74px;
  padding:20px 24px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.mel-routine-card__number{
  font-size:30px;
  font-weight:400;
  letter-spacing:-1px;
  color:var(--mel-gold);
}

.mel-routine-card__step{
  font-size:11px;
  font-weight:700;
  letter-spacing:1.7px;
  text-transform:uppercase;
  color:#5e5852;
}


/* PRODUCT IMAGE */

.mel-routine-card__image{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;

  min-height:390px;
  padding:32px;

  background:var(--mel-beige);
}

.mel-routine-card__image img{
  display:block;
  width:100%;
  max-width:310px;
  height:320px;
  object-fit:contain;

  transition:transform .4s ease;
}

.mel-routine-card:hover .mel-routine-card__image img{
  transform:scale(1.035);
}


/* PRODUCT INFO */

.mel-routine-card__body{
  padding:28px 28px 30px;
}

.mel-routine-card__body h3{
  margin:0;

  font-size:21px;
  line-height:1.35;
  font-weight:600;
}

.mel-routine-card__body h3 a{
  color:var(--mel-black);
  text-decoration:none;
}

.mel-routine-card__price{
  margin-top:12px;

  font-size:17px;
  font-weight:700;
  color:var(--mel-black);
}

.mel-routine-card__price del{
  opacity:.5;
  margin-right:5px;
}

.mel-routine-card__price ins{
  text-decoration:none;
}

.mel-routine-card__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-top:22px;
  min-height:46px;
  padding:0 24px;

  border:1px solid var(--mel-black);
  border-radius:999px;

  font-size:11px;
  font-weight:700;
  letter-spacing:1px;

  color:var(--mel-black);
  text-decoration:none;

  transition:
    background .25s ease,
    color .25s ease;
}

.mel-routine-card__button:hover{
  background:var(--mel-black);
  color:#fff;
}

/* ==================================================
   ROUTINE CARD - APPLICATION INSTRUCTIONS
================================================== */

.mel-routine-card__instruction{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #e9e2da;
}

.mel-routine-card__instruction-label{
  display:block;
  margin-bottom:7px;

  font-size:10px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;

  color:#b58d2f;
}

.mel-routine-card__instruction p{
  margin:0;

  font-size:13px;
  line-height:1.65;

  color:#666;
}


/* ==================================================
   ROUTINE STEPS - FLOW ARROWS
================================================== */

.mel-routine-single__grid{
  position:relative;
  overflow:visible !important;
}

.mel-routine-card{
  position:relative;
  overflow:visible !important;
}

/* Βελάκι μεταξύ των cards */
.mel-routine-card:not(:last-child)::after{
  content:"→";

  position:absolute;
  top:50%;
  right:-24px;

  width:42px;
  height:42px;

  display:flex;
  align-items:center;
  justify-content:center;

  transform:translateY(-50%);

  background:#fff;
  border:1px solid #e5d8c8;
  border-radius:50%;

  color:#b58d2f;
  font-size:20px;
  line-height:1;

  box-shadow:0 5px 18px rgba(0,0,0,.08);

  z-index:999;
  pointer-events:none;
}

/* Φέρνουμε τα arrows πάνω από την επόμενη card */
.mel-routine-card:nth-child(1){
  z-index:3;
}

.mel-routine-card:nth-child(2){
  z-index:2;
}

.mel-routine-card:nth-child(3){
  z-index:1;
}


/* MOBILE */
@media (max-width:767px){

  .mel-routine-card:not(:last-child){
    margin-bottom:50px;
  }

  .mel-routine-card:not(:last-child)::after{
    content:"↓";

    top:auto;
    right:auto;
    bottom:-47px;
    left:50%;

    transform:translateX(-50%);
  }

}
/* BOTTOM SECTION */

.mel-routine-single__footer{
  width:min(1180px, calc(100% - 40px));
  margin:80px auto;
  padding:70px 60px;

  text-align:center;

  background:var(--mel-beige);
  border-radius:30px;
}

.mel-routine-single__footer > span{
  display:block;
  margin-bottom:14px;

  color:var(--mel-gold);
  font-size:11px;
  font-weight:700;
  letter-spacing:2px;
}

.mel-routine-single__footer h2{
  max-width:780px;
  margin:0 auto;

  font-size:clamp(30px,4vw,48px);
  line-height:1.1;
  font-weight:500;
  letter-spacing:-1px;
}

.mel-routine-single__footer p{
  max-width:650px;
  margin:20px auto 0;

  font-size:16px;
  line-height:1.7;
  color:#6e6862;
}


/* TABLET */

@media (max-width:980px){

  .mel-routine-single__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}


/* MOBILE */

@media (max-width:680px){

  .mel-routine-single__hero{
    padding:65px 0 50px;
  }

  .mel-routine-single__heading{
    font-size:42px;
    letter-spacing:-1.5px;
  }

  .mel-routine-single__steps{
    padding:60px 18px 70px;
  }

  .mel-routine-single__grid{
    grid-template-columns:1fr;
  }

  .mel-routine-card__image{
    min-height:320px;
  }

  .mel-routine-card__image img{
    height:270px;
  }

  .mel-routine-single__footer{
    margin:55px auto;
    padding:50px 25px;
  }

}

/* ==================================================
   ROUTINE FOOTER / SKIN TIP
================================================== */

.mel-routine-single__footer{
  text-align:center;
}

.mel-routine-single__footer-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-top:24px;
  padding:11px 20px;

  border:1px solid #171717;
  border-radius:999px;

  font-size:11px;
  font-weight:700;
  letter-spacing:.8px;
  text-decoration:none;

  color:#171717;

  transition:.25s ease;
}

.mel-routine-single__footer-link:hover{
  background:#171717;
  color:#fff;
}

/* ==================================================
   REMOVE DEFAULT THEME POST ELEMENTS FROM ROUTINES
================================================== */

/* Hide Woodmart default header only on Routines */
/* Default post header */
.single-mel_routine .wd-single-post-header{
    display:none !important;
}

/* Default social sharing */
.single-mel_routine .wd-post-share,
.single-mel_routine .wd-social-icons,
.single-mel_routine .wd-social-icons-wrapper,
.single-mel_routine .share-post{
    display:none !important;
}

/* ==================================================
   MELINOE - COMPLETE YOUR ROUTINE
================================================== */

.mel-routine-buy{
  width:min(1120px, calc(100% - 40px));

  /* Πιο κοντά στις product cards */
  margin:24px auto 58px;

  padding:38px 44px;

  display:grid;
  grid-template-columns:1.2fr .9fr;
  align-items:center;
  gap:50px;

  background:#171717;
  border-radius:24px;

  color:#fff;

  box-shadow:0 16px 40px rgba(0,0,0,.10);
}


/* ==================================================
   LEFT SIDE
================================================== */

.mel-routine-buy__content{
  max-width:590px;
}

.mel-routine-buy__eyebrow{
  display:block;

  margin-bottom:13px;

  font-size:11px;
  line-height:1;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;

  color:#c6a15b;
}

.mel-routine-buy__content h2{
  margin:0 0 15px;

  font-size:34px;
  line-height:1.15;
  font-weight:500;

  color:#fff;
}

.mel-routine-buy__content p{
  max-width:520px;

  margin:0;

  font-size:14px;
  line-height:1.7;

  color:rgba(255,255,255,.72);
}


/* ==================================================
   RIGHT SIDE
================================================== */

.mel-routine-buy__action{
  min-width:0;

  padding-left:40px;

  border-left:1px solid rgba(255,255,255,.18);
}

.mel-routine-buy__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:25px;

  margin-bottom:20px;
}

.mel-routine-buy__products{
  position:relative;

  padding-left:42px;

  font-size:15px;
  font-weight:500;

  color:#fff;
}


/* Μικρό shopping bag icon */
.mel-routine-buy__products::before{
  content:"";

  position:absolute;
  left:0;
  top:50%;

  width:30px;
  height:30px;

  transform:translateY(-50%);

  border:1px solid #b58d2f;
  border-radius:50%;
}


/* Bag handle */
.mel-routine-buy__products::after{
  content:"";

  position:absolute;

  left:10px;
  top:3px;

  width:9px;
  height:8px;

  border:1px solid #b58d2f;
  border-bottom:0;
  border-radius:8px 8px 0 0;
}


.mel-routine-buy__price{
  white-space:nowrap;

  font-size:30px;
  line-height:1;
  font-weight:600;

  color:#fff;
}

.mel-routine-buy__price .woocommerce-Price-amount,
.mel-routine-buy__price .woocommerce-Price-currencySymbol{
  color:inherit;
}


/* ==================================================
   BUTTON
================================================== */

.mel-routine-buy form{
  margin:0;
}

.mel-routine-buy__button{
  width:100%;

  min-height:52px;

  padding:15px 25px !important;

  display:flex !important;
  align-items:center;
  justify-content:center;

  background:#fff !important;
  color:#171717 !important;

  border:1px solid #fff !important;
  border-radius:999px !important;

  font-size:12px !important;
  line-height:1.3 !important;
  font-weight:700 !important;

  letter-spacing:.6px !important;

  cursor:pointer;

  transition:
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    transform .25s ease !important;
}

.mel-routine-buy__button:hover{
  background:#b58d2f !important;
  border-color:#b58d2f !important;
  color:#fff !important;

  transform:translateY(-2px);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width:900px){

  .mel-routine-buy{
    grid-template-columns:1fr;
    gap:30px;

    padding:36px;
  }

  .mel-routine-buy__action{
    padding-left:0;
    padding-top:28px;

    border-left:0;
    border-top:1px solid rgba(255,255,255,.18);
  }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width:767px){

  .mel-routine-buy{
    width:calc(100% - 32px);

    margin:20px auto 45px;

    padding:30px 24px;

    border-radius:20px;
  }

  .mel-routine-buy__content h2{
    font-size:27px;
  }

  .mel-routine-buy__content p{
    font-size:13px;
  }

  .mel-routine-buy__summary{
    margin-bottom:18px;
  }

  .mel-routine-buy__products{
    font-size:13px;
  }

  .mel-routine-buy__price{
    font-size:27px;
  }

  .mel-routine-buy__button{
    min-height:50px;

    padding:14px 18px !important;

    font-size:10px !important;
  }

}

.mel-routine-buy__button.is-loading{
  opacity:.75;
  cursor:wait;
}

.mel-routine-buy__button:disabled{
  pointer-events:none;
}