/* Embroidery Family v6.4.27 — open Etsy-inspired marketplace card.
   Store-owned UI: large media, real rating, compact size-count pill, sale pricing,
   wishlist and optional muted hover video. */

.product-grid > .pd-card-etsy,
.pgrid > .pd-card-etsy,
body.pd-card-dir-desktop-horizontal .product-grid > .pd-card-etsy,
body.pd-card-dir-tablet-horizontal .product-grid > .pd-card-etsy,
body.pd-card-dir-mobile-horizontal .product-grid > .pd-card-etsy {
  display:flex!important;
  flex-direction:column!important;
  grid-template-columns:none!important;
  min-width:0;
  height:100%;
  overflow:visible;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.pd-card-etsy:hover{transform:translateY(-2px);box-shadow:none!important;border-color:transparent!important}

/* Large open media block */
.pd-card-etsy .store-img,
.pd-card-etsy .pcard-thumb{
  position:relative;
  display:block;
  width:100%!important;
  min-width:0!important;
  aspect-ratio:4 / 5!important;
  overflow:hidden;
  border:0!important;
  border-radius:14px!important;
  background:#f5f5f3;
  box-shadow:none!important;
  isolation:isolate;
}
.pd-card-etsy .store-img img,
.pd-card-etsy .pcard-thumb img,
.pd-card-etsy .etsy-hover-video{
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.pd-card-etsy .store-img img,
.pd-card-etsy .pcard-thumb img{z-index:1;display:block;background:#fff;transition:transform .28s ease,opacity .18s ease}
.pd-card-etsy:hover .store-img img,
.pd-card-etsy:hover .pcard-thumb img{transform:scale(1.018)}

/* Hover video: image stays as poster/fallback until play succeeds. */
.pd-card-etsy .etsy-hover-video{
  z-index:2;
  display:block;
  opacity:0;
  pointer-events:none;
  background:#111;
  transition:opacity .16s ease;
}
.pd-card-etsy .store-img.is-video-playing .etsy-hover-video,
.pd-card-etsy .pcard-thumb.is-video-playing .etsy-hover-video{opacity:1}
.pd-card-etsy .etsy-video-indicator{
  position:absolute;
  right:10px;
  bottom:46px;
  z-index:5;
  display:grid;
  width:35px;
  height:35px;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#222;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  font-size:.72rem;
  transition:opacity .15s ease,transform .15s ease;
}
.pd-card-etsy .is-video-playing .etsy-video-indicator{opacity:0;transform:scale(.88)}

/* Sale / Bestseller / Popular */
.pd-card-etsy .etsy-badge{
  position:absolute;
  z-index:6;
  top:auto;
  bottom:8px;
  left:8px;
  max-width:calc(100% - 52px);
  padding:4px 7px;
  overflow:hidden;
  border:1px solid rgba(34,34,34,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  box-shadow:0 1px 5px rgba(0,0,0,.08);
  color:#222;
  font-size:.54rem;
  font-weight:800;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
  backdrop-filter:blur(4px);
}

/* Wishlist — force a mathematically square badge so it always renders as a true circle. */
.pd-card-etsy .shop-wish,
.pd-card-etsy .wish-btn{
  position:absolute!important;
  z-index:7!important;
  top:auto!important;
  right:8px!important;
  bottom:7px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  width:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  aspect-ratio:1 / 1!important;
  flex:0 0 26px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(34,34,34,.12)!important;
  border-radius:9999px!important;
  background:#fff!important;
  color:#222!important;
  box-shadow:0 2px 7px rgba(0,0,0,.12)!important;
  overflow:hidden!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:26px!important;
  letter-spacing:0!important;
  text-align:center!important;
  text-indent:0!important;
  text-shadow:none!important;
  vertical-align:middle!important;
}
.pd-card-etsy .shop-wish:hover,.pd-card-etsy .wish-btn:hover{background:#fff!important;transform:scale(1.06)}
.pd-card-etsy .shop-wish.liked,.pd-card-etsy .wish-btn.liked{color:#d41c63!important;background:#fff!important;border-color:rgba(212,28,99,.18)!important}

/* Open text area */
.pd-card-etsy .card-body,
.pd-card-etsy .pcard-body{
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  padding:9px 1px 3px!important;
  text-align:left!important;
  background:transparent!important;
}
.pd-card-etsy .card-name,
.pd-card-etsy .pcard-name{
  display:-webkit-box;
  min-height:2.55em;
  margin:2px 0 6px;
  overflow:hidden;
  color:#222;
  font-size:.88rem;
  font-weight:600;
  line-height:1.3;
  white-space:normal;
  text-overflow:ellipsis;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

/* Digital + one single size object */
.pd-card-etsy .etsy-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:24px;
  margin:0 0 4px;
}
.pd-card-etsy .etsy-download{
  min-width:0;
  margin:0!important;
  overflow:hidden;
  color:#666;
  font-size:.73rem;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pd-card-etsy .etsy-size-count{
  flex:0 0 auto;
  padding:4px 8px;
  border:1px solid #d9d9d6;
  border-radius:999px;
  background:#fff;
  color:#363636;
  font-size:.65rem;
  font-weight:750;
  line-height:1;
  white-space:nowrap;
}

/* Real review data only — no seller/listing filler. */
.pd-card-etsy .etsy-rating{
  min-height:1.3em;
  margin:1px 0 6px;
  overflow:hidden;
  color:#222;
  font-size:.72rem;
  font-weight:750;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pd-card-etsy .etsy-rating > span{color:#686868;font-weight:500}
.pd-card-etsy .etsy-rating .etsy-no-rating{color:#818181;font-weight:500}

/* Sale price / original price / discount */
.pd-card-etsy .etsy-price-row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px;
  min-height:1.65rem;
  margin-top:auto;
}
.pd-card-etsy .etsy-price-row .price,
.pd-card-etsy .etsy-price-row .pcard-price{
  color:#4f6d16;
  font-size:1.02rem;
  font-weight:850;
}
.pd-card-etsy .etsy-price-row .price.free,
.pd-card-etsy .etsy-price-row .pcard-price.free{color:#0b7c5d}
.pd-card-etsy .etsy-price-row .price.vip,
.pd-card-etsy .etsy-price-row .pcard-price.vip{color:#b53075}
.pd-card-etsy .etsy-price-row .old-price,
.pd-card-etsy .etsy-price-row .style-old{
  margin:0;
  color:#696969;
  font-size:.74rem;
  font-weight:450;
  text-decoration:line-through;
}
.pd-card-etsy .etsy-discount{color:#666;font-size:.72rem;white-space:nowrap}

/* Etsy-like outline basket + More like this */
.pd-card-etsy .etsy-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  margin-top:9px;
}
.pd-card-etsy .etsy-cart{
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%!important;
  min-height:39px!important;
  padding:8px 13px!important;
  border:1.5px solid #222!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#222!important;
  font-size:.78rem!important;
  font-weight:750!important;
  line-height:1.1;
  text-transform:none!important;
}
.pd-card-etsy .etsy-cart:hover{background:#f3f3f1!important;transform:none}
.pd-card-etsy .etsy-cart:disabled{cursor:not-allowed;opacity:.55}
.pd-card-etsy .etsy-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0!important;
  color:#222;
  font-size:.73rem;
  font-weight:750;
  line-height:1.25;
  text-align:center!important;
  white-space:nowrap;
}
.pd-card-etsy .etsy-more:hover{text-decoration:underline}
.pd-card-etsy .member-price,
.pd-card-etsy .style-member{margin:4px 0 0;font-size:.7rem}

@media (max-width:700px){
  .pd-card-etsy .store-img,.pd-card-etsy .pcard-thumb{border-radius:10px!important}
  .pd-card-etsy .card-body,.pd-card-etsy .pcard-body{padding-top:7px!important}
  .pd-card-etsy .card-name,.pd-card-etsy .pcard-name{min-height:2.45em;font-size:.73rem}
  .pd-card-etsy .etsy-meta-row{gap:5px;min-height:20px}
  .pd-card-etsy .etsy-download{font-size:.61rem}
  .pd-card-etsy .etsy-size-count{padding:3px 6px;font-size:.56rem}
  .pd-card-etsy .etsy-rating{font-size:.6rem;margin-bottom:4px}
  .pd-card-etsy .etsy-price-row .price,.pd-card-etsy .etsy-price-row .pcard-price{font-size:.84rem}
  .pd-card-etsy .etsy-price-row .old-price,.pd-card-etsy .etsy-price-row .style-old,.pd-card-etsy .etsy-discount{font-size:.58rem}
  .pd-card-etsy .etsy-actions{grid-template-columns:1fr;gap:5px;margin-top:7px}
  .pd-card-etsy .etsy-cart{min-height:33px!important;padding:6px 7px!important;font-size:.64rem!important}
  .pd-card-etsy .etsy-more{font-size:.59rem}
  .pd-card-etsy .etsy-badge{top:auto;bottom:6px;left:6px;padding:3px 6px;font-size:.49rem}
  .pd-card-etsy .shop-wish,.pd-card-etsy .wish-btn{right:6px!important;bottom:5px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;flex-basis:24px!important;line-height:24px!important;font-size:13px!important}
  .pd-card-etsy .etsy-video-indicator{right:6px;bottom:32px;width:24px;height:24px;font-size:.52rem}
}

/* No hover-video autoplay on touch-only devices. Image remains the primary card media. */
@media (hover:none){.pd-card-etsy .etsy-hover-video{display:none}.pd-card-etsy .etsy-video-indicator{display:none}}

/* ==============================================================
   Embroidery Family v6.4.33 — Etsy typography + spacing refinement
   Applies to Etsy product cards, product detail purchase panel,
   and cart line items. Visual-only: no commerce/auth/payment logic.
   ============================================================== */

:root{
  --ef-etsy-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ef-etsy-ink:#222222;
  --ef-etsy-muted:#595959;
  --ef-etsy-green:#536f18;
}

/* ---------- PRODUCT CARD ---------- */
.pd-card-etsy .card-body,
.pd-card-etsy .pcard-body{
  font-family:var(--ef-etsy-font)!important;
  padding:9px 1px 4px!important;
  gap:0!important;
}
/* Reference rhythm: Digital download → title → rating → price */
.pd-card-etsy .etsy-meta-row{order:1!important;margin:0 0 3px!important;min-height:20px!important}
.pd-card-etsy .card-name,
.pd-card-etsy .pcard-name{
  order:2!important;
  min-height:0!important;
  margin:0 0 5px!important;
  color:var(--ef-etsy-ink)!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:1rem!important;
  font-weight:400!important;
  line-height:1.32!important;
  letter-spacing:0!important;
  -webkit-line-clamp:2;
}
.pd-card-etsy .etsy-rating{
  order:3!important;
  min-height:0!important;
  margin:0 0 7px!important;
  color:var(--ef-etsy-ink)!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:.84rem!important;
  font-weight:700!important;
  line-height:1.25!important;
  letter-spacing:0!important;
}
.pd-card-etsy .etsy-rating > span{color:var(--ef-etsy-muted)!important;font-weight:400!important}
.pd-card-etsy .etsy-rating .etsy-no-rating{color:#777!important;font-weight:400!important}
.pd-card-etsy .etsy-download{
  color:#444!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:.82rem!important;
  font-weight:400!important;
  line-height:1.25!important;
}
.pd-card-etsy .etsy-size-count{
  padding:3px 7px!important;
  color:#444!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:.68rem!important;
  font-weight:500!important;
}
.pd-card-etsy .etsy-price-row{
  order:4!important;
  min-height:0!important;
  margin:0!important;
  gap:5px!important;
  line-height:1.25!important;
}
.pd-card-etsy .etsy-price-row .price,
.pd-card-etsy .etsy-price-row .pcard-price{
  color:var(--ef-etsy-green)!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:1.08rem!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
.pd-card-etsy .etsy-price-row .old-price,
.pd-card-etsy .etsy-price-row .style-old{
  color:#555!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:.8rem!important;
  font-weight:400!important;
}
.pd-card-etsy .etsy-discount{
  color:#555!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:.8rem!important;
  font-weight:400!important;
}
.pd-card-etsy .member-price,.pd-card-etsy .style-member{order:5!important}
.pd-card-etsy .etsy-actions{order:6!important;margin-top:10px!important}

/* ---------- PRODUCT DETAIL PAGE ---------- */
.buy-panel{
  font-family:var(--ef-etsy-font)!important;
  display:flex!important;
  flex-direction:column!important;
  color:var(--ef-etsy-ink)!important;
}
.buy-panel > .activity{order:1!important;font-size:0!important;margin:0 0 5px!important;color:#3f3f3f!important;font-weight:400!important;line-height:1.25!important}
.buy-panel > .activity::before{content:"⇩  Digital download";font-size:14px!important;font-weight:400!important;letter-spacing:0!important}
.buy-panel > .listing-title{
  order:2!important;
  margin:0 0 7px!important;
  color:var(--ef-etsy-ink)!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:20px!important;
  font-weight:400!important;
  line-height:1.28!important;
  letter-spacing:0!important;
}
.buy-panel > .seller-line{
  order:3!important;
  margin:0 0 9px!important;
  color:#333!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.3!important;
}
.buy-panel > .seller-line strong{font-weight:400!important}
.buy-panel .stars{color:#222!important;letter-spacing:0!important;font-weight:700!important}
.buy-panel > .price-row{order:4!important;margin:0 0 2px!important;gap:6px!important}
.buy-panel .price-now{
  color:var(--ef-etsy-green)!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:21px!important;
  font-weight:700!important;
  line-height:1.25!important;
  letter-spacing:0!important;
}
.buy-panel .price-old{color:#555!important;font-size:14px!important;font-weight:400!important}
.buy-panel .markdown-badge{padding:0!important;background:transparent!important;color:#555!important;font-size:13px!important;font-weight:400!important;border-radius:0!important}
.buy-panel > .sale-line{order:5!important;margin:2px 0 4px!important;font-size:13px!important;font-weight:400!important;line-height:1.3!important}
.buy-panel > .tax-line{order:6!important;margin:0 0 13px!important;color:#666!important;font-size:12px!important;font-weight:400!important}
.buy-panel > .quick-facts{order:7!important}
.buy-panel > .primary-btn{order:8!important}
.buy-panel > .micro-note{order:9!important}
.buy-panel > .mini-note{order:10!important}
.buy-panel > .detail-stack{order:11!important}

/* ---------- CHECKOUT CART LINE ITEMS ---------- */
.checkout-shell,.checkout-progress{font-family:var(--ef-etsy-font)!important}
.checkout-card{border-radius:12px!important}
.cart-row{gap:12px!important;padding:13px 0!important}
.cart-name{
  color:var(--ef-etsy-ink)!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:16px!important;
  font-weight:400!important;
  line-height:1.32!important;
  letter-spacing:0!important;
  text-decoration:none!important;
}
.cart-meta{margin-top:4px!important;color:#555!important;font-size:13px!important;font-weight:400!important;line-height:1.3!important}
.cart-price{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:baseline!important;
  justify-content:flex-end!important;
  gap:5px!important;
  color:var(--ef-etsy-green)!important;
  font-family:var(--ef-etsy-font)!important;
  font-size:17px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
.cart-old{display:inline!important;color:#555!important;font-size:13px!important;font-weight:400!important}
.cart-discount{display:inline!important;margin:0!important;padding:0!important;background:transparent!important;color:#555!important;font-size:13px!important;font-weight:400!important;border-radius:0!important}
.cart-sale-panel{border-radius:10px!important;background:#fff!important}
.cart-sale-activity{font-size:13px!important;font-weight:400!important;color:#444!important}
.cart-sale-price strong{color:var(--ef-etsy-green)!important;font-size:20px!important;font-weight:700!important}
.cart-sale-price s,.cart-sale-line,.cart-tax{font-weight:400!important}

@media (max-width:700px){
  .pd-card-etsy .card-name,.pd-card-etsy .pcard-name{font-size:.88rem!important;line-height:1.3!important;margin-bottom:4px!important}
  .pd-card-etsy .etsy-download{font-size:.72rem!important}
  .pd-card-etsy .etsy-size-count{font-size:.6rem!important}
  .pd-card-etsy .etsy-rating{font-size:.72rem!important;margin-bottom:5px!important}
  .pd-card-etsy .etsy-price-row .price,.pd-card-etsy .etsy-price-row .pcard-price{font-size:.94rem!important}
  .pd-card-etsy .etsy-price-row .old-price,.pd-card-etsy .etsy-price-row .style-old,.pd-card-etsy .etsy-discount{font-size:.67rem!important}
  .buy-panel > .listing-title{font-size:18px!important}
  .buy-panel .price-now{font-size:20px!important}
}

@media (max-width:560px){
  .cart-name{font-size:14px!important}
  .cart-meta{font-size:11px!important}
  .cart-price{font-size:15px!important;justify-content:flex-start!important}
  .cart-old,.cart-discount{font-size:11px!important}
}


/* v6.4.37 card cleanup: uniform media, compact access/source labels */
.pd-card-etsy .pcard-thumb,
.pd-card-etsy .store-img{aspect-ratio:1 / 1!important;background:#fff!important;}
.pd-card-etsy .pcard-thumb img,
.pd-card-etsy .store-img img{object-fit:contain!important;object-position:center!important;padding:7px!important;transform:none!important;}
.pd-card-etsy:hover .pcard-thumb img,.pd-card-etsy:hover .store-img img{transform:none!important}
.pd-card-etsy .ef-card-source{left:8px!important;bottom:8px!important;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif!important;font-size:.54rem!important;font-weight:500!important;padding:4px 7px!important;line-height:1!important;background:rgba(255,255,255,.97)!important;color:#444!important;border:1px solid rgba(34,34,34,.10)!important;border-radius:999px!important;box-shadow:0 1px 5px rgba(0,0,0,.08)!important;}
.pd-card-etsy .ef-card-source.ef-community{background:#eef9f6!important;color:#08766f!important}
.pd-card-etsy .etsy-badge{bottom:38px!important;font-size:.54rem!important;font-weight:500!important}
.pd-card-etsy .etsy-price-row .price.vip,.pd-card-etsy .etsy-price-row .pcard-price.vip,.pd-card-etsy .etsy-price-row .price.free,.pd-card-etsy .etsy-price-row .pcard-price.free{font-size:.78rem!important;font-weight:500!important;color:#536f18!important}
.pd-card-etsy .etsy-price-row .price:not(.vip):not(.free),.pd-card-etsy .etsy-price-row .pcard-price:not(.vip):not(.free){font-size:1rem!important;font-weight:700!important}
.pd-card-etsy .etsy-actions{margin-top:8px!important}.pd-card-etsy .etsy-cart{white-space:nowrap!important;min-width:0!important}
@media(max-width:700px){.pd-card-etsy .pcard-thumb,.pd-card-etsy .store-img{aspect-ratio:1/1!important}.pd-card-etsy .pcard-thumb img,.pd-card-etsy .store-img img{padding:5px!important}.pd-card-etsy .ef-card-source{left:6px!important;bottom:5px!important;font-size:.49rem!important;padding:3px 6px!important}.pd-card-etsy .etsy-badge{bottom:31px!important}}
