/* ===== OGÓLNE ===== */

.esti-wrap {
  margin: 0 0 32px;
}

.esti-wrap * {
  box-sizing: border-box;
}

/* ===== WYSZUKIWARKA ===== */

.esti-search {
  margin: 0 0 28px;
  padding: 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.esti-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.esti-field label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.esti-field select,
.esti-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.esti-field select:hover,
.esti-field input:hover {
  border-color: #6d1e19;
}

.esti-field select:focus,
.esti-field input:focus {
  outline: none;
  border-color: #6d1e19;
  box-shadow: 0 0 0 4px rgba(109, 30, 25, 0.10);
}

.esti-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.esti-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}

.esti-btn:hover {
  transform: translateY(-1px);
}

.esti-btn-primary {
  border: 1px solid #6d1e19;
  background: #6d1e19;
  color: #fff;
  box-shadow: 0 10px 20px rgba(109, 30, 25, 0.18);
}

.esti-btn-primary:hover {
  background: #5a1814;
  color: #fff;
}

.esti-btn-secondary {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.esti-btn-secondary:hover {
  border-color: #6d1e19;
  color: #6d1e19;
  background: #fff;
}

/* ===== GRID OFERT ===== */

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

.esti-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.esti-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.esti-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}

.esti-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.esti-card:hover .esti-thumb img {
  transform: scale(1.04);
}

.esti-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.esti-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.esti-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 5px;
 
  
  color: #6d1e19;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.esti-title {
  margin: 0;
  min-height: 54px;
  font-size: 20px;
  line-height: 1.35;
}

.esti-title a {
  color: #101828;
  text-decoration: none;
}

.esti-title a:hover {
  color: #6d1e19;
}

.esti-meta {
  color: #667085;
  font-size: 14px;
}

.esti-price {
  margin-top: auto;
  color: #101828;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.esti-card-footer {
  margin-top: 8px;
}

.esti-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #6d1e19;
  background: #6d1e19;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 20px rgba(109, 30, 25, 0.16);
}

.esti-more-btn:hover {
  background: #5a1814;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== PAGINACJA ===== */

.esti-pagination {
  margin-top: 26px;
}

.esti-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.esti-pagination a,
.esti-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  text-decoration: none;
  font-weight: 600;
}

.esti-pagination a:hover {
  border-color: #6d1e19;
  color: #6d1e19;
}

.esti-pagination .current {
  border-color: #6d1e19;
  background: #6d1e19;
  color: #fff;
}

/* ===== GALERIA OFERTY ===== */



.esti-gallery,
.esti-gallery-track,
.esti-gallery-item,
.esti-gallery-item img,
.esti-featured-image,
.esti-gallery-single-image {
  border-radius: 0 !important;
}

.esti-gallery {
  position: relative;
  margin: 0 0 28px;
  background: transparent !important;
  overflow: visible !important;
}

.esti-gallery-track {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}

.esti-gallery-slider .esti-gallery-track {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 0;
  scrollbar-width: thin;
}

.esti-gallery-slider .esti-gallery-item {
  min-width: 100%;
  scroll-snap-align: start;
}

.esti-gallery-grid .esti-gallery-track {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}

.esti-gallery-item {
  appearance: none;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  cursor: pointer;
  overflow: hidden !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
}

.esti-gallery-item img {
  display: block !important;
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
}

.esti-g-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: #111827;
  font-size: 24px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.esti-g-prev {
  left: 14px;
}

.esti-g-next {
  right: 14px;
}

.esti-g-nav:hover {
  background: #ffffff;
}

.esti-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.esti-lightbox[hidden] {
  display: none !important;
}

.esti-lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 0 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: #fff;
}

.esti-lightbox-close,
.esti-lightbox-arrow {
  position: absolute;
  border: 0;
  width: 46px;
  height: 46px;
  color: #111827;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.esti-lightbox-close {
  top: 20px;
  right: 20px;
}

.esti-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.esti-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.esti-featured-image,
.esti-gallery-single-image {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .esti-gallery-track,
  .esti-gallery-grid .esti-gallery-track {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .esti-gallery-track,
  .esti-gallery-grid .esti-gallery-track {
    grid-template-columns: 1fr !important;
  }
}




/* ===== ADMIN ===== */

.esti-admin-pre {
  max-width: 1100px;
  overflow: auto;
  padding: 16px;
  background: #101828;
  color: #fff;
  border-radius: 12px;
}

.esti-admin-logs {
  max-width: 1100px;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .esti-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esti-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .esti-search {
    padding: 14px;
    border-radius: 14px;
  }

  .esti-search-grid {
    grid-template-columns: 1fr;
  }

  .esti-actions {
    flex-direction: column;
  }

  .esti-btn {
    width: 100%;
  }

  .esti-grid {
    grid-template-columns: 1fr;
  }

  .esti-title {
    min-height: auto;
    font-size: 18px;
  }

  .esti-price {
    font-size: 22px;
  }

  .esti-gallery-item img {
    height: 260px;
  }

  .esti-gallery-grid .esti-gallery-item img {
    height: 200px;
  }

  .esti-g-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
    line-height: 38px;
  }
}