/* =========================================================
   🛍️ PRODUCT GRID — UNIFIED STYLE (slider → grid adaptacija)
========================================================= */

.product-buttons {
  z-index: 111 !important;
}


.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
🔹 Product Card
----------------------------- */
/*
.product-grid .product-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}*/
/*
.product-grid .product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}*/

/* Zoom slike na hover */
/*
.product-grid .product-item:hover img {
  transform: scale(1.07);
}*/

/* Thumbnail */
.product-grid .product-thumb {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
}

.product-grid .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

/* Tamni overlay (YouTube stil) */
.product-grid .product-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(243, 226, 219, 0);
  transition: background 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
/*
.product-grid .product-item:hover::after {
  background: rgba(243, 226, 219, 0.65);
}*/

/* Naslov */
.product-grid h3 {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-dark);
  margin: 14px 0 6px;
  z-index: 2;
  position: relative;
}

/* Cena */
.product-grid .price {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-dark);
  z-index: 2;
  position: relative;
}

.product-grid .price ins {
  color: var(--accent-berry);
  font-weight: 700;
}

.product-grid .price del {
  color: #999;
  margin-right: 6px;
}

/* Fade-in CTA dugmića */
.product-grid .product-buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
  z-index: 5;
  position: relative;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-grid .product-item:hover .product-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* Dugme Detaljnije */
.product-grid .btn-details {
  flex: 1;
  background: #fff;
  border: 1px solid #7e4e62;
  padding: 10px;
  text-align: center;
  border-radius: 11px;
  font-size: 13px;
  transition: background 0.3s ease, color 0.3s ease;
}

.product-grid .btn-details:hover {
  background: #7a3451;
  color: #fff;
}

/* Add to cart dugme */
.product-grid .btn-add-to-cart {
  flex: 1;
  background: #7e4e62 !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 10px !important;
  border: none;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 40 !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.product-grid .btn-add-to-cart:hover {
  background: #7a3451;
  transform: translateY(-1px);
}

/* Hide WooCommerce “View cart” link */
.added_to_cart.wc-forward {
  display: none !important;
}
.archive .category-products .product-item h3 {
  font-size: 14px;
}
.archive .category-products .price {
  color: #7e4e62 !important;
  font-size: 14px !important;
}

.archive .category-products .product-item img {
  margin-bottom: 0;
}

/* =============================================
   🔢 FACETWP PAGINATION — Luen Style
============================================= */

.fwp-pager-wrap {
  margin-top: 30px;
  text-align: center;
}

.facetwp-pager {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.facetwp-page {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 38px;
  text-align: center;
}

/* Hover */
/*
.facetwp-page:hover {
  background: #f7e7ef;
  border-color: #c72b77;
  color: #7a3451;
}*/

/* Active page */
.facetwp-page.active {
  background: var(--accent-berry);
  color: #fff;
  border-color: var(--accent-berry);
}

/* "Dots" (…) */
.facetwp-page.dots {
  cursor: default;
  background: transparent;
  border: none;
  color: #999;
}

/* Prev / Next / First / Last */
.facetwp-page.prev,
.facetwp-page.next,
.facetwp-page.first,
.facetwp-page.last {
  font-weight: 600;
}

/* Disabled arrows (FacetWP ponekad šalje klasu “disabled”) */
.facetwp-page.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
  .facetwp-pager {
    gap: 6px;
  }
  .facetwp-page {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 32px;
  }
}
