@media (max-width: 576px) {
  .header-top {
    display: none;
  }
}

.form-group.photo-upload {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.add-listing__input-file-box {
  border: 2px dashed #ccc;
  width: 250px;
  height: 250px;
  cursor: pointer;
  position: relative;
}

.add-listing__input-file {
  position: absolute;
  width: 100%;
  height: 100% !important;
  opacity: 0;
  cursor: pointer;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.add-listing-wrap .add-listing-box .form-group .add-listing__input-file-box p {
  color: #777;
}

.table {
  width: 100%;
  margin: 30px auto;
  border-radius: 10px;
  overflow-x: auto;
  color: #ddd;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table1 {
  width: 100%;
  border-collapse: collapse;
}

.custom-table thead tr {
  background: #f9f9f9;
  border-bottom: 2px solid #f9f9f9;
}

.custom-table1 thead tr {
  background: #ffffff;
}

.head-border {
  background-color: white;
  border-bottom: 2px solid #ddd;
}

.head-border th,
.head-border td {
  padding: 12px 20px;
  color: #333;
  font-weight: 600;
  text-align: left;
}

.custom-table thead tr th,
.custom-table thead tr td {
  padding: 14px 20px;
  text-align: left;
  border-right: 1px solid #f9f9f9;
}

.custom-table thead tr th {
  color: #222;
}

.custom-table thead tr td {
  color: #777;
}

.custom-table1 thead tr th {
  color: #222;
}

.custom-table1 thead tr td {
  color: #777;
}

.custom-table thead tr th:last-child,
.custom-table thead tr td:last-child {
  border-right: none;
}

.custom-table tbody tr {
  border-bottom: 1px solid #f9f9f9;
  transition: background-color 0.25s ease;
}

.custom-table tbody tr:hover {
  background-color: #f9f9f9;
}

.custom-table tbody tr td {
  padding: 14px 20px;
  border-right: 1px solid #f9f9f9;
  color: #eee;
}

.custom-table tbody tr td:last-child {
  border-right: none;
}

.action-icons {
  gap: 15px;
  display: flex;
}

.action-icons a {
  padding: 5px 8px;
  border-radius: 3px;
}

.action-icons a.view {
  background-color: #7ebcff;
  color: #007bff;
}

.action-icons a.edit {
  background-color: #95f7ac;
  color: #28a745;
}

.action-icons a.delete {
  background-color: #ffa8b0;
  color: #dc3545;
}

.btn-custom {
  background-color: var(--mainColor);
  color: white;
}

.btn-custom:hover {
  background-color: var(--mainColor);
  color: white;
  border: 1px solid var(--mainColor);
}

.close-btn {
  background-color: #ffffff;
  color: var(--mainColor);
  border: 1px solid var(--mainColor);
}

.close-btn:hover {
  background-color: #ffffff;
  color: var(--mainColor);
  border: 1px solid var(--mainColor);
}

@media (max-width: 768px) {
  .single-listing-desc .carousel-inner .carousel-item img {
    object-fit: contain;
  }
}

.bg-whitee {
  background: #fff;
}

.hero {
  color: #fff;
}

.hero-slide-item {
  position: relative;
  padding-bottom: 120px;
}

.hero-banner-form {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  z-index: 10;
}

.hero-banner-form input,
.hero-banner-form select {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.hero-banner-form button {
  background-color: #f22d2d;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
}

@media (max-width: 992px) {
  .hero-banner-form {
    position: absolute;
    bottom: 420px;
  }
}

@media (max-width: 768px) {
  .hero-banner-form {
    position: absolute;
    bottom: 350px;
  }
}

@media (max-width: 576px) {
  .hero-banner-form {
    position: static;
    width: 100%;
    transform: none;
    margin: 20px auto 0 auto;
    padding: 0 15px;
  }
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
    .filter-sticky {
        position: sticky;
        top: 140px; 
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        padding-right: 8px;
    }

    /* nice scrollbar */
    .filter-sticky::-webkit-scrollbar {
        width: 6px;
    }

    .filter-sticky::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .filter-sticky::-webkit-scrollbar-track {
        background: #f5f5f5;
    }
}

/* Mobile la normal */
@media (max-width: 991px) {
    .filter-sticky {
        position: relative;
        max-height: unset;
        overflow: visible;
    }
}
