/* Product actions wrapper */
.pc-pa-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--pc-pa-gap, 8px);
  max-width: 100%;
  flex-wrap: nowrap;
  color: var(--pc-pa-secondary-color, #02444E);
}

/* Product action button */
.pc-pa-action {
  min-width: 32px;
  width: auto;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--pc-pa-primary, #02444E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: var(--pc-pa-action-padding, 7px);
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
  outline: none;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* Favorite button */
.pc-pa-favorite {
  background: var(--pc-pa-favorite-bg, #B2ECF5);
  color: var(--pc-pa-favorite-color, #05C3DE);
  border-radius: var(--pc-pa-favorite-radius, 10px);
}

/* Save and share buttons */
.pc-pa-save,
.pc-pa-share {
  background: var(--pc-pa-secondary-bg, #F7F5F7);
  color: var(--pc-pa-secondary-color, #02444E);
  border-radius: var(--pc-pa-secondary-radius, 64px);
}

/* Product action button hover */
.pc-pa-action:hover,
.pc-pa-action:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Product action icon */
.pc-pa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Product action svg */
.pc-pa-action svg {
  width: 18px;
  height: 18px;
  display: block;
  color: currentColor;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Heart icon size */
.pc-pa-favorite .pc-pa-heart-icon {
  width: 15px;
  height: 13px;
}

/* Heart icon color */
.pc-pa-favorite .pc-pa-heart-icon path {
  fill: var(--pc-pa-favorite-color, #05C3DE);
  stroke: var(--pc-pa-favorite-color, #05C3DE);
}

/* Save and share icon color */
.pc-pa-save svg path,
.pc-pa-share svg path {
  fill: none;
  stroke: var(--pc-pa-secondary-color, #02444E);
}

/* Active favorite and save icons */
.pc-pa-action.is-active .pc-pa-heart-icon,
.pc-pa-action.is-active .pc-pa-bookmark-icon {
  fill: var(--pc-pa-favorite-color, #05C3DE);
  stroke: var(--pc-pa-favorite-color, #05C3DE);
}

/* Active save button */
.pc-pa-save.is-active {
  background: var(--pc-pa-favorite-bg, #B2ECF5);
  color: var(--pc-pa-favorite-color, #05C3DE);
}

/* Active save icon */
.pc-pa-save.is-active svg path {
  fill: var(--pc-pa-favorite-color, #05C3DE);
  stroke: var(--pc-pa-favorite-color, #05C3DE);
}

/* Product action count */
.pc-pa-count {
  color: var(--pc-pa-favorite-color, #05C3DE);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(1px);
}

/* Product action feedback */
.pc-pa-feedback {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: max-content;
  background: var(--pc-pa-feedback-bg, #004652);
  color: var(--pc-pa-feedback-color, #ffffff);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Product action feedback visible */
.pc-pa-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Saved products page */
.pc-pa-saved-page {
  width: 100%;
  color: var(--pc-pa-primary, #004652);
}

/* Saved products section */
.pc-pa-saved-section + .pc-pa-saved-section {
  margin-top: 42px;
}

/* Saved section title */
.pc-pa-section-title {
  color: var(--pc-pa-primary, #004652);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 22px;
}

/* Products grid */
.pc-pa-products-grid {
  display: grid;
  grid-template-columns: repeat(var(--pc-pa-columns, 4), minmax(0, 1fr));
  gap: 24px;
}

/* Product card */
.pc-pa-product-card {
  border: 1px solid rgba(0, 70, 82, 0.16);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

/* Product image link */
.pc-pa-product-image {
  display: block;
  background: rgba(0, 70, 82, 0.04);
}

/* Product image */
.pc-pa-product-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product card content */
.pc-pa-product-content {
  padding: 16px;
}

/* Product title */
.pc-pa-product-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

/* Product title link */
.pc-pa-product-title a {
  color: var(--pc-pa-primary, #004652);
  text-decoration: none;
}

/* Product price */
.pc-pa-product-price {
  color: var(--pc-pa-primary, #004652);
  font-size: 14px;
  margin-bottom: 14px;
}

/* Product card actions */
.pc-pa-product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* View product link */
.pc-pa-view-product {
  color: var(--pc-pa-accent, #05C3DE);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Remove product button */
.pc-pa-remove {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 70, 82, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--pc-pa-primary, #004652);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

/* Empty and loading states */
.pc-pa-empty,
.pc-pa-loading {
  color: var(--pc-pa-primary, #004652);
  font-size: 15px;
  margin: 0;
}

/* Mobile adjustment */
@media (max-width: 1024px) {
  .pc-pa-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Small mobile adjustment */
@media (max-width: 767px) {
  .pc-pa-actions {
    gap: max(6px, calc(var(--pc-pa-gap, 8px) - 1px));
  }

  .pc-pa-count {
    font-size: 13px;
  }

  .pc-pa-action {
    min-width: 31px;
    min-height: 31px;
    padding: var(--pc-pa-action-padding, 7px);
  }

  .pc-pa-products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pc-pa-section-title {
    font-size: 24px;
  }
}


/* Extra small mobile adjustment */
@media (max-width: 480px) {
  .pc-pa-actions {
    justify-content: flex-start;
    gap: max(6px, calc(var(--pc-pa-gap, 8px) - 2px));
  }

  .pc-pa-action svg {
    width: 18px;
    height: 18px;
  }

  .pc-pa-product-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
