/* Site-wide Gluto product ad units (floating corner card + inline strip).
   Rendered by gluto-ads.js. Clicking a product opens Amazon in a new tab. */

:root {
  --gluto-ads-primary: #0d9488;
  --gluto-ads-primary-dark: #0f766e;
  --gluto-ads-ink: #1c1917;
  --gluto-ads-muted: #78716c;
}

/* ---------- shared product tile ---------- */
.gluto-ad-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 14px;
  padding: 0.7rem;
  text-decoration: none;
  color: var(--gluto-ads-ink);
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.gluto-ad-card:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.14);
  transform: translateY(-2px);
}

.gluto-ad-card-imgwrap {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gluto-ad-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gluto-ad-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.gluto-ad-card-title {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gluto-ad-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.28rem;
  font-size: 0.78rem;
  color: var(--gluto-ads-muted);
}

.gluto-ad-card-price {
  font-weight: 700;
  color: var(--gluto-ads-primary-dark);
}

.gluto-ad-card-rating .star {
  color: #f59e0b;
}

.gluto-ad-card-cta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gluto-ads-primary-dark);
}

/* ---------- floating corner unit ---------- */
.gluto-ad-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
  padding: 0.6rem 0.6rem 0.7rem;
  animation: gluto-ad-in 0.28s ease;
}

@keyframes gluto-ad-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.gluto-ad-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.25rem 0.45rem;
}

.gluto-ad-float-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gluto-ads-primary-dark);
}

.gluto-ad-close {
  border: none;
  background: rgba(15, 118, 110, 0.08);
  color: var(--gluto-ads-muted);
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gluto-ad-close:hover {
  background: rgba(13, 148, 136, 0.16);
  color: var(--gluto-ads-ink);
}

.gluto-ad-float .gluto-ad-card {
  border: none;
  padding: 0.25rem;
}

.gluto-ad-float .gluto-ad-card:hover {
  box-shadow: none;
  transform: none;
}

.gluto-ad-disclosure {
  margin: 0.5rem 0.35rem 0;
  font-size: 0.63rem;
  line-height: 1.4;
  color: var(--gluto-ads-muted);
}

/* ---------- inline strip (content pages) ---------- */
.gluto-ad-strip {
  margin: 2rem auto;
  max-width: 960px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 20px;
  padding: 1.2rem 1.25rem 1.35rem;
}

.gluto-ad-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.gluto-ad-strip-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gluto-ads-ink);
  letter-spacing: -0.01em;
}

.gluto-ad-strip-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gluto-ads-muted);
}

.gluto-ad-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gluto-ad-strip .gluto-ad-card {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.gluto-ad-strip .gluto-ad-card-imgwrap {
  width: 100%;
  height: 120px;
  margin-bottom: 0.4rem;
}

.gluto-ad-strip .gluto-ad-card-meta {
  justify-content: center;
}

@media (max-width: 720px) {
  .gluto-ad-strip-grid {
    grid-template-columns: 1fr;
  }
  .gluto-ad-strip .gluto-ad-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .gluto-ad-strip .gluto-ad-card-imgwrap {
    width: 66px;
    height: 66px;
    margin-bottom: 0;
  }
}

@media print {
  .gluto-ad-float,
  .gluto-ad-strip {
    display: none !important;
  }
}
