/**
 * ==========================
 * JLC WOOCOMMERCE PDP
 * HERO PRODUCT
 * ==========================
 */

body, .wp-singular, .page {
  overflow-x: visible !important;
}

body.single-product {
  --jlc-pdp-dark: #231f20;
  --jlc-pdp-primary: #ff5f00;
  --jlc-pdp-primary-hover: #e65500;

  --jlc-pdp-text: #3f3a3c;
  --jlc-pdp-muted: #777174;

  --jlc-pdp-border: #ece6e2;
  --jlc-pdp-soft-bg: #faf8f6;
  --jlc-pdp-white: #ffffff;

  --jlc-pdp-success: #638c42;

  --jlc-pdp-radius-sm: 12px;
  --jlc-pdp-radius-md: 18px;
  --jlc-pdp-radius-lg: 26px;

  --jlc-pdp-shadow: 0 14px 38px rgba(35, 31, 32, 0.07);

  --jlc-pdp-shadow-hover: 0 20px 48px rgba(35, 31, 32, 0.12);
}

/**
 * ==========================
 * MAIN
 * ==========================
 */

body.single-product .jlc-pdp-main {
  width: 100%;
  background: var(--jlc-pdp-white);
  color: var(--jlc-pdp-text);
}

/**
 * ==========================
 * BREADCRUMB
 * ==========================
 */

body.single-product .jlc-pdp-breadcrumb {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 24px 20px;
}

body.single-product .jlc-pdp-breadcrumb .woocommerce-breadcrumb {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--jlc-pdp-muted);
}

body.single-product .jlc-pdp-breadcrumb .woocommerce-breadcrumb a {
  color: var(--jlc-pdp-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

body.single-product .jlc-pdp-breadcrumb .woocommerce-breadcrumb a:hover {
  color: var(--jlc-pdp-primary);
}

/**
 * ==========================
 * HERO
 * ==========================
 */

body.single-product .jlc-pdp-hero {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0px 0 45px;
}

/**
 * ==========================
 * GALLERY COLUMN
 * ==========================
 */

body.single-product .jlc-pdp-gallery {
  flex: 0 0 calc(58% - 32px);
  max-width: calc(58% - 32px);
  min-width: 0;
}

/**
 * Gallery wrapper
 */
body.single-product .jlc-pdp-gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/**
 * Main image
 */
body.single-product .jlc-pdp-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.single-product .jlc-pdp-gallery .woocommerce-product-gallery__image {
  overflow: hidden;
  border-radius: var(--jlc-pdp-radius-lg);
  background: var(--jlc-pdp-soft-bg);
}

/**
 * Main image only
 */
body.single-product
  .jlc-pdp-gallery
  .woocommerce-product-gallery__wrapper
  > .woocommerce-product-gallery__image:first-child {
  box-shadow: var(--jlc-pdp-shadow);
}

body.single-product .jlc-pdp-gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
  transition: transform 0.45s ease;
}

body.single-product
  .jlc-pdp-gallery
  .woocommerce-product-gallery__image:hover
  img {
  transform: scale(1.025);
}

/**
 * Zoom button
 */
body.single-product .jlc-pdp-gallery .woocommerce-product-gallery__trigger {
  top: 20px !important;
  right: 20px !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--jlc-pdp-dark) !important;
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.14);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

body.single-product
  .jlc-pdp-gallery
  .woocommerce-product-gallery__trigger:hover {
  transform: scale(1.06);
  background: var(--jlc-pdp-dark) !important;
  color: var(--jlc-pdp-white) !important;
}

/**
 * Thumbnails
 */
body.single-product .jlc-pdp-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

body.single-product .jlc-pdp-gallery .flex-control-thumbs li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.single-product .jlc-pdp-gallery .flex-control-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  margin: 0 !important;
  border: 2px solid transparent;
  border-radius: var(--jlc-pdp-radius-md);
  background: var(--jlc-pdp-soft-bg);
  opacity: 0.72;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

body.single-product .jlc-pdp-gallery .flex-control-thumbs img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

body.single-product .jlc-pdp-gallery .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: var(--jlc-pdp-primary);
}

/**
 * ==========================
 * SUMMARY COLUMN
 * ==========================
 */

body.single-product .jlc-pdp-summary {
  flex: 0 0 calc(42% - 32px);
  max-width: calc(42% - 32px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px;
  border: 1px solid var(--jlc-pdp-border);
  border-radius: var(--jlc-pdp-radius-lg);
  background: var(--jlc-pdp-white);
  box-shadow: var(--jlc-pdp-shadow);
}

/**
 * Remove default Elementor widget spacing
 */
body.single-product .jlc-pdp-summary > .elementor-element {
  margin-bottom: 0;
}

/**
 * ==========================
 * PRODUCT TITLE
 * ==========================
 */

body.single-product .jlc-pdp-summary .product_title,
body.single-product .jlc-pdp-summary .elementor-heading-title {
  margin: 0 !important;
  font-family: "Cinzel", serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--jlc-pdp-dark);
}

/**
 * ==========================
 * PRICE
 * ==========================
 */

body.single-product .jlc-pdp-summary .price {
  display: block;
  margin-block-end: 0;
  font-size: clamp(24px, 2.2vw, 32px) !important;
  font-weight: 800;
  line-height: 1.2;
  color: var(--jlc-pdp-primary) !important;
}

body.single-product .jlc-pdp-summary .price .amount {
  color: var(--jlc-pdp-primary) !important;
}

body.single-product .jlc-pdp-summary .price del {
  margin-right: 8px;
  font-size: 0.72em;
  color: var(--jlc-pdp-muted);
  opacity: 0.65;
}

body.single-product .jlc-pdp-summary .price ins {
  text-decoration: none;
}

/**
 * ==========================
 * SHORT DESCRIPTION
 * ==========================
 */

body.single-product
  .jlc-pdp-summary
  .woocommerce-product-details__short-description {
  /* margin: 0 0 26px;
  padding-bottom: 26px; */
  border-bottom: 1px solid var(--jlc-pdp-border);
}

body.single-product
  .jlc-pdp-summary
  .woocommerce-product-details__short-description
  p {
  margin: 12px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--jlc-pdp-text);
}

/**
 * ==========================
 * BENEFITS
 * ==========================
 */

/* body.single-product .jlc-pdp-summary .jlc-pdp-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--jlc-pdp-border);
} */

/**
 * Hide empty benefits container
 */
body.single-product .jlc-pdp-summary .jlc-pdp-benefits:empty {
  display: none;
}

/**
 * Future benefit items
 */
/**
 * ==========================================
 * PRODUCT BENEFITS
 * ==========================================
 */

body.single-product .jlc-pdp-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  padding: 8px 0 16px;
}

body.single-product .jlc-pdp-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
}

body.single-product .jlc-pdp-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 2px solid var(--jlc-pdp-primary);
  border-radius: 50%;
  color: var(--jlc-pdp-primary);
}

body.single-product .jlc-pdp-benefit__icon svg {
  width: 24px;
  height: 25px;
  display: block;
}

body.single-product .jlc-pdp-benefit__text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--jlc-pdp-text);
  text-align: center;
  text-wrap: balance;
}

/* body.single-product .jlc-pdp-benefits .jlc-pdp-benefit::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: rgba(255, 95, 0, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff5f00' stroke-width='2.4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
} */

/**
 * ==========================
 * STOCK
 * ==========================
 */

body.single-product .jlc-pdp-summary .stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px !important;
  padding-left: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--jlc-pdp-success) !important;
}

body.single-product .jlc-pdp-summary .stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jlc-pdp-success);
  box-shadow: 0 0 0 4px rgba(99, 140, 66, 0.14);
  animation: jlcPdpStockPulse 1.8s ease-out infinite;
}

body.single-product .jlc-pdp-summary .out-of-stock {
  color: #b42318 !important;
}

body.single-product .jlc-pdp-summary .out-of-stock::before {
  background: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
  animation: jlcPdpStockPulse 1.8s ease-out infinite;
}

@keyframes jlcPdpStockPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 140, 66, 0.45);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(99, 140, 66, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(99, 140, 66, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .jlc-pdp-summary .jlc-pdp-stock--available::before {
    animation: none;
    box-shadow: 0 0 0 4px rgba(99, 140, 66, 0.14);
  }
}

/**
 * ==========================
 * ADD TO CART
 * ==========================
 */

body.single-product .jlc-pdp-summary form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
  /* margin: 0 0 26px !important; */
  /* border-bottom: 1px solid var(--jlc-pdp-border); */
}

/**
 * Quantity
 */
body.single-product .jlc-pdp-summary form.cart .quantity {
  float: none !important;
  margin: 0 !important;
}

body.single-product .jlc-pdp-summary form.cart .qty {
  width: 74px !important;
  height: 54px;
  padding: 0 10px;
  border: 1px solid var(--jlc-pdp-border);
  border-radius: var(--jlc-pdp-radius-sm);
  background: var(--jlc-pdp-white);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--jlc-pdp-dark);
  box-shadow: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

body.single-product .jlc-pdp-summary form.cart .qty:focus {
  border-color: var(--jlc-pdp-primary);
  box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.12);
  outline: none;
}

/**
 * Add to cart button
 */
body.single-product .jlc-pdp-summary form.cart .single_add_to_cart_button {
  flex: 1;
  max-width: 300px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 26px !important;
  border: 1px solid var(--jlc-pdp-primary) !important;
  border-radius: var(--jlc-pdp-radius-sm) !important;
  background: var(--jlc-pdp-primary) !important;
  color: var(--jlc-pdp-white) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  box-shadow: 0 12px 26px rgba(255, 95, 0, 0.22);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

body.single-product
  .jlc-pdp-summary
  form.cart
  .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  background: var(--jlc-pdp-primary-hover) !important;
  border-color: var(--jlc-pdp-primary-hover) !important;
  box-shadow: 0 16px 32px rgba(255, 95, 0, 0.28);
}

body.single-product
  .jlc-pdp-summary
  form.cart
  .single_add_to_cart_button:active {
  transform: translateY(0);
}

/**
 * ==========================
 * PRODUCT META
 * ==========================
 */

body.single-product .jlc-pdp-summary .product_meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--jlc-pdp-muted);
}

body.single-product .jlc-pdp-summary .product_meta > span {
  display: block;
}

body.single-product .jlc-pdp-summary .product_meta a {
  color: var(--jlc-pdp-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

body.single-product .jlc-pdp-summary .product_meta a:hover {
  color: var(--jlc-pdp-primary-hover);
}

/**
 * Optional: hide SKU and tags
 */
body.single-product .jlc-pdp-summary .product_meta .sku_wrapper,
body.single-product .jlc-pdp-summary .product_meta .tagged_as {
  display: none;
}

/**
 * Category label in Spanish
 */
body.single-product .jlc-pdp-summary .product_meta .posted_in {
  font-size: 0;
}

body.single-product .jlc-pdp-summary .product_meta .posted_in::before {
  content: "Categoría: ";
  font-size: 13px;
  font-weight: 600;
  color: var(--jlc-pdp-dark);
}

body.single-product .jlc-pdp-summary .product_meta .posted_in a {
  font-size: 13px;
}

.fkcart-shortcode-price {
  display: none;
}

/**
 * ==========================
 * QUANTITY SELECTOR
 * ==========================
 */

body.single-product .jlc-pdp-summary form.cart .quantity {
  display: inline-grid;
  grid-template-columns: 38px 46px 38px;
  align-items: stretch;
  width: auto;
  height: 48px;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--jlc-pdp-border);
  border-radius: 10px;
  background: var(--jlc-pdp-white);
  box-shadow: 0 4px 14px rgba(35, 31, 32, 0.05);
}

/**
 * Input
 */
body.single-product .jlc-pdp-summary form.cart .quantity .qty {
  grid-column: 2;
  width: 46px !important;
  height: 46px;
  margin: 0;
  padding: 0 4px;
  border: 0 !important;
  border-left: 1px solid var(--jlc-pdp-border) !important;
  border-right: 1px solid var(--jlc-pdp-border) !important;
  border-radius: 0 !important;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  color: var(--jlc-pdp-dark);
  box-shadow: none !important;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

/**
 * Hide native browser arrows
 */
body.single-product
  .jlc-pdp-summary
  form.cart
  .quantity
  .qty::-webkit-inner-spin-button,
body.single-product
  .jlc-pdp-summary
  form.cart
  .quantity
  .qty::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/**
 * ==========================================
 * CONTENT ONLY
 * ==========================================
 */

.jlc-product-content--content-only .jlc-content-column {
  flex: 1 1 100%;
  max-width: 100%;
}

.jlc-product-content--content-only .jlc-image-column {
  display: none;
}

/**
 * ==========================================
 * IMAGE ONLY
 * ==========================================
 */

.jlc-product-content--image-only .jlc-image-column {
  flex: 1 1 100%;
  max-width: 100%;
}

.jlc-product-content--image-only .jlc-content-column {
  display: none;
}

/**
 * Buttons
 */
body.single-product .jlc-pdp-summary form.cart .jlc-quantity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--jlc-pdp-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

body.single-product .jlc-pdp-summary form.cart .jlc-quantity-button:hover {
  background: var(--jlc-pdp-soft-bg);
  color: var(--jlc-pdp-primary);
}

body.single-product
  .jlc-pdp-summary
  form.cart
  .jlc-quantity-button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid var(--jlc-pdp-primary);
  outline-offset: -2px;
}

body.single-product .jlc-pdp-summary form.cart .jlc-quantity-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/**
 * Minus
 */
body.single-product .jlc-pdp-summary form.cart .jlc-quantity-button--minus {
  grid-column: 1;
  grid-row: 1;
  padding-left: 15px;
}

/**
 * Plus
 */
body.single-product .jlc-pdp-summary form.cart .jlc-quantity-button--plus {
  grid-column: 3;
  grid-row: 1;
  padding-right: 5px;
}

/**
 * ==========================================
 * PRODUCT CONTENT LAYOUT
 * ==========================================
 */

.jlc-pdp-product-content-layout {
  display: flex;
  align-items: center;
  gap: 56px;
}

.jlc-pdp-product-content-layout > .elementor-element {
  min-width: 0;
}

/**
 * ==========================================
 * BOTH
 * ==========================================
 */

.jlc-product-content--both > .elementor-element {
  flex: 1 1 50%;
  max-width: 50%;
}

/**
 * ==========================================
 * EMPTY
 * ==========================================
 */

.jlc-product-content--empty {
  display: none !important;
}

@media (min-width: 1025px) {
  body.single-product .jlc-pdp-summary-sticky {
    position: sticky;
    top: 130px;
  }
}

/**
 * ==========================
 * TABLET
 * ==========================
 */

@media (max-width: 1024px) {
  body.single-product .jlc-pdp-breadcrumb {
    padding: 22px 20px 18px;
  }

  body.single-product .jlc-pdp-hero {
    width: calc(100% - 40px);
    gap: 26px;
    padding: 16px 0 70px;
  }

  body.single-product .jlc-pdp-gallery {
    flex-basis: calc(52% - 18px);
    max-width: calc(52% - 18px);
  }

  body.single-product .jlc-pdp-summary {
    flex-basis: calc(48% - 18px);
    max-width: calc(48% - 18px);
    padding: 24px;
  }

  body.single-product .jlc-pdp-summary .product_title,
  body.single-product .jlc-pdp-summary .elementor-heading-title {
    font-size: 30px;
  }

  body.single-product .jlc-pdp-summary form.cart {
    flex-direction: column;
  }

  body.single-product .jlc-pdp-summary form.cart .qty {
    width: 100% !important;
  }

  body.single-product .jlc-pdp-summary form.cart .single_add_to_cart_button {
    width: 100%;
  }
}

/**
 * ==========================
 * MOBILE
 * ==========================
 */

@media (max-width: 767px) {
  body.single-product .jlc-pdp-breadcrumb {
    padding: 18px 16px 14px;
  }

  body.single-product .jlc-pdp-breadcrumb .woocommerce-breadcrumb {
    font-size: 12px;
  }

  body.single-product .jlc-pdp-hero {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 0;
  }

  body.single-product .jlc-pdp-gallery,
  body.single-product .jlc-pdp-summary {
    flex-basis: 100%;
    max-width: 100%;
    width: 100%;
  }

  body.single-product .jlc-pdp-gallery .woocommerce-product-gallery__image {
    border-radius: 0px;
  }

  body.single-product .jlc-pdp-gallery .woocommerce-product-gallery__image img {
    aspect-ratio: 1 / 1;
  }

  body.single-product .jlc-pdp-gallery .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body.single-product .jlc-pdp-gallery .flex-control-thumbs img {
    border-radius: 0px;
  }

  body.single-product .jlc-pdp-summary {
    padding: 8px 16px 24px;
    border-radius: 0px;
    border: none;
  }

  body.single-product .jlc-pdp-summary .product_title,
  body.single-product .jlc-pdp-summary .elementor-heading-title {
    font-size: 30px;
  }

  body.single-product .jlc-pdp-summary .price {
    font-size: 25px;
  }

  body.single-product
    .jlc-pdp-summary
    .woocommerce-product-details__short-description
    p {
    font-size: 15px;
  }

  body.single-product .jlc-pdp-summary form.cart {
    flex-direction: row;
    gap: 10px;
  }

  body.single-product .jlc-pdp-summary form.cart .qty {
    width: 68px !important;
  }

  body.single-product .jlc-pdp-summary form.cart .single_add_to_cart_button {
    width: auto;
  }

  .jlc-pdp-product-content-layout {
    flex-direction: column;
    gap: 36px;
  }

  .jlc-pdp-product-content-layout > .elementor-element {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100%;
  }
}

/**
 * ==========================
 * VERY SMALL MOBILE
 * ==========================
 */

@media (max-width: 420px) {
  body.single-product .jlc-pdp-summary form.cart {
    flex-direction: row;
    align-items: center;
  }

  body.single-product .jlc-pdp-summary form.cart .quantity {
    width: 38%;
    height: 48px;
  }

  body.single-product .jlc-pdp-summary form.cart .qty,
  body.single-product .jlc-pdp-summary form.cart .single_add_to_cart_button {
    width: 62% !important;
  }
}
