/* Live online-shop products inside blog posts — markup from inc/shop-embed.php.
   Sits inside .bp-prose, so the article's link and image rules are reset here. */

.shop-embed {
  --se-wine: #7b1e2b;
  --se-ink: #231a17;
  --se-muted: #6f625c;
  --se-line: #eadfd6;
  --se-gold: #b8862f;
  margin: 1.8em 0 2em;
  font-size: 1rem;
  line-height: 1.45;
}

.shop-embed__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--se-muted);
}

.shop-embed__label i {
  color: var(--se-wine);
}

.shop-embed__grid {
  display: grid;
  gap: 16px;
}

.shop-embed--many .shop-embed__grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ---- card ------------------------------------------------------------- */

.bp-prose a.se-card,
a.se-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--se-ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(35, 26, 23, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.se-card:hover,
a.se-card:focus-visible {
  transform: translateY(-2px);
  border-color: #dccbbd;
  box-shadow: 0 10px 28px rgba(35, 26, 23, .10);
}

a.se-card:focus-visible {
  outline: 2px solid var(--se-wine);
  outline-offset: 2px;
}

.se-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.bp-prose .se-card__media img,
.se-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  padding: 14px;
}

.se-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: var(--se-wine);
}

.se-badge--out {
  background: #8a817c;
}

.se-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 14px 16px 16px;
  border-top: 1px solid #f3ece6;
}

.se-card__winery {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--se-gold);
}

.se-card__name {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--se-ink);
}

.se-card__tags {
  font-size: .82rem;
  color: var(--se-muted);
}

.se-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 10px;
}

.se-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.se-card__now {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--se-ink);
}

.se-card__now--sale {
  color: var(--se-wine);
}

.se-card__old {
  font-size: .86rem;
  color: var(--se-muted);
  text-decoration: line-through;
}

.se-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  background: var(--se-wine);
  white-space: nowrap;
}

.se-card__btn i {
  font-size: .75em;
  transition: transform .18s ease;
}

a.se-card:hover .se-card__btn i {
  transform: translateX(2px);
}

.se-card.is-out .se-card__media img {
  opacity: .55;
}

.se-card.is-out .se-card__btn {
  background: #8a817c;
}

/* One product: photo beside the text on wider screens. */
@media (min-width: 560px) {
  .shop-embed--one a.se-card {
    flex-direction: row;
  }

  .shop-embed--one .se-card__media {
    flex: 0 0 38%;
    aspect-ratio: auto;
    min-height: 230px;
  }

  .shop-embed--one .se-card__body {
    justify-content: center;
    padding: 22px 24px;
    border-top: none;
    border-left: 1px solid #f3ece6;
  }

  .shop-embed--one .se-card__name {
    font-size: 1.2rem;
  }
}

/* Phones: every card is a compact row — photo on the left, text on the right. */
@media (max-width: 559px) {
  .shop-embed--many .shop-embed__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bp-prose a.se-card,
  a.se-card {
    flex-direction: row;
  }

  .se-card__media {
    flex: 0 0 112px;
    aspect-ratio: auto;
  }

  .bp-prose .se-card__media img,
  .se-card__media img {
    padding: 8px;
  }

  .se-card__body {
    padding: 12px 14px;
    border-top: none;
    border-left: 1px solid #f3ece6;
  }

  .se-card__btn {
    padding: 6px 10px;
    font-size: .78rem;
  }

  .se-badge {
    top: 6px;
    left: 6px;
    font-size: .7rem;
  }
}

body.lang-ka .shop-embed,
body.lang-ka .shop-embed * {
  text-transform: none;
}

body.lang-ka .se-card__winery,
body.lang-ka .shop-embed__label {
  letter-spacing: .01em;
}

/* A whole category ([shop-category …]) on a page: wider grid and a link to the category. */
.shop-embed--category {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 8px auto 48px;
  padding: 0 20px;
}

.shop-embed--category .shop-embed__grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.shop-embed__more {
  margin-top: 24px;
  text-align: center;
}

a.shop-embed__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid #7b1e2b;
  color: #7b1e2b;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

a.shop-embed__all span {
  font-weight: 400;
  opacity: .8;
}

a.shop-embed__all:hover {
  background: #7b1e2b;
  color: #fff;
}

/* Heading a page puts above a [shop-category] grid. */
.shop-embed-heading {
  margin: 40px 0 16px;
  text-align: center;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  color: #7b1e2b;
}
