/* Konoyek — mejoras visuales ficha de producto */

.container-product .product-gallery-card {
  background: #f8f9fb;
  border: 1px solid #ececf1;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(61, 48, 105, 0.06);
}

.container-product .product-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.container-product .product-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.container-product .product-summary-header .product-title {
  margin-bottom: 0;
  line-height: 1.25;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
}

.container-product .product-share {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.container-product .product-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3D3069;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.container-product .product-share a i {
  font-family: 'Font Awesome 5 Brands' !important;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1;
  color: #fff !important;
}

.container-product .product-share a:hover {
  background: #e61485;
  transform: translateY(-2px);
}

.container-product .product-share a:hover i {
  color: #fff !important;
}

.container-product .product-price-box {
  background: linear-gradient(135deg, #faf9fc 0%, #f3f1f8 100%);
  border: 1px solid #e8e4f0;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.container-product .product-price-box .price-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
  font-family: "Poppins Light", sans-serif;
  margin-bottom: 0.15rem;
}

.container-product .product-price-box .price-now-product {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  margin: 0;
}

.container-product .product-price-box .price-before-product {
  font-size: 1rem;
  margin: 0;
}

.container-product .product-price-hint {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.35rem;
}

.container-product .product-price-hint.is-range {
  color: #3D3069;
}

.container-product .stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.container-product .stock-badge--in {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.container-product .stock-badge--out {
  background: rgba(230, 20, 133, 0.12);
  color: #e61485;
}

.container-product .container-tabs-product {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 16px;
  overflow: hidden;
}

.container-product .container-tabs-product .nav-tabs {
  background: #faf9fc;
  border-bottom: 1px solid #ececf1;
  margin-bottom: 0;
  padding: 0.5rem 0.75rem 0;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.container-product .container-tabs-product .nav-tabs .nav-item .nav-link {
  border: none !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 0.65rem 1rem;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: #6c757d;
  background: transparent;
}

.container-product .container-tabs-product .nav-tabs .nav-item .nav-link.active {
  background: #fff;
  color: #3D3069;
  box-shadow: 0 -2px 0 #3D3069 inset;
}

.container-product .container-tabs-product .tab-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.container-product .container-tabs-product .tab-content h1,
.container-product .container-tabs-product .tab-content h2,
.container-product .container-tabs-product .tab-content h3 {
  font-family: "Poppins Medium", sans-serif;
  color: #3D3069;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ececf1;
}

.container-product .container-tabs-product .tab-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container-product .container-tabs-product .tab-content ul li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1rem;
  border-bottom: 1px solid #f1f1f4;
  color: #495057;
  line-height: 1.5;
}

.container-product .container-tabs-product .tab-content ul li:last-child {
  border-bottom: none;
}

.container-product .container-tabs-product .tab-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e61485;
}

.container-product .container-tabs-product .tab-content ul li strong {
  color: #3D3069;
  font-weight: 600;
}

.container-product .container-tabs-product .tab-content p {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.container-product .product-trust-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #faf9fc;
  border: 1px dashed #d8d2e6;
  border-radius: 12px;
  font-size: 0.875rem;
  color: #6c757d;
}

.container-product .product-trust-box .img-info-payment {
  max-width: 72px !important;
  height: auto;
  filter: none;
}

.container-product .product-purchase-box {
  margin-top: 0.25rem;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(61, 48, 105, 0.06);
}

.container-product .product-purchase-box .summary.entry-summary {
  padding: 0 !important;
  margin: 0;
}

.container-product .product-variations-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container-product .variation-row {
  position: relative;
}

.container-product .variation-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.container-product .variation-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3D3069;
}

.container-product .variation-selected-value {
  font-size: 0.8rem;
  color: #6c757d;
}

.container-product .variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.container-product .variation-swatch {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 72px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d8d2e6;
  border-radius: 12px;
  background: #faf9fc;
  color: #3D3069;
  cursor: pointer;
  transition: all 0.15s ease;
}

.container-product .variation-swatch:hover {
  border-color: #3D3069;
  background: #fff;
}

.container-product .variation-swatch.is-selected {
  border-color: #3D3069;
  background: #3D3069;
  color: #fff;
  box-shadow: 0 6px 18px rgba(61, 48, 105, 0.2);
}

.container-product .variation-swatch-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.container-product .variation-swatch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container-product .variation-swatch-label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.container-product .variation-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container-product .variation-reset-row {
  display: flex;
  justify-content: flex-end;
}

.container-product .reset_variations {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #ececf1;
  background: #fff;
  color: #6c757d !important;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

.container-product .reset_variations:hover {
  border-color: #e61485;
  color: #e61485 !important;
}

.container-product .single_variation_wrap {
  margin-top: 1rem;
}

.container-product .woocommerce-variation.single_variation {
  display: none !important;
}

.container-product .product-add-to-cart-row,
.container-product .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.container-product .product-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d2e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.container-product .product-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 44px;
  border: none;
  background: #faf9fc;
  color: #3D3069;
  font-size: 1.1rem;
  cursor: pointer;
}

.container-product .product-qty-btn:hover {
  background: #3D3069;
  color: #fff;
}

.container-product .product-qty-control .qty {
  width: 56px !important;
  min-height: 44px !important;
  text-align: center;
  border: none !important;
  border-left: 1px solid #ececf1 !important;
  border-right: 1px solid #ececf1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.container-product .product-add-to-cart-row .single_add_to_cart_button,
.container-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 1 180px;
  min-height: 44px;
  border-radius: 12px !important;
  padding: 0.85rem 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  background: #3D3069 !important;
  border: 1px solid #3D3069 !important;
  color: #fff !important;
}

.container-product .product-add-to-cart-row .single_add_to_cart_button:hover,
.container-product .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
  background: #2a2150 !important;
  border-color: #2a2150 !important;
  color: #fff !important;
}

.container-product .stock-badge--low {
  background: rgba(255, 193, 7, 0.18);
  color: #856404;
}

.container-product .product-purchase-feedback {
  flex: 1 1 100%;
  width: 100%;
}

.container-product .product-variation-feedback,
.container-product .product-stock-notice {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.container-product .product-variation-feedback.is-visible,
.container-product .product-stock-notice.is-visible {
  display: flex;
}

.container-product .product-variation-feedback.is-warning,
.container-product .product-stock-notice.is-warning {
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #856404;
}

.container-product .product-variation-feedback.is-error,
.container-product .product-stock-notice.is-error {
  background: rgba(230, 20, 133, 0.08);
  border: 1px solid rgba(230, 20, 133, 0.22);
  color: #b01268;
}

.container-product .product-variation-feedback.is-success,
.container-product .product-stock-notice.is-success {
  background: rgba(61, 48, 105, 0.06);
  border: 1px solid rgba(61, 48, 105, 0.12);
  color: #3D3069;
}

.container-product .product-feedback-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.container-product .variation-row.is-highlight {
  animation: konoyek-variation-highlight 1.2s ease;
}

@keyframes konoyek-variation-highlight {
  0%,
  100% {
    box-shadow: none;
  }
  25%,
  75% {
    box-shadow: 0 0 0 3px rgba(230, 20, 133, 0.18);
  }
}

.container-product .variation-swatch.is-out-of-stock {
  opacity: 0.48;
  cursor: not-allowed;
  position: relative;
}

.container-product .variation-swatch.is-out-of-stock::after {
  content: "Agotado";
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e61485;
}

.container-product .variation-swatch-stock {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ffc107;
  color: #3D3069;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.container-product .product-qty-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.container-product .product-qty-btn.is-disabled:hover {
  background: #faf9fc;
  color: #3D3069;
}

.container-product .product-qty-control.is-at-max {
  border-color: rgba(255, 193, 7, 0.65);
}

.container-product .product-qty-control.is-shake {
  animation: konoyek-qty-shake 0.45s ease;
}

@keyframes konoyek-qty-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}

.container-product .variations_form .stock {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(230, 20, 133, 0.08);
  color: #e61485;
  font-size: 0.875rem;
}

.container-product .product-purchase-box .product-sold-out {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 12px !important;
  padding: 0.95rem 1.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: #adb5bd !important;
  cursor: not-allowed;
  border: none;
}

@media (max-width: 991.98px) {
  .container-product .product-summary-header {
    flex-direction: column;
  }

  .container-product .product-share {
    align-self: flex-start;
  }

  .container-product .product-gallery-card {
    margin-bottom: 1rem;
  }

  .container-product .product-add-to-cart-row,
  .container-product .woocommerce-variation-add-to-cart {
    flex-direction: column;
  }

  .container-product .product-add-to-cart-row .single_add_to_cart_button,
  .container-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 100%;
  }
}

/* Productos relacionados — ficha de producto v1.5 */

.konoyek-single-product-shell {
  position: relative;
  z-index: 2;
  background: #fff;
  isolation: isolate;
}

.konoyek-single-product-shell .container-product {
  background: #fff;
}

.konoyek-related-products {
  position: relative;
  margin-top: 0;
  padding: 2.5rem 0 3.5rem;
  background: #fff;
  overflow: hidden;
}

.konoyek-related-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 2rem));
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e8e4f0 18%, #e8e4f0 82%, transparent 100%);
  pointer-events: none;
}

.konoyek-related-products::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(230, 20, 133, 0.04) 0%, transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(61, 48, 105, 0.05) 0%, transparent 38%);
  pointer-events: none;
}

.konoyek-related-products > .container {
  position: relative;
  z-index: 1;
}

.konoyek-related-products__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.konoyek-related-products__eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(61, 48, 105, 0.08);
  color: #3D3069;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.konoyek-related-products__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #3D3069;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.konoyek-related-products__divider {
  width: 72px;
  height: 4px;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #3D3069 0%, #e61485 100%);
}

.konoyek-related-products__subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 0.95rem;
}

.konoyek-related-products__carousel {
  position: relative;
  padding: 0 3.25rem;
}

.konoyek-related-products__swiper {
  overflow: hidden;
  padding: 0.5rem 0.15rem 1rem;
}

.konoyek-related-products__swiper .swiper-slide {
  height: auto;
  display: flex;
}

.konoyek-related-products .konoyek-product-card--slide {
  width: 100%;
  height: 100%;
}

.konoyek-related-products .konoyek-product-card__link {
  box-shadow: 0 10px 30px rgba(61, 48, 105, 0.08);
}

.konoyek-related-products .konoyek-product-card__image {
  padding: 1rem;
}

.konoyek-related-products .konoyek-product-card__title {
  font-size: 0.88rem;
  min-height: 3.8rem;
  -webkit-line-clamp: 2;
}

.konoyek-related-products .konoyek-product-card__price-current {
  font-size: 1rem;
}

.konoyek-related-products__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 0.5rem));
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: #3D3069;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(61, 48, 105, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.konoyek-related-products__arrow::after {
  content: none !important;
}

.konoyek-related-products__arrow:hover {
  background: #e61485;
  transform: translateY(calc(-50% - 0.5rem)) scale(1.04);
  box-shadow: 0 14px 28px rgba(230, 20, 133, 0.24);
}

.konoyek-related-products__arrow.swiper-button-disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
  transform: translateY(calc(-50% - 0.5rem));
  box-shadow: none;
}

.konoyek-related-products__arrow--prev {
  left: 0;
}

.konoyek-related-products__arrow--next {
  right: 0;
}

@media (max-width: 767.98px) {
  .konoyek-related-products {
    padding: 2rem 0 2.75rem;
  }

  .konoyek-related-products__carousel {
    padding: 0 2.85rem;
  }

  .konoyek-related-products__arrow {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}
