.xapa-products {
  padding: 0;
}

.xapa-overlay-wrapper {
  position: relative;
  width: 100%;
}

.xapa-overlay-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.xapa-overlay-text {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #000;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  z-index: 2;
}

.xapa-overlay-text .xapa-tit {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.xapa-overlay-text .xapa-text {
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.xapa-button-wrapper {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
}

.xapa-btn {
  background-color: #f9b600;
  color: #000;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.xapa-btn:hover {
  background-color: #e89c00;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .xapa-overlay-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
  }

  .xapa-overlay-text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    z-index: auto;
  }

  .xapa-overlay-text .xapa-tit {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px;
  }

  .xapa-overlay-text .xapa-text {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    padding: 10px;
  }

  .xapa-button-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
  }
}
