/*
 * Shop (all plugins). Filter controls reuse the widget library's segmented
 * tabs (.el-wl-tabs); card tints are the homepage band colours.
 */
.el-shop { padding-top: clamp(48px, 6vw, 88px); }
.el-shop__head { max-width: 760px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.el-shop__head h1 { margin: 0 0 18px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.el-shop__lede { margin: 0 auto 32px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.65; color: var(--wp--preset--color--ink-2); }
.el-shop__search { display: block; max-width: 620px; margin: 0 auto; }
.el-shop__search input { width: 100%; height: 60px; padding: 0 20px 0 54px; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; font: inherit; font-size: 18px; color: var(--wp--preset--color--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F5F80' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 20px center / 20px no-repeat; box-shadow: 0 1px 2px rgba(0, 0, 66, 0.04), 0 12px 32px -18px rgba(0, 0, 66, 0.25); }
.el-shop__search input:focus { outline: none; border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px var(--wp--preset--color--accent-light); }

/* Filter bar: one row on desktop, both groups scroll sideways on phones (no wrapping clutter). */
.el-shop__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--wp--preset--color--border); }
.el-shop .el-wl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--wp--preset--color--surface); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.el-shop .el-wl-tabs::-webkit-scrollbar { display: none; }
.el-shop .el-wl-tabs button { flex: none; white-space: nowrap; padding: 9px 16px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: var(--wp--preset--color--ink-2); cursor: pointer; }
.el-shop .el-wl-tabs button span { margin-left: 6px; font-weight: 600; color: var(--wp--preset--color--ink-3); }
.el-shop .el-wl-tabs button[aria-pressed="true"] { background: #fff; color: var(--wp--preset--color--accent); box-shadow: 0 1px 3px rgba(0, 0, 66, 0.12); }
.el-shop .el-wl-tabs button:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; }
.el-shop__count { margin: 16px 0 24px !important; font-size: 14px; color: var(--wp--preset--color--ink-3); }

/* Cards */
.el-shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.el-pcard[hidden] { display: none; }
.el-pcard__link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--wp--preset--color--border); border-radius: 20px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: transform 0.18s var(--el-ease), box-shadow 0.18s var(--el-ease), border-color 0.18s var(--el-ease); }
.el-pcard__link:hover, .el-pcard__link:focus-visible { transform: translateY(-3px); border-color: rgba(0, 0, 66, 0.16); box-shadow: 0 2px 6px rgba(0, 0, 66, 0.05), 0 28px 56px -30px rgba(0, 0, 66, 0.35); }
.el-pcard__link:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }

.el-pcard__im { display: block; padding: 26px 26px 0; aspect-ratio: 16 / 10; overflow: hidden; }
.tint-woocommerce .el-pcard__im { background: #E6F9F0; }
.tint-elementor .el-pcard__im { background: #F1EEFF; }
.tint-blocks .el-pcard__im { background: #EAF6FD; }
.tint-theme .el-pcard__im, .tint-divi .el-pcard__im { background: #FFF8E8; }
.el-pcard__shot { display: block; height: 100%; border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 66, 0.08), 0 24px 40px -24px rgba(0, 0, 66, 0.35); transition: transform 0.3s var(--el-ease); }
.el-pcard__link:hover .el-pcard__shot { transform: translateY(-4px); }
.el-pcard__bar { display: flex; gap: 5px; padding: 8px 12px; background: #F4F6FA; border-bottom: 1px solid rgba(0, 0, 66, 0.06); }
.el-pcard__bar i { width: 8px; height: 8px; border-radius: 50%; background: #DDE2EE; }
.el-pcard__shot img { display: block; width: 100%; height: calc(100% - 25px); object-fit: cover; object-position: top left; }

.el-pcard__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 24px; }
.el-pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--wp--preset--color--ink-3); font-weight: 600; }
.el-pcard__badge { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--accent); }
.el-pcard__badge.is-free, .el-pcard__badge.is-free-pro { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--green-text); }
.el-pcard__name { margin: 0; font-size: clamp(20px, 1.5vw, 23px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 800; color: var(--wp--preset--color--accent); }
.el-pcard__line { font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--ink-2); }
.el-pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--wp--preset--color--border); font-size: 15px; }
.el-pcard__price { font-weight: 700; color: var(--wp--preset--color--ink); }
.el-pcard__go { font-weight: 700; color: var(--wp--preset--color--green); transition: transform 0.18s var(--el-ease); }
.el-pcard__link:hover .el-pcard__go { transform: translateX(3px); }

.el-shop__empty { padding: 64px 0; text-align: center; color: var(--wp--preset--color--ink-2); font-size: 18px; }
.el-shop__empty[hidden] { display: none; }
.el-shop__reset { margin-top: 8px; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--wp--preset--color--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 700px) {
	.el-shop__bar { flex-direction: column; align-items: stretch; }
	.el-shop .el-wl-tabs { display: flex; }
	.el-shop__search input { height: 54px; font-size: 16px; }
	.el-pcard__im { padding: 18px 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.el-pcard__link, .el-pcard__shot, .el-pcard__go { transition: none; }
}
