/**
 * Product Card Component CSS (Reusable)
 * Styling for .pricing-box-items used across pricing-slider and product-grid
 */

.pricing-box-items {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-box-items .pricing-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 0;
}

.pricing-box-items .pricing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.pricing-box-items .pricing-content {
  padding: 20px;
  margin: 0 20px;
  margin-top: -30px;
  position: relative;
  z-index: 9;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pricing-box-items .pricing-content::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  content: "";
  background-color: var(--white);
  box-shadow: var(---box-shadow);
  z-index: -1;
  height: 83%;
  border-radius: 5px;
}

.pricing-box-items .pricing-content h3 {
  margin-bottom: 5px;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  max-height: 2.8em;
  line-height: 1.4;
}

.pricing-box-items .pricing-content h3 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.pricing-box-items .pricing-content h3 a:hover {
  color: var(--theme);
}

.pricing-box-items .pricing-content p {
  flex-grow: 1;
  margin-bottom: 0;
}

.pricing-box-items .pricing-content h4 {
  background-color: var(--theme);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 5px;
  display: inline-block;
  margin-top: auto;
  margin-bottom: -25px;
}

.pricing-box-items .pricing-content h4 a,
.shop-section .shared-product-card .shop-content h4 a {
  color: inherit;
  text-decoration: none;
}

/* Shared product grid card (product page + taxonomy + archive) */
.shop-section .product-grid-card-col {
  display: flex;
}

.shop-section .shared-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.shop-section .shared-product-card .shop-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.shop-section .shared-product-card .shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-section .shared-product-card .shop-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-section .shared-product-card .shop-content h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
}

.shop-section .shared-product-card .shop-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
  line-height: 1.5;
  margin-bottom: 16px;
}

.shop-section .shared-product-card .shop-content .star {
  margin-top: auto;
}

/* Single product description content safety */
.shop-details-wrapper .single-tab .description-items .description-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

.shop-details-wrapper .single-tab .description-items .description-content h1,
.shop-details-wrapper .single-tab .description-items .description-content h2,
.shop-details-wrapper .single-tab .description-items .description-content h3,
.shop-details-wrapper .single-tab .description-items .description-content h4,
.shop-details-wrapper .single-tab .description-items .description-content h5,
.shop-details-wrapper .single-tab .description-items .description-content h6 {
  line-height: 1.35;
  margin-top: 22px;
  margin-bottom: 12px;
}

.shop-details-wrapper .single-tab .description-items .description-content h1 {
  font-size: 34px;
}

.shop-details-wrapper .single-tab .description-items .description-content h2 {
  font-size: 30px;
}

.shop-details-wrapper .single-tab .description-items .description-content h3 {
  font-size: 26px;
}

.shop-details-wrapper .single-tab .description-items .description-content h4 {
  font-size: 22px;
}

.shop-details-wrapper .single-tab .description-items .description-content h5 {
  font-size: 19px;
}

.shop-details-wrapper .single-tab .description-items .description-content h6 {
  font-size: 17px;
}

.shop-details-wrapper .single-tab .description-items .description-content p,
.shop-details-wrapper .single-tab .description-items .description-content ul,
.shop-details-wrapper .single-tab .description-items .description-content ol,
.shop-details-wrapper .single-tab .description-items .description-content blockquote,
.shop-details-wrapper .single-tab .description-items .description-content figure,
.shop-details-wrapper .single-tab .description-items .description-content table {
  margin-bottom: 14px;
}

.shop-details-wrapper .single-tab .description-items .description-content img,
.shop-details-wrapper .single-tab .description-items .description-content video,
.shop-details-wrapper .single-tab .description-items .description-content iframe,
.shop-details-wrapper .single-tab .description-items .description-content canvas,
.shop-details-wrapper .single-tab .description-items .description-content svg {
  max-width: 100%;
  height: auto;
}

.shop-details-wrapper .single-tab .description-items .description-content figure,
.shop-details-wrapper .single-tab .description-items .description-content .wp-block-image,
.shop-details-wrapper .single-tab .description-items .description-content .wp-caption,
.shop-details-wrapper .single-tab .description-items .description-content .alignwide,
.shop-details-wrapper .single-tab .description-items .description-content .alignfull {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.shop-details-wrapper .single-tab .description-items .description-content .wp-block-image img,
.shop-details-wrapper .single-tab .description-items .description-content .wp-caption img {
  max-width: 100% !important;
  height: auto !important;
}

.shop-details-wrapper .single-tab .description-items .description-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 767px) {
  .shop-details-wrapper .single-tab .description-items .description-content h1 {
    font-size: 30px;
  }

  .shop-details-wrapper .single-tab .description-items .description-content h2 {
    font-size: 26px;
  }

  .shop-details-wrapper .single-tab .description-items .description-content h3 {
    font-size: 22px;
  }

  .shop-details-wrapper .single-tab .description-items .description-content h4 {
    font-size: 20px;
  }
}
