/* ==========================================================================
   overrides.css — Elementor / theme hardening
   Page builders (Elementor) and many themes apply base styles to button / a /
   select / input elements that bleed into the storefront. This file re-asserts
   the plugin's own component styles with !important. It targets ONLY the
   plugin's class names, so Elementor's own buttons/widgets are not affected.
   Loaded LAST so it wins on source order as well as specificity.
   ========================================================================== */

/* ----------  Buttons  ---------- */
.pecb-skills .btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  padding: 0.75rem 1.5rem !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: var(--fs-sm) !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: var(--btn-bg, var(--color-ink)) !important;
  color: var(--btn-fg, var(--color-text-invert)) !important;
  border: 1.5px solid var(--btn-bg, var(--color-ink)) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  width: 100%;
  margin-top: 20px;
}

.pecb-skills .btn:hover{
  box-shadow: var(--shadow-md) !important;
}

.pecb-skills .btn--outline{
  --btn-bg: transparent;
  --btn-fg: var(--color-ink);
  background: transparent !important;
  color: var(--color-ink) !important;
  border-color: var(--color-border-strong) !important;
}

.pecb-skills .btn--outline:hover{
  background: var(--color-bg-soft) !important;
}

.pecb-skills .btn--accent{
  --btn-bg: var(--color-accent);
  background: var(--color-accent) !important;
  color: var(--color-text-invert) !important;
  border-color: var(--color-accent) !important;
}

.pecb-skills .btn--accent:hover{
  background: var(--color-accent-dark) !important;
  border-color: var(--color-accent-dark) !important;
}

.pecb-skills .btn--ghost{
  --btn-bg: transparent;
  background: transparent !important;
  color: var(--color-text-muted) !important;
  border-color: transparent !important;
}

.pecb-skills .btn--ghost:hover{
  background: var(--color-bg-soft) !important;
}

/* .pecb-skills .btn--block{
  width: 100% !important;
} */

.pecb-skills .btn--lg{
  padding: 1rem 2rem !important;
  font-size: var(--fs-base) !important;
}

.pecb-skills .btn--sm{
  padding: 0.5rem 1rem !important;
  font-size: var(--fs-xs) !important;
}

.pecb-skills .btn .icon{
  width: 18px !important;
  height: 18px !important;
}

/* ----------  Store toolbar: filters left, sort dropdown right  ---------- */
.pecb-skills .store-toolbar{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--space-4) !important;
  flex-wrap: wrap !important;
}

.pecb-skills .filter-tabs{
  display: flex !important;
  gap: var(--space-2) !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
}

.pecb-skills .filter-tab{
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill) !important;
  font-size: var(--fs-sm) !important;
  font-weight: 400 !important;
  color: var(--color-text-muted) !important;
  background: transparent !important;
  border: 1px solid var(--color-border) !important;
  width: auto !important;
  cursor: pointer !important;
}

.pecb-skills .filter-tab:hover{
  background: var(--color-bg-soft) !important;
}

.pecb-skills .filter-tab.is-active{
  background: var(--color-text) !important;
  color: #fff !important;
  font-weight: 400 !important;
}

/* Newest dropdown pinned to the right edge of the toolbar. */
.pecb-skills .sort-select{
  margin-left: auto !important;
  padding: 0.5rem 2rem 0.5rem 1rem !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-size: var(--fs-sm) !important;
  background-color: var(--color-surface) !important;
  color: var(--color-ink) !important;
  width: auto !important;
  cursor: pointer !important;
}

/* ----------  Search bar  ---------- */
.pecb-skills .search-bar button{
  border-radius: var(--radius-pill) !important;
  border: none !important;
  cursor: pointer !important;
}

/* ----------  Carousel arrows  ----------
   Themes and Elementor paint bare <button> elements (background, padding,
   radius, uppercase), which would flatten the round nav arrows. */
.pecb-skills .skills-carousel__btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--color-surface) !important;
  color: var(--color-ink) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  text-transform: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.pecb-skills .skills-carousel__btn:hover:not([disabled]){
  border-color: var(--color-ink) !important;
  box-shadow: var(--shadow-sm) !important;
}

.pecb-skills .skills-carousel__btn[disabled]{ opacity: 0.35 !important; cursor: default !important; }

/* ----------  Pagination  ---------- */
.pecb-skills .pagination{
  display: flex !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  flex-wrap: wrap !important;
}

.pecb-skills .pagination button{
  width: auto !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
}

.pecb-skills .pagination button.is-active{
  background: var(--color-ink) !important;
  color: #fff !important;
  border-color: var(--color-ink) !important;
}

/* ----------  Quantity stepper  ---------- */
.pecb-skills .qty button{
  width: auto !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

/* ----------  Cart remove / delete button  ----------
   Not a .btn, so the theme/Elementor would otherwise restyle (or visually
   swallow) it. Re-assert it as a clearly visible outlined danger control. */
.pecb-skills .cart-remove{
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--space-1) !important;
    background: transparent !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--color-danger, #c0392b) !important;
    font-family: var(--font-display) !important;
    font-size: var(--fs-sm) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    width: fit-content !important;
    padding: 10px 20px !important;
}

.pecb-skills .cart-remove:hover{
  background: var(--color-bg-soft) !important;
  border-color: var(--color-danger, #c0392b) !important;
}

.pecb-skills .cart-remove .icon{
  width: 16px !important;
  height: 16px !important;
}

/* ----------  Language chips  ---------- */
.pecb-skills .lang-chip{
  width: auto !important;
  cursor: pointer !important;
  color: var(--color-ink) !important;
  border-color: var(--color-border-strong) !important;
}

.pecb-skills .lang-chip.is-active{
  background: var(--color-ink) !important;
  color: #fff !important;
}

/* ----------  Breadcrumb row + cart button  ---------- */
.pecb-skills .breadcrumb-row{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--space-4) !important;
  flex-wrap: wrap !important;
}

/* Cart button: used in the breadcrumb row AND the [skills_cart_button] shortcode
   (e.g. an Elementor header). Self-contained so it renders correctly anywhere. */
.pecb-skills.pecb-cart-button{
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--radius-pill, 999px) !important;
  background: var(--color-bg-soft, #f3f4f6) !important;
  color: var(--color-ink, #111) !important;
  border: 1.5px solid var(--color-border, #e5e7eb) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease !important;
  flex: 0 0 auto !important;
}

.pecb-skills.pecb-cart-button:hover{
  background: var(--color-bg-alt, #e5e7eb) !important;
}

.pecb-skills.pecb-cart-button .icon{
  width: 20px !important;
  height: 20px !important;
}

.pecb-skills .pecb-cart-badge{
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-display, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #fff !important;
  background: var(--color-accent, #c8102e) !important;
  border-radius: 999px !important;
}


@media (max-width: 981px) {
  .pecb-skills .store-toolbar{
    display: flex !important;
    align-items: center !important;
    gap: var(--space-4) !important;
    flex-wrap: wrap !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
  }

  .pecb-skills .sort-select{
    margin-right: auto !important;
    margin-left: 0 !important;
  }

}

