:root {
  --accent: #00b050;
  --secondary: #0078d4;
  --bg: #f5f7fa;
  --text: #111;
  --card-bg: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
.page-header {
  text-align: center;
  padding: 40px 20px;
}
.brand-title {
  color: var(--accent);
  font-weight: 800;
  font-size: 2rem;
}
.brand-sub {
  color: #555;
  max-width: 650px;
  margin: 10px auto 20px;
}

/* ===== SEARCH ===== */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 25px 0;
}

/* MAIN INPUT */
.search-bar input {
  width: 90%;
  max-width: 500px;
  padding: 14px 20px;
  font-size: 1.1rem;
  border-radius: 16px;

  background: linear-gradient(135deg, #ffffff, #f7f7f7);
  border: 2px solid #dadada;

  /* Always running shine + breathing glow */
  animation: breathe 4s ease-in-out infinite,
             shine 6s linear infinite;

  background-size: 180%;
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

/* Hover — gentle lift */
.search-bar input:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Focus — strong glowing highlight */
.search-bar input:focus {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0, 176, 80, 0.45);
  outline: none;
}

/* Placeholder fade */
.search-bar input::placeholder {
  color: #888;
  transition: opacity 0.3s ease;
}

.search-bar input:focus::placeholder {
  opacity: 1;
}

/* --- ANIMATIONS --- */

/* Breathing glow */
@keyframes breathe {
  0% {
    box-shadow: 0 0 8px rgba(0, 176, 80, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 176, 80, 0.35);
  }
  100% {
    box-shadow: 0 0 8px rgba(0, 176, 80, 0.15);
  }
}

/* Slow moving gradient shine */
@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* ===== GRID ===== */
.products-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 25px;
  padding: 40px 5%;
}

/* ===== PRODUCT CARD ===== */
.product {
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.product:hover {
  transform: translateY(-6px);
}

/* ===== IMAGE ===== */
.product-media img,
.ad-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ===== BODY ===== */
.product-body {
  padding: 15px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.product-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
  flex-grow: 1;
}

/* ===== BUTTON ===== */
.btn-order {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.btn-order:hover,
.btn-order:focus {
  background: #009043;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.5);
}

/* ===== AD CARD ===== */
.ad-card {
  border: 2px solid var(--secondary);
  background: linear-gradient(135deg, #e9f5ff, #ffffff);
  text-align: center;
}
.ad-card .product-title {
  color: #004a82;
}
.ad-card .btn-order {
  background: var(--secondary);
}
.ad-card .btn-order:hover,
.ad-card .btn-order:focus {
  background: #005ea1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.5);
}

/* ===== FLOATING AD ===== */
.floating-ad {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(60px);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 320px;
  max-width: 90%;
  z-index: 9999;
  font-family: inherit;
}
.floating-ad.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ad-content {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 1rem;
}
.ad-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}
.ad-text h4 {
  margin: 0;
  color: var(--secondary);
  font-size: 1.05rem;
}
.ad-text p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #333;
}
.btn-whatsapp {
  background: #25d366;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: #1ebe5b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.6);
}
.close-ad {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-ad:hover,
.close-ad:focus {
  color: #000;
  outline: none;
}

/* ===== ANIMATION ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============== NO RESULTS CTA CARD =============== */
.no-results {
  display: none;
  opacity: 0;
  max-width: 600px;
  margin: 40px auto 80px;
  padding: 30px 25px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e7e7e7;
  transition: opacity 0.5s ease;
  text-align: center;
}
.no-results.show-card {
  display: block;
  opacity: 1;
  animation: fadeInUp 0.6s ease forwards;
}
.no-results-card {
  /* if used separately */
  border-radius: 16px;
}
.no-results-img {
  max-width: 160px;
  margin-bottom: 20px;
  opacity: 0.9;
}
.no-results-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}
.no-results-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ===== BUTTONS in NO RESULTS ===== */
.no-results .btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.no-results .btn {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.no-results .btn-call {
  background: var(--accent);
  color: white;
}
.no-results .btn-call:hover,
.no-results .btn-call:focus {
  background: #009043;
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 8px 18px rgba(0, 176, 80, 0.6);
}
.no-results .btn-wa {
  background: #25d366;
  color: white;
}
.no-results .btn-wa:hover,
.no-results .btn-wa:focus {
  background: #1ebe5b;
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.6);
}

/* TEXTAREA and SEND BUTTON in NO RESULTS */
#customRequestInput {
  width: 100%;
  max-width: 600px;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin: 0 auto 20px;
  display: block;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s ease;
}
#customRequestInput:focus {
  border-color: var(--accent);
  outline: none;
}
#sendCustomRequestBtn {
  max-width: 600px;
  display: block;
  margin: 0 auto;
  background: var(--secondary);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#sendCustomRequestBtn:hover,
#sendCustomRequestBtn:focus {
  background: #005ea1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.5);
}

/* CATEGORIES BUTTONS */
.popular-categories {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.category-btn {
  min-width: 110px;
  white-space: nowrap;
  padding: 10px 18px;
  border: 1.5px solid var(--secondary);
  border-radius: 25px;
  background-color: transparent;
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.category-btn:hover,
.category-btn:focus {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
  outline: none;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

