/* ERATOOLS V5.9 - strona główna: kategorie, marki, ulubione */

.home-category-slider-v59,
.home-brand-slider-v59 {
  position: relative;
}

.home-slider-controls-v59 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-slider-controls-v59 button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: var(--text, #fff);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.home-slider-controls-v59 button:hover {
  border-color: var(--accent, #ffc400);
  color: var(--accent, #ffc400);
}

.category-grid--scroll-v59 {
  display: flex !important;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 4px 14px;
  scrollbar-width: thin;
}

.category-grid--scroll-v59 .category-v59 {
  min-width: 160px;
  width: 160px;
  scroll-snap-align: start;
  text-align: center;
}

.category-v59 .category__image {
  border-radius: 999px;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.category-v59:hover .category__image {
  border-color: var(--accent, #ffc400);
  transform: translateY(-2px);
}

.brands-strip--scroll-v59 {
  display: flex !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.brand-item-v59 {
  min-width: 210px;
  min-height: 88px;
  scroll-snap-align: start;
  color: var(--text, #fff);
  text-decoration: none;
  border-right: 1px solid var(--line, rgba(255,255,255,.10));
}

.brand-item-v59 img {
  max-width: 142px;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: filter .16s ease, opacity .16s ease, transform .16s ease;
}

.brand-item-v59:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px);
}

.brand-item-v59 span {
  font-weight: 950;
}

.product-card__actions--v59,
.product-actions-v59 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.cart-btn-v59,
.product-actions-v59 .cart-btn-v59,
.product-card__actions--v59 .cart-btn-v59 {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 11px !important;
  background: var(--accent, #ffc400) !important;
  background-image: none !important;
  color: #111 !important;
  box-shadow: none !important;
  font-weight: 950 !important;
}

.wishlist-toggle-form-v59 {
  margin: 0 !important;
}

.wishlist-heart-v59 {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255,196,0,.32) !important;
  background: rgba(255,255,255,.045) !important;
  color: var(--accent, #ffc400) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.wishlist-heart-v59 svg {
  width: 22px;
  height: 22px;
  display: block;
}

.wishlist-heart-v59.is-active,
.wishlist-toggle-form-v59.is-active .wishlist-heart-v59 {
  background: rgba(255,196,0,.16) !important;
  color: var(--accent, #ffc400) !important;
  border-color: var(--accent, #ffc400) !important;
}

.wishlist-heart-v59.is-active svg path,
.wishlist-toggle-form-v59.is-active svg path {
  fill: currentColor;
}

.header-action--wishlist-v59 {
  position: relative;
}

.wishlist-count-v59 {
  min-width: 18px;
}

/* Admin V5.9 */
.v59-admin-page {
  font-family: var(--font-main, "Inter", "Segoe UI", Roboto, Arial, sans-serif);
}

.v59-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.v59-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.v59-card {
  border-radius: 16px !important;
}

.v59-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.v59-form label {
  display: grid;
  gap: 7px;
  color: #172116;
  font-size: .88rem;
  font-weight: 850;
}

.v59-form input,
.v59-form select,
.v59-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dfe7d5;
  border-radius: 11px;
  background: #fff;
  color: #172116;
  padding: 0 12px;
  font: inherit;
}

.v59-form textarea {
  padding: 12px;
}

.v59-form .is-wide {
  grid-column: 1 / -1;
}

.v59-list {
  display: grid;
  gap: 10px;
}

.v59-list article {
  display: grid;
  gap: 5px;
  border: 1px solid #dfe7d5;
  border-radius: 12px;
  background: #f7f9f3;
  padding: 12px;
}

.v59-list strong {
  color: #172116;
}

.v59-list span,
.v59-muted {
  color: #64705f;
  word-break: break-word;
}

@media (max-width: 900px) {
  .v59-grid,
  .v59-form {
    grid-template-columns: 1fr;
  }

  .category-grid--scroll-v59 .category-v59 {
    min-width: 134px;
    width: 134px;
  }

  .brand-item-v59 {
    min-width: 170px;
  }
}


/* ERATOOLS V5.9.1 - korekta buttonów produktu według screena:
   - bez zaokrągleń,
   - bez kropki/plusa po prawej w "Do koszyka",
   - tekst idealnie wycentrowany,
   - kolorystyka odwrócona: ciemne tło + żółty tekst/ikona.
*/
.cart-btn.cart-btn--v45,
.cart-btn.cart-btn--v45.cart-btn-v59,
.product-card__actions .cart-btn.cart-btn--v45,
.product-card__actions--v59 .cart-btn-v59,
.product-actions-v59 .cart-btn-v59,
.cart-btn-v59 {
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 0 !important;
  border: 1px solid var(--accent, #ffc400) !important;
  background: #080d0f !important;
  background-image: none !important;
  color: var(--accent, #ffc400) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.cart-btn.cart-btn--v45::before,
.cart-btn.cart-btn--v45::after,
.cart-btn-v59::before,
.cart-btn-v59::after {
  content: none !important;
  display: none !important;
}

.cart-btn.cart-btn--v45:hover,
.cart-btn.cart-btn--v45:focus-visible,
.cart-btn-v59:hover,
.cart-btn-v59:focus-visible {
  transform: none !important;
  filter: none !important;
  border-color: #ffd84a !important;
  background: #11181b !important;
  color: #ffd84a !important;
  box-shadow: none !important;
}

.product-card__actions--v59,
.product-actions-v59 {
  grid-template-columns: minmax(0, 1fr) 48px !important;
  gap: 12px !important;
  align-items: center !important;
}

.wishlist-heart-v59,
.wish-btn.wishlist-heart-v59,
.product-card__actions--v59 .wishlist-heart-v59,
.product-actions-v59 .wishlist-heart-v59 {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 0 !important;
  border: 1px solid var(--accent, #ffc400) !important;
  background: #080d0f !important;
  background-image: none !important;
  color: var(--accent, #ffc400) !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wishlist-heart-v59 svg {
  width: 22px !important;
  height: 22px !important;
}

.wishlist-heart-v59 svg path {
  fill: none !important;
  stroke: currentColor !important;
}

.wishlist-heart-v59:hover,
.wishlist-heart-v59:focus-visible,
.wishlist-heart-v59.is-active,
.wishlist-toggle-form-v59.is-active .wishlist-heart-v59 {
  border-color: #ffd84a !important;
  background: #11181b !important;
  color: #ffd84a !important;
  transform: none !important;
}

.wishlist-heart-v59.is-active svg path,
.wishlist-toggle-form-v59.is-active .wishlist-heart-v59 svg path {
  fill: currentColor !important;
  stroke: currentColor !important;
}


/* ERATOOLS V5.9.2 - lista życzeń / integracja klient-admin */
.v592-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.v592-stat-grid article {
  border: 1px solid #dfe7d5;
  border-radius: 12px;
  background: #f7f9f3;
  padding: 15px;
}

.v592-stat-grid span {
  display: block;
  color: #64705f;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.v592-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #172116;
  font-size: 1.55rem;
  line-height: 1;
}

.wishlist-page {
  width: min(var(--container, 1440px), calc(100% - 72px));
  margin: 32px auto 80px;
}

.wishlist-page .customer-card {
  margin-top: 20px;
}

.wishlist-public-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.wishlist-public-card {
  border: 1px solid var(--line, rgba(255,255,255,.10));
  background: var(--card, #11171b);
  border-radius: 0;
  overflow: hidden;
}

.wishlist-public-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 18px;
  background: rgba(255,255,255,.035);
}

.wishlist-public-thumb img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.wishlist-public-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.wishlist-public-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.wishlist-public-title a {
  color: var(--text, #fff);
  text-decoration: none;
}

.wishlist-public-category,
.wishlist-public-desc {
  color: var(--text-soft, #b7c0c9);
}

.wishlist-public-bottom {
  display: grid;
  gap: 12px;
}

@media (max-width: 1100px) {
  .wishlist-public-grid,
  .v592-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wishlist-page {
    width: calc(100% - 24px);
  }

  .wishlist-public-grid,
  .v592-stat-grid {
    grid-template-columns: 1fr;
  }
}
