/*
Theme Name: Berjé 
Theme URI: 
Author: Yellow Ball
Author URI: https://weareyellowball.com/
Description: Berjé  is a modern, lightweight WordPress theme built for full compatibility with ACF (Advanced Custom Fields) Pro and Gutenberg blocks.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berjé-yb
Tags: berjé  , berjé-acf, berjé-gutenberg, custom fields, WordPress custom theme
*/

/* Single product page style */
.light-bg-grey {
  background-color: var(--c-light-grey);
}
.col-8 {
  width: 66.66%;
}

.col-4 {
  width: 33.33%;
}
.card-block {
  border-radius: var(--radius-30);
  padding: 50px 45px;
  overflow: hidden;
  align-self: stretch;
}
.banner-search-form {
  max-width: 520px;
  width: 100%;
  height: 64px;
  border-radius: var(--radius-200);
  backdrop-filter: blur(20px);
  border: 1px solid #ffffff40;
  background: #ffffff33;
  justify-content: space-between;
  padding: 6px;
}
.banner-search-form * {
  background: unset;
  border: 0;
  outline: none;
  color: var(--c-text-light);
  font-size: var(--d-fs-20);
  font-family: var(--ff-urbanist);
}

.banner-search-form input[type="text"] {
  max-width: 43%;
  padding-left: 36px;
}
.banner-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}
.banner-search-form select {
  text-align: right;
}
.search-toggle .banner-search-form input::placeholder,
.search-toggle .banner-search-form input:focus::placeholder,
.search-toggle .banner-search-form input::-webkit-input-placeholder,
.search-toggle .banner-search-form input:-ms-input-placeholder,
.search-toggle .banner-search-form input::-moz-placeholder,
.search-toggle .banner-search-form input:-moz-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  color: red !important;
}
/* .banner-search-form button {
  height: 100%;
  aspect-ratio: 1;
  padding: 0;
  background: url("assets/images/magnifying-glass.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  background-color: var(--c-light-green);
  border-radius: 100%;
} */

.banner-select {
  cursor: pointer;
  display: inline-block;
  letter-spacing: 1px;
  margin-left: auto;
  user-select: none;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 1rem;
}

.custom-block.block-inner-banner-medium {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 500px;
  position: relative;
  align-items: flex-end !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.block-inner-banner-medium.bottom-curve:after {
  height: 60px;
}
#berje_hero_inner .content-wrap > h1 {
  margin-bottom: 80px;
}
.product-single-content-wrapper {
  margin-top: -100px !important;
  position: relative;
  z-index: 999;
}

#productChartDisplay {
  padding-bottom: 0;
  padding-top: 0;
}

#productChartDisplay svg {
  margin-top: 30px;
  margin-bottom: -25px;
  margin-left: 10px;
  transform: scale(1.2);
}

.product-details-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-details-card ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.product-details-card ul li:last-child {
  margin-bottom: 0;
}

.product-details-card ul li img {
  margin-top: 5px;
}

.product-details-card ul li p span {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 5px;
}
.product-sidebar-right > div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 28px 0;
}
.product-sidebar-right > div:first-child {
  padding-top: 0;
}
.product-sidebar-right > .product-details:last-of-type {
  padding-bottom: 0 !important; /* Use !important only if necessary to override theme styles */
  border-bottom: 0 !important;
}

.product-profile-image {
  margin-top: 18px;
  width: 100%;
  border-radius: var(--radius-16);
}
.product-notice p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.product-notice .link-element {
  font-size: 16px;
  text-decoration-line: none;
  margin-top: 20px !important;
  width: 100%;
  text-align: center;
}
.product-notice .link-element svg {
  transform: rotate(90deg);
}
.product-sidebar-right {
  position: sticky;
  top: 110px;
  margin-top: -130px;
  width: 100%;
}

.product-single-left > .card-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.product-single-left > .card-item text {
  font-size: 1em;
  font-weight: normal;
  transform-origin: 0.8% 4%;
  transform: rotate(270deg);
}
.product-single-left > .card-item text.uv-axes-label {
  transform: translateY(50px) !important;
  font-size: 0.8em !important;
}
.product-single-left > .card-item .uv-legend {
  display: none;
}
.product-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 44px;
}
.product-features ul li {
  width: 33.33%;
  display: flex;
  gap: 8px;
}

.product-features ul li::before {
  content: "";
  /* background: url("assets/images/icon-flower.svg") no-repeat; */
  background-color: var(--c-light-green);
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 0px;
  margin-top: 12px;
  vertical-align: middle;
  transition: margin-left 0.5s linear;
  border-radius: var(--radius-200);
}
.product-features ul li:nth-child(4) p,
.product-features ul li:nth-child(5) p,
.product-features ul li:nth-child(6) p {
  display: flex;
  flex-direction: column;
}

/* MAP  */
.productMap {
  width: 100%;
  height: auto;
}
.pulse {
  width: 14px;
  height: 14px;
  z-index: 5;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  margin: 22px 0 0 3px;
  transform: rotateX(55deg);
}
.productMapmarker {
  width: 20px;
  height: auto;
  z-index: 6;
}
.productMapHolder {
position: relative;
}
.product-features ul li p {
  color: var(--c-dark-purple);
  font-weight: 500;
}
.product-features ul li p span {
  color: var(--c-grey);
  font-weight: 400;
}
.product-history ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-history ul li {
  padding: 35px 60px;
  position: relative;
}
/* .product-history ul li:not(:first-child) {
  padding: 0 60px 35px 60px;
  position: relative;
} */
.product-history ul li::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 25px;
  top: 40px;
  background: var(--c-grey);
  border-radius: 50%;
}
/* .product-history ul li:not(:first-child)::before {
  top: 0;
} */

.product-history ul li:not(:first-child)::after {
  top: 0;
}
.product-history ul li:first-child:after {
  border-left: 1px dashed rgba(255, 255, 255, 0.4);
}
.product-history ul li::after {
  content: "";
  width: 1px;
  height: 100%;
  border-left: 1px dashed rgba(102, 102, 102, 0.4);
  position: absolute;
  left: 30px;
  top: 50px;
  margin-left: -0.5px;
}
.product-history ul li:first-child:before {
  background: var(--c-light-green);
}

.product-history ul li:last-child:after {
  background: none;
  /* border: none; */
  height: 40px;
}
.product-history ul li h6 {
  margin-bottom: 22px;
}
.product-history ul li:first-child {
  background-color: var(--c-primary);
  background-image: url(assets/images/product-inner-bg.svg);
  background-repeat: no-repeat;
  background-position: right -50px top -100px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-20);
}
.product-history ul li:first-child p {
  margin-bottom: 20px;
  color: var(--c-text-light);
}
.product-history ul li:first-child h6 {
  color: var(--c-text-light);
}
.product-gallery ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-gallery ul li img {
  border-radius: var(--radius-16);
}
.product-single-wrapper .product-crop-calendar {
  margin-top: calc(var(--d-space-100) * 1.2);
  /* margin-bottom: calc(var(--d-space-100) * 1.2); */
}

#product-inquiry-form {
  padding-top: calc(var(--d-space-100) * 1.2);
}

.product-single-wrapper .product-inquiry-form {
  margin-bottom: calc(var(--d-space-100) * 2);
}

.product-inquiry-form h5 {
  margin-bottom: var(--d-space-50);
}

.inquiry-form .gfield_required {
  color: var(--c-light-green) !important;
  font-size: 0.9375rem !important;
}

.inquiry-form  .gfield_label.gform-field-label {
  flex-direction: row-reverse;
}
.inquiry-form .gfield {
  transition: all 0.3s ease;
}
.inquiry-form .gfield:focus,
.inquiry-form .gfield:hover,
.inquiry-form .gfield:active {
  border: 1px solid rgba(31, 13, 60, 0.5);
}

.product-single-wrapper .heading {
  max-width: var(--page-size-narrow);
}
.image-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* Base grid remains 6 columns */
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.image-grid li {
  /* Default: 3 columns per row (2/6 width) */
  grid-column: span 2;

  max-height: 220px;
  position: relative;
  border-radius: var(--radius-16);
  overflow: hidden;
}
.berje-popup-content ul.image-grid-fields {
  overflow-y: auto;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
}
.berje-popup-content ul.image-grid-fields li {
  /* grid-column: span 2; */
  /* max-height: 150px; */
  height: 220px;
}
.image-grid li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease-out;
}

.image-grid li:nth-child(10n + 4),
.image-grid li:nth-child(10n + 5),
.image-grid li:nth-child(10n + 9),
.image-grid li:nth-child(10n + 10) {
  grid-column: span 3;
  max-height: 260px;
}
.image-grid li:hover .grid-hover {
  display: flex;
  justify-content: center;
  align-items: center;
}
.grid-hover {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: background-color 0.4s ease-out, opacity 0.4s ease-out,
    visibility 0.4s ease-out;
}

.grid-hover a {
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
  background: url(assets/images/fancybox-hover.svg) no-repeat 0 8px;
  padding: 5px 25px 5px 25px;
  color: var(--c-text-light, #fff);
  text-decoration: none;
}
.image-grid li:hover img {
  transform: scale(1.1);
}

.berje-popup-content .image-grid li:hover img {
  transform: scale(1);
}
.image-grid li:hover .grid-hover {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  visibility: visible;
}
.image-grid li:hover .grid-hover a {
  transition-delay: 0.1s;
  transform: translateY(0);
  opacity: 1;
}
/* Gallery Popup */
.berje-popup-content {
  display: none;
}
.berje-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  display: none;
  pointer-events: auto;
}
.berje-popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999999;
  background-color: var(--c-text-light);
  padding: 40px;
  width: 100%;
  max-width: var(--page-size);
  max-height: 90vh;
  height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
}

.berje-popup-open {
  overflow: hidden;
}
.berje-popupshown {
  height: 100vh;
  overflow: hidden;
}
#berje-popup-close-button {
  position: absolute;
  right: 5px;
  top: 15px;
  background: url(assets/images/icon-close.svg) no-repeat;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0;
}
/* Crop Calendar */
/* .product-crop-calendar {
  padding: calc(var(--d-space-100)) 0;
  border-top: 1px solid rgba(31, 13, 60, 0.15);
  border-bottom: 1px solid rgba(31, 13, 60, 0.15);
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.availability-card-container {
  border-radius: var(--radius-20);
  overflow: hidden;
}

.availability-card-header {
  display: flex;
  background-color: var(--c-light-green);
  color: var(--c-text-light);
  font-weight: bold;
  font-size: 16px;
  padding: 25px 20px;
  border-top-left-radius: var(--radius-20);
  border-top-right-radius: var(--radius-20);
}

.header-product-region {
  display: flex;
  flex: 0 0 40%;
  min-width: 250px;
}

.header-label:first-child {
  flex: 3;
  max-width: 200px;
}

.header-label:last-child {
  flex: 1;
}

.header-months {
  display: flex;
  flex: 1;
  justify-content: space-between;
}

.month-label {
  flex: 1;
  text-align: left;
}

.availability-card-row {
  display: flex;
  align-items: center;
  background-color: var(--c-text-light);
  padding: 25px 20px;
  font-size: 14px;
}
.row-product-region {
  display: flex;
  flex: 0 0 40%;
  min-width: 250px;
  align-items: center;
}

.data-product {
  flex: 3;
  max-width: 200px;
  font-weight: 600;
}

.data-region {
  flex: 1;
  color: #555;
}

.row-availability-dots {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.availability-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: transparent;
  position: relative;
}
.row-availability-dots::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(100% - 25px);
  height: 1px;
  background-color: rgba(31, 13, 60, 0.15);
  z-index: 1;
}

.availability-dot.available {
  background-color: var(--c-dark-purple);
  content: "";
  position: relative;
}
.availability-dot.unavailable {
  background-color: var(--c-light-purple);
  content: "";
  position: relative;
  z-index: 9;
}
.availability-dot.available:not(:last-child)::after {
   content: ''; 
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(100% + 2px);
  height: 1px;
  background-color: rgba(31, 13, 60, 0.15);
  z-index: 1;
} */
/* Single inquiry form */

.inquiry-form .ginput_container {
  padding: 5px 0 !important;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  outline: none;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 17px !important;
  color: var(--c-dark-purple);
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {

  color: rgba(31, 13, 60, 0.25);
}
.inquiry-form textarea {
  resize: none;
}

.inquiry-form select {
  /* content: ""; */
  background-image: url("assets/images/icon-chevron-down.svg") !important;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-position: calc(100% - 20px) 14px;
  background-size: 14px;
}

.inquiry-form select:hover {

}

.contact-form select {
  /* content: ""; */
  background-image: url("assets/images/form-dropdown-light.svg") !important;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-position: calc(100% - 20px) 14px;
  background-size: 14px;
}
.inquiry-form input[type="checkbox"] {
  border: 1px solid rgba(31, 13, 60, 0.6) !important;
  border-radius: 4px;
  width: 14px;
  height: 14px;
  margin-top: -8px;
}
.inquiry-form
  .gform-theme.gform-theme--framework.gform_wrapper
  input[type="submit"] {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.8595%206.28963L6.29113%2011.8594C6.13051%2012.0469%205.8628%2012.0469%205.70218%2011.8594C5.62186%2011.7791%205.56832%2011.672%205.56832%2011.5649C5.56832%2011.4577%205.62186%2011.3506%205.70218%2011.2703L10.5209%206.42352H0.428332C0.187395%206.42352%200%206.23608%200%205.99508C0%205.75408%200.187395%205.56663%200.428332%205.56663H10.5209L5.70218%200.719846C5.51478%200.559179%205.51478%200.291401%205.70218%200.130734C5.88957%20-0.0299325%206.13051%20-0.0567103%206.29113%200.130734L11.8595%205.70052C12.0468%205.86119%2012.0468%206.12896%2011.8595%206.28963Z%22%20fill%3D%22white%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center right 2.215rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-weight: 300;
  text-align: center;
  text-decoration: none;
  padding: 1.5rem 3.5rem 1.5rem 2.125rem !important;
  color: var(--c-text-light);
  background-color: var(--c-dark-purple) !important;
  border: 1px solid var(--c-secondary) !important;
  border-radius: var(--radius-200) !important;
  cursor: pointer;
  text-wrap: nowrap;
  isolation: isolate;
  user-select: none;
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.03);
  font-family: var(--ff-urbanist);
  transition: all 0.3s ease;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: rgba(31, 13, 60, 0.5);
}
.inquiry-form option {
  font-size: 17px;
}
.inquiry-form .gfield {
  border: 1px solid rgba(31, 13, 60, 0.25);
  border-radius: 18px;
  padding: 0 25px 10px 25px !important;
}

.inquiry-form .gfield:has(select) {
  padding: 0 10px 10px 25px !important;
}
.inquiry-form #field_submit.gfield {
  border: none !important;
  display: flex;
  justify-content: flex-end;
  padding-right: 0 !important;
}
.inquiry-form .gfield--type-consent,
.inquiry-form .gfield_consent_description {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 17px;
  color: rgba(31, 13, 60, 0.25);
}

.inquiry-form .gfield_consent_description {
  font-size: 11px;
  color: var(--c-grey);
  margin-bottom: 25px !important;
}
.inquiry-form .gfield label {
  background: var(--c-text-light);
  color: var(--c-dark-purple);
  margin-top: -10px;
  display: flex;
  width: max-content;
  padding: 0 5px;
  margin-left: -5px;
  font-size: 15px;
  margin-bottom: 0;
  font-weight: 400;
}
.inquiry-form .gfield--type-consent {
  display: flex;
  flex-direction: column-reverse;
  width: 160%;
}
.contact-form .gfield--type-consent {
  width: 100%;
}
p.gform_required_legend,
.gfield--type-consent legend {
  display: none !important;
}
.inquiry-form .gfield .gfield_consent_label {
  color: var(--c-grey);
  font-size: 14px;
  margin-bottom: 18px;
}

.gfield--type-consent a {
  color: var(--c-light-green);
  margin:0 4px;
  display: inline-block;
}
.inquiry-form .gform-footer.gform_footer {
  display: none;
}
.contact-form .gform-footer.gform_footer {
  display: flex;
}
.contact-form
  .gform-theme.gform-theme--framework.gform_wrapper
  input[type="submit"] {
  display: flex !important;
  flex: 1;
  background-position-x: calc(50% + 30px);
  background-position-y: center;
}

@media screen and (max-width: 991px) {
  body {
    overflow-x: hidden;
  }
  .col-8,
  .col-4 {
    width: 100%;
  }
  .product-single-left .card-item {
    padding: 24px !important;
  }

  #productChartDisplay {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

  .product-single-left > .card-item {
    gap: 24px !important;
  }
  .bottom-curve.curve-up:after {
    bottom: -1px !important;
  }
  .top-curve.curve-up:before {
    top: -49px !important;
  }
  .custom-block.block-inner-banner-medium {
    height: 310px;
  }
  .product-features ul {
    row-gap: 16px;
  }
  .product-features ul li {
    width: 100%;
  }
  .product-features ul li::before {
    content: "";
    background: var(--c-light-green);
    width: 6px;
    height: 6px;
    margin-top: 10px;
    border-radius: 3px;
  }
  .product-features ul li:nth-child(4) p,
  .product-features ul li:nth-child(5) p,
  .product-features ul li:nth-child(6) p {
    display: flex;
    flex-direction: row;
    gap: 5px;
  }
  .product-single-content-wrapper {
    display: flex;
    flex-direction: column-reverse !important;
  }
  .product-crop-calendar {
    padding: calc(var(--d-space-100) - 50px) 0;
  }
  .product-history ul li {
    padding: 24px 60px;
  }
  .product-history ul li::before {
    top: 30px;
  }
  .product-history ul li::after {
    top: 40px;
  }
  .product-history ul li h6 {
    margin-bottom: 20px;
  }
  .product-single-content-wrapper
    .inquiry-form
    .gform-theme.gform-theme--framework.gform_wrapper
    input[type="submit"] {
    width: 100%;
    background-position-x: calc(50% + 30px);
    background-position-y: center;
  }
  .availability-card-container {
    width: 1200px;
  }

  /* .calendar-wrapper {
    max-width: max-content;
    width: 100%;
    overflow-x: auto;
  }
  .header-months {
    gap: 30px;
  } */
  main .wp-block-group {
    padding: 24px !important;
  }
}


@media screen and (max-width:767px) {
  .product-profile-image {
    width: 100%;
}
}