/* =====================================================
   LIPMEX custom.css  (complete, cleaned file)
   ===================================================== */

/* ========== LOGO (bigger without growing the header) ========== */
/* #hdr .logo-wrapper {
  position: relative;
}
#hdr .logo-wrapper #logo img {
  width: 200px;         
  height: 200px;
  margin-top: -10px;    
  margin-bottom: -10px;
} */

/* ========== GLOBAL IMAGE SAFETY ========== */
img { max-width: 100%; height: auto; display: block; }

/* ========== 1. HERO BANNER (image only) ========== */

section.page-banner {
  background: transparent !important;
}
section.page-banner.type-slider .slides,
section.page-banner.type-slider .slides .slick-list,
section.page-banner.type-slider .slides .slick-track,
section.page-banner.type-slider .slides .slide,
section.page-banner.type-slider .slides .slide .slide-inner {
  height: auto !important;
  min-height: 0 !important;
  background: none !important;
}

section.page-banner.type-slider .slides .slide .slide-inner {
  position: relative !important;
  overflow: hidden;
}

section.page-banner.type-slider .slides .slide .slide-image {
  display: block;
  position: static !important;
  width: 100%;
  margin: 0;
}

section.page-banner.type-slider .slides .slide .slide-inner picture.slide-image img {
  position: static !important;
  transform: none !important;
  left: auto !important; right: auto !important; top: auto !important;
  display: block;
  width: 100% !important;
  height: clamp(240px, 30vw, 460px) !important;   /* banner height */
  max-height: none !important;
  object-fit: cover;
  object-position: center 60%;                    /* which part of the image shows */
}

/* hide any leftover text overlay */
section.page-banner.type-slider .slides .slide .slide-content { display: none !important; }

@media (max-width: 640px) {
  section.page-banner.type-slider .slides .slide .slide-inner picture.slide-image img {
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
}

/* ========== 2. PRODUCT SLIDER (3 per view) ========== */
.product-wrapper.product-terms .ctr {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 70px;          /* room for the left and right arrows */
  position: relative;
}

.product-wrapper.product-terms .slick-slide {
  padding: 0 15px;
  box-sizing: border-box;
}

.product-wrapper.product-terms .product.term {
  display: block !important;
  width: 100% !important;
  text-align: center;
  text-decoration: none;
}

/* every image box is the same size, so every tile lines up */
.product-wrapper.product-terms .product-image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px !important;
  overflow: hidden;
}
.product-wrapper.product-terms .product-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-wrapper.product-terms .product.term:hover .product-image img {
  transform: scale(1.04);
}

.product-wrapper.product-terms .product-content {
  text-align: center !important;
  padding: 0 !important;
}
.product-wrapper.product-terms .product-title {
  font-size: clamp(18px, 1.6vw, 24px) !important;
  margin: 0 0 6px !important;
}
.product-wrapper.product-terms .product-description p {
  font-size: clamp(14px, 1.2vw, 17px) !important;
  margin: 0 auto !important;
  max-width: 85%;
}

@media (max-width: 640px) {
  .product-wrapper.product-terms .ctr { padding: 0 40px; }
}



/* ========== 3. LINK CARDS (Where to Buy / Ingredients / Tips / FAQs) ========== */
/* ========== 3. LINK CARDS (Where to Buy / Ingredients / Tips / FAQs) ========== */
.section-page-links .page-links a {
  position: relative !important;
  display: block !important;
  overflow: hidden;
  aspect-ratio: 420 / 550;          /* whole card = one fixed ratio */
}

/* the image fills the full card behind the label */
.section-page-links .page-links a .image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
}
.section-page-links .page-links a .image img {
  position: static !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.section-page-links .page-links a:hover .image img { transform: scale(1.05) !important; }

/* red label bar overlays the bottom of the image */
.section-page-links .page-links a .link-content {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: auto !important;
  z-index: 2;
}

/* ========== LINK CARDS: mobile fix ========== */
@media (max-width: 640px) {

  /* card */
  .section-page-links .page-links a {
    aspect-ratio: 1 / 1.15 !important;
  }

  /* the bar: full width, red background lives HERE */
  .section-page-links .page-links a .link-content {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(#e4002b, #c2002d) !important;
  }

  /* reset the theme's offsets on every layer inside the bar */
  .section-page-links .page-links a .link-content .link-content-inner,
  .section-page-links .page-links a .link-content .title,
  .section-page-links .page-links a .link-content .icon-wrapper {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: none !important;      /* no second red box */
    box-shadow: none !important;
  }

  .section-page-links .page-links a .link-content .link-content-inner {
    height: 100% !important;
    padding: 4px 4px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* icon above text, centered */
  .section-page-links .page-links a .link-content .title {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    text-align: center !important;
  }
  .section-page-links .page-links a .link-content .icon-wrapper {
    width: auto !important;
    height: 18px !important;
  }
  .section-page-links .page-links a .link-content .icon-wrapper svg {
    height: 18px !important;
    width: auto !important;
  }
}

/* ========== 4. BOTTOM "SHOP ON AMAZON" BANNER ========== */
.section-general-content.callout .image-content {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.section-general-content.callout .image-content > .image,
.section-general-content.callout .image-content > .img-wrapper { margin: 0; }
.section-general-content.callout .image-content > .image { flex: 745 1 0; }        /* left 745x500 */
.section-general-content.callout .image-content > .img-wrapper { flex: 430 1 0; }  /* right 430x500 */
.section-general-content.callout .image-content > .content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.section-general-content.callout .image-content img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.section-general-content.callout .content p span { font-size: 16px !important; }  /* overrides inline 12px */

@media (max-width: 900px) {
  .section-general-content.callout .image-content { flex-direction: column; }
  .section-general-content.callout .image-content > .image,
  .section-general-content.callout .image-content > .img-wrapper { flex: none; width: 100%; }
  .section-general-content.callout .image-content img { height: auto; aspect-ratio: 745 / 500; }
}

/* ========== PRODUCT TILES: colored frame behind image ========== */
.product-wrapper.product-terms .product-image {
  position: relative !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* the frame */
.product-wrapper.product-terms .product-image::before {
   content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 66%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border: clamp(5px, 0vw, 9px) solid var(--frame, #f9d423);
  box-sizing: border-box;
  z-index: 0;
  pointer-events: none;
}

/* product sits on top of the frame */
.product-wrapper.product-terms .product-image img {
   position: relative !important;
  z-index: 1;
  width: auto !important;
  height: auto !important;
  max-width: 74% !important;
  max-height: 86% !important;
  object-fit: contain;
  margin-top: 4%;
}

/* frame color per product (matched by link, so slider clones work too) */
.product-wrapper.product-terms a[href*="/shea/"]                  { --frame: #f4a3b5; }
.product-wrapper.product-terms a[href*="/lip-mask/"]              { --frame: #f7a23b; }
.product-wrapper.product-terms a[href*="/variety-packs/"]         { --frame: #e4002b; }
.product-wrapper.product-terms a[href*="/classic-lip-balm/"]      { --frame: #f9d423; }
.product-wrapper.product-terms a[href*="/advanced-repair-lip-balm/"] { --frame: #8fd3f4; }
.product-wrapper.product-terms a[href*="/daily-care/"]            { --frame: #ef5b7b; }
.product-wrapper.product-terms a[href*="/daily-care-minis/"]      { --frame: #a64ca6; }
.product-wrapper.product-terms a[href*="/sun-soothe/"]            { --frame: #63b04b; }
.product-wrapper.product-terms a[href*="/comfort-care/"]          { --frame: #7ecbb9; }
.product-wrapper.product-terms a[href*="/weather-guard/"]         { --frame: #0aa3e8; }

/* text left-aligned like the reference */
.product-wrapper.product-terms .product.term,
.product-wrapper.product-terms .product-content,
.product-wrapper.product-terms .product-title,
.product-wrapper.product-terms .product-description,
.product-wrapper.product-terms .product-description p {
  text-align: left !important;
}
.product-wrapper.product-terms .product-content {
  padding: 0 6% !important;
}
.product-wrapper.product-terms .product-description p {
  max-width: 100% !important;
  margin: 0 !important;
}
.product-wrapper.product-terms .product-title {
  display: block !important;
  min-height: 0 !important;
}



/* ========== HERO TEXT (left side) ========== */
section.page-banner.type-slider .slides .slide .slide-inner .hero-text {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 560px;
  z-index: 5;
  text-align: left;
}

.hero-kicker {
  display: inline-block;
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c8102e;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 12px;
  font-family: 'Pacifico', 'Brush Script MT', cursive;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 1.08;
  color: #1d1d1b;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .35);
}

.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(14px, 1.25vw, 20px);
  line-height: 1.5;
  color: #3a3a37;
  max-width: 440px;
}

.hero-btn {
  display: inline-block;
  padding: 13px 34px;
  background: #e4002b;
  color: #fff !important;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(228, 0, 43, .28);
  transition: background .25s ease, transform .25s ease;
}
.hero-btn:hover { background: #b80023; transform: translateY(-2px); }

/* tablet */
@media (max-width: 1000px) {
  section.page-banner.type-slider .slides .slide .slide-inner .hero-text { width: 46%; left: 5%; }
  .hero-sub { display: none; }
}

/* mobile: text sits at the top of the square image */
@media (max-width: 640px) {
  section.page-banner.type-slider .slides .slide .slide-inner .hero-text {
    top: 18px;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 0 20px;
    text-align: center;
  }
  .hero-title { font-size: 34px; margin-bottom: 10px; }
  .hero-kicker, .hero-sub { display: none; }
  .hero-btn { padding: 10px 26px; }
}

/* mobile: text on the left side of the banner */
@media (max-width: 640px) {
  section.page-banner.type-slider .slides .slide .slide-inner .hero-text {
    top: 14%;
    left: 5%;
    right: auto;
    bottom: auto;
    transform: none;
    width: 48%;
    max-width: none;
    padding: 0;
    text-align: left;
  }
  .hero-title {
    font-size: 26px;
    line-height: 1.1;
    margin: 0 0 12px;
  }
  .hero-kicker,
  .hero-sub { display: none; }
  .hero-btn {
    padding: 9px 20px;
    font-size: 12px;
  }
}







/* ===== Lipmex article cards (matches reference layout) ===== */

main#page .ctr {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* 3 columns by default */
.recent-posts .post-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch;
}

/* Card */
.recent-posts .post {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  overflow: hidden;
}

/* Same-shaped image on every card, filled edge to edge */
.recent-posts .post .post-img {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 10 !important;
  background: transparent !important;
  flex-shrink: 0;
}

.recent-posts .post .post-img img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

.recent-posts .post .post-content {
  flex: 1;
}

/* 2 columns only on small tablets */
@media (max-width: 600px) {
  .recent-posts .post-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* 1 column only on phones */
@media (max-width: 420px) {
  .recent-posts .post-row {
    grid-template-columns: 1fr !important;
  }
  main#page .ctr {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===== Featured area: 1 big card left + 2 stacked cards right ===== */
.recent-posts.lrg .post-row {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 28px !important;
  align-items: stretch;
}

/* Big card: spans both rows */
.recent-posts.lrg .post:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

/* Two small cards: right column */
.recent-posts.lrg .post:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}
.recent-posts.lrg .post:nth-child(3) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

/* Big card image fills all the height left above the text */
.recent-posts.lrg .post:nth-child(1) .post-img {
  flex: 1 1 auto !important;
  aspect-ratio: auto !important;
  min-height: 420px !important;
}

/* Small card images: wide frame */
.recent-posts.lrg .post:nth-child(2) .post-img,
.recent-posts.lrg .post:nth-child(3) .post-img {
  aspect-ratio: 16 / 9 !important;
}

/* Image always fills its frame */
.recent-posts.lrg .post .post-img img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Small cards show only title + Read Article (like the reference) */
.recent-posts.lrg .post:nth-child(2) .post-excerpt,
.recent-posts.lrg .post:nth-child(3) .post-excerpt {
  display: none !important;
}

.recent-posts.lrg .post .post-content {
  flex: 0 0 auto !important;
  padding: 24px 28px !important;
}
.recent-posts.lrg .post .post-title {
  font-size: clamp(20px, 1.8vw, 28px) !important;
  line-height: 1.25 !important;
}

/* Tablet and phone: stack everything in one column */
@media (max-width: 700px) {
  .recent-posts.lrg .post-row {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }
  .recent-posts.lrg .post:nth-child(1),
  .recent-posts.lrg .post:nth-child(2),
  .recent-posts.lrg .post:nth-child(3) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .recent-posts.lrg .post:nth-child(1) .post-img {
    flex: none !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
  }
}

.recent-posts .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}
.recent-posts .pager .page-numbers {
  font-weight: 700;
  font-size: 22px;
  color: #000;
  text-decoration: none;
}
.recent-posts .pager .page-numbers.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #c4002f;
  color: #fff;
}
.recent-posts .pager .page-numbers.dots { color: #c4002f; }

/* Fix clipped text in the dropdowns and inputs */
.cf-wrap select,
.cf-wrap input[type="text"],
.cf-wrap input[type="email"],
.cf-wrap input[type="tel"],
.cf-wrap input[type="url"] {
  height: 52px !important;
  min-height: 52px !important;
  line-height: normal !important;
  padding: 0 40px 0 16px !important;   /* left padding, room for the arrow on the right */
  font-size: 16px !important;
  box-sizing: border-box !important;
  display: block;
  width: 100%;
  overflow: visible !important;
  text-overflow: ellipsis;
}

/* The select needs its own arrow, because the theme may remove the default one */
.cf-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232c2c29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* Textarea keeps normal padding */
.cf-wrap textarea {
  line-height: 1.5 !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
}

/* Labels: keep them from being squeezed by theme styles */
.cf-wrap label {
  line-height: 1.3 !important;
  margin-bottom: 6px !important;
}

main#page .cf-wrap select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232c2c29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px 16px !important;
  padding-right: 44px !important;
  cursor: pointer;
}


/* .social-icons a.tik_tok {
  background-image: none !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.social-icons a.tik_tok i {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
} */

.category-hero img,
.page-banner img {
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  max-width: 100%;
  max-height: 450px;
  object-fit: cover;
}


/* 1. The banner (parent of .banner-img-wrapper): fixed height, clips overflow */
*:has(> .banner-img-wrapper) {
  position: relative !important;
  overflow: hidden !important;
  min-height: 450px !important;
  height: 450px !important;
}

/* 2. Image wrapper: pinned to the right side, same height as the banner */
.banner-img-wrapper {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 40% !important;
  height: 100% !important;
  max-height: 450px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  overflow: hidden !important;
}

/* 3. The image itself: fits inside the wrapper */
.banner-img-wrapper img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;       /* fills the box; use "contain" to show the full image */
  object-position: center !important;
}

/* 4. Keep the heading on the left, above the image */
.banner-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 55% !important;
}

/* 5. Mobile: stack the image under the text */
@media (max-width: 768px) {
  *:has(> .banner-img-wrapper) {
    height: auto !important;
  }

  .banner-img-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 250px !important;
  }

  .banner-content {
    max-width: 100% !important;
  }
}


.copyright a[href*="california-notice-at-collection"] {
  display: none !important;
}

/* hide all text in the span, including the plain "|" characters */
.copyright p > span {
  font-size: 0 !important;
}

/* bring back the links at normal size */
.copyright p > span a {
  font-size: 18px !important; /* match your footer text size */
}

/* hide Notice at Collection */
.copyright p > span a[href*="california-notice-at-collection"] {
  display: none !important;
}

/* redraw one separator after each remaining link */
.copyright p > span a:not([href*="california-notice-at-collection"])::after {
  content: " | ";
  color: #000000;
}

/* the "© 2026..." text was also hidden, so redraw it */
.copyright p > span::before {
  content: "© 2026 Lipmex. All Rights Reserved. ";
  font-size: 18px;
  color: #000000;
}


li:has(> a[href*="ingredients"]),
a[href*="ingredients"] {
  display: none !important;
}





.page-links .link-content {
  background: #963D65 !important;
}

section.page-section.section-page-links .page-links .link-content .link-content-inner {
  background: #963D65 !important;
}







.section-general-content.callout .image-content > .content {
  background: #246F70 !important;
}

img[src*="IMAGE/product3.png"] {
  content: url("IMAGE/product6.png");
}


#hdr .hdr-buy .hdr-cta:hover,
#hdr .hdr-buy .hdr-cta:focus-visible {
  background-color: #5b243b  !important;
  border-color: #5b243b !important;
  color: #fff !important;
}

.primary-nav__cta,
.hdr-cta {
  font-size: 0 !important;
  border: 2px solid #1F8A8A !important;
  background: #fff !important;
}

.primary-nav__cta::after,
.hdr-cta::after {
  content: "Explore Buying Options";
  font-size: 20px;
  font-weight: bold;
  color: #1F8A8A;
}

.primary-nav__cta:hover::after,
.hdr-cta:hover::after,
.hdr-cta:focus-visible::after {
  color: #fff;
}