/* Product cards of the e-shop = codepn/template cards-eshop (study «Shopping Layout Challenge»), written as plain CSS (no Tailwind, no CDN).
   Exact values: panel #e9ecf6, struck price #b7bac5, yellow #F1BF0A, text #090909, white notches, round yellow buttons whose white disc grows on hover with the study's spring easing. */
.ec-card { list-style: none; display: flex; flex-direction: column; border-radius: 1.5rem; overflow: hidden; isolation: isolate; margin-bottom: 1.5rem; color: #090909; font-family: inherit; }
.ec-top { display: flex; }
.ec-price { flex: 1; display: flex; align-items: center; gap: .5rem; padding-left: .75rem; background: #e9ecf6; border-top-right-radius: 1rem; position: relative; font-size: 20px; }
.ec-price::after { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 50%; background: #fff; z-index: -5; }
.ec-price s { color: #b7bac5; text-decoration: line-through; }
.ec-price b { font-weight: 600; }
.ec-actions { display: flex; align-items: center; gap: .25rem; background: #fff; padding: .25rem 1px .375rem .375rem; border-radius: 0 1.5rem 0 1.5rem; position: relative; }
.ec-actions::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50%; height: 50%; background: #e9ecf6; z-index: -5; }
.ec-btn { display: flex; align-items: center; background: #F1BF0A; border: 1px solid #F1BF0A; border-radius: 9999px; padding: .3125rem; color: #090909; white-space: nowrap; position: relative; overflow: hidden; cursor: pointer; font: inherit; line-height: 1; }
.ec-btn::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); left: .3125rem; width: 2rem; height: 2rem; border-radius: 9999px; background: #fff; transition: width 2s linear(0,0.014 0.4%,0.054 0.8%,0.228 1.7%,1.141 4.6%,1.402 5.6%,1.565 6.6%,1.599 7%,1.617 7.5%,1.611 7.9%,1.58 8.4%,1.47 9.3%,0.924 12.1%,0.747 13.2%,0.655 14.1%,0.633 14.5%,0.62 15%,0.622 15.4%,0.639 15.9%,0.705 16.8%,1.052 19.7%,1.159 20.8%,1.214 21.7%,1.235 22.6%,1.221 23.5%,1.18 24.4%,0.972 27.2%,0.905 28.3%,0.869 29.2%,0.855 30.1%,0.862 31%,0.887 31.9%,1.06 35.9%,1.081 36.8%,1.089 37.7%,1.084 38.6%,1.069 39.5%,0.964 43.4%,0.945 45.2%,0.954 46.8%,1.019 50.7%,1.034 52.7%,1.029 54.3%,0.989 58.2%,0.979 60.3%,1.013 67.8%,0.992 75.3%,1.005 82.7%,0.997 90.4%,1), left 2s linear(0,0.014 0.4%,0.054 0.8%,0.228 1.7%,1.141 4.6%,1.402 5.6%,1.565 6.6%,1.599 7%,1.617 7.5%,1.611 7.9%,1.58 8.4%,1.47 9.3%,0.924 12.1%,0.747 13.2%,0.655 14.1%,0.633 14.5%,0.62 15%,0.622 15.4%,0.639 15.9%,0.705 16.8%,1.052 19.7%,1.159 20.8%,1.214 21.7%,1.235 22.6%,1.221 23.5%,1.18 24.4%,0.972 27.2%,0.905 28.3%,0.869 29.2%,0.855 30.1%,0.862 31%,0.887 31.9%,1.06 35.9%,1.081 36.8%,1.089 37.7%,1.084 38.6%,1.069 39.5%,0.964 43.4%,0.945 45.2%,0.954 46.8%,1.019 50.7%,1.034 52.7%,1.029 54.3%,0.989 58.2%,0.979 60.3%,1.013 67.8%,0.992 75.3%,1.005 82.7%,0.997 90.4%,1); }
.ec-btn:hover::after { width: 100%; height: 100%; left: 0; }
.ec-btn > span { position: relative; z-index: 10; padding: .375rem; border-radius: 9999px; display: flex; }
.ec-btn svg { width: 1.25rem; height: 1.25rem; }
.ec-btn.on { background: #090909; border-color: #090909; color: #F1BF0A; }
.ec-btn.on svg { fill: currentColor; }
@media (min-width: 640px) {
  .ec-btn::after { width: 1.375rem; height: 1.375rem; }
  .ec-btn > span { padding: .25rem; }
  .ec-btn svg { width: .875rem; height: .875rem; }
}
.ec-name { margin: 0; padding: .5rem 0 .5rem .75rem; font-size: 1.1rem; line-height: 1.4rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #e9ecf6; border-top-right-radius: 1.5rem; }
.ec-name a { color: inherit; text-decoration: none; }
.ec-seller { margin: 0; padding: 0 .75rem .5rem; background: #e9ecf6; font-size: .9rem; color: #6b7080; }
.ec-media { flex: 1; display: flex; flex-direction: column; padding: 0 .5rem .5rem; background: #e9ecf6; }
.ec-media a { display: block; }
.ec-media img { display: block; width: 100%; border-radius: 1rem; user-select: none; }
.ec-noimg { aspect-ratio: 1; border-radius: 1rem; background: #fff; color: #b7bac5; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.ec-card .ec-ribbon { position: absolute; top: 3rem; right: 1rem; z-index: 3; background: #F1BF0A; color: #090909; border-radius: 9999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.ec-card { position: relative; }
.ec-media img[src*="no_image.svg"] { aspect-ratio: 1 / 1; height: auto; }

/* Full description over the picture (2026-11-11): slides up on hover, keyboard focus or tap */
.ec-media { position: relative; overflow: hidden; border-radius: 1rem; }
.ec-desc { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; top: 0; background: rgba(9,9,9,.82); color: #fff; border-radius: 1rem; padding: .9rem 1rem; overflow-y: auto; transform: translateY(100%); opacity: 0; transition: transform .35s ease, opacity .35s ease; z-index: 2; font-size: .9rem; line-height: 1.35; }
.ec-desc p { margin: 0; }
.ec-media:hover .ec-desc, .ec-media:focus-within .ec-desc, .ec-desc:focus { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ec-desc { transition: none; } }
