/* Bera product page parity layer. WooCommerce remains the commerce engine. */

.single-product,
.bera-product-page {
  background: var(--bera-color-soft-neutral);
}

.bera-product-shell {
  margin: 0 auto;
  max-width: 1200px;
  padding: 40px 50px 0;
  width: 100%;
}

.bera-product-breadcrumb {
  align-items: center;
  color: rgba(26, 28, 24, 0.56);
  display: flex;
  flex-wrap: wrap;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  gap: 2px;
  line-height: 1.4;
  margin: 0 0 28px;
  padding: 20px 0 0;
}

.bera-product-breadcrumb a {
  color: rgba(26, 28, 24, 0.78);
  text-decoration: none;
}

.bera-product-breadcrumb [aria-current='page'] {
  color: #1a1c18;
  font-weight: 600;
}

.bera-product-breadcrumb__separator {
  align-items: center;
  color: rgba(26, 28, 24, 0.35);
  display: flex;
  flex: 0 0 12px;
  height: 12px;
  justify-content: center;
  width: 12px;
}

.bera-product-breadcrumb__separator svg {
  display: block;
  height: 12px;
  width: 12px;
}

.bera-product-layout {
  align-items: stretch;
  display: flex;
  margin: 0;
  width: 100%;
}

.bera-product__media {
  flex: 0 0 65%;
  max-width: 65%;
  min-width: 0;
}

.bera-product__info {
  flex: 0 0 35%;
  max-width: 35%;
  padding-left: 40px;
}

.bera-product__info-inner {
  margin-bottom: 15px;
  position: sticky;
  top: 30px;
  width: 100%;
}

.bera-product__media .woocommerce-product-gallery {
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
}

@media screen and (min-width: 750px) {
  /* Follow Shopify's gallery within the stretched column as accordions expand. */
  .bera-product__media .woocommerce-product-gallery {
    position: sticky;
    top: 30px;
    z-index: 2;
  }
}

.bera-product__media .woocommerce-product-gallery__wrapper {
  margin: 0;
}

/* Keep the uninitialized Woo gallery at one slide tall while Flexslider starts. */
.bera-product__media .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
  display: none;
}

.bera-product__media .flex-viewport .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
  display: block;
}

.bera-product__media .woocommerce-product-gallery__image,
.bera-product__media .flex-viewport {
  background: #e8e8e1;
  border-radius: 16px;
  overflow: hidden;
}

.bera-product__media .woocommerce-product-gallery__image {
  border: 0;
  box-sizing: border-box;
}

.bera-product__media .flex-viewport {
  aspect-ratio: 1;
  height: auto !important;
}

.bera-product__media .woocommerce-product-gallery__image > a {
  aspect-ratio: 1;
  border: 0;
  display: block;
  margin: 0;
  width: 100%;
}

.bera-product__media .woocommerce-product-gallery__image > a > img {
  display: block;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  width: 100% !important;
}

.bera-product__media .woocommerce-product-gallery__trigger {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 47, 32, 0.18);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(8, 47, 32, 0.08);
  color: var(--bera-color-forest);
  display: flex;
  height: 44px;
  justify-content: center;
  left: 12px;
  right: auto;
  text-decoration: none;
  top: 12px;
  width: 44px;
  z-index: 5;
}

.bera-product__media .woocommerce-product-gallery__trigger > span,
.bera-product__media .woocommerce-product-gallery__trigger img {
  display: none !important;
}

/* Replace Woo's decorative emoji without changing its labelled lightbox trigger. */
.bera-product__media .woocommerce-product-gallery__trigger::before {
  background-color: currentColor;
  content: "";
  height: 20px;
  -webkit-mask: url("../images/zoom-in.svg") center / contain no-repeat;
  mask: url("../images/zoom-in.svg") center / contain no-repeat;
  width: 20px;
}

.bera-product__media .woocommerce-product-gallery__trigger:hover {
  border-color: var(--bera-color-forest);
}

.bera-product__media .flex-control-thumbs {
  box-sizing: border-box;
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 20px auto 0;
  overflow: hidden;
  padding: 5px;
  scroll-behavior: smooth;
  width: calc(100% - 88px);
}

.bera-product__media .flex-control-thumbs li {
  flex: 0 0 calc(20% - 8px);
  float: none !important;
  margin: 0 !important;
  width: auto !important;
}

.bera-product__media .flex-control-thumbs img {
  aspect-ratio: 1;
  background: #e8e8e1;
  border: 1px solid rgba(18, 18, 18, 0.05);
  border-radius: 0;
  cursor: pointer;
  height: auto;
  object-fit: cover;
  opacity: 1;
  width: 100%;
}

.bera-product__media .flex-control-thumbs img.flex-active,
.bera-product__media .flex-control-thumbs img:hover {
  border-color: #121212;
  opacity: 1;
}

.bera-product__title {
  color: #1a1c18;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0 !important;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.bera-product__price {
  color: #1a1c18;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 27px;
  margin-top: 15px;
  min-height: 32px;
  padding-bottom: 5px;
}

.bera-product__price del {
  color: rgba(26, 28, 24, 0.55);
  font-size: 15px;
  font-weight: 400;
}

.bera-product__price ins {
  text-decoration: none;
}

.bera-product__shipping-note {
  color: rgba(26, 28, 24, 0.58);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  margin: 1px 0 0;
}

.bera-product__purchase {
  /* Preserve the source rhythm without rendering Shopify-only Shop Pay copy. */
  margin-top: 54.16px;
}

.bera-product-layout.product-type-variable .bera-product__purchase {
  margin-top: 15px;
}

.bera-product__purchase form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  width: 100%;
}

.bera-product__quantity-label {
  color: #1a1c18;
  flex: 0 0 100%;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 6px;
}

.bera-product__purchase form.cart .quantity {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  height: 47px;
  margin: 0 0 25px !important;
}

.bera-product__purchase .bera-quantity-button {
  align-items: center;
  appearance: none;
  background: #e8e8e1;
  border: 0;
  border-radius: 4px;
  color: #1a1c18;
  cursor: pointer;
  display: flex;
  flex: 0 0 48px;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 48px;
}

.bera-product__purchase .bera-quantity-button:hover {
  background: #ddddd5;
}

.bera-product__purchase form.cart .quantity .qty {
  appearance: textfield;
  background: #fff;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: #1a1c18;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  height: 44px !important;
  line-height: normal;
  margin: 0;
  min-height: 44px !important;
  padding: 0;
  text-align: center;
  width: 60px;
}

.bera-product__purchase form.cart .quantity .qty::-webkit-inner-spin-button,
.bera-product__purchase form.cart .quantity .qty::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.bera-product__purchase form.cart .single_add_to_cart_button {
  background: #0b2615 !important;
  border: 0 !important;
  border-radius: 50px !important;
  box-shadow: none !important;
  color: #fff !important;
  display: flex !important;
  flex: 0 0 100%;
  font-family: 'Jost', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  height: 45px;
  justify-content: center;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  min-height: 45px;
  padding: 0 30px !important;
  width: 100%;
}

.bera-product__purchase form.cart .single_add_to_cart_button:hover {
  background: #000 !important;
}

.single-product .bera-product__purchase .variations {
  border: 0;
  margin: 0 0 16px !important;
  width: 100%;
}

.bera-product__purchase .variations tbody,
.bera-product__purchase .variations tr,
.bera-product__purchase .variations th,
.bera-product__purchase .variations td {
  display: block;
  padding: 0 !important;
  text-align: left;
  width: 100%;
}

.bera-product__purchase .variations th {
  color: rgba(26, 28, 24, 0.72);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bera-product__purchase .variations th label {
  display: block;
  line-height: 1.2;
}

.single-product .bera-product__purchase .variations select {
  appearance: none;
  background: #fff;
  border: 1px solid rgba(26, 28, 24, 0.14);
  border-radius: 12px;
  color: #1a1c18;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  height: 54px;
  margin: 1px;
  min-height: 54px;
  padding: 0 52px 0 18px;
  width: calc(100% - 2px);
}

.bera-product__purchase .reset_variations {
  display: none !important;
}

.bera-product__purchase .single_variation_wrap,
.bera-product__purchase .woocommerce-variation-add-to-cart {
  width: 100%;
}

.bera-product__purchase .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
}

.bera-product__purchase .woocommerce-variation-price {
  display: none;
}

.claudify-trust {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 6px 0;
}

.claudify-trust__item {
  align-items: center;
  color: rgba(26, 28, 24, 0.75);
  display: flex;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  gap: 7px;
  white-space: nowrap;
}

.claudify-trust__icon {
  display: block;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.claudify-badges {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.claudify-badge {
  align-items: center;
  background: #e8e8e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-width: 0;
  padding: 16px;
  text-align: center;
}

.claudify-badge__icon,
.claudify-badge__img {
  color: #1a1c18;
  display: block;
  height: 26px;
  object-fit: contain;
  width: 26px;
}

.claudify-badge__label {
  color: #1a1c18;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em !important;
  line-height: 1.35;
  overflow-wrap: normal;
}

.bera-product__media .flex-viewport {
  position: relative;
}

.bera-gallery-nav,
.bera-gallery-thumbs-nav {
  align-items: center;
  background: rgba(242, 242, 239, 0.78);
  border: 1px solid rgba(26, 28, 24, 0.12);
  border-radius: 50%;
  color: rgba(26, 28, 24, 0.78);
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  width: 44px;
  z-index: 6;
}

.bera-gallery-nav {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(26, 28, 24, 0.08);
}

.bera-gallery-thumbs-nav {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bera-gallery-nav {
  top: 50%;
  transform: translateY(-50%);
}

.bera-gallery-nav--previous {
  left: 18px;
}

.bera-gallery-nav--next {
  right: 18px;
}

.bera-gallery-thumbs-nav--previous {
  left: 0;
}

.bera-gallery-thumbs-nav--next {
  right: 0;
}

.bera-gallery-thumbs-nav {
  transform: translateY(-50%);
}

.bera-gallery-nav svg {
  display: block;
  height: 14px;
  width: 14px;
}

.bera-gallery-thumbs-nav svg {
  display: block;
  height: 6px;
  width: 20px;
}

.bera-gallery-thumbs-nav--previous svg {
  transform: rotate(90deg);
}

.bera-gallery-thumbs-nav--next svg {
  transform: rotate(-90deg);
}

.bera-gallery-nav:disabled {
  cursor: default;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.bera-gallery-thumbs-nav:disabled {
  color: rgba(18, 18, 18, 0.3);
  cursor: default;
}

.claudify-product-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 6px 0;
}

.claudify-product-link {
  align-items: center;
  color: rgba(26, 28, 24, 0.75);
  display: flex;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.claudify-product-link:hover {
  color: #1a1c18;
}

.claudify-product-link svg {
  display: block;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.bera-product__info .claudify-trust {
  margin-top: 25px;
}

.bera-product__info .claudify-badges {
  margin-top: 15px;
}

.bera-product__info .claudify-metafield-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 25px;
}

.bera-product__info .product__accordion {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.bera-product__info .product__accordion summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  line-height: 1;
  padding: 15px 0;
  position: relative;
}

.bera-product__info .product__accordion summary::-webkit-details-marker {
  display: none;
}

.bera-product__info .accordion__title {
  color: #1a1c18;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  padding: 20px 30px;
}

.bera-product__info .accordion__caret {
  fill: rgba(26, 28, 24, 0.58);
  height: 6px;
  position: absolute;
  right: 15px;
  top: calc(50% - 2px);
  transition: transform 180ms ease;
  width: 10px;
}

.bera-product__info details[open] .accordion__caret {
  transform: rotate(180deg);
}

.bera-product__info details[open] .accordion__title {
  padding-bottom: 10px;
}

.bera-product__info .accordion__content {
  color: rgba(26, 28, 24, 0.75);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding: 0 40px 28px;
}

.bera-product__info .accordion__content p {
  margin: 0;
}

.bera-product__info .claudify-product-links {
  margin-top: 15px;
}

.bera-product-features {
  --sp-pt: 128px;
  --sp-pr: 96px;
  --sp-pb: 0px;
  --sp-pl: 96px;
}

.bera-product-page > .claudify-newsletter {
  --sp-pt: 128px;
  --sp-pr: 96px;
  --sp-pb: 0px;
  --sp-pl: 96px;
}

.bera-product-page > .claudify-instagram {
  --sp-heading-size: 48px;
}

.claudify-metafield-tabs details[open] {
  margin-bottom: 7px;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .bera-product-shell {
    padding-inline: 50px;
  }

  .bera-product-breadcrumb {
    margin-bottom: 24px;
    padding-top: 16px;
  }

  .bera-product__media {
    flex-basis: 50%;
    max-width: 50%;
  }

  .bera-product__info {
    flex-basis: 50%;
    max-width: 50%;
    padding-left: 50px;
  }

  .bera-product__purchase {
    margin-top: 73.66px;
  }

  .bera-product__media .flex-control-thumbs li {
    flex-basis: calc(25% - 8px);
  }

  .bera-product-features,
  .bera-product-page > .claudify-newsletter {
    --sp-pt: 96px;
    --sp-pr: 48px;
    --sp-pl: 48px;
  }
}

@media screen and (max-width: 749px) {
  .bera-product-shell {
    padding: 30px 15px 0;
  }

  .bera-product-breadcrumb {
    font-size: 12px;
    margin-bottom: 16px;
    padding-top: 12px;
  }

  .bera-product-layout {
    display: block;
    padding-top: 16px;
  }

  .bera-product__media,
  .bera-product__info {
    max-width: none;
    width: 100%;
  }

  .bera-product__info {
    padding: 24px 0 0;
  }

  .bera-product__info-inner {
    position: static;
  }

  .bera-product__title {
    font-size: 28px;
  }

  .bera-product__price {
    min-height: 29px;
    padding-bottom: 2px;
  }

  .bera-product__shipping-note {
    font-size: 12px;
  }

  .bera-product__purchase form.cart .quantity .qty {
    font-size: 16px;
  }

  .claudify-trust,
  .claudify-product-links {
    gap: 14px;
  }

  .claudify-trust__item,
  .claudify-product-link {
    font-size: 13px;
  }

  .claudify-trust__icon,
  .claudify-product-link svg {
    height: 18px;
    width: 18px;
  }

  .claudify-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bera-product__media .flex-control-thumbs {
    gap: 10px;
    margin: 0 auto 10px;
  }

  .bera-product__media .flex-control-thumbs li {
    flex-basis: calc(33% - 6px);
  }

  .bera-product-features,
  .bera-product-page > .claudify-newsletter {
    --sp-pt: 64px;
    --sp-pr: 20px;
    --sp-pl: 20px;
  }

  .bera-product-page > .claudify-instagram {
    --sp-heading-size: 28px;
  }

  .bera-product-page .claudify-product-faq__heading {
    font-size: 40px;
  }

  .bera-product-page .claudify-product-faq__item summary {
    font-size: 16px;
  }

  .bera-product-page > .claudify-newsletter .claudify-newsletter__heading {
    margin: 16.6px 0 36px;
  }

  .bera-product-page > .claudify-newsletter .claudify-newsletter__body {
    font-size: 18px;
    line-height: 1.5;
  }

  .bera-product-page > .claudify-newsletter .claudify-newsletter__form-inner {
    height: 54px;
  }
}
