/* Pepfine: piezas de interfaz en todas las páginas: panel de búsqueda y carrito lateral vacío. */

/* ---------- búsqueda ---------- */
html.pfs2-open { overflow: hidden; }
.pfs2 { position: fixed; inset: 0; z-index: 99980; }
.pfs2[hidden] { display: none; }
.pfs2-ov { position: absolute; inset: 0; background: rgb(20 20 20 / .35); animation: pfs2-in .18s ease; }
.pfs2-box { position: absolute; top: clamp(16px, 13vh, 140px); left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - clamp(32px, 16vh, 170px)); display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .4); overflow: hidden; animation: pfs2-up .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes pfs2-in { from { opacity: 0; } }
@keyframes pfs2-up { from { opacity: 0; transform: translate(-50%, 10px); } }
.pfs2-bar { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 14px 0 20px; border-bottom: 1px solid #e8e8e6; }
.pfs2-bar svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #555; stroke-width: 1.8; }
.pfs2-bar input[type=search] { flex: 1; min-width: 0; height: 62px; border: 0; background: none; font: inherit; font-size: 19px; color: #1d1d1b; outline: 0; }
.pfs2-bar input::-webkit-search-cancel-button { display: none; }
.pfs2-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #1d1d1b; font-size: 15px; cursor: pointer; }
.pfs2-x:hover { background: #f2f2f0; }
.pfs2-body { overflow: auto; padding: 18px 22px 24px; display: grid; gap: 18px; overscroll-behavior: contain; }
.pfs2-body section[hidden] { display: none; }
.pfs2-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pfs2-h h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; color: #1d1d1b; }
.pfs2-clear, .pfs2-all { padding: 0; border: 0; background: none; color: #5f5f5a; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.pfs2-clear:hover, .pfs2-all:hover { color: #1d1d1b; text-decoration: underline; }
.pfs2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pfs2-card { display: grid; gap: 6px; align-content: start; color: #1d1d1b; text-decoration: none; min-width: 0; }
.pfs2-img { display: block; aspect-ratio: 4 / 5; border-radius: 4px; background: #eef1f4; overflow: hidden; }
.pfs2-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pfs2-card:hover .pfs2-img img { transform: scale(1.04); }
.pfs2-n { font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pfs2-p { font-size: 15.5px; }
.pfs2-p del { color: #707070; margin-right: 4px; }
.pfs2-p ins { text-decoration: none; }
.pfs2-empty { margin: 0; color: #5f5f5a; }
.pfs2-card.is-skel .pfs2-n, .pfs2-card.is-skel .pfs2-p { display: block; border-radius: 6px; height: 1em; }
.pfs2 .pfc-skel { background: linear-gradient(100deg, #eef1f4 30%, #f8f9fb 50%, #eef1f4 70%) 0 0 / 300% 100%; animation: pfs2-sh 1.3s ease-in-out infinite; }
@keyframes pfs2-sh { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (max-width: 700px) {
	.pfs2-box { top: 0; left: 0; transform: none; width: 100%; max-height: none; height: 100%; border-radius: 0; animation-name: pfs2-in; }
	.pfs2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
	.pfs2-body { padding: 16px; }
}

/* ---------- carrito lateral vacío ---------- */
.pf-mce { display: grid; gap: 10px; width: min(300px, 100%); margin: 0 auto; padding: 40px 0 24px; color: #14212c; }
.pf-mce__t { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-align: center; }
.pf-mce__k { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pf-mce__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pf-mce__list a { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px -10px rgb(20 33 44 / .3); color: #14212c; text-decoration: none; font-size: 17px; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.pf-mce__list a:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgb(20 33 44 / .4); }
.pf-mce__list img { flex: none; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #eef1f4; }
.pf-mce__list span { flex: 1; }
.pf-mce__list i { font-style: normal; font-size: 22px; transition: transform .15s; }
.pf-mce__list a:hover i { transform: translateX(3px); }
.pf-mce__all { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 8px; border-radius: 99px; background: #14212c; color: #fff !important; font-size: 18px; font-weight: 700; text-decoration: none; }
.pf-mce__all:hover { background: #000; }
.pf-mce__rating { margin: 6px 0 0; text-align: center; font-size: 15px; }
.pf-mce__rating span { color: #e0a526; letter-spacing: 1px; }
.wp-block-woocommerce-empty-mini-cart-contents-block { display: grid; align-content: center; min-height: 100%; }
.pfs2 .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- selector país, idioma y moneda (navbar) ---------- */
details.pfl { position: relative; display: inline-flex; align-items: center; }
details.pfl[open] { z-index: 10000; }
details.pfl > summary { list-style: none; outline: 0; }
details.pfl > summary::-webkit-details-marker { display: none; }
details.pfl > summary::marker { display: none; }

.pfl__btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 99px; background: #f3f4f6; color: #14212c; font-size: 13.5px; font-weight: 550; cursor: pointer; user-select: none; transition: background .15s, transform .1s; }
.pfl__btn:hover { background: #e5e7eb; }
.pfl__btn img, .pfl-flag { display: inline-block; vertical-align: middle; border-radius: 50%; object-fit: cover; }
.pfl__btn span { display: inline-block; }
.pfl__btn i { font-style: normal; opacity: .45; margin: 0 1px; }
.pfl__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .2s ease; }
details.pfl[open] .pfl__chev { transform: rotate(180deg); }

.pfl__menu { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 20px 45px -12px rgba(20, 33, 44, 0.35); z-index: 99999; color: #14212c; animation: pfl-up .18s cubic-bezier(.2, .9, .3, 1); }
@keyframes pfl-up { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.pfl__title { margin: 0 0 18px; font-size: 17px; font-weight: 700; color: #14212c; letter-spacing: -0.01em; }
.pfl__field { margin-bottom: 16px; position: relative; }
.pfl__l { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 650; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; }

.pfl__dd { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 500; color: #14212c; cursor: pointer; text-align: left; transition: border-color .15s; }
.pfl__dd:hover, .pfl__dd:focus-visible { border-color: #14212c; outline: none; }
.pfl__dd span { display: inline-flex; align-items: center; gap: 10px; }

.pfl__pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 250px; border-radius: 14px; background: #fff; border: 1.5px solid #cbd5e1; box-shadow: 0 14px 34px -10px rgba(0,0,0,0.25); z-index: 1000; overflow: hidden; display: flex; flex-direction: column; }
.pfl__pop[hidden] { display: none !important; }
.pfl__search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.pfl__search svg { width: 16px; height: 16px; stroke: #64748b; stroke-width: 2; fill: none; }
.pfl__search input { flex: 1; border: 0; background: none; font-size: 13.5px; outline: none; color: #14212c; }
.pfl__list { overflow-y: auto; max-height: 190px; }
.pfl__opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: none; font-size: 14px; color: #14212c; cursor: pointer; text-align: left; }
.pfl__opt:hover { background: #f1f5f9; }
.pfl__opt[aria-selected="true"] { background: #f1f5f9; font-weight: 600; }
.pfl__opt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; margin-left: auto; opacity: 0; }
.pfl__opt[aria-selected="true"] svg { opacity: 1; color: #1f6b3a; }
.pfl__tag { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: #e2e8f0; color: #334155; font-style: normal; margin-left: 6px; }
.pfl__none { margin: 16px; font-size: 13px; color: #64748b; text-align: center; }

.pfl__sel { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 500; color: #14212c; cursor: pointer; transition: border-color .15s; }
.pfl__sel:focus { outline: none; border-color: #14212c; }
.pfl__note { margin: 6px 0 0; font-size: 12px; color: #64748b; }

.pfl__acts { display: flex; gap: 10px; margin-top: 20px; }
.pfl__cancel { flex: 1; min-height: 44px; border: 1.5px solid #cbd5e1; border-radius: 99px; background: #fff; color: #475569; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.pfl__cancel:hover { background: #f8fafc; color: #14212c; }
.pfl__save { flex: 1; min-height: 44px; border: 0; border-radius: 99px; background: #14212c; color: #fff; font-size: 14.5px; font-weight: 650; cursor: pointer; }
.pfl__save:hover { background: #000; }

@media (max-width: 600px) {
	.pfl__menu { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 24px 24px 0 0; max-height: 85vh; overflow-y: auto; }
}
