/*
Theme Name:  Uncode Child
Theme URI:   https://undsgn.com/uncode/
Description: Child theme for Uncode – Les Bijoux d'Angeli
Author:      INNERGYS
Author URI:  https://innergys.com
Template:    uncode
Version:     1.1.0
*/

/* ==========================================================================
   Header – Center Double with a second, centred primary-menu row
   (markup from menus-child.php, loaded via functions.php)
   ========================================================================== */
@media (min-width: 960px) {

  /* Uncode merges the CTA and primary lists into both rows; keep one per row */
  .menu-center-double-rows .row-menu-top    .navbar-cta  .menu-primary-inner { display: none !important; }
  .menu-center-double-rows .row-menu-bottom .navbar-main .menu-cta-inner     { display: none !important; }
  /* Uncode's JS re-initialises once per .menu-horizontal and clones the lists; hide the clones */
  .menu-center-double-rows .row-menu-top    .navbar-cta  .menu-cta-inner     ~ .menu-cta-inner     { display: none !important; }
  .menu-center-double-rows .row-menu-bottom .navbar-main .menu-primary-inner ~ .menu-primary-inner { display: none !important; }

  /* Two rows: don't let Uncode's JS lock the header to one-row height */
  .menu-center-double-rows .menu-container,
  .menu-center-double-rows .row-menu { height: auto !important; }

  /* Alignment – same selectors Uncode uses, so the child rules win cleanly */
  body.hmenu-center-double:not(.hormenu-position-right) .menu-cta-inner     { text-align: left; }
  body.hmenu-center-double:not(.hormenu-position-right) .menu-primary-inner { text-align: center; }

    /* Row 1 */
  .menu-center-double-rows .row-menu-top .main-menu-container,
  .menu-center-double-rows .row-menu-top .logo-container { padding-top: 0 !important; padding-bottom: 0 !important; }
  .menu-center-double-rows .row-menu-top .row-menu-inner { padding: 17px 0 12px; }
 

  /* Row 2 */
  .menu-center-double-rows .row-menu-bottom .main-menu-container { padding-top: 0 !important; padding-bottom: 0 !important; }
  .menu-center-double-rows .row-menu-bottom .row-menu-inner { padding: 10px 0 20px; }


  /* Row 2: thin separator above the categories */
  .menu-center-double-rows .row-menu-bottom { border-top: 1px solid rgba(0, 0, 0, .08); }

  /* Typography to match the mock-up */
  .menu-center-double-rows .row-menu-bottom .menu-primary-inner > li > a { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
  .menu-center-double-rows .row-menu-top    .menu-cta-inner     > li > a { text-transform: uppercase; letter-spacing: .10em; font-size: 12px; }
}

/* ==========================================================================
   Product tiles – soft image transition on hover
   ========================================================================== */
.tmb img, li.product img { transition: opacity .25s ease; }

.lba-specs { margin: 0 0 10px !important; }
.lba-specs-title { font-size: 20px; margin: 0 0 14px; }
.lba-specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lba-specs-table th { text-align: left; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding: 8px 12px; border-bottom: 1px solid #ddd; }
.lba-specs-table td { padding: 10px 12px; color: #666; border-bottom: 1px solid #eee; }
.lba-specs-table td:last-child, .lba-specs-table th:last-child { width: 35%; }


.single_variation_wrap .woocommerce-variation.single_variation { margin-bottom: 10px !important; }
.single_variation_wrap .woocommerce-variation-price { margin-bottom: 0 !important; }


div.product form.cart .single_variation .price {
  margin: 0 0 12px !important;
}

.ti-widget.ti-goog { filter: grayscale(100%); }

/* Product grids: price on its own line under the title */
.tmb-woocommerce .t-entry-text-tc .price,
.tmb.tmb-woocommerce .price { display: block !important; margin-top: 4px; }
.tmb-woocommerce .t-entry-text-tc .price::before,
.tmb-woocommerce .t-entry-text-tc .separator,
.tmb-woocommerce .t-entry-text-tc .t-entry-sep { display: none !important; }

::selection      { background: #1f1f2a !important; color: #fff !important; }
::-moz-selection { background: #1f1f2a !important; color: #fff !important; }
img::selection   { background: rgba(31,31,42,.25) !important; }

.heading-foreword {
    display: block !important;
    font: 400 11px / 1 Jost, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(142, 111, 58);
  margin: 15px !important;
}
.footer-last p:has(.footer-credit),
.row-copyright p:has(.footer-credit),
.copyright p:has(.footer-credit) { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-legal .seg, .footer-legal .sep { display: inline; }
.footer-credit { float: none !important; white-space: nowrap; }

@media (max-width: 959px) {
  .footer-last p:has(.footer-credit),
  .row-copyright p:has(.footer-credit),
  .copyright p:has(.footer-credit) { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .footer-legal .sep { display: none; }
  .footer-legal .seg { display: block; }
  .footer-credit { white-space: normal; }
}

.cert-logos .cssgrid-container {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-end;
  align-items: center;
  gap: 10px !important;
  width: 100% !important;
}
.cert-logos .tmb {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cert-logos .t-inside,
.cert-logos .t-entry-visual,
.cert-logos .t-entry-visual-tc,
.cert-logos .t-entry-visual-cont,
.cert-logos .t-entry-visual-cont a {
  position: static !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.cert-logos .dummy { display: none !important; }
.cert-logos .t-entry-visual-overlay { display: none !important; }
.cert-logos .t-entry-visual-cont img {
  position: static !important;
  display: block !important;
  height: 30px !important;
  max-height: 30px !important;
  width: auto !important;
  max-width: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
}

.cert-logos .cssgrid-container::before {
  content: "Certified diamonds";
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap;
  margin-right: 10px;      /* 10 + 20 gap = 30px before GIA */
  align-self: center;
}


.payment-logos {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  justify-content: flex-start;
}
.payment-logos::before {
  content: "Secure payment";
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap;
  margin-right: 10px;
  align-self: center;
}
.payment-logos > * {
  margin: 0 !important;
  padding: 0 !important;
  align-self: center;
}
.payment-logos .single-image-wrapper,
.payment-logos .dummy-image,
.payment-logos .dummy-image-wrapper,
.payment-logos .image-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}
.payment-logos img {

  width: auto;
  display: block;
}

/* ThemeHigh size field — align with attribute swatches */
table.thwepo-extra-options { width: auto !important; max-width: 100%; padding: 0 !important; }
table.thwepo-extra-options td.label.abovefield { padding: 0 0 20px 0 !important; }
table.thwepo-extra-options br { display: none; }
table.thwepo-extra-options label.label-tag {
  display: inline-block; margin: 0 0 9px; font: 600 15px Jost, sans-serif; color: #303133;
}
table.thwepo-extra-options abbr.required { border: 0; text-decoration: none; margin-left: 3px; }

/* select: fixed width, text clear of the arrow, arrow 15px from the right edge */
table.thwepo-extra-options select.thwepof-input-field {
  width: 400px !important; max-width: 100% !important; margin: 0;
  padding: 10px 40px 10px 15px !important;
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23303133' stroke-width='1.5'/></svg>") no-repeat right 15px center;
}

/* label row: "Taille *" left, "Guide des tailles" right, same width as the select */
.lba-size-head { display: flex; align-items: center; width: 400px; max-width: 100%; margin-bottom: 9px; }
.lba-size-head label.label-tag { margin: 0 !important; }
.lba-size-head abbr.required { margin-right: auto; }
.lba-size-guide { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #303133; text-decoration: underline; text-underline-offset: 3px; }
.lba-size-guide:hover { color: #000; }

/* hide unavailable attribute options instead of greying them out */
.variations .swatch.swatch--disabled { display: none !important; }

/* size guide tab content */
.lba-size-guide-content h4 { margin: 22px 0 8px; }
.lba-size-guide-content ol, .lba-size-guide-content ul { padding-left: 18px; }
.lba-size-guide-content li { margin-bottom: 6px; }
.lba-size-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 14px; }
.lba-size-table th, .lba-size-table td { padding: 8px 12px; border-bottom: 1px solid #e6e6e6; text-align: left; }
.lba-size-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #555; }
.lba-size-table td:first-child { color: #1f1f2a; }
.lba-size-note { margin-top: 10px; font-size: 12px; color: #777; }

/* "À partir de" prefix – smaller, lighter than the price */
.price .from, span.from {
  font-size: .6em; font-weight: 400; letter-spacing: .04em;
  text-transform: uppercase; margin-right: 4px;
}
/* grids: prefix closer to the price size */
.tmb .price .from, .tmb span.from { font-size: .9em; }



/* mega menu categories: same tile size as 7-per-row, any count centred */
.mega-cats .cssgrid-container {
  display: flex !important; flex-wrap: wrap; justify-content: center;
  gap: 20px !important; grid-template-columns: none !important;
}
.mega-cats .tmb { flex: 0 0 auto !important; width: calc((100% - 6 * 20px) / 7) !important; max-width: none !important; }
@media (max-width: 1199px) { .mega-cats .tmb { width: calc((100% - 3 * 20px) / 4) !important; } }


/* mega menu dropdown: full-bleed */
.megamenu-full-submenu .menu-horizontal .menu-smart > li.mega-menu > .mega-menu-inner {
  margin-left: -18px !important;
  width: 100vw !important;
}

@media (max-width: 959px) {
  #masthead .menu-smart > li > ul, #masthead .menu-smart > li > .mega-menu-inner { display: none !important; } /* header only – the footer menu blocks are also .menu-smart > li > ul */
  .menu-primary-inner > li > a,
  .menu-cta-inner > li > a,
  .mobile-secondary-menu > li > a {
    font-size: 14px !important; line-height: 1.6 !important; letter-spacing: .12em !important;
    text-transform: uppercase !important; font-weight: 400 !important; padding: 10px 0 !important;
  }
}

/* hide unclassified category from display on homepage */
.tmb.tmb-term-id-15 { display: none !important; }
.owl-item:has(.tmb-term-id-15) { display: none !important; }

.home .tmb.tmb-format-video .t-entry-visual-tc,
.blog .tmb.tmb-format-video .t-entry-visual-tc,
.archive .tmb.tmb-format-video .t-entry-visual-tc { position: relative; }

.home .tmb.tmb-format-video .t-entry-visual-tc::after,
.blog .tmb.tmb-format-video .t-entry-visual-tc::after,
.archive .tmb.tmb-format-video .t-entry-visual-tc::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; z-index: 5;
  background: rgba(0,0,0,.45) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M8 5v14l11-7z'/></svg>") center/28px no-repeat;
  pointer-events: none;
  transition: background-color .2s;
}
.tmb.tmb-format-video:hover .t-entry-visual-tc::after { background-color: rgba(0,0,0,.65); }

.single-post .author-info { display: none !important; }


@media (max-width: 959px) {
  body.menu-mobile-off-canvas #masthead .row-menu-bottom .main-menu-container.mobile-hidden {
    display: block !important;
  }
  body.menu-mobile-off-canvas #masthead .row-menu:not(.row-menu-bottom) .main-menu-container {
    z-index: 101;
    background: transparent !important;
    pointer-events: none;
  }
  body.menu-mobile-off-canvas #masthead .uncode-close-offcanvas-mobile {
    pointer-events: auto;
  }
  
  .fontspace-135905:not(.bigtext) {
    letter-spacing: 0 !important;
  }
}

@media (max-width: 959px) {
  .menu-primary-inner > li > a,
  .menu-cta-inner > li > a,
  .menu-smart > li.mega-menu > a,
  .menu-smart > li.menu-item-has-children > a,
  .mobile-secondary-menu > li > a {
    font-size: 14px !important;
    line-height: 1.6 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    padding: 10px 0 !important;
  }
}

@media (max-width: 959px) {
  .menu-center-double-rows .navbar-extra-icons,
  #uncode-mobile-menu-block .navbar-extra-icons,
  .menu-container .mobile-additional-icons-cloned { display: none !important; }
}

@media (max-width: 959px) {
  ul.unmenu-block.is-grid { display: flex !important; flex-wrap: wrap; align-items: center; }
  ul.unmenu-block.is-grid > li { flex: 0 0 100%; }
  ul.unmenu-block.is-grid > li.wpml-ls-item { flex: 0 0 auto; width: auto !important; margin-right: 18px; }
  ul.unmenu-block.is-grid > li.wpml-ls-item > a { padding: 14px 0 !important; }
  ul.unmenu-block.is-grid li.wpml-ls-item img.wpml-ls-flag { width: 32px !important; height: