/**
 * Estilos Oficiales — Header Punto Secreto
 */
#ps-site-header, .ps-drawer-overlay {
	--ps-red: #B30000; --ps-red-hover: #990000; --ps-dark: #161615; --ps-purple: #581C87;
	--ps-border: #E8E8E8; --ps-bg-light: #F8FAFC; --ps-grey: #64748B;
	--ps-font: "Sofia Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--ps-radius: 9999px; box-sizing: border-box; font-family: var(--ps-font);
}
#ps-site-header *, #ps-site-header *::before, #ps-site-header *::after,
.ps-drawer-overlay *, .ps-drawer-overlay *::before, .ps-drawer-overlay *::after { box-sizing: inherit; }
#ps-site-header { position: relative; width: 100%; background: #FFFFFF; z-index: 100; }
.ps-header-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ps-topbar { background: #FFFFFF; border-bottom: 1px solid var(--ps-border); font-size: 12.5px; color: #334155; height: 38px; }
.ps-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.ps-topbar-left, .ps-topbar-center { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ps-topbar-left svg, .ps-topbar-center svg { color: #475569; }
.ps-topbar-right { display: flex; align-items: center; gap: 14px; }
.ps-topbar-right a { color: #161615; display: inline-flex; transition: color 0.15s ease-out; }
.ps-topbar-right a:hover { color: var(--ps-red); }
.ps-main-row { border-bottom: 1px solid var(--ps-border); background: #FFFFFF; }
.ps-main-row-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 76px; }
.ps-logo-wrap { flex-shrink: 0; }
.ps-logo-link { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.ps-logo-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.ps-logo-text { display: flex; flex-direction: column; }
.ps-logo-brand { font-size: 24px; font-weight: 700; color: #161615; letter-spacing: -0.4px; line-height: 1; }
.ps-logo-tagline { font-size: 8px; font-weight: 700; letter-spacing: 2.2px; color: #94A3B8; text-transform: uppercase; margin-top: 3px; }
.ps-logo-img { max-height: 48px; width: auto; object-fit: contain; }
.ps-search-wrap { position: relative; flex: 1; max-width: 580px; }
.ps-search-form { display: flex; align-items: center; position: relative; width: 100%; }
.ps-search-input { width: 100%; height: 44px; padding: 0 48px 0 20px; border: 1.5px solid #CBD5E1; border-radius: var(--ps-radius); font-size: 13.5px; color: #161615; background: #FFFFFF; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.ps-search-input:focus { border-color: var(--ps-red); box-shadow: 0 0 0 3px rgba(179,0,0,0.08); }
.ps-search-btn { position: absolute !important; right: 4px !important; top: 50% !important; transform: translateY(-50%) !important; width: 40px !important; height: 40px !important; min-width: 40px !important; max-width: 40px !important; border-radius: 50% !important; background: var(--ps-red) !important; border: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; outline: none !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; transition: background 0.15s !important; flex-shrink: 0 !important; }
.ps-search-btn:hover { background: var(--ps-red-hover) !important; }
.ps-search-btn svg { width: 18px !important; height: 18px !important; min-width: 18px !important; max-width: 18px !important; display: block !important; stroke: #FFFFFF !important; margin: auto !important; flex-shrink: 0 !important; }

/* Resultados Búsqueda AJAX — Desktop (Lovehoney Style) */
.ps-search-desktop-panel { position: absolute; top: 100%; left: 0; right: 0; width: 100%; background: #FFFFFF; border-top: 1px solid var(--ps-border); border-bottom: 2px solid var(--ps-border); box-shadow: 0 16px 36px rgba(0,0,0,0.12); z-index: 1000; padding: 22px 0 26px; }
.ps-search-desktop-panel[hidden] { display: none; }
.ps-search-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ps-search-view-all-pill { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: var(--ps-radius); background: var(--ps-purple); color: #FFFFFF; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: background 0.15s; }
.ps-search-view-all-pill:hover { background: #4C1D95; color: #FFFFFF; }
.ps-search-close { background: transparent !important; background-color: transparent !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; font-size: 26px !important; line-height: 1 !important; color: #64748B !important; cursor: pointer !important; padding: 4px 8px !important; width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; transition: color 0.15s, opacity 0.15s !important; }
.ps-search-close:hover { background: transparent !important; color: var(--ps-red) !important; opacity: 0.8 !important; }
.ps-search-body { display: grid; grid-template-columns: 2.8fr 1.2fr; gap: 32px; align-items: start; }
.ps-search-col-prods { width: 100%; }
.ps-search-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ps-search-prod-card { display: flex; flex-direction: column; text-decoration: none; background: #FFFFFF; border: 1px solid var(--ps-border); border-radius: 10px; padding: 12px; transition: transform 0.15s, box-shadow 0.15s; }
.ps-search-prod-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.ps-search-prod-img-wrap { width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #F8FAFC; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.ps-search-prod-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.ps-search-prod-rating { font-size: 11px; color: #F59E0B; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.ps-search-prod-title { font-size: 12.5px; font-weight: 600; color: #1E293B; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-search-prod-prices { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.ps-search-sale-price { font-size: 13.5px; font-weight: 700; color: var(--ps-red); }
.ps-search-reg-price { font-size: 11.5px; text-decoration: line-through; color: #94A3B8; }
.ps-search-col-cats { padding-left: 20px; border-left: 1px solid var(--ps-border); }
.ps-search-col-title { font-size: 13px; font-weight: 700; color: #161615; margin: 0 0 12px; letter-spacing: 0.2px; }
.ps-search-cats-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-search-cats-list a { font-size: 13px; color: #475569; text-decoration: none; transition: color 0.15s; }
.ps-search-cats-list a:hover { color: var(--ps-red); }
.ps-search-empty, .ps-search-no-cats { color: var(--ps-grey); font-size: 13px; margin: 0; }
.ps-mobile-search-panel .ps-search-results { margin-top: 10px; background: #FFFFFF; border: 1px solid var(--ps-border); border-radius: 10px; overflow: hidden; }
.ps-search-mob-inner { padding: 12px; position: relative; }
.ps-search-mob-inner .ps-search-close { position: absolute; top: 8px; right: 8px; font-size: 20px; }
.ps-search-mob-inner .ps-search-prods-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ps-search-mob-inner .ps-search-card { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid #F1F5F9; }
.ps-search-mob-inner .ps-search-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: contain; background: #F8FAFC; flex-shrink: 0; }
.ps-search-mob-inner .ps-search-card-info { flex: 1; min-width: 0; }
.ps-search-mob-inner .ps-search-card-title { font-size: 12.5px; font-weight: 600; color: #1E293B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-search-mob-inner .ps-search-card-prices { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.ps-search-mob-cats { margin-top: 12px; padding-top: 10px; border-top: 1px solid #F1F5F9; }
.ps-search-mob-inner .ps-search-view-all { display: block; margin-top: 12px; padding: 9px 12px; background: #FDF2F2; color: var(--ps-red); font-size: 12.5px; font-weight: 700; border-radius: 8px; text-decoration: none; text-align: center; }

/* WhatsApp Desktop */
.ps-whatsapp-action { flex-shrink: 0; }
.ps-wa-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; height: 42px;
	border-radius: var(--ps-radius); border: 1.5px solid #CBD5E1; background: #FFFFFF; color: #161615;
	text-decoration: none; font-size: 13px; font-weight: 600; transition: border-color 0.15s, background 0.15s;
}
.ps-wa-btn:hover { border-color: var(--ps-red); background: #FFF5F5; }
.ps-wa-icon-wrap { display: inline-flex; align-items: center; justify-content: center; }

/* 3. Menú Principal */
.ps-nav-bar { border-bottom: 1px solid var(--ps-border); background: #FFFFFF; }
.ps-nav-inner { display: flex; align-items: center; justify-content: center; height: 46px; }
.ps-main-nav { width: 100%; }
.ps-nav-list { display: flex; align-items: center; justify-content: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.ps-nav-item { position: relative; }
.ps-nav-link { display: block; padding: 12px 2px; font-size: 13.5px; font-weight: 600; color: #161615; text-decoration: none; position: relative; transition: color 0.15s; }
.ps-nav-item:hover .ps-nav-link, .ps-nav-item.is-active .ps-nav-link { color: var(--ps-red); font-weight: 700; }
.ps-nav-item.is-active .ps-nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px; background: var(--ps-red); border-radius: 2px 2px 0 0; }

/* 4. Mega Menú en Flujo */
.ps-mega-menu-container { width: 100%; background: #FFFFFF; border-bottom: 1px solid var(--ps-border); display: none; }
.ps-mega-menu-container.is-open { display: block; }
.ps-mega-panel { display: none; padding: 28px 0; }
.ps-mega-panel.is-active { display: block; }
.ps-mega-inner { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 32px; align-items: start; }
.ps-mega-title { font-size: 14.5px; font-weight: 700; color: #161615; margin: 0 0 14px; letter-spacing: 0.2px; }
.ps-mega-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-mega-list a { font-size: 13px; color: #475569; text-decoration: none; transition: color 0.15s; }
.ps-mega-list a:hover { color: var(--ps-red); }
.ps-mega-all a { font-weight: 700; color: var(--ps-red); margin-top: 4px; display: inline-block; }
.ps-promo-box { display: flex; align-items: stretch; background: #FDF2F4; border-radius: 12px; overflow: hidden; min-height: 170px; }
.ps-promo-content { flex: 1; padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.ps-promo-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #64748B; letter-spacing: 0.5px; }
.ps-promo-headline { font-size: 20px; font-weight: 700; color: var(--ps-red); line-height: 1.2; margin: 6px 0; font-family: Georgia, serif; }
.ps-promo-desc { font-size: 12.5px; color: #475569; line-height: 1.4; margin: 0 0 14px; }
.ps-promo-btn { align-self: flex-start; padding: 8px 18px; border-radius: var(--ps-radius); background: var(--ps-red); color: #FFFFFF; font-size: 12px; font-weight: 700; text-decoration: none; transition: background 0.15s; }
.ps-promo-btn:hover { background: var(--ps-red-hover); }
.ps-promo-img-wrap { width: 140px; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.ps-promo-img { width: 100%; height: 100%; object-fit: cover; }
.ps-promo-placeholder { background: #FFE4E8; color: var(--ps-red); font-weight: 700; font-size: 13px; text-align: center; padding: 12px; }

/* 5. Barra Morada y Carrusel */
.ps-purple-bar { background: var(--ps-purple); color: #FFFFFF; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; width: 100%; }
.ps-purple-bar-inner { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; }
.ps-purple-slider { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; width: 100%; }
.ps-purple-slide { position: absolute; opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none; }
.ps-purple-slide.is-active { position: relative; opacity: 1; transform: translateY(0); pointer-events: auto; }

/* 6. Versión Móvil */
.ps-mobile-header-row, .ps-mobile-search-panel { display: none; }
@media (max-width: 1024px) { .ps-nav-list { gap: 14px; } .ps-nav-link { font-size: 11.5px; } }
@media (max-width: 768px) {
	.ps-topbar, .ps-main-row, .ps-nav-bar, .ps-mega-menu-container { display: none !important; }
	.ps-mobile-header-row { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--ps-border); background: #FFFFFF; }
	.ps-mobile-btn { background: transparent; border: none; padding: 8px; display: inline-flex; align-items: center; justify-content: center; color: #161615; cursor: pointer; }
	.ps-mobile-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
	.ps-mobile-logo .ps-logo-brand { font-size: 19px; font-weight: 700; color: #161615; }
	.ps-mobile-logo-img { max-height: 34px; width: auto; }
	.ps-mobile-search-panel { display: block; padding: 10px 16px; background: #FFFFFF; border-bottom: 1px solid var(--ps-border); }
	.ps-mobile-search-panel[hidden] { display: none; }
	.ps-mobile-search-panel .ps-search-btn, .ps-drawer-search-wrap .ps-search-btn {
		width: 36px !important; height: 36px !important; min-width: 36px !important; max-width: 36px !important;
	}
	.ps-mobile-search-panel .ps-search-btn svg, .ps-drawer-search-wrap .ps-search-btn svg {
		width: 16px !important; height: 16px !important; min-width: 16px !important; max-width: 16px !important;
	}
	.ps-purple-bar { font-size: 11.5px; height: 32px; }
	.ps-purple-bar.ps-purple-hide-mobile { display: none !important; }
}

/* 7. Drawer Lateral Móvil (Lovehoney Style) */
.ps-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.ps-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.ps-mobile-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 88%; max-width: 360px; background: #FFFFFF; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); box-shadow: 4px 0 25px rgba(0,0,0,0.15); }
.ps-drawer-overlay.is-open .ps-mobile-drawer { transform: translateX(0); }
.ps-drawer-header { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 14px; border-bottom: 1px solid var(--ps-border); }
.ps-drawer-close { background: transparent; border: none; padding: 6px; cursor: pointer; color: #161615; display: inline-flex; }
.ps-drawer-logo { display: flex; align-items: center; gap: 8px; }
.ps-drawer-logo .ps-logo-brand { font-size: 18px; font-weight: 700; color: #161615; }
.ps-drawer-search-wrap { padding: 12px 16px; border-bottom: 1px solid var(--ps-border); }
.ps-drawer-body { flex: 1; overflow-y: auto; padding: 4px 0; }
.ps-drawer-nav { list-style: none; margin: 0; padding: 0; }
.ps-drawer-item { border-bottom: 1px solid #F1F5F9; cursor: pointer; transition: background 0.15s; }
.ps-drawer-item:hover { background: #FAFAFA; }
.ps-drawer-item-row { display: flex; align-items: center; padding: 12px 18px; gap: 14px; }
.ps-drawer-thumb { width: 38px; height: 38px; border-radius: 50%; background: #FEE2E2; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.ps-drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-drawer-name { flex: 1; font-size: 14px; font-weight: 600; color: #1E293B; }
.ps-drawer-chevron { color: #94A3B8; display: inline-flex; align-items: center; }

/* Subcategorías Drilldown */
.ps-drawer-view-sub { padding: 16px 18px; }
.ps-drawer-back-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; font-size: 13.5px; font-weight: 700; color: var(--ps-red); cursor: pointer; padding: 0 0 14px; }
.ps-drawer-sub-title { font-size: 16px; font-weight: 700; color: #161615; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ps-border); }
.ps-drawer-sub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ps-drawer-sub-list a { font-size: 14px; color: #334155; text-decoration: none; font-weight: 500; }
.ps-drawer-sub-all { color: var(--ps-red) !important; font-weight: 700 !important; }
.ps-drawer-footer { padding: 14px 18px; border-top: 1px solid var(--ps-border); background: #FFFFFF; }
.ps-drawer-wa-btn { width: 100% !important; height: 44px !important; font-size: 13.5px !important; justify-content: center !important; }
